]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/menu/voret/dialog_settings_audio.c
Tweak the Effects menu, and add iris adaptation to it as well.
[voretournament/voretournament.git] / data / qcsrc / menu / voret / dialog_settings_audio.c
index 5968216c22747feaf4ae13270ca719e599c1db05..933d6591dbc8cd2db03b2f92cf3c344f256871eb 100644 (file)
@@ -3,7 +3,7 @@ CLASS(VoretAudioSettingsTab) EXTENDS(VoretTab)
        METHOD(VoretAudioSettingsTab, fill, void(entity))\r
        ATTRIB(VoretAudioSettingsTab, title, string, "Audio")\r
        ATTRIB(VoretAudioSettingsTab, intendedWidth, float, 0.9)\r
-       ATTRIB(VoretAudioSettingsTab, rows, float, 19)\r
+       ATTRIB(VoretAudioSettingsTab, rows, float, 20)\r
        ATTRIB(VoretAudioSettingsTab, columns, float, 6.5)\r
 ENDCLASS(VoretAudioSettingsTab)\r
 entity makeVoretAudioSettingsTab();\r
@@ -23,18 +23,18 @@ void fillVoretAudioSettingsTab(entity me)
        entity e, s, sl;\r
 \r
        me.TR(me);\r
-               s = makeVoretDecibelsSlider(-20, 0, 0.5, "bgmvolume");\r
+               s = makeVoretDecibelsSlider(-20, 0, 0.5, "menu_bgmvolume");\r
                me.TD(me, 1, 1, e = makeVoretSliderCheckBox(-1000000, 1, s, "Music:"));\r
                me.TD(me, 1, 2, s);\r
-               setDependent(e, "menu_block_sound_sliders", 0, 0); // part of an ugly hack that needs to be fixed\r
-               setDependent(s, "menu_block_sound_sliders", 0, 0); // part of an ugly hack that needs to be fixed\r
+               makeMulti(e, "bgmvolume"); // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
+               makeMulti(s, "bgmvolume"); // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
        me.TR(me);\r
        me.TR(me);\r
-               s = makeVoretDecibelsSlider(-20, 0, 0.5, "volume");\r
+               s = makeVoretDecibelsSlider(-20, 0, 0.5, "menu_volume");\r
                me.TD(me, 1, 1, e = makeVoretSliderCheckBox(-1000000, 1, s, "Master:"));\r
                me.TD(me, 1, 2, s);\r
-               setDependent(e, "menu_block_sound_sliders", 0, 0); // part of an ugly hack that needs to be fixed\r
-               setDependent(s, "menu_block_sound_sliders", 0, 0); // part of an ugly hack that needs to be fixed\r
+               makeMulti(e, "volume"); // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
+               makeMulti(s, "volume"); // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
        me.TR(me);\r
                me.TDempty(me, 0.2);\r
                s = makeVoretDecibelsSlider(-20, 0, 0.5, "snd_staticvolume");\r