1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2025-02-04 12:28:35 +00:00

Background music volume can be adjusted

This commit is contained in:
hpham474
2021-11-01 04:48:21 -05:00
parent 1b3333203e
commit bc319fa464
5 changed files with 8 additions and 20 deletions

View File

@@ -24,6 +24,7 @@ func set_theme(theme_name):
emit_signal("change_theme", theme)
func set_mus_vol(volume):
mus_vol = volume
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), mus_vol)
emit_signal("change_mus_volume", mus_vol)
func set_sfx_vol(volume):
sfx_vol = volume
@@ -43,6 +44,7 @@ func load_options():
mus_vol = f.get_var()
sfx_vol = f.get_var()
f.close()
AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"), mus_vol)
# Getters
func get_theme():