about summary refs log tree commit diff stats
path: root/help.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2024-01-15 01:38:38 -0800
committerKartik K. Agaram <vc@akkartik.com>2024-01-15 01:38:38 -0800
commit348852ee2bdeffee303ec4f8ce796e7605caa62d (patch)
tree3b5b8e1ec219fa369811520fcf62fca304e5a713 /help.lua
parent6bd2086b51251ee469b4c9d937624e3be4d97410 (diff)
parent95d88a8298142a996bf828734f7e986d2f99f9ab (diff)
downloadview.love-348852ee2bdeffee303ec4f8ce796e7605caa62d.tar.gz
Merge lines.love
Diffstat (limited to 'help.lua')
-rw-r--r--help.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/help.lua b/help.lua
index d91be3c..6f8633b 100644
--- a/help.lua
+++ b/help.lua
@@ -9,7 +9,7 @@ function draw_help_without_mouse_pressed(State, drawing_index)
   y = y + State.line_height
   love.graphics.print("* Hover on a point and press 'ctrl+u' to pick it up and start moving it,", State.left+30,y)
   y = y + State.line_height
-  love.graphics.print("then press the mouse button to drop it", State.left+30+bullet_indent(),y)
+  love.graphics.print("then press the mouse button to drop it", State.left+30+State.font:getWidth('* '),y)
   y = y + State.line_height
   love.graphics.print("* Hover on a point and press 'ctrl+n', type a name, then press 'enter'", State.left+30,y)
   y = y + State.line_height
@@ -145,7 +145,3 @@ function current_shape(State, shape)
     return State.current_drawing_mode
   end
 end
-
-function bullet_indent()
-  return App.width('* ')
-end