Mute audio when minimized

This commit is contained in:
LoafyLemon 2022-06-16 18:46:57 +01:00
parent 3ea1ac6162
commit 1cee1f2930
2 changed files with 6 additions and 0 deletions

View File

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

View File

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