use a helper
[?]
Sep 18, 2022, 6:01 AM
ZQZX364VYRZOGYDPN25FIQLCKIAK2DJ2U6FJUP54X72HXQAGG5VQCDependencies
- [2]
KKMFQDR4editing source code from within the app - [3]
OI4FPFINsupport drawings in the source editor - [4]
XW7ANEJXswitch shortcuts for bifold text - [5]
QZ2SXLHFsome debug prints
Change contents
- replacement in commands.lua at line 45
if Text_cache[s] == nil thenText_cache[s] = App.newText(love.graphics.getFont(), s)endlocal width = App.width(Text_cache[s])local s_text = to_text(s)local width = App.width(s_text) - replacement in commands.lua at line 51
App.screen.draw(Text_cache[s], Menu_cursor,5)App.screen.draw(s_text, Menu_cursor,5) - replacement in commands.lua at line 69
if Text_cache[s] == nil thenText_cache[s] = App.newText(love.graphics.getFont(), s)endlocal width = App.width(Text_cache[s])local s_text = to_text(s)local width = App.width(s_text) - replacement in commands.lua at line 77
love.graphics.rectangle('fill', Menu_cursor-5,5-2, App.width(Text_cache[s])+5*2,Editor_state.line_height+2*2)love.graphics.rectangle('fill', Menu_cursor-5,5-2, App.width(s_text)+5*2,Editor_state.line_height+2*2) - replacement in commands.lua at line 80
App.screen.draw(Text_cache[s], Menu_cursor,5)App.screen.draw(s_text, Menu_cursor,5)