diff options
Diffstat (limited to 'client/global.gd')
-rw-r--r-- | client/global.gd | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/client/global.gd b/client/global.gd index 53049823..8849c4d6 100644 --- a/client/global.gd +++ b/client/global.gd @@ -41,7 +41,9 @@ var using_joypad := false var default_settings := { "language": DropdownSetting.new(tr("Language"), 0, languages), - "master_volume": RangeSetting.new(tr("Volume"), 0, -30, 0), + "master_volume": RangeSetting.new(tr("Master Volume"), 0, -30, 0), + "muisc_volume": RangeSetting.new(tr("Music Volume"), 0, -30, 0), + "sfx_volume": RangeSetting.new(tr("SFX Volume"), 0, -30, 0), "fullscreen": DropdownSetting.new(tr("Fullscreen"), 0, [tr("Keep"), tr("Always"), tr("Never")]), "touch_controls": ToggleSetting.new(tr("Enable touch screen controls"), DisplayServer.is_touchscreen_available()), "interpolate_camera_rotation": ToggleSetting.new(tr("Interpolate the camera rotation"), true), @@ -148,8 +150,10 @@ func apply_settings(): for k in profile["hints"].keys(): set_hint(k, false) - # Sets Volume - Sound.set_volume(get_setting("master_volume")) + # Sets all volumes + Sound.set_volume(0, get_setting("master_volume")) + Sound.set_volume(1, get_setting("music_volume")) + Sound.set_volume(2, get_setting("sfx_volume")) emit_signal("settings_changed") |