added draw functions for setScale, rehandled scale, animations now have multiple frame times (this breaks some minor stuff)

This commit is contained in:
lustlion
2022-02-24 04:15:35 +01:00
parent 00cec59351
commit 54f6a46428
19 changed files with 139 additions and 53 deletions

View File

@@ -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