World of Warcraft Forever API · SimpleStatusBarAPI.md, for your AI
SimpleStatusBarAPI (widget methods)
28 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
GetFillStyle
fillStyle = self:GetFillStyle()
Returns
fillStyle | StatusBarFillStyle |
|---|
GetInterpolatedValue
value = self:GetInterpolatedValue()
Returns the current interpolated value displayed by the bar.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
value | number |
|---|
GetMinMaxValues
minValue, maxValue = self:GetMinMaxValues()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
minValue | number | |
|---|---|---|
maxValue | number |
GetOrientation
orientation = self:GetOrientation()
Returns
orientation | Orientation |
|---|
GetRenderMode
renderMode = self:GetRenderMode()
Returns
renderMode | StatusBarRenderMode |
|---|
GetReverseFill
isReverseFill = self:GetReverseFill()
Returns
isReverseFill | bool |
|---|
GetRotatesTexture
rotatesTexture = self:GetRotatesTexture()
Returns
rotatesTexture | bool |
|---|
GetStatusBarColor
colorR, colorG, colorB, colorA = self:GetStatusBarColor()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetStatusBarDesaturation
desaturation = self:GetStatusBarDesaturation()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
desaturation | normalizedValue |
|---|
GetStatusBarTexture
texture = self:GetStatusBarTexture()
Returns
texture | SimpleTexture |
|---|
GetTimerDuration
duration = self:GetTimerDuration()
Returns
duration | LuaDurationObject |
|---|
GetValue
value = self:GetValue()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
value | number |
|---|
IsInterpolating
isInterpolating = self:IsInterpolating()
Returns true if the status bar is currently interpolating toward a target value.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
isInterpolating | bool |
|---|
IsStatusBarDesaturated
desaturated = self:IsStatusBarDesaturated()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
desaturated | bool |
|---|
SetColorFill
self:SetColorFill(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetFillStyle
self:SetFillStyle(fillStyle)
Arguments
fillStyle | StatusBarFillStyle |
|---|
SetMinMaxValues
self:SetMinMaxValues(minValue, maxValue, [interpolation])
Arguments
minValue | number | |
|---|---|---|
maxValue | number | |
interpolation | StatusBarInterpolation default "Immediate" |
SetOrientation
self:SetOrientation(orientation)
Arguments
orientation | Orientation |
|---|
SetRenderMode
self:SetRenderMode(renderMode)
Arguments
renderMode | StatusBarRenderMode |
|---|
SetReverseFill
self:SetReverseFill(isReverseFill)
Arguments
isReverseFill | bool |
|---|
SetRotatesTexture
self:SetRotatesTexture(rotatesTexture)
Arguments
rotatesTexture | bool |
|---|
SetStatusBarColor
self:SetStatusBarColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetStatusBarDesaturated
self:SetStatusBarDesaturated([desaturated])
Arguments
desaturated | bool default false |
|---|
SetStatusBarDesaturation
self:SetStatusBarDesaturation(desaturation)
Arguments
desaturation | normalizedValue |
|---|
SetStatusBarTexture
success = self:SetStatusBarTexture(asset)
Arguments
asset | TextureAsset |
|---|
Returns
success | bool |
|---|
SetTimerDuration
self:SetTimerDuration(duration, [interpolation], [direction])
Arguments
duration | LuaDurationObject | |
|---|---|---|
interpolation | StatusBarInterpolation default "Immediate" | |
direction | StatusBarTimerDirection default "ElapsedTime" |
SetToTargetValue
self:SetToTargetValue()
Immediately finishes any interpolation of the bar and snaps it to the target value.
SetValue
self:SetValue(value, [interpolation])
Arguments
value | number | |
|---|---|---|
interpolation | StatusBarInterpolation default "Immediate" |