Skip to content

Return of Reckoning

Wiki

RoR Wiki

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 – true to disable the SliderBar, false to enable it.

Returns

Nothing.

Details

  • While the SliderBar is disabled, SliderBarSetCurrentPosition has no effect.
  • disabled must be a real boolean. Passing nil or 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 exist
  • Error in function call 'SliderBarSetDisabledFlag': Window %s is not a Slider

Example

From default/ea_customizeperformancewindow/source/ea_customizeperformancewindow.lua:

SliderBarSetDisabledFlag(sliderGroupName.."Slider", not enable)

See also