API:SliderBarSetDisabledFlag
From RoR Wiki
UI Lua API · SliderBar functions
Version: WAR 1.4.8
Enables or disables a SliderBar.
SliderBarSetDisabledFlag(sliderBarName, disabled)
Arguments
- sliderBarName
string– Name of the SliderBar.- disabled
boolean–trueto disable the SliderBar,falseto enable it.
Returns
Nothing.
Details
- While the SliderBar is disabled, SliderBarSetCurrentPosition has no effect.
disabledmust be a real boolean. Passingnilor a number raises an Invalid Parameters error.- The function needs at least two arguments and only reads the last two. Any extra arguments placed in front of them are ignored.
Errors
The type error says Slider:
Error in function call 'SliderBarSetDisabledFlag': Window %s does not existError in function call 'SliderBarSetDisabledFlag': Window %s is not a Slider
Example
From default/ea_customizeperformancewindow/source/ea_customizeperformancewindow.lua:
SliderBarSetDisabledFlag(sliderGroupName.."Slider", not enable)
