From 934a0dc72a76befe04b598ce9835806429ab6001 Mon Sep 17 00:00:00 2001 From: Map Date: Mon, 7 Oct 2024 00:30:08 -0500 Subject: [PATCH] change languaged_up to be set inside the lang_sel screen --- game/script.rpy | 4 ++-- game/src/translation.rpy | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game/script.rpy b/game/script.rpy index 6129534..bb8024f 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -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: diff --git a/game/src/translation.rpy b/game/src/translation.rpy index 61ff7ba..f778a16 100644 --- a/game/src/translation.rpy +++ b/game/src/translation.rpy @@ -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: