Fixed font now only applies on menus

This commit is contained in:
lustlion 2022-02-03 07:08:15 +01:00
parent df26d84577
commit 2703371434
3 changed files with 9 additions and 8 deletions

View File

@ -1,3 +1,5 @@
LocaleFont = love.graphics.newFont("assets/ui/fonts/heon.ttf",14)
Locale = {}
Locale.ui = {}
@ -13,6 +15,5 @@ Locale.character.chaos.name = "Aelato"
Locale.character.life = {}
Locale.character.life.name = "Olidia"
Locale.dialogue = {}
Locale.dialogue.example = {"Hello!","Duh.","Lol"}

View File

@ -1,4 +1,4 @@
love.graphics.setNewFont("assets/ui/fonts/heon.ttf",18)
LocaleFont = love.graphics.newFont("assets/ui/fonts/heon.ttf",18)
Locale = {}
@ -6,9 +6,10 @@ Locale.ui = {}
Locale.ui.pause_screen_resume = ""
Locale.ui.pause_screen_options = ""
Locale.ui.pause_screen_exit = ""
Locale.character = {}
Locale.character.fairy = {}
Locale.character.fairy.name = ""
Locale.character.fairy.name = ""
Locale.character.chaos = {}
Locale.character.chaos.name = ""
Locale.character.life = {}
@ -16,8 +17,4 @@ Locale.character.life.name = ""
Locale.dialogue = {}
Locale.dialogue.example = {
"",
"",
""
}
Locale.dialogue.example = {"","",""}

View File

@ -1,4 +1,6 @@
function MenuDraw(menu)
local font = love.graphics.getFont()
love.graphics.setFont(LocaleFont)
-- Set scale to 1
love.graphics.scale(0.5,0.5)
if menu == "pause" then
@ -12,6 +14,7 @@ function MenuDraw(menu)
end
-- Reset scale
love.graphics.scale(2,2)
love.graphics.setFont(font)
end
function MenuDrawPauseScreen()