option to disable auto audio load

This commit is contained in:
ohsqueezy 2022-12-03 12:43:16 -05:00
parent d00e434c63
commit 24b5d7c6e7
2 changed files with 5 additions and 3 deletions

View File

@ -27,9 +27,10 @@ class Audio(Animation):
self.audio_panel = None
self.subscribe(self.respond)
self.sfx = {}
self.load_sfx()
self.bgm = {}
self.load_bgm()
if self.get_configuration("audio", "auto-load"):
self.load_sfx()
self.load_bgm()
self.set_volume(self.get_configuration("audio", "volume"))
def set_volume(self, volume=None, increment=None, mute=False, unmute=False):

View File

@ -157,6 +157,7 @@ class Configuration(RawConfigParser):
set_option(section, "volume", "1.0", False)
set_option(section, "panel-enabled", "no", False)
set_option(section, "panel-font", None, False)
set_option(section, "auto-load", "yes", False)
section = "interpolator-gui"
add_section(section)
set_option(section, "margin", "80", False)
@ -455,7 +456,7 @@ class TypeDeclarations(dict):
"float": ["sfx-volume", "bgm-volume", "volume"],
"bool": "panel-enabled"
"bool": ["panel-enabled", "auto-load"]
},