aboutsummaryrefslogtreecommitdiff
path: root/client/global.gd
diff options
context:
space:
mode:
authorBigBrotherNii <nicochr1004@gmail.com>2024-07-25 15:10:40 +0200
committerBigBrotherNii <nicochr1004@gmail.com>2024-07-25 15:10:40 +0200
commitd292432a6b09a9d19659784d67faa410dac3ee18 (patch)
tree740dd2f47bedd85abb8fa93f5c6839e3d7026790 /client/global.gd
parenta01186bcaa702f6dc5cdd3254c0ab95eabaef1d7 (diff)
downloadhurrycurry-d292432a6b09a9d19659784d67faa410dac3ee18.tar
hurrycurry-d292432a6b09a9d19659784d67faa410dac3ee18.tar.bz2
hurrycurry-d292432a6b09a9d19659784d67faa410dac3ee18.tar.zst
separated audio busses
Diffstat (limited to 'client/global.gd')
-rw-r--r--client/global.gd10
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")