support mouse clicks in file navigator
[?]
Sep 18, 2022, 8:26 AM
3QWK3GSA5KTVQJKXQ65OGZA2AORHFALLBXWP2A4MN6YDE7VV4PUACDependencies
- [2]
NYRESFK6source: show all files in navigator - [3]
ZQZX364Vuse a helper - [4]
KKMFQDR4editing source code from within the app - [5]
O2PYNFUBuse existing local - [*]
3QNOKBFMbeginnings of a test harness - [*]
4KC7I3E2make colors easier to edit - [*]
AVTNUQYRbasic test-enabled framework
Change contents
- edit in commands.lua at line 96
local color = Menu_background_color - replacement in commands.lua at line 98
App.color(Menu_highlight_color)love.graphics.rectangle('fill', x-5,y-2, width+5*2,Editor_state.line_height+2*2)color = Menu_highlight_color - edit in commands.lua at line 100
button(Editor_state, 'menu', {x=x-5, y=y-2, w=width+5*2, h=Editor_state.line_height+2*2, color=colortable(color),onpress1 = function()local candidate = guess_source(s..'.lua')source.switch_to_file(candidate)Show_file_navigator = falseend}) - edit in app.lua at line 195[8.1374][9.6421]
endfunction colortable(app_color)return {app_color.r, app_color.g, app_color.b, app_color.a}