UI button and main menu beginning

This commit is contained in:
Alexey 2025-07-04 13:39:17 +03:00
commit 319a642688
4 changed files with 128 additions and 22 deletions

View file

@ -31,6 +31,11 @@ function Mouse:update()
Mouse.lastPoint = Mouse.point
Mouse.lastPressed = Mouse.pressed
Mouse.pressed = love.mouse.isDown( 1 )
if InMenu then
return
end
Mouse.point = GridPoint.snapCoords( Point:new( Mouse.x, Mouse.y ) )
if Mouse.lastLine ~= nil then
local pointsLen = #Mouse.lastLine.points