more precise search highlighting
[?]
Jun 3, 2022, 9:37 PM
FHSZYAZ2KCHJM4BN2TAPYZMWTLTIE23SWKDYLCQOQIVL4263HDRQCDependencies
- [2]
HIKLULFQextract a function - [3]
HOSPP2ANcrisp font rendering - [4]
Z4XRNDTRfind text - [5]
2RXZ3PGObeginning of a new approach to scroll+wrap - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
LXTTOB33extract a couple of files
Change contents
- replacement in text.lua at line 65
if Search_text == nil thenSearch_text = App.newText(love.graphics.getFont(), Search_term)endlove.graphics.setColor(0.7,1,1)love.graphics.rectangle('fill', x,y, App.width(Search_text),Line_height)local lo_px = Text.draw_highlight(line, x,y, pos, Cursor1.pos, Cursor1.pos+utf8.len(Search_term)) - replacement in text.lua at line 67
love.graphics.print(Search_term, x,y)love.graphics.print(Search_term, x+lo_px,y) - edit in select.lua at line 54
-- Creates text objects every time, so use this sparingly.-- Returns some intermediate computation useful elsewhere. - edit in select.lua at line 76[2.999][8.45803]
return lo_px