diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-04 21:58:06 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-04 21:58:06 -0700 |
commit | 778bc78416a5fd20c50a6046c73a723fae0a906c (patch) | |
tree | bd933a9e95b6c7ff98a5a832a64f6c0b138d6a5d | |
parent | 7d1671051fab3a0b5d17b7a9571455b6ac41cbe6 (diff) | |
download | text.love-778bc78416a5fd20c50a6046c73a723fae0a906c.tar.gz |
make online help fit within a drawing
-rw-r--r-- | help.lua | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/help.lua b/help.lua index bc017bb..7ac8376 100644 --- a/help.lua +++ b/help.lua @@ -9,13 +9,10 @@ function draw_help_without_mouse_pressed(drawing) y = y + Line_height love.graphics.print("then press the mouse button to drop it", 16+30+bullet_indent(),y) y = y + Line_height - love.graphics.print("* Hover on a point and press 'ctrl+n' to name it,", 16+30,y) - y = y + Line_height - love.graphics.print("then press 'enter' to finish", 16+30+bullet_indent(),y) + love.graphics.print("* Hover on a point and press 'ctrl+n', type a name, then press 'enter'", 16+30,y) y = y + Line_height love.graphics.print("* Hover on a point or shape and press 'ctrl+d' to delete it", 16+30,y) y = y + Line_height - y = y + Line_height if Current_drawing_mode ~= 'freehand' then love.graphics.print("* Press 'ctrl+p' to switch to drawing freehand strokes", 16+30,y) y = y + Line_height @@ -44,12 +41,9 @@ function draw_help_without_mouse_pressed(drawing) love.graphics.print("* Press 'ctrl+s' to switch to drawing squares", 16+30,y) y = y + Line_height end - love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out", 16+30,y) - y = y + Line_height - love.graphics.print("* Press 'ctrl+0' to reset zoom", 16+30,y) - y = y + Line_height + love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out, ctrl+0 to reset zoom", 16+30,y) y = y + Line_height - love.graphics.print("Hit 'esc' now to hide this message", 16+30,y) + love.graphics.print("Press 'esc' now to hide this message", 16+30,y) y = y + Line_height love.graphics.setColor(0,0.5,0, 0.1) love.graphics.rectangle('fill', 16,drawing.y, Line_width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) |