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:45:35 -0800
committerKartik K. Agaram <vc@akkartik.com>2024-01-15 01:45:35 -0800
commitdedb843535f3a4fc1a1f9f71100c80fc1e5d87e4 (patch)
treec77d28b50b7b4def159e574533f7c551d6b9e65a /help.lua
parent6c568c6ef0d69fddcbaf93d233e46a7e75ee7845 (diff)
parent348852ee2bdeffee303ec4f8ce796e7605caa62d (diff)
downloadview.love-dedb843535f3a4fc1a1f9f71100c80fc1e5d87e4.tar.gz
Merge text.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