diff --git a/game/audio/ui/uiBack.wav b/game/audio/ui/uiBack.wav new file mode 100644 index 0000000..65cca24 Binary files /dev/null and b/game/audio/ui/uiBack.wav differ diff --git a/game/audio/ui/uiClick.wav b/game/audio/ui/uiClick.wav new file mode 100644 index 0000000..8784fcb Binary files /dev/null and b/game/audio/ui/uiClick.wav differ diff --git a/game/audio/ui/uiNotification.wav b/game/audio/ui/uiNotification.wav new file mode 100644 index 0000000..900eee7 Binary files /dev/null and b/game/audio/ui/uiNotification.wav differ diff --git a/game/audio/ui/uiRollover.wav b/game/audio/ui/uiRollover.wav new file mode 100644 index 0000000..5e69126 Binary files /dev/null and b/game/audio/ui/uiRollover.wav differ diff --git a/game/options.rpy b/game/options.rpy index 7c99856..6746c92 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -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. diff --git a/game/screens.rpy b/game/screens.rpy index 5ab576f..5951192 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -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: