Merge lines.love
[?]
Aug 23, 2022, 8:25 PM
32V6ZHQBHMVAY66WO5FAHXPY6W6PWNAURIRNN3S63YUCL5LCH4LACDependencies
- [2]
MD3W5IRAnew fork: rip out drawing support - [3]
5UKUADTWdistinguish consistently between mouse buttons and other buttons - [4]
ZCTJPR6Ipass all button params to the icon - [5]
6J3NXBYGaffordance to adjust width for word wrap - [6]
C45WCXJ2keep drawings within the line width slider as well - [7]
BULPIBEGbeginnings of a module for the text editor - [8]
VXORMHMEdelete experimental REPL - [9]
6LJZN727handle chords - [10]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [11]
QFC3WRDZchunking by simple local variable - [12]
T4FRZSYLdelete an ancient, unused file - [13]
BLWAYPKVextract a module - [14]
6DE7RBZ6move mouse_released events to Drawing - [15]
LYN3L74Wcorrect commit f3abc2cbf2 - [16]
3OTESDW6move drawing.starty into line cache - [17]
LNUHQOGHstart passing in Editor_state explicitly - [18]
LXTTOB33extract a couple of files - [19]
KTZQ57HVreplace globals with args in a few functions - [20]
BW2IUB3Kkeep all text cache writes inside text.lua - [21]
R5QXEHUIsomebody stop me - [22]
3QNOKBFMbeginnings of a test harness - [23]
OGUV4HSAremove some memory leaks from rendered fragments - [24]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [25]
L6XA5EY2test: moving a point - [26]
5DOTWNVMright margin - [27]
PP2IIHL6stop putting button state in a global - [28]
OTIBCAUJlove2d scaffold - [29]
TLOAPLBJadd a license - [30]
LUNH47XXmake text and drawings the same width - [31]
73OCE2MCafter much struggle, a brute-force undo - [32]
66X36NZNa little more prose describing manual_tests - [33]
XX7G2FFJintermingle freehand line drawings with text - [34]
D2GCFTTTclean up repl functionality - [35]
4YDBYBA4clean up memory leak experiments - [36]
RSZD5A7Gforgot to add json.lua - [37]
M6TH7VSZrip out notion of Line_width - [38]
FS2ITYYHrecord a known issue - [39]
K2X6G75Zstart writing some tests for drawings - [40]
UHB4GARJleft/right margin -> left/right coordinates - [41]
WJBZZQE4fold together two largely similar cases - [42]
4KC7I3E2make colors easier to edit - [43]
2L5MEZV3experiment: new edit namespace - [44]
RT6EV6OPdelegate update events to drawings - [45]
CE4LZV4Tdrop last couple of manual tests - [46]
LF7BWEG4group all editor globals - [47]
QXVD2RIFadd state arg to Drawing.mouse_released - [48]
AVTNUQYRbasic test-enabled framework - [49]
VHQCNMARseveral more modules - [50]
TVCPXAAUrename - [51]
DLQAEAC7add state arg to Drawing.mouse_pressed
Change contents
- file deletion: drawing.lua drawing.lua
function Drawing.mouse_released(State, x,y, mouse_button)if State.current_drawing_mode == 'move' thenState.current_drawing_mode = State.previous_drawing_modeState.previous_drawing_mode = nilif State.lines.current_drawing thenState.lines.current_drawing.pending = {}State.lines.current_drawing = nilfunction Drawing.mouse_pressed(State, drawing_index, x,y, mouse_button)local drawing = State.lines[drawing_index]local line_cache = State.line_cache[drawing_index] - file deletion: icons.lua icons.lua
function icon.insert_drawing(button_params)local x,y = button_params.x, button_params.yApp.color(Icon_color) - edit in edit.lua at line 103
button(State, 'draw', {x=4,y=y+4, w=12,h=12, color={1,1,0}, - resolve order conflict in edit.lua at line 103