about summary refs log tree commit diff stats
path: root/help.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-18 15:29:18 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-18 15:29:18 -0700
commite27165cb9f0f0635f0290cb345442292faeba7fd (patch)
tree8eaa39a70e9f068e0a6b1acca79bf30fd7c903d2 /help.lua
parent28c29eecdeacf51a262f598ddbc6a3d8131549eb (diff)
downloadlines.love-e27165cb9f0f0635f0290cb345442292faeba7fd.tar.gz
rectangle and square shapes
Diffstat (limited to 'help.lua')
-rw-r--r--help.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/help.lua b/help.lua
index 0feaba1..f979b2f 100644
--- a/help.lua
+++ b/help.lua
@@ -32,6 +32,14 @@ function draw_help_without_mouse_pressed(drawing)
     love.graphics.print("* Press 'ctrl+g' to switch to drawing polygons", 16+30,y, 0, Zoom)
     y = y+15*Zoom
   end
+  if Current_drawing_mode ~= 'rectangle' then
+    love.graphics.print("* Press 'ctrl+r' to switch to drawing rectangles", 16+30,y, 0, Zoom)
+    y = y+15*Zoom
+  end
+  if Current_drawing_mode ~= 'square' then
+    love.graphics.print("* Press 'ctrl+s' to switch to drawing squares", 16+30,y, 0, Zoom)
+    y = y+15*Zoom
+  end
   love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to Zoom in or out", 16+30,y, 0, Zoom)
   y = y+15*Zoom
   love.graphics.print("* Press 'ctrl+0' to reset Zoom", 16+30,y, 0, Zoom)
@@ -90,6 +98,14 @@ function draw_help_with_mouse_pressed(drawing)
     love.graphics.print("* Press 'g' to switch to drawing polygons", 16+30,y, 0, Zoom)
     y = y+15*Zoom
   end
+  if Current_drawing_mode ~= 'rectangle' then
+    love.graphics.print("* Press 'g' to switch to drawing rectangles", 16+30,y, 0, Zoom)
+    y = y+15*Zoom
+  end
+  if Current_drawing_mode ~= 'square' then
+    love.graphics.print("* Press 'g' to switch to drawing squares", 16+30,y, 0, Zoom)
+    y = y+15*Zoom
+  end
   love.graphics.setColor(0,0.5,0, 0.1)
   love.graphics.rectangle('fill', 16,drawing.y, Drawing_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
 end