clearer API for drawing a button
[?]
Oct 17, 2023, 5:53 AM
54HEXCWVCJ62P2BMXGTKBAR4GKOWJQ6MJUQ2PO5CLHDUOFAKCKEQCDependencies
- [2]
ZWDTEUH7clean up some absolute coordinates - [3]
CUFW4EJLreorganize app.lua and its comments - [4]
PXSQR2ADhide line numbers from log browser - [5]
BW2IUB3Kkeep all text cache writes inside text.lua - [6]
ZTK4QTZTextract a couple of functions - [7]
OI4FPFINsupport drawings in the source editor - [8]
NYRESFK6source: show all files in navigator - [9]
7CLGG7J2test: autosave after any shape - [10]
AVTNUQYRbasic test-enabled framework - [11]
GZ5WULJVswitch source side to new screen-line-based render - [12]
ZQZX364Vuse a helper - [13]
C2M4RUU5reorganize some comments - [14]
O2PYNFUBuse existing local - [15]
3QWK3GSAsupport mouse clicks in file navigator - [16]
XX7G2FFJintermingle freehand line drawings with text - [17]
AD34IX2Zcouple more tests - [18]
3ZTODUBQformatting - [19]
ZCTJPR6Ipass all button params to the icon - [20]
KKMFQDR4editing source code from within the app - [21]
DLBD4ZA6wait, fix tests - [22]
WJBZZQE4fold together two largely similar cases - [23]
PP2IIHL6stop putting button state in a global - [*]
2L5MEZV3experiment: new edit namespace - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- replacement in source_text.lua at line 37
button(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, color={1,1,1},button(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, bg={r=1,g=1,b=1}, - replacement in source_edit.lua at line 191
button(State, 'draw', {x=buttonx, y=y+4, w=12,h=12, color={1,1,0},button(State, 'draw', {x=buttonx, y=y+4, w=12,h=12, bg={r=1,g=1,b=0}, - replacement in edit.lua at line 186
button(State, 'draw', {x=State.left-Margin_left+4, y=y+4, w=12,h=12, color={1,1,0},button(State, 'draw', {x=State.left-Margin_left+4, y=y+4, w=12,h=12, bg={r=1,g=1,b=0}, - replacement in commands.lua at line 119
button(Editor_state, 'menu', {x=x-5, y=y-2, w=width+5*2, h=Editor_state.line_height+2*2, color=colortable(color),button(Editor_state, 'menu', {x=x-5, y=y-2, w=width+5*2, h=Editor_state.line_height+2*2, bg=color, - replacement in button.lua at line 15
love.graphics.setColor(params.color[1], params.color[2], params.color[3])love.graphics.setColor(params.bg.r, params.bg.g, params.bg.b) - edit in app.lua at line 369[5.541]→[5.1467:1472](∅→∅),[3.5233]→[5.1467:1472](∅→∅),[5.1467]→[5.1467:1472](∅→∅),[5.1472]→[3.5234:5327](∅→∅)
endfunction colortable(app_color)return {app_color.r, app_color.g, app_color.b, app_color.a}