WowAddons

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

FrameAPIUnitPositionFrame (widget methods)

12 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

AddUnit

self:AddUnit(unitTokenString, asset, [width], [height], [r], [g], [b], [a], [sublayer], [showFacing])

Arguments

unitTokenStringcstring
assetTextureAssetDisk
widthuiUnit may be nil
heightuiUnit may be nil
rnumber may be nil
gnumber may be nil
bnumber may be nil
anumber may be nil
sublayernumber may be nil
showFacingbool may be nil

ClearUnits

self:ClearUnits()

FinalizeUnits

self:FinalizeUnits()

GetMouseOverUnits

units = self:GetMouseOverUnits()

Returns

unitsUnitTokenType

GetPlayerPingScale

scale = self:GetPlayerPingScale()

Returns

scalenumber

GetUiMapID

mapID = self:GetUiMapID()

Returns

mapIDnumber

SetPlayerPingScale

self:SetPlayerPingScale(scale)

Arguments

scalenumber

SetPlayerPingTexture

self:SetPlayerPingTexture(textureType, asset, [width], [height])

Arguments

textureTypePingTextureType
assetFileAsset
widthuiUnit default 0
heightuiUnit default 0

SetUiMapID

self:SetUiMapID(mapID)

Arguments

mapIDnumber

SetUnitColor

self:SetUnitColor(unit, colorR, colorG, colorB, colorA)

Arguments

unitUnitTokenType
colorRnumber
colorGnumber
colorBnumber
colorAnumber

StartPlayerPing

self:StartPlayerPing([duration], [fadeDuration])

Arguments

durationnumber default 0
fadeDurationnumber default 0

StopPlayerPing

self:StopPlayerPing()

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