change languaged_up to be set inside the lang_sel screen

This commit is contained in:
Map 2024-10-07 00:30:08 -05:00
parent ca7406d0d9
commit 934a0dc72a
2 changed files with 4 additions and 4 deletions

View file

@ -58,10 +58,10 @@ label before_main_menu:
$ preferences.language = 'en'
# Call initial language setup screen
# languaged_up is set within lang_sel
if (persistent.languaged_up is None):
$ preferences.set_volume('ui', config.default_sfx_volume)
$ preferences.set_volume('ui', config.default_sfx_volume) # stank fucking workaround to fix a bug
call screen lang_sel
$ persistent.languaged_up = True
return
label start:

View file

@ -135,9 +135,9 @@ screen lang_sel():
idle darkie(languages[i]["image"])
hover glowie(languages[i]["image"])
action If(languages[i]["value"] in persistent.seenWarning or languages[i]["value"] == 'en',
true = [Language(languages[i]["value"]), Return()],
true = [Language(languages[i]["value"]), SetVariable("persistent.languaged_up", True), Return()],
# Important to change the language before calling notice. Otherwise it will be in english.
false = [Language(languages[i]["value"]), AddToSet(set=persistent.seenWarning, value=languages[i]["value"]), Show(screen="OkPrompt", message=notice, go_menu=False)]
false = [Language(languages[i]["value"]), AddToSet(set=persistent.seenWarning, value=languages[i]["value"]), SetVariable("persistent.languaged_up", True), Show(screen="OkPrompt", message=notice, go_menu=False)]
)
at renpysdumb # Scales the imagebutton down. No, you can't just specify the zoom here. It has to be a defined transform.
else: