This simply lets a slider be "gray-able" depending on another CVar's value. The engine already supports this for most other widgets, I am simply exposing the existing behavior to sliders.
Usage is very simple. In your MENUDEF:
Code: Select all
// test_int is the value you want to check for. If this value is 0, the corresponding slider will be grayed out.
// test_float is the slider.
Option "Test Option", "test_int", "OnOff"
Slider "Test Slider", "test_float", 0.0, 1.0, 0.1, 1, "test_int"
Demo file