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
unitTokenString | cstring | |
|---|---|---|
asset | TextureAssetDisk | |
width | uiUnit may be nil | |
height | uiUnit may be nil | |
r | number may be nil | |
g | number may be nil | |
b | number may be nil | |
a | number may be nil | |
sublayer | number may be nil | |
showFacing | bool may be nil |
ClearUnits
self:ClearUnits()
FinalizeUnits
self:FinalizeUnits()
GetMouseOverUnits
units = self:GetMouseOverUnits()
Returns
units | UnitTokenType |
|---|
GetPlayerPingScale
scale = self:GetPlayerPingScale()
Returns
scale | number |
|---|
GetUiMapID
mapID = self:GetUiMapID()
Returns
mapID | number |
|---|
SetPlayerPingScale
self:SetPlayerPingScale(scale)
Arguments
scale | number |
|---|
SetPlayerPingTexture
self:SetPlayerPingTexture(textureType, asset, [width], [height])
Arguments
textureType | PingTextureType | |
|---|---|---|
asset | FileAsset | |
width | uiUnit default 0 | |
height | uiUnit default 0 |
SetUiMapID
self:SetUiMapID(mapID)
Arguments
mapID | number |
|---|
SetUnitColor
self:SetUnitColor(unit, colorR, colorG, colorB, colorA)
Arguments
unit | UnitTokenType | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
colorA | number |
StartPlayerPing
self:StartPlayerPing([duration], [fadeDuration])
Arguments
duration | number default 0 | |
|---|---|---|
fadeDuration | number default 0 |
StopPlayerPing
self:StopPlayerPing()