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
alpha | SingleColorValue |
|---|
GetDrawLayer
layer, sublayer = self:GetDrawLayer()
Returns
layer | DrawLayer | |
|---|---|---|
sublayer | number |
GetEffectiveScale
effectiveScale = self:GetEffectiveScale()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
effectiveScale | number |
|---|
GetScale
scale = self:GetScale()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
scale | number |
|---|
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
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
IsIgnoringParentAlpha
isIgnoring = self:IsIgnoringParentAlpha()
Returns
isIgnoring | bool |
|---|
IsIgnoringParentScale
isIgnoring = self:IsIgnoringParentScale()
Returns
isIgnoring | bool |
|---|
IsObjectLoaded
isLoaded = self:IsObjectLoaded()
Returns
isLoaded | bool |
|---|
SetAlpha
self:SetAlpha(alpha)
Arguments
alpha | SingleColorValue |
|---|
SetAlphaFromBoolean
self:SetAlphaFromBoolean(value, [alphaIfTrue], [alphaIfFalse])
Arguments
value | bool | |
|---|---|---|
alphaIfTrue | SingleColorValue default 255 | |
alphaIfFalse | SingleColorValue default 0 |
SetDrawLayer
self:SetDrawLayer(layer, [sublevel])
Arguments
layer | DrawLayer | |
|---|---|---|
sublevel | number default 0 |
SetIgnoreParentAlpha
self:SetIgnoreParentAlpha(ignore)
Arguments
ignore | bool |
|---|
SetIgnoreParentScale
self:SetIgnoreParentScale(ignore)
Protected: only Blizzard's own code may call it.
Arguments
ignore | bool |
|---|
SetScale
self:SetScale(scale)
Protected: only Blizzard's own code may call it.
Arguments
scale | number |
|---|
SetVertexColor
self:SetVertexColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetVertexColorFromBoolean
self:SetVertexColorFromBoolean(value, colorIfTrue, colorIfFalse)
Arguments
value | bool | |
|---|---|---|
colorIfTrue | colorRGBA | |
colorIfFalse | colorRGBA |