extract a function
[?]
May 20, 2022, 12:40 PM
5DOC2CBMBDMAOJ7IKLDGVRCY4SNPCJTTF7DK7WGNLPGNV4AWVJNACDependencies
- [2]
RTDYYP4Hbugfix: text past cursor was rendered red on wrapped lines - [3]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [4]
DLQMM265scroll past first page - [5]
Y36LOGR5bugfix: show cursor when past end of line - [6]
XVR2O5PIchange text cursor shape - [7]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [8]
UWNHC4AAredo y computations - [9]
XNFTJHC4split keyboard handling between Text and Drawing - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 35
-- cursorlove.graphics.setColor(1,0,0)love.graphics.circle('fill', x+Text.cursor_x2(frag, cursor_pos-pos+1),y+math.floor(15*Zoom), 2)love.graphics.setColor(0,0,0)Text.draw_cursor(x+Text.cursor_x2(frag, cursor_pos-pos+1), y) - replacement in text.lua at line 42
-- cursorlove.graphics.setColor(1,0,0)love.graphics.circle('fill', x,y+math.floor(15*Zoom), 2)love.graphics.setColor(0,0,0)Text.draw_cursor(x, y) - edit in text.lua at line 50
function Text.draw_cursor(x, y)love.graphics.setColor(1,0,0)love.graphics.circle('fill', x,y+math.floor(15*Zoom), 2)love.graphics.setColor(0,0,0)end - replacement in main.lua at line 119
-- cursorlove.graphics.setColor(1,0,0)love.graphics.circle('fill', 25,y+math.floor(15*Zoom), 2)love.graphics.setColor(0,0,0)Text.draw_cursor(25, y)