cvar_set("volume", ftos(volume_modify_1));\r
cvar_set("bgmvolume", ftos(volume_modify_2));\r
// TODO: Setting the "volume" cvar is a bad way to go, and modifies the menu slider! We need a better way\r
+\r
+ if(!cvar("menu_block_sound_sliders"))\r
+ cvar_set("menu_block_sound_sliders", "1"); // ugly hack to block the sound sliders\r
}\r
else if not(getstati(STAT_VORE_EATEN))\r
{\r
// so if we change the volume settings, update the initial volume\r
volume_modify_default_1 = cvar("volume");\r
volume_modify_default_2 = cvar("bgmvolume");\r
+\r
+ if(cvar("menu_block_sound_sliders"))\r
+ cvar_set("menu_block_sound_sliders", "0"); // ugly hack to block the sound sliders\r
}\r
}\r
+ else if(cvar("menu_block_sound_sliders"))\r
+ cvar_set("menu_block_sound_sliders", "0"); // ugly hack to block the sound sliders\r
\r
// Draw the mouse cursor\r
// NOTE: drawpic must happen after R_RenderScene for some reason\r
s = makeVoretDecibelsSlider(-20, 0, 0.5, "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
me.TR(me);\r
me.TR(me);\r
s = makeVoretDecibelsSlider(-20, 0, 0.5, "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
me.TR(me);\r
me.TDempty(me, 0.2);\r
s = makeVoretDecibelsSlider(-20, 0, 0.5, "snd_staticvolume");\r