use available variables
[?]
Jul 13, 2022, 3:19 PM
BXYVMS4A4FLFWTMBI3UHGL6NY6LDAQVBYYQVLWZJ4IMALK6UKPOQCDependencies
- [2]
P5QNVXSNdrop final mention of state global beyond main.lua - [3]
RT6EV6OPdelegate update events to drawings - [4]
PJEQCTBLadd state arg to Drawing.update - [5]
UHB4GARJleft/right margin -> left/right coordinates - [6]
LF7BWEG4group all editor globals - [7]
LAW2O3NWextract variable Margin_left - [8]
DRFE3B3Zmouse buttons are integers, not strings - [9]
JFFUF5ALoverride mouse state lookups in tests - [10]
KTZQ57HVreplace globals with args in a few functions - [11]
EHSUSZMKmore idiomatic variable names - [*]
BLWAYPKVextract a module
Change contents
- replacement in drawing.lua at line 248
table.insert(drawing.pending.points, {x=Drawing.coord(App.mouse_x()-State.left, State.width), y=Drawing.coord(App.mouse_y()-drawing.y, State.width)})table.insert(drawing.pending.points, {x=Drawing.coord(pmx-State.left, State.width), y=Drawing.coord(pmy-drawing.y, State.width)})