Fixed font now only applies on menus
This commit is contained in:
parent
df26d84577
commit
2703371434
|
@ -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"}
|
||||
|
|
|
@ -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 = {"","",""}
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue