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..a7c9459 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 91c0e82..4427632 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -47,7 +47,13 @@ define build.name = "SnootGame" define config.has_sound = True define config.has_music = True -define config.has_voice = False +define config.has_voice = True + +define config.play_channel = "uisounds" + +##Custom Channels? +init -1 python: + renpy.music.register_channel("uisounds", "ui", loop=False, stop_on_mute=True) ## To allow the user to play a test sound on the sound or voice channel, diff --git a/game/screens.rpy b/game/screens.rpy index b9d4bce..253ebf7 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -48,6 +48,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") @@ -681,6 +682,7 @@ screen updates(): label _("Updater:") label _("{color=#FFFFFF}{size=32}Server URL (click to edit):{/size}{/color}") + default input_on = False button: key_events True @@ -695,10 +697,9 @@ screen updates(): action ToggleScreenVariable('input_on') style_prefix "quick" if persistent.updateresult != "No new version is available": - textbutton _("{size=36}Update Now!\n{/size}") action updater.Update(persistent.updateWebServer, force=False) + textbutton _("{size=36}Update Now!\n{/size}") activate_sound "audio/ui/uiNotification.wav" action [updater.Update(persistent.updateWebServer, force=False)] else: - textbutton _("{size=36}Update Now!\n{/size}") action Notify("Nothing to update to!") - + textbutton _("{size=36}Update Now!\n{/size}") activate_sound "audio/ui/uiBack.wav" action [Notify("Nothing to update to!")] use extrasnavigation ## Load and Save screens ####################################################### @@ -917,6 +918,12 @@ screen preferences(): hbox: bar value Preference("music volume") + if config.has_music: + label _("UI Sounds Volume") + + hbox: + bar value Preference("ui volume") + if config.has_sound: label _("Sound Volume") @@ -937,7 +944,7 @@ screen preferences(): if config.sample_voice: textbutton _("Test") action Play("voice", config.sample_voice) - if config.has_music or config.has_sound or config.has_voice: + if config.has_music or config.has_sound or config.has_voice or config.has_ui: null height gui.pref_spacing textbutton _("Mute All"):