Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:StatusBarSetMaximumValue

From RoR Wiki
Revision as of 19:49, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · StatusBar functions
Version: WAR 1.4.8

Sets the maximum value of a StatusBar.

StatusBarSetMaximumValue(barName, maximum)

Arguments

barName
string – Name of a StatusBar window.
maximum
number – The value at which the bar is full.

Returns

Nothing.

Details

  • The fill is redrawn at once for the new maximum.
  • With a maximum of 0 the fill is empty.
  • The current value is not changed. A current value above the new maximum is drawn as a full bar.
  • The function needs at least two arguments and only reads the last two.
  • The error is the same when the window does not exist and when it is not a StatusBar.

Errors

  • Error in function call 'StatusBarSetMaximumValue': StatusBar %s does not exist.

Example

From easystem_rrq/source/rrqprogressbar.lua:

StatusBarSetMaximumValue(self.windowName.."Bar"..iRealm.."Bar", rrqData.realmProgress[iRealm].maxVal)
StatusBarSetCurrentValue(self.windowName.."Bar"..iRealm.."Bar", rrqData.realmProgress[iRealm].curVal)

See also