fix help for rectangles and squares
Thanks John Blommers (https://github.com/akkartik/lines.love/issues/1#issuecomment-1159582457)
This commit is contained in:
parent
2a26a260bb
commit
8d4d00d1e1
20
help.lua
20
help.lua
|
@ -76,6 +76,26 @@ function draw_help_with_mouse_pressed(drawing)
|
||||||
y = y + Line_height
|
y = y + Line_height
|
||||||
love.graphics.print("* Press 'p' to add a vertex to the polygon", Margin_left+30,y)
|
love.graphics.print("* Press 'p' to add a vertex to the polygon", Margin_left+30,y)
|
||||||
y = y + Line_height
|
y = y + Line_height
|
||||||
|
elseif Current_drawing_mode == 'rectangle' then
|
||||||
|
if #drawing.pending.vertices < 2 then
|
||||||
|
love.graphics.print("* Press 'p' to add a vertex to the rectangle", Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
else
|
||||||
|
love.graphics.print('* Release the mouse button to finish drawing the rectangle', Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
love.graphics.print("* Press 'p' to replace the second vertext of the rectangle", Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
end
|
||||||
|
elseif Current_drawing_mode == 'square' then
|
||||||
|
if #drawing.pending.vertices < 2 then
|
||||||
|
love.graphics.print("* Press 'p' to add a vertex to the square", Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
else
|
||||||
|
love.graphics.print('* Release the mouse button to finish drawing the square', Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
love.graphics.print("* Press 'p' to replace the second vertext of the square", Margin_left+30,y)
|
||||||
|
y = y + Line_height
|
||||||
|
end
|
||||||
end
|
end
|
||||||
love.graphics.print("* Press 'esc' then release the mouse button to cancel the current shape", Margin_left+30,y)
|
love.graphics.print("* Press 'esc' then release the mouse button to cancel the current shape", Margin_left+30,y)
|
||||||
y = y + Line_height
|
y = y + Line_height
|
||||||
|
|
Loading…
Reference in New Issue