show when we're naming a point
[?]
May 21, 2022, 9:18 PM
AH744RFRNNEQ7THYLBD52BKUGPJJL36G5YLQY6NVU442UICAXUXQCDependencies
- [2]
BYG5CEMVsupport for naming points - [3]
VHQCNMARseveral more modules - [4]
BLWAYPKVextract a module
Change contents
- replacement in drawing.lua at line 40
for _,p in ipairs(line.points) dofor i,p in ipairs(line.points) do - replacement in drawing.lua at line 51
love.graphics.print(p.name, Drawing.pixels(p.x)+16+5,Drawing.pixels(p.y)+line.y+5, 0, Zoom)local x,y = Drawing.pixels(p.x)+16+5, Drawing.pixels(p.y)+line.y+5love.graphics.print(p.name, x,y, 0, Zoom)if Current_drawing_mode == 'name' and i == line.pending.target_point then-- create a faint red box for the namelove.graphics.setColor(1,0,0,0.1)local name_textif p.name == '' thenname_text = love.graphics.newText(love.graphics.getFont(), 'm') -- 1emelsename_text = love.graphics.newText(love.graphics.getFont(), p.name)endlove.graphics.rectangle('fill', x,y, math.floor(name_text:getWidth()*Zoom), math.floor(15*Zoom))end