diff --git a/game/options.rpy b/game/options.rpy index 4427632..e6860be 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -47,7 +47,7 @@ define build.name = "SnootGame" define config.has_sound = True define config.has_music = True -define config.has_voice = True +define config.has_voice = False define config.play_channel = "uisounds" diff --git a/game/screens.rpy b/game/screens.rpy index 1c95a46..6f9c46a 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -943,39 +943,40 @@ screen preferences(): if config.has_music: label _("Music Volume") - hbox: - bar value Preference("music volume") - - if config.has_music: - label _("UI Sounds Volume") - - hbox: - bar value Preference("ui volume") + bar value Preference("music volume") yalign 0.5 + textbutton _("Reset"): + action Function(preferences.set_volume, 'music', config.default_music_volume) if config.has_sound: label _("Sound Volume") - hbox: - bar value Preference("sound volume") - + bar value Preference("sfx volume") yalign 0.5 + textbutton _("Reset"): + action Function(preferences.set_volume, 'sfx', config.default_sfx_volume) if config.sample_sound: textbutton _("Test") action Play("sound", config.sample_sound) + label _("UI Sounds Volume") + hbox: + bar value Preference("ui volume") yalign 0.5 + textbutton _("Reset"): + yalign 0.5 + action Function(preferences.set_volume, 'ui', config.default_sfx_volume) if config.has_voice: label _("Voice Volume") - hbox: - bar value Preference("voice volume") - + bar value Preference("voice volume") yalign 0.5 + textbutton _("Reset"): + yalign 0.5 + action Function(preferences.set_volume, 'voice', config.default_sfx_volume) if config.sample_voice: textbutton _("Test") action Play("voice", config.sample_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"): action Preference("all mute", "toggle") style "mute_all_button"