allow buttons to nest as well
[?]
Aug 23, 2022, 6:46 PM
GDJSZLYT73DLC2YKPWUSXCIC6HW3YMHFGQXU66FLHVMRNMI5UCLQCDependencies
- [2]
K6DTOGOQflip return value of button handlers - [3]
XX7G2FFJintermingle freehand line drawings with text - [4]
PW2VGQWNindent - [5]
BJ46QVIPimprove explanation for buttons - [6]
6D5MOJS4allow buttons to interrupt events - [*]
PP2IIHL6stop putting button state in a global
Change contents
- replacement in button.lua at line 3
-- If any applicable button handler returns true, it'll propagate the click to other handlers.---- Buttons can nest in principle, though I haven't actually used that yet.---- Don't rely on the order in which handlers are run. Within any widget, all-- applicable button handlers will run. If _any_ of them returns true, the-- event will continue to propagate elsewhere in the widget. - edit in button.lua at line 26[8.465][8.465]
local result = false - replacement in button.lua at line 30
return not ev.onpress1()if not ev.onpress1() thenresult = trueend - edit in button.lua at line 36
return result