added draw functions for setScale, rehandled scale, animations now have multiple frame times (this breaks some minor stuff)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
function MenuDraw(menu)
|
||||
local font = love.graphics.getFont()
|
||||
love.graphics.setFont(LocaleFont)
|
||||
-- Set scale to 1
|
||||
love.graphics.scale(0.5,0.5)
|
||||
|
||||
-- reset scale
|
||||
love.graphics.setScale()
|
||||
|
||||
if menu == "pause" then
|
||||
MenuDrawPauseScreen()
|
||||
@@ -13,8 +14,7 @@ function MenuDraw(menu)
|
||||
for _, element in pairs(UIElement) do
|
||||
element:Draw()
|
||||
end
|
||||
-- Reset scale
|
||||
love.graphics.scale(2,2)
|
||||
|
||||
love.graphics.setFont(font)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user