WowAddons

World of Warcraft Forever API · SimpleRegionAPI.md, for your AI

SimpleRegionAPI (widget methods)

16 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

GetAlpha

alpha = self:GetAlpha()

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

Returns

alphaSingleColorValue

GetDrawLayer

layer, sublayer = self:GetDrawLayer()

Returns

layerDrawLayer
sublayernumber

GetEffectiveScale

effectiveScale = self:GetEffectiveScale()

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

Returns

effectiveScalenumber

GetScale

scale = self:GetScale()

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

Returns

scalenumber

GetVertexColor

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

May return nothing.

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

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

IsIgnoringParentAlpha

isIgnoring = self:IsIgnoringParentAlpha()

Returns

isIgnoringbool

IsIgnoringParentScale

isIgnoring = self:IsIgnoringParentScale()

Returns

isIgnoringbool

IsObjectLoaded

isLoaded = self:IsObjectLoaded()

Returns

isLoadedbool

SetAlpha

self:SetAlpha(alpha)

Arguments

alphaSingleColorValue

SetAlphaFromBoolean

self:SetAlphaFromBoolean(value, [alphaIfTrue], [alphaIfFalse])

Arguments

valuebool
alphaIfTrueSingleColorValue default 255
alphaIfFalseSingleColorValue default 0

SetDrawLayer

self:SetDrawLayer(layer, [sublevel])

Arguments

layerDrawLayer
sublevelnumber default 0

SetIgnoreParentAlpha

self:SetIgnoreParentAlpha(ignore)

Arguments

ignorebool

SetIgnoreParentScale

self:SetIgnoreParentScale(ignore)

Protected: only Blizzard's own code may call it.

Arguments

ignorebool

SetScale

self:SetScale(scale)

Protected: only Blizzard's own code may call it.

Arguments

scalenumber

SetVertexColor

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

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetVertexColorFromBoolean

self:SetVertexColorFromBoolean(value, colorIfTrue, colorIfFalse)

Arguments

valuebool
colorIfTruecolorRGBA
colorIfFalsecolorRGBA

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