bugfix: restrict strokes to the drawing they started in
[?]
May 12, 2022, 4:57 AM
EFMLTMZG5TUEGLSYLVKOKDSTGVSVWSKOMS7CJWOUGK5LADSH4YTQCDependencies
- [2]
POT3XFCTrename - [3]
KVHUFUFVreorg - [4]
XX7G2FFJintermingle freehand line drawings with text - [5]
TRCAEE2Aclip drawings inside the border - [6]
L5USRTY2inline - [7]
OTIBCAUJlove2d scaffold
Change contents
- replacement in main.lua at line 78
for i, line in ipairs(lines) doif type(line) == 'table' thenlocal drawing = lineif lines.current thenlocal drawing = lines.currentif type(drawing) == 'table' then - edit in main.lua at line 83
lines.current = drawing - edit in main.lua at line 92
propagate_to_drawings(x,y, button) - edit in main.lua at line 95
function propagate_to_drawings(x,y, button)for i,drawing in ipairs(lines) doif type(drawing) == 'table' thenlocal x, y = love.mouse.getX(), love.mouse.getY()if y >= drawing.y and y < drawing.y + drawing.h and x >= 12 and x < 12+drawing.w thenlines.current = drawingendendendend