scaling
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
||||
function DrawPause()
|
||||
local opacity = 0.3
|
||||
local height = love.graphics.getHeight()
|
||||
local width = love.graphics.getWidth()
|
||||
local bwidth, bheight = 300, 140
|
||||
local height = love.graphics.getHeight() / _G.Y_SCALE
|
||||
local width = love.graphics.getWidth() / _G.X_SCALE
|
||||
local bwidth, bheight = 300 * _G.X_SCALE, 140 * _G.Y_SCALE
|
||||
love.graphics.setFont(GameFont)
|
||||
|
||||
DrawGame() --Draw a single frame of the game
|
||||
@@ -13,7 +13,7 @@ function DrawPause()
|
||||
love.graphics.print("PAUSED", 100, 100)
|
||||
--love.graphics.print("" .. PAUSE_POS, 200,200)
|
||||
|
||||
GUI:newButton(100, 200, bwidth, bheight, "Return", PAUSE_POS == 0 and true or false)
|
||||
GUI:newButton(100, 200, bwidth, bheight, "Back", PAUSE_POS == 0 and true or false)
|
||||
GUI:newButton(100, 350, bwidth, bheight, "Menu", PAUSE_POS == 1 and true or false)
|
||||
GUI:newButton(100, 500, bwidth, bheight, "Quit", PAUSE_POS == 2 and true or false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user