mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 18:48:55 +01:00
sounds but no dedicated channel control
This commit is contained in:
parent
1a09e1c776
commit
8ca825cda6
6 changed files with 8 additions and 3 deletions
BIN
game/audio/ui/uiBack.wav
Normal file
BIN
game/audio/ui/uiBack.wav
Normal file
Binary file not shown.
BIN
game/audio/ui/uiClick.wav
Normal file
BIN
game/audio/ui/uiClick.wav
Normal file
Binary file not shown.
BIN
game/audio/ui/uiNotification.wav
Normal file
BIN
game/audio/ui/uiNotification.wav
Normal file
Binary file not shown.
BIN
game/audio/ui/uiRollover.wav
Normal file
BIN
game/audio/ui/uiRollover.wav
Normal file
Binary file not shown.
|
@ -42,6 +42,10 @@ define build.name = "SnootGame"
|
||||||
|
|
||||||
## Sounds and music ############################################################
|
## Sounds and music ############################################################
|
||||||
|
|
||||||
|
##Custom Channels?
|
||||||
|
init -1 python:
|
||||||
|
renpy.music.register_channel("uisounds", "sfx", loop=False, stop_on_mute=True)
|
||||||
|
|
||||||
## These three variables control which mixers are shown to the player by
|
## These three variables control which mixers are shown to the player by
|
||||||
## default. Setting one of these to False will hide the appropriate mixer.
|
## default. Setting one of these to False will hide the appropriate mixer.
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@ style gui_text:
|
||||||
|
|
||||||
style button:
|
style button:
|
||||||
properties gui.button_properties("button")
|
properties gui.button_properties("button")
|
||||||
|
activate_sound "audio/ui/uiClick.wav"
|
||||||
|
|
||||||
style button_text is gui_text:
|
style button_text is gui_text:
|
||||||
properties gui.text_properties("button")
|
properties gui.text_properties("button")
|
||||||
|
@ -672,13 +673,13 @@ screen updates():
|
||||||
label _("{color=#FF0000}Update directory does not exist or is corrupt!{/color}")
|
label _("{color=#FF0000}Update directory does not exist or is corrupt!{/color}")
|
||||||
textbutton _("Enable Automatic Updates") action [Notify("Toggling Automatic Updates..."), ToggleVariable("persistent.autoup", True, False)]
|
textbutton _("Enable Automatic Updates") action [Notify("Toggling Automatic Updates..."), ToggleVariable("persistent.autoup", True, False)]
|
||||||
text _("Automatic Updates: [persistent.autoup!t]\n")
|
text _("Automatic Updates: [persistent.autoup!t]\n")
|
||||||
textbutton _("Check for Update!") action [Notify("Checking for update..."), Function(UpdateCheck)]
|
textbutton _("Check for Update!") activate_sound "audio/ui/uiRollover.wav" action [Notify("Checking for update..."), Function(UpdateCheck)]
|
||||||
label _("Update Check Result:\n")
|
label _("Update Check Result:\n")
|
||||||
text _("[persistent.updateresult!t]\n")
|
text _("[persistent.updateresult!t]\n")
|
||||||
if persistent.updateresult != "No new version is available":
|
if persistent.updateresult != "No new version is available":
|
||||||
textbutton _("Update Now!") action updater.Update(persistent.updateWebServer, force=False)
|
textbutton _("Update Now!") activate_sound "audio/ui/uiNotification.wav" action [updater.Update(persistent.updateWebServer, force=False)]
|
||||||
else:
|
else:
|
||||||
textbutton _("Update Now!") action Notify("Nothing to update to!")
|
textbutton _("Update Now!") activate_sound "audio/ui/uiBack.wav" action [Notify("Nothing to update to!")]
|
||||||
label _("Update Server:\n")
|
label _("Update Server:\n")
|
||||||
default input_on = False
|
default input_on = False
|
||||||
button:
|
button:
|
||||||
|
|
Loading…
Reference in a new issue