select text using mouse drag
[?]
Jun 3, 2022, 3:11 PM
2ENZW7TVCS47BWCA4AIEVGKGMT4Y2TSM5IJ7O5K2VSWNXIN3SG4QCDependencies
- [2]
YPHKZVWMextract a new variable - [3]
Z4XRNDTRfind text - [4]
VHQCNMARseveral more modules - [5]
6E3HVYWFtest and App helper for mouse clicks - [6]
OTIBCAUJlove2d scaffold - [7]
6DE7RBZ6move mouse_released events to Drawing - [8]
BYG5CEMVsupport for naming points - [9]
2INHXC3Kposition cursor by clicking on text - [10]
AVTNUQYRbasic test-enabled framework - [11]
YKRF5V3Zstarting to load/save - [12]
SNDZOK6Qslightly less strange now that we have the same two ways to move points as any other operation - [13]
JCSLDGAHbeginnings of support for multiple shapes - [14]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [15]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [16]
DHI6IJCNselecting text and deleting selections - [17]
AVQ5MC5Dfinish uppercasing all globals - [18]
WY3JD6W6bugfix - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
2RXZ3PGObeginning of a new approach to scroll+wrap - [*]
AYE2VEGJextract a couple of methods - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in text.lua at line 502
App.run_after_mousepress(screen_left_margin+8,Margin_top+5, '1')App.run_after_mouserelease(screen_left_margin+8,Margin_top+5, '1') - replacement in text.lua at line 1042
App.run_after_mousepress(screen_left_margin+8,Margin_top+Line_height*2+5, '1')App.run_after_mouserelease(screen_left_margin+8,Margin_top+Line_height*2+5, '1') - edit in text.lua at line 1981
endfunction Text.eq1(a, b)return a.line == b.line and a.pos == b.pos - edit in main.lua at line 201
if love.keyboard.isDown('lshift') or love.keyboard.isDown('rshift') thenif Selection1.line == nil thenSelection1 = {line=Cursor1.line, pos=Cursor1.pos}endelseif Selection1.line thenSelection1 = {}endend - edit in main.lua at line 202
Selection1 = {line=Cursor1.line, pos=Cursor1.pos} - replacement in main.lua at line 214
Drawing.mouse_released(x,y, button)if Lines.current_drawing thenDrawing.mouse_released(x,y, button)elsefor line_index,line in ipairs(Lines) doif line.mode == 'text' thenif Text.in_line(line, x,y) thenText.move_cursor(line_index, line, x, y)if Text.eq1(Cursor1, Selection1) thenSelection1 = {}endendendendend - edit in app.lua at line 203
App.screen.contents = {}App.draw()endfunction App.run_after_mouserelease(x,y, button)App.mousereleased(x,y, button)