streamline button.lua
Dependencies
- [2]
LJUJH5GPbugfix: propagate mouse press if any button would - [3]
6XCJX4DZbugfix: inscript's bug - [4]
5SM6DRHKport inscript's bugfix to source editor - [5]
MXXCTVXWdocument facilities for buttons on screen - [6]
K6DTOGOQflip return value of button handlers - [7]
U76D4P36fix a typo - [8]
ZNLTRNNKhighlight another global - [9]
XX7G2FFJintermingle freehand line drawings with text - [10]
EDWRWZRVuse color alpha in button backgrounds - [11]
LNUHQOGHstart passing in Editor_state explicitly - [12]
6D5MOJS4allow buttons to interrupt events - [13]
OI4FPFINsupport drawings in the source editor - [14]
4EGQRXDAbugfix: naming points - [15]
XZ6QVCTTmanually maintain mouse button press state - [16]
Z3TDYADAmouse button state in source editor - [17]
2L5MEZV3experiment: new edit namespace - [18]
QJISOCHJsome temporary logging to catch a bug - [19]
OAHNWDYG. - [20]
GDJSZLYTallow buttons to nest as well - [21]
LIKTH6HMupdate stale source X-( - [22]
LDFXFRUObring a few things in sync between run and source - [23]
7FPELAZBah, I see the problem - [24]
KKMFQDR4editing source code from within the app - [25]
54HEXCWVclearer API for drawing a button - [26]
PP2IIHL6stop putting button state in a global - [27]
H5UZI3YNeditor documentation - [*]
LXTTOB33extract a couple of files - [*]
YFW4MNNPhandle wrapping lines - [*]
N2NUGNN4include a brief reference enabling many useful apps
Change contents
- edit in text_tests.lua at line 884
edit.draw(Editor_state) - edit in source_text_tests.lua at line 884
edit.draw(Editor_state) - replacement in source_edit.lua at line 242[6.436]→[6.157217:157296](∅→∅),[6.626]→[6.157217:157296](∅→∅),[4.4832]→[6.157217:157296](∅→∅),[6.21562]→[6.157217:157296](∅→∅),[6.157217]→[6.157217:157296](∅→∅)
if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) thenif mouse_press_consumed_by_any_button(State, x,y, mouse_button) then - replacement in reference.md at line 297
* `mouse_press_consumed_by_any_button_handler(state, x,y, mouse_button)`* `mouse_press_consumed_by_any_button(state, x,y, mouse_button)` - replacement in reference.md at line 305
if mouse_press_consumed_by_any_button_handler(state, x,y, mouse_button) thenif mouse_press_consumed_by_any_button(state, x,y, mouse_button) then - replacement in edit.lua at line 238[6.125]→[6.15:94](∅→∅),[6.253]→[6.15:94](∅→∅),[6.497]→[6.15:94](∅→∅),[3.2254]→[6.15:94](∅→∅),[6.4647]→[6.15:94](∅→∅)
if mouse_press_consumed_by_any_button_handler(State, x,y, mouse_button) thenif mouse_press_consumed_by_any_button(State, x,y, mouse_button) then - edit in button.lua at line 12
if State.button_handlers == nil thenState.button_handlers = {}end - replacement in button.lua at line 19
function mouse_press_consumed_by_any_button_handler(State, x, y, mouse_button)if State.button_handlers == nil thenreturnendfunction mouse_press_consumed_by_any_button(State, x, y, mouse_button)