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]
UHB4GARJleft/right margin -> left/right coordinates - [5]
LF7BWEG4group all editor globals - [6]
LAW2O3NWextract variable Margin_left - [7]
KTZQ57HVreplace globals with args in a few functions - [8]
EHSUSZMKmore idiomatic variable names - [9]
PJEQCTBLadd state arg to Drawing.update - [10]
DRFE3B3Zmouse buttons are integers, not strings - [11]
JFFUF5ALoverride mouse state lookups in tests - [*]
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)})