hoist couple of variables out
[?]
Jul 13, 2022, 3:21 PM
BXJMGTV2FMXDI5ML3OATRJ6O35L3T64S4TW4UYM37V3K3DICSC4ACDependencies
- [2]
EHSUSZMKmore idiomatic variable names - [3]
BXYVMS4Ause available variables - [4]
KTZQ57HVreplace globals with args in a few functions - [5]
LF7BWEG4group all editor globals - [6]
PJEQCTBLadd state arg to Drawing.update - [7]
P5QNVXSNdrop final mention of state global beyond main.lua - [8]
JFFUF5ALoverride mouse state lookups in tests - [9]
DRFE3B3Zmouse buttons are integers, not strings - [10]
RT6EV6OPdelegate update events to drawings - [11]
UHB4GARJleft/right margin -> left/right coordinates - [12]
LAW2O3NWextract variable Margin_left - [*]
BLWAYPKVextract a module
Change contents
- edit in drawing.lua at line 244
if drawing.y == nil thenreturn -- first draw?end - edit in drawing.lua at line 248
local mx = Drawing.coord(pmx-State.left, State.width)local my = Drawing.coord(pmy-drawing.y, State.width) - replacement in drawing.lua at line 253
table.insert(drawing.pending.points, {x=Drawing.coord(pmx-State.left, State.width), y=Drawing.coord(pmy-drawing.y, State.width)})table.insert(drawing.pending.points, {x=mx, y=my}) - edit in drawing.lua at line 255
local mx,my = Drawing.coord(pmx-State.left, State.width), Drawing.coord(pmy-drawing.y, State.width) - edit in drawing.lua at line 262
local mx,my = Drawing.coord(pmx-State.left, State.width), Drawing.coord(pmy-drawing.y, State.width)