bugfix: move mode

This commit is contained in:
Kartik K. Agaram 2022-05-15 21:27:00 -07:00
parent 5d74f9e9cd
commit 3be553031e
1 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,11 @@ function love.draw()
if pmx > 16 and pmx < 16+drawingw and pmy > line.y and pmy < line.y+pixels(line.h) then
love.graphics.setColor(0.75,0.75,0.75)
love.graphics.rectangle('line', 16,line.y, drawingw,pixels(line.h))
icon[current_mode](16+drawingw-20, line.y+4)
if icon[current_mode] then
icon[current_mode](16+drawingw-20, line.y+4)
else
icon[previous_mode](16+drawingw-20, line.y+4)
end
if love.mouse.isDown('1') and love.keyboard.isDown('h') then
draw_help_with_mouse_pressed(line)