diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-25 17:11:46 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-25 17:11:46 +0200 |
| commit | 3403fc2d55f510c29bf7e74d85433801cd99cbbc (patch) | |
| tree | 4f7ba54dd3ad86dd2c0dc6cb9a59ff68a704213b /client/global.gd | |
| parent | a8ce0f8cf64a89c18cbb08dd10f2b2d9b22ad56f (diff) | |
| parent | d292432a6b09a9d19659784d67faa410dac3ee18 (diff) | |
| download | hurrycurry-3403fc2d55f510c29bf7e74d85433801cd99cbbc.tar hurrycurry-3403fc2d55f510c29bf7e74d85433801cd99cbbc.tar.bz2 hurrycurry-3403fc2d55f510c29bf7e74d85433801cd99cbbc.tar.zst | |
Merge branch 'master' of codeberg.org:hurrycurry/hurrycurry
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") |