Merge lines.love
[?]
May 15, 2023, 12:31 AM
2344TV56YERMZVRV4NPBVJSJWDPNUF43FFQAZ22EYUAZDUQU3JAQCDependencies
- [2]
JZR3QMTNMerge lines.love - [3]
23KRQC4YMerge lines.love - [4]
SR4C3ZYZadd an assert - [5]
AIBA4RWQhide cursor in log browser window - [6]
MD3W5IRAnew fork: rip out drawing support - [7]
2JBAEQHUMerge lines.love - [8]
VHUNJHXBMerge lines.love - [9]
BULPIBEGbeginnings of a module for the text editor - [10]
4SR3Z4Y3document the version of LÖVE I've been using - [11]
BYKXF3YYbugfix: draw menu after everything else - [12]
XX7G2FFJintermingle freehand line drawings with text - [13]
D2GCFTTTclean up repl functionality - [14]
B4JEWKWIhide editor cursor while in file navigator - [15]
FS2ITYYHrecord a known issue - [16]
OTIBCAUJlove2d scaffold - [17]
VHQCNMARseveral more modules - [18]
66X36NZNa little more prose describing manual_tests - [19]
OI4FPFINsupport drawings in the source editor - [20]
RAXUQQ6ZMerge lines.love - [21]
VBU5YHLRMerge lines.love - [22]
LXTTOB33extract a couple of files - [23]
A4BSGS2CMerge lines.love - [24]
2L5MEZV3experiment: new edit namespace - [25]
N2NUGNN4include a brief reference enabling many useful apps - [26]
K2X6G75Zstart writing some tests for drawings - [27]
KMSL74GAsupport selections in the source editor - [28]
ME7WBLF5bugfix: log filenames can have 2 formats - [29]
BLWAYPKVextract a module - [30]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [31]
CE4LZV4Tdrop last couple of manual tests - [32]
3PSFWAILMerge lines.love - [33]
4YDBYBA4clean up memory leak experiments - [34]
ZTZOO2OQMerge lines.love - [35]
3QNOKBFMbeginnings of a test harness - [36]
R5QXEHUIsomebody stop me - [37]
RSZD5A7Gforgot to add json.lua - [38]
VXORMHMEdelete experimental REPL - [39]
2CTN2IEFMerge lines.love - [40]
ORKN6EOBMerge lines.love - [41]
AVTNUQYRbasic test-enabled framework - [42]
KWIVKQQ7Merge lines.love - [43]
OGUV4HSAremove some memory leaks from rendered fragments - [44]
VP5KC4XZMerge lines.love - [45]
R3KXFRZNget rid of to_text - [46]
JOPVPUSAediting source code from within the app - [47]
6LJZN727handle chords - [48]
TLOAPLBJadd a license - [49]
ZLJYLPOTMerge lines.love - [50]
KKMFQDR4editing source code from within the app - [51]
T4FRZSYLdelete an ancient, unused file - [52]
TVCPXAAUrename - [53]
73OCE2MCafter much struggle, a brute-force undo - [54]
K74U4BAUMerge lines.love - [55]
GZ5WULJVswitch source side to new screen-line-based render - [56]
OB5XOXVCdeemphasize the source editor
Change contents
- file deletion: source_text.lua source_text.lua
assert(State.cursor1.pos)if Text.cursor_at_final_screen_line(State) then-- line is done, skip to next text line--? print('cursor at final screen line of its line') - file deletion: source.lua source.lua
log_browser.draw(Log_browser_state, --[[hide_cursor]] Focus ~= 'log_browser')end - file deletion: log_browser.lua log_browser.lua
Text.draw(State, line_index, y, --[[startpos]] 1, hide_cursor)State.left,State.right = old_left,old_rightelseheight = log_render[line.data.name](line.data, xleft, y, xright-xleft)endendif App.mouse_x() > Log_browser_state.left and line_index == mouse_line_index thenApp.color(Cursor_line_background_color)love.graphics.rectangle('fill', xleft,y, xright-xleft, height)endy = y + heightendendendfunction render_stack_left_margin(State, line_index, line, y)if line.section_stack == nil then-- assertion messagefor k,v in pairs(line) doprint(k)endendApp.color(Section_border_color)for i=1,#line.section_stack dolocal x = State.left + (i-1)*Section_border_padding_horizontallove.graphics.line(x,y, x,y+log_browser.height(State, line_index))if y < 30 thenlove.graphics.print(line.section_stack[i].name, x+State.font_height+5, y+5, --[[vertically]] math.pi/2)endif y > App.screen.height-log_browser.height(State, line_index) thenfunction log_browser.draw(State, hide_cursor)assert(#State.lines == #State.line_cache)local mouse_line_index = log_browser.line_index(State, App.mouse_x(), App.mouse_y())local y = State.topfor line_index = State.screen_top1.line,#State.lines doApp.color(Text_color)local line = State.lines[line_index]if y + State.line_height > App.screen.height then break endlocal height = State.line_heightif should_show(line) thenlocal xleft = render_stack_left_margin(State, line_index, line, y)local xright = render_stack_right_margin(State, line_index, line, y)if line.section_name thenApp.color(Section_border_color) - edit in source_text.lua at line 489
assert(State.cursor1.pos) - replacement in source.lua at line 268
log_browser.draw(Log_browser_state)log_browser.draw(Log_browser_state, --[[hide_cursor]] Focus ~= 'log_browser') - replacement in log_browser.lua at line 87
function log_browser.draw(State)function log_browser.draw(State, hide_cursor) - replacement in log_browser.lua at line 120
Text.draw(State, line_index, y, --[[startpos]] 1)Text.draw(State, line_index, y, --[[startpos]] 1, hide_cursor)