WowAddons

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

fillStyleStatusBarFillStyle

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

valuenumber

GetMinMaxValues

minValue, maxValue = self:GetMinMaxValues()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

minValuenumber
maxValuenumber

GetOrientation

orientation = self:GetOrientation()

Returns

orientationOrientation

GetRenderMode

renderMode = self:GetRenderMode()

Returns

renderModeStatusBarRenderMode

GetReverseFill

isReverseFill = self:GetReverseFill()

Returns

isReverseFillbool

GetRotatesTexture

rotatesTexture = self:GetRotatesTexture()

Returns

rotatesTexturebool

GetStatusBarColor

colorR, colorG, colorB, colorA = self:GetStatusBarColor()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetStatusBarDesaturation

desaturation = self:GetStatusBarDesaturation()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

desaturationnormalizedValue

GetStatusBarTexture

texture = self:GetStatusBarTexture()

Returns

textureSimpleTexture

GetTimerDuration

duration = self:GetTimerDuration()

Returns

durationLuaDurationObject

GetValue

value = self:GetValue()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

valuenumber

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

isInterpolatingbool

IsStatusBarDesaturated

desaturated = self:IsStatusBarDesaturated()

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Returns

desaturatedbool

SetColorFill

self:SetColorFill(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetFillStyle

self:SetFillStyle(fillStyle)

Arguments

fillStyleStatusBarFillStyle

SetMinMaxValues

self:SetMinMaxValues(minValue, maxValue, [interpolation])

Arguments

minValuenumber
maxValuenumber
interpolationStatusBarInterpolation default "Immediate"

SetOrientation

self:SetOrientation(orientation)

Arguments

orientationOrientation

SetRenderMode

self:SetRenderMode(renderMode)

Arguments

renderModeStatusBarRenderMode

SetReverseFill

self:SetReverseFill(isReverseFill)

Arguments

isReverseFillbool

SetRotatesTexture

self:SetRotatesTexture(rotatesTexture)

Arguments

rotatesTexturebool

SetStatusBarColor

self:SetStatusBarColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetStatusBarDesaturated

self:SetStatusBarDesaturated([desaturated])

Arguments

desaturatedbool default false

SetStatusBarDesaturation

self:SetStatusBarDesaturation(desaturation)

Arguments

desaturationnormalizedValue

SetStatusBarTexture

success = self:SetStatusBarTexture(asset)

Arguments

assetTextureAsset

Returns

successbool

SetTimerDuration

self:SetTimerDuration(duration, [interpolation], [direction])

Arguments

durationLuaDurationObject
interpolationStatusBarInterpolation default "Immediate"
directionStatusBarTimerDirection 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

valuenumber
interpolationStatusBarInterpolation default "Immediate"

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows