change text cursor shape
[?]
May 20, 2022, 5:34 AM
XVR2O5PIN4KDGEIFAXR2A54Q2GDYJHXUIHRFI74UU736M4R4CLVQCDependencies
- [2]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [3]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [4]
DLQMM265scroll past first page - [5]
XNFTJHC4split keyboard handling between Text and Drawing - [6]
UWNHC4AAredo y computations - [7]
4C375P53this is a bit clearer - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold
Change contents
- replacement in text.lua at line 71
love.graphics.print('_', x+Text.cursor_x2(frag, cursor_pos-pos+1), y+6) -- drop the cursor down a bit to account for the increased font sizelove.graphics.setColor(1,0,0)love.graphics.circle('fill', x+Text.cursor_x2(frag, cursor_pos-pos+1),y+math.floor(15*Zoom), 2) - replacement in main.lua at line 119
love.graphics.setColor(0,0,0)love.graphics.print('_', 25, y+6) -- drop the cursor down a bit to account for the increased font size-- cursorlove.graphics.setColor(1,0,0)love.graphics.circle('fill', 25,y+math.floor(15*Zoom), 2)