mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +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"):
|
||||
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:
|
||||
|
||||
|
|
|
@ -352,6 +352,18 @@ init 1 python:
|
|||
|
||||
# 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
|
||||
|
||||
|
||||
|
|
|
@ -1,24 +1,10 @@
|
|||
|
||||
label splashscreen:
|
||||
$ persistent.splashtype = random.randint(0,2000 - 1)
|
||||
|
||||
image caveintrosequence:
|
||||
"caveintro"
|
||||
alpha 0
|
||||
time 0.5
|
||||
linear 3.5 alpha 1
|
||||
time 10
|
||||
linear 1 alpha 0
|
||||
|
||||
show caveintrosequence
|
||||
play sound 'audio/OST/startup.ogg'
|
||||
pause 11.2
|
||||
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
|
||||
if not renpy.get_autoreload():
|
||||
show caveintrosequence
|
||||
play sound 'audio/OST/startup.ogg'
|
||||
pause 11.2
|
||||
stop sound
|
||||
|
||||
|
||||
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.")
|
||||
|
||||
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/Rus.png', 'name': 'Русский', 'value': 'ru'},
|
||||
{'image': 'gui/flag/Poland.png', 'name': 'Polski', 'value': 'pl'},
|
||||
|
@ -106,7 +106,7 @@ screen lang_sel():
|
|||
imagebutton:
|
||||
idle darkie(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)],
|
||||
# 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)]
|
||||
|
@ -122,7 +122,7 @@ screen lang_button(lang):
|
|||
spacing 15
|
||||
textbutton lang["name"]:
|
||||
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"])],
|
||||
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