diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 23:03:27 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-07-11 23:18:26 -0700 |
commit | 3850fbac35bb5679ed58753491db4a4cd2267a73 (patch) | |
tree | a296ccc5d26f507d38fe4771c453ae4a2ef012c2 /help.lua | |
parent | 2e3a85d94be44bfb53554d0e7ba8a36f8e91c605 (diff) | |
download | text.love-3850fbac35bb5679ed58753491db4a4cd2267a73.tar.gz |
make colors easier to edit
Diffstat (limited to 'help.lua')
-rw-r--r-- | help.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/help.lua b/help.lua index ccaed84..92cdb0a 100644 --- a/help.lua +++ b/help.lua @@ -1,5 +1,5 @@ function draw_help_without_mouse_pressed(drawing) - love.graphics.setColor(0,0.5,0) + App.color(Help_color) local y = drawing.y+10 love.graphics.print("Things you can do:", Margin_left+30,y) y = y + Line_height @@ -45,12 +45,12 @@ function draw_help_without_mouse_pressed(drawing) y = y + Line_height love.graphics.print("Press 'esc' now to hide this message", Margin_left+30,y) y = y + Line_height - love.graphics.setColor(0,0.5,0, 0.1) + App.color(Help_background_color) love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width-Margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) end function draw_help_with_mouse_pressed(drawing) - love.graphics.setColor(0,0.5,0) + App.color(Help_color) local y = drawing.y+10 love.graphics.print("You're currently drawing a "..current_shape(drawing.pending), Margin_left+30,y) y = y + Line_height @@ -124,7 +124,7 @@ function draw_help_with_mouse_pressed(drawing) love.graphics.print("* Press 's' to switch to drawing squares", Margin_left+30,y) y = y + Line_height end - love.graphics.setColor(0,0.5,0, 0.1) + App.color(Help_background_color) love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width-Margin_width, math.max(Drawing.pixels(drawing.h),y-drawing.y)) end |