Thanks for the reply, I've been dabbling since then and already realized that the changes I did changed nothing since they were local so I changed everything to define. Naturally, since they're "define" it just went through everything despite the conditions I set and just did the defines that were furthest below -.-
Currently there are english, spanish, russian, german and chinese and the chinese/russian are giving me the most trouble since it's different characters. I have a font that works for one and a font that works for the other. I made a screen that the players receive upon opening the game and they can re-open it while in main menu:
Code: Select all
screen choose_lang_main:
zorder 0
tag menu
image "bg/lang_choice_bg.jpg"
vbox:
imagebutton auto "buttons/lang_choice_eng_%s.png" focus_mask True action [Language(None), Jump("after_lang_choice")]
vbox:
imagebutton auto "buttons/lang_choice_ger_%s.png" focus_mask True action [Language(None), Jump("after_lang_choice")]
vbox:
imagebutton auto "buttons/lang_choice_spa_%s.png" focus_mask True action [Language("spanish"), Jump("after_lang_choice")]
vbox:
imagebutton auto "buttons/lang_choice_rus_%s.png" focus_mask True action [Language("russian"), Jump("after_lang_choice")]
vbox:
imagebutton auto "buttons/lang_choice_chi_%s.png" focus_mask True action [Language("chinese"), Jump("after_lang_choice")]
and then I had set up a label to change the fonts and whatever else I needed/wanted, like text size (at least, that's what I planned...)
Code: Select all
label after_lang_choice:
if preferences.language == "russian":
$ gui.text_font = "DejaVuSans.ttf"
$ gui.name_text_font = "DejaVuSans-Bold.ttf"
$ gui.interface_text_font = "DejaVuSans-Bold.ttf"
$ gui.button_text_font = gui.interface_text_font
$ gui.choice_button_text_font = gui.text_font
#-10
$ gui.text_size = 23
$ gui.name_text_size = 30
$ gui.interface_text_size = 18
$ gui.label_text_size = 21
$ gui.notify_text_size = 15
$ gui.title_text_size = 60
$ gui.button_text_size = gui.interface_text_size
$ gui.quick_button_text_size = 16
$ gui.choice_button_text_size = gui.text_size
$ gui.slot_button_text_size = 16
elif preferences.language == "chinese":
$ gui.text_font = "Muyao-Softbrush-2.ttf"
$ gui.name_text_font = "Muyao-Softbrush-2.ttf"
$ gui.interface_text_font = "Muyao-Softbrush-2.ttf"
$ gui.button_text_font = gui.interface_text_font
$ gui.choice_button_text_font = gui.text_font
$ gui.text_size = 28
$ gui.name_text_size = 35
$ gui.interface_text_size = 23
$ gui.label_text_size = 26
$ gui.notify_text_size = 20
$ gui.title_text_size = 65
$ gui.button_text_size = gui.interface_text_size
$ gui.quick_button_text_size = 21
$ gui.choice_button_text_size = gui.text_size
$ gui.slot_button_text_size = 21
else:#english/spanish/german
$ gui.text_font = "DejaVuSans.ttf"
$ gui.name_text_font = "DejaVuSans-Bold.ttf"
$ gui.interface_text_font = "DejaVuSans-Oblique.ttf"
$ gui.button_text_font = gui.interface_text_font
$ gui.choice_button_text_font = gui.text_font
#-10
$ gui.text_size = 28
$ gui.name_text_size = 35
$ gui.interface_text_size = 23
$ gui.label_text_size = 26
$ gui.notify_text_size = 20
$ gui.title_text_size = 65
$ gui.button_text_size = gui.interface_text_size
$ gui.quick_button_text_size = 21
$ gui.choice_button_text_size = gui.text_size
$ gui.slot_button_text_size = 21
return
This is pretty much where I'm at now. If only I could somehow change these variables and have them STAY after leaving the main menu, I'd be golden.
I hope this shows what I'm stuck at currently in more detail. Also, I did put all the languages into the /game folder and they all work, separately, but not when I try giving the players a choice. I would like it to remain as a "main menu only" choice so the lack of knowledge to make the changes stay "changed" is killing me.