WIP_uisounds #69

Closed
Nio wants to merge 3 commits from master into Monster-Update-6
6 changed files with 18 additions and 5 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

@ -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,

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:
@ -911,6 +912,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")
@ -931,7 +938,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"):