mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 17:26:20 +01:00
Implement internal 'en' language, and backport splashscreen fixes from Wani
This commit is contained in:
parent
7d2203dc04
commit
dabac1f5f0
5 changed files with 34 additions and 22 deletions
|
@ -54,6 +54,20 @@ init python:
|
||||||
if renpy.seen_image("fang tail"):
|
if renpy.seen_image("fang tail"):
|
||||||
renpy.mark_image_seen("fang_tail_movie")
|
renpy.mark_image_seen("fang_tail_movie")
|
||||||
|
|
||||||
|
# Determine the splash type for the Snoot game logo
|
||||||
|
$ persistent.splashtype = random.randint(0,2000 - 1)
|
||||||
|
|
||||||
|
|
||||||
|
label before_main_menu:
|
||||||
|
# Force users pre-Patch 11 to use english if they were on 'None'
|
||||||
|
if preferences.language == None:
|
||||||
|
$ preferences.language = 'en'
|
||||||
|
|
||||||
|
# Call initial language setup screen
|
||||||
|
if (persistent.languaged_up is None):
|
||||||
|
$ preferences.set_volume('ui', config.default_sfx_volume)
|
||||||
|
$ persistent.languaged_up = True
|
||||||
|
call screen lang_sel
|
||||||
|
|
||||||
label start:
|
label start:
|
||||||
|
|
||||||
|
|
|
@ -352,6 +352,18 @@ init 1 python:
|
||||||
|
|
||||||
# aight, time for the stuff that isn't gallery required.
|
# aight, time for the stuff that isn't gallery required.
|
||||||
|
|
||||||
|
### SPLASHSCREEN
|
||||||
|
|
||||||
|
image caveintrosequence:
|
||||||
|
"caveintro"
|
||||||
|
alpha 0
|
||||||
|
time 0.5
|
||||||
|
linear 3.5 alpha 1
|
||||||
|
time 10
|
||||||
|
linear 1 alpha 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### OTHER
|
### OTHER
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,25 +1,11 @@
|
||||||
|
|
||||||
label splashscreen:
|
label splashscreen:
|
||||||
$ persistent.splashtype = random.randint(0,2000 - 1)
|
if not renpy.get_autoreload():
|
||||||
|
|
||||||
image caveintrosequence:
|
|
||||||
"caveintro"
|
|
||||||
alpha 0
|
|
||||||
time 0.5
|
|
||||||
linear 3.5 alpha 1
|
|
||||||
time 10
|
|
||||||
linear 1 alpha 0
|
|
||||||
|
|
||||||
show caveintrosequence
|
show caveintrosequence
|
||||||
play sound 'audio/OST/startup.ogg'
|
play sound 'audio/OST/startup.ogg'
|
||||||
pause 11.2
|
pause 11.2
|
||||||
stop sound
|
stop sound
|
||||||
|
|
||||||
if (persistent.languaged_up is None):
|
|
||||||
$ persistent.languaged_up = True
|
|
||||||
$ preferences.set_volume('ui', config.default_sfx_volume) # hack
|
|
||||||
call screen lang_sel
|
|
||||||
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ init python:
|
||||||
notice = _("NOTICE: Please keep in mind this is a fan translation, and as such it may not be completely accurate to the original intent of any written lines.")
|
notice = _("NOTICE: Please keep in mind this is a fan translation, and as such it may not be completely accurate to the original intent of any written lines.")
|
||||||
|
|
||||||
languages = [
|
languages = [
|
||||||
{'image': 'gui/flag/USofA.png', 'name': 'English', 'value': None },
|
{'image': 'gui/flag/USofA.png', 'name': 'English', 'value': 'en' },
|
||||||
{'image': 'gui/flag/Mexico.png', 'name': 'Español', 'value': 'es'},
|
{'image': 'gui/flag/Mexico.png', 'name': 'Español', 'value': 'es'},
|
||||||
{'image': 'gui/flag/Rus.png', 'name': 'Русский', 'value': 'ru'},
|
{'image': 'gui/flag/Rus.png', 'name': 'Русский', 'value': 'ru'},
|
||||||
{'image': 'gui/flag/Poland.png', 'name': 'Polski', 'value': 'pl'},
|
{'image': 'gui/flag/Poland.png', 'name': 'Polski', 'value': 'pl'},
|
||||||
|
@ -106,7 +106,7 @@ screen lang_sel():
|
||||||
imagebutton:
|
imagebutton:
|
||||||
idle darkie(languages[i]["image"])
|
idle darkie(languages[i]["image"])
|
||||||
hover glowie(languages[i]["image"])
|
hover glowie(languages[i]["image"])
|
||||||
action If(languages[i]["value"] in persistent.seenWarning or languages[i]["value"] == None,
|
action If(languages[i]["value"] in persistent.seenWarning or languages[i]["value"] == 'en'',
|
||||||
true = [Language(languages[i]["value"]), MainMenu(False,False)],
|
true = [Language(languages[i]["value"]), MainMenu(False,False)],
|
||||||
# Important to change the language before calling notice. Otherwise it will be in english.
|
# 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=True)]
|
false = [Language(languages[i]["value"]), AddToSet(set=persistent.seenWarning, value=languages[i]["value"]), Show(screen="OkPrompt", message=notice, go_menu=True)]
|
||||||
|
@ -122,7 +122,7 @@ screen lang_button(lang):
|
||||||
spacing 15
|
spacing 15
|
||||||
textbutton lang["name"]:
|
textbutton lang["name"]:
|
||||||
activate_sound "audio/ui/uiRollover.wav"
|
activate_sound "audio/ui/uiRollover.wav"
|
||||||
action If(lang["value"] in persistent.seenWarning or lang["value"] == None,
|
action If(lang["value"] in persistent.seenWarning or lang["value"] == 'en',
|
||||||
true = [Language(lang["value"])],
|
true = [Language(lang["value"])],
|
||||||
false = [Language(lang["value"]), AddToSet(set=persistent.seenWarning, value=lang["value"]), Show(screen="OkPrompt", message=notice, go_menu=False)]
|
false = [Language(lang["value"]), AddToSet(set=persistent.seenWarning, value=lang["value"]), Show(screen="OkPrompt", message=notice, go_menu=False)]
|
||||||
)
|
)
|
||||||
|
|
0
game/tl/en/mod-stuff-goes-here.txt
Normal file
0
game/tl/en/mod-stuff-goes-here.txt
Normal file
Loading…
Reference in a new issue