UI button and main menu beginning
This commit is contained in:
parent
293f529613
commit
319a642688
4 changed files with 128 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue