sounds but no dedicated channel control

This commit is contained in:
Nio 2021-07-21 00:40:39 +10:00
parent 1a09e1c776
commit 8ca825cda6
6 changed files with 8 additions and 3 deletions

BIN
game/audio/ui/uiBack.wav Normal file

Binary file not shown.

BIN
game/audio/ui/uiClick.wav Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -42,6 +42,10 @@ define build.name = "SnootGame"
## 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
## default. Setting one of these to False will hide the appropriate mixer.

View File

@ -44,6 +44,7 @@ style gui_text:
style button:
properties gui.button_properties("button")
activate_sound "audio/ui/uiClick.wav"
style button_text is gui_text:
properties gui.text_properties("button")
@ -672,13 +673,13 @@ screen updates():
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)]
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")
text _("[persistent.updateresult!t]\n")
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:
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")
default input_on = False
button: