cleaned stuff

This commit is contained in:
lustlion 2022-02-03 11:32:39 +01:00
parent 6dedd42308
commit 7a67ae2f65
5 changed files with 15 additions and 20 deletions

View File

@ -1,7 +1,7 @@
DialogSequence = { DialogSequence = {
Example = { Example = {
{Locale.character.fairy.name,Locale.dialogue.example[1]}, {Locale.dialogue.example[1],Locale.name.fairy},
{Locale.character.chaos.name,Locale.dialogue.example[2]}, {Locale.dialogue.example[2],Locale.name.chaos},
{Locale.character.life.name,Locale.dialogue.example[3]} {Locale.dialogue.example[3],Locale.name.life}
} }
} }

View File

@ -1,4 +1,5 @@
LocaleFont = love.graphics.getFont() LocaleFont = love.graphics.getFont()
Locale = {} Locale = {}
Locale.ui = {} Locale.ui = {}
@ -6,13 +7,10 @@ Locale.ui.pause_screen_resume = "Resume"
Locale.ui.pause_screen_options = "Options" Locale.ui.pause_screen_options = "Options"
Locale.ui.pause_screen_exit = "Exit" Locale.ui.pause_screen_exit = "Exit"
Locale.character = {} Locale.name = {}
Locale.character.fairy = {} Locale.name.fairy = "Ozy"
Locale.character.fairy.name = "Ozy" Locale.name.chaos = "Aelato"
Locale.character.chaos = {} Locale.name.life = "Olidia"
Locale.character.chaos.name = "Aelato"
Locale.character.life = {}
Locale.character.life.name = "Olidia"
Locale.dialogue = {} Locale.dialogue = {}
Locale.dialogue.example = {"Hello!","Duh.","Lol"} Locale.dialogue.example = {"Hello!","Duh.","Lol"}

View File

@ -7,13 +7,10 @@ Locale.ui.pause_screen_resume = ""
Locale.ui.pause_screen_options = "" Locale.ui.pause_screen_options = ""
Locale.ui.pause_screen_exit = "" Locale.ui.pause_screen_exit = ""
Locale.character = {} Locale.name = {}
Locale.character.fairy = {} Locale.name.fairy = ""
Locale.character.fairy.name = "" Locale.name.chaos = ""
Locale.character.chaos = {} Locale.name.life = ""
Locale.character.chaos.name = ""
Locale.character.life = {}
Locale.character.life.name = ""
Locale.dialogue = {} Locale.dialogue = {}

View File

@ -3,6 +3,7 @@ function MenuDraw(menu)
love.graphics.setFont(LocaleFont) love.graphics.setFont(LocaleFont)
-- Set scale to 1 -- Set scale to 1
love.graphics.scale(0.5,0.5) love.graphics.scale(0.5,0.5)
if menu == "pause" then if menu == "pause" then
MenuDrawPauseScreen() MenuDrawPauseScreen()
elseif menu == "dialog" then elseif menu == "dialog" then
@ -89,7 +90,6 @@ function MenuInit(menu,parameter)
MenuInitPauseScreen() MenuInitPauseScreen()
elseif menu == "dialog" then elseif menu == "dialog" then
if parameter == nil then if parameter == nil then
print("WARNING -- what dialog?")
parameter = DialogSequence.Example parameter = DialogSequence.Example
end end
MenuInitDialog(parameter) MenuInitDialog(parameter)

View File

@ -86,8 +86,8 @@ function interfaceDialog:Draw()
self.size.h*self.style.scale_y*self.style.scale_proportion) self.size.h*self.style.scale_y*self.style.scale_proportion)
if self.contents ~= nil then if self.contents ~= nil then
love.graphics.printf(self.contents[1],self.pos.x+10,self.pos.y+(self.size.h/2),100,"left") love.graphics.printf(self.contents[2],self.pos.x+10,self.pos.y+(self.size.h/2),100,"left")
love.graphics.printf(self.contents[2],self.pos.x+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center") love.graphics.printf(self.contents[1],self.pos.x+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center")
love.graphics.printf(self.contents[3],self.pos.x+(self.size.w)-10,self.pos.y+(self.size.h/2),100,"right") love.graphics.printf(self.contents[3],self.pos.x+(self.size.w)-10,self.pos.y+(self.size.h/2),100,"right")
else else
love.graphics.printf("ERROR",self.pos.x+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center") love.graphics.printf("ERROR",self.pos.x+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center")