hide line numbers from log browser
[?]
Sep 15, 2023, 8:30 PM
PXSQR2ADSFEOG4SMIRHUZ2HGBKUQIYA73HZU4IRPR2UG2RBAVUJACDependencies
- [2]
5SM6DRHKport inscript's bugfix to source editor - [3]
CWQIPU7Ualways show line numbers in source editor - [4]
B4JEWKWIhide editor cursor while in file navigator - [5]
LIKTH6HMupdate stale source X-( - [6]
KKMFQDR4editing source code from within the app - [7]
OI4FPFINsupport drawings in the source editor - [8]
GZ5WULJVswitch source side to new screen-line-based render - [9]
G54H3YG2get rid of all bifold text - [10]
V5SYDHPQstart thinking of compute_fragments as a detail - [11]
LDFXFRUObring a few things in sync between run and source - [12]
L2FWWEQLsource: remember cursor position of multiple files - [13]
BYKXF3YYbugfix: draw menu after everything else - [14]
NVSC4N4Kchange a helper slightly
Change contents
- replacement in source_text.lua at line 6
function Text.draw(State, line_index, y, startpos, hide_cursor)function Text.draw(State, line_index, y, startpos, hide_cursor, show_line_numbers) - replacement in source_text.lua at line 15
App.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)if show_line_numbers thenApp.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)end - replacement in source_edit.lua at line 92
left = math.floor(left),left = math.floor(left), -- left margin for text; line numbers go to the left of this - replacement in source_edit.lua at line 147
function edit.draw(State, hide_cursor)function edit.draw(State, hide_cursor, show_line_numbers) - replacement in source_edit.lua at line 176
button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0},local buttonx = State.left-Margin_left+4if show_line_numbers thenbuttonx = 4 -- HACK: position draw buttons at a fixed x on screenendbutton(State, 'draw', {x=buttonx, y=y+4, w=12,h=12, color={1,1,0}, - replacement in source_edit.lua at line 194
y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, hide_cursor)y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, hide_cursor, show_line_numbers) - replacement in source.lua at line 240
edit.draw(Editor_state, --[[hide cursor?]] Show_file_navigator)edit.draw(Editor_state, --[[hide cursor?]] Show_file_navigator, --[[show line numbers]] true)