diff --git a/game/scripts/gui/preferences.rpy b/game/scripts/gui/preferences.rpy index ecaa178f..9dd43fd2 100644 --- a/game/scripts/gui/preferences.rpy +++ b/game/scripts/gui/preferences.rpy @@ -251,6 +251,11 @@ screen preferences_sound(): action Preference("all mute", "toggle") style gui.theme("check_button") + textbutton _("Mute when minimized"): + action Preference("audio when minimized", "toggle") + selected (not _preferences.audio_when_minimized) + style gui.theme("check_button") + screen preferences_accessibility(): text "Disclaimer" size 18 xalign 0.5 diff --git a/game/scripts/options.rpy b/game/scripts/options.rpy index 1b3055c0..518d7176 100644 --- a/game/scripts/options.rpy +++ b/game/scripts/options.rpy @@ -8,6 +8,7 @@ default preferences.afm_time = 15 default preferences.pad_enabled = False default preferences.renderer = "gl2" default preferences.gl_powersave = False +default preferences.audio_when_minimized = False python early: if renpy.android: