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 = {
Example = {
{Locale.character.fairy.name,Locale.dialogue.example[1]},
{Locale.character.chaos.name,Locale.dialogue.example[2]},
{Locale.character.life.name,Locale.dialogue.example[3]}
{Locale.dialogue.example[1],Locale.name.fairy},
{Locale.dialogue.example[2],Locale.name.chaos},
{Locale.dialogue.example[3],Locale.name.life}
}
}

View File

@ -1,4 +1,5 @@
LocaleFont = love.graphics.getFont()
Locale = {}
Locale.ui = {}
@ -6,13 +7,10 @@ Locale.ui.pause_screen_resume = "Resume"
Locale.ui.pause_screen_options = "Options"
Locale.ui.pause_screen_exit = "Exit"
Locale.character = {}
Locale.character.fairy = {}
Locale.character.fairy.name = "Ozy"
Locale.character.chaos = {}
Locale.character.chaos.name = "Aelato"
Locale.character.life = {}
Locale.character.life.name = "Olidia"
Locale.name = {}
Locale.name.fairy = "Ozy"
Locale.name.chaos = "Aelato"
Locale.name.life = "Olidia"
Locale.dialogue = {}
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_exit = ""
Locale.character = {}
Locale.character.fairy = {}
Locale.character.fairy.name = ""
Locale.character.chaos = {}
Locale.character.chaos.name = ""
Locale.character.life = {}
Locale.character.life.name = ""
Locale.name = {}
Locale.name.fairy = ""
Locale.name.chaos = ""
Locale.name.life = ""
Locale.dialogue = {}

View File

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

View File

@ -86,8 +86,8 @@ function interfaceDialog:Draw()
self.size.h*self.style.scale_y*self.style.scale_proportion)
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+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center")
love.graphics.printf(self.contents[2],self.pos.x+10,self.pos.y+(self.size.h/2),100,"left")
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")
else
love.graphics.printf("ERROR",self.pos.x+(self.size.w/2),self.pos.y+(self.size.h/2),100,"center")