slightly less strange now that we have the same two ways to move points as any other operation

[?]
May 15, 2022, 6:32 AM
SNDZOK6QJUASKYLYBHIATA7WXPCPZTEYEWA63I4H7HH3JT3B4U6AC

Dependencies

  • [2] WDWXNW7V slightly strange way to move points
  • [3] H7OEU6WP experimental approach to combining keyboard and mouse while drawing
  • [4] EFMLTMZG bugfix: restrict strokes to the drawing they started in
  • [5] XX7G2FFJ intermingle freehand line drawings with text
  • [6] U76D4P36 fix a typo
  • [7] KVHUFUFV reorg
  • [*] OTIBCAUJ love2d scaffold
  • [*] ZD63LJ2T bugfix: keep the click to create a new drawing from creating a new shape in the drawing
  • [*] JCSLDGAH beginnings of support for multiple shapes

Change contents

  • edit in main.lua at line 132
    [10.471]
    [11.1570]
    elseif drawing.pending.mode == 'move' then
    local mx,my = coord(x-16), coord(y-drawing.y)
    drawing.pending.target_point.x = mx
    drawing.pending.target_point.y = my
  • edit in main.lua at line 152
    [3.48][2.391:498]()
    if current_mode == 'move' then
    current_mode = previous_mode
    previous_mode = nil
    return
    end
  • edit in main.lua at line 157
    [11.1626]
    [11.1626]
    if current_mode == 'move' then
    current_mode = previous_mode
    previous_mode = nil
    return
    end
  • replacement in main.lua at line 549
    [2.993][2.993:1034]()
    drawing.pending = {target_point=p}
    [2.993]
    [2.1034]
    drawing.pending = {mode=current_mode, target_point=p}
    lines.current = drawing
    end
    elseif love.mouse.isDown('1') and chord == 'v' then
    local drawing,p = select_point_at_mouse()
    if drawing then
    previous_mode = current_mode
    current_mode = 'move'
    drawing.pending = {mode=current_mode, target_point=p}