2021-10-16 23:06:11 +00:00
|
|
|
function PauseUI()
|
2022-01-20 12:53:32 +00:00
|
|
|
-- Set scale to 1
|
|
|
|
love.graphics.scale(0.5,0.5)
|
|
|
|
-- Parameters
|
2021-10-16 23:06:11 +00:00
|
|
|
local pauseWidth = 640
|
|
|
|
local pauseHeight = 480
|
|
|
|
local pauseX = (game.width/2)-(pauseWidth/2)
|
|
|
|
local pauseY = (game.height/2)-(pauseHeight/2)
|
|
|
|
local mouse_x, mouse_y = love.mouse.getPosition()
|
2022-01-20 12:34:30 +00:00
|
|
|
-- Base items
|
2021-10-16 23:06:11 +00:00
|
|
|
love.graphics.setColor(0,0,0,0.3)
|
|
|
|
love.graphics.rectangle("fill", 0, 0, game.width, game.height)
|
|
|
|
love.graphics.setColor(1,1,1,1)
|
|
|
|
love.graphics.rectangle("fill", pauseX, pauseY, pauseWidth, pauseHeight)
|
2022-01-20 12:53:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
-- Reset scale
|
|
|
|
love.graphics.scale(2,2)
|
2021-10-16 23:06:11 +00:00
|
|
|
end
|