WowAddons

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

SimpleAnimGroupAPI (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

CreateAnimation

anim = self:CreateAnimation([animationType], [name], [templateName])

Arguments

animationTypecstring may be nil
namecstring may be nil
templateNamecstring may be nil

Returns

animSimpleAnim

Finish

self:Finish()

GetAnimationSpeedMultiplier

animationSpeedMultiplier = self:GetAnimationSpeedMultiplier()

Returns

animationSpeedMultipliernumber

GetAnimations

anims = self:GetAnimations()

Returns

animsSimpleAnim

GetDuration

durationSec = self:GetDuration()

Returns

durationSecnumber

GetElapsed

elapsedSec = self:GetElapsed()

Returns

elapsedSecnumber

GetLoopState

loopState = self:GetLoopState()

Returns

loopStatecstring

GetLooping

loopType = self:GetLooping()

Returns

loopTypeLoopType

GetProgress

progress = self:GetProgress()

Returns

progressnumber

GetScript

script = self:GetScript(scriptTypeName, [bindingType])

Arguments

scriptTypeNameScriptTypeName
bindingTypeScriptBindingType default "Extrinsic"

Returns

scriptLuaFunctionReference

HasScript

hasScript = self:HasScript(scriptName)

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

Arguments

scriptNamecstring

Returns

hasScriptbool

HookScript

success = self:HookScript(scriptTypeName, script, [bindingType])

Arguments

scriptTypeNameScriptTypeName
scriptLuaFunctionReference
bindingTypeScriptBindingType default "Extrinsic"

Returns

successbool

IsDone

isDone = self:IsDone()

Returns

isDonebool

IsPaused

isPaused = self:IsPaused()

Returns

isPausedbool

IsPendingFinish

isPendingFinish = self:IsPendingFinish()

Returns

isPendingFinishbool

IsPlaying

isPlaying = self:IsPlaying()

Returns

isPlayingbool

IsReverse

isReverse = self:IsReverse()

Returns

isReversebool

IsSetToFinalAlpha

isSetToFinalAlpha = self:IsSetToFinalAlpha()

Returns

isSetToFinalAlphabool

Pause

self:Pause()

Play

self:Play([reverse], [offset])

Arguments

reversebool default false
offsetnumber default 0

RemoveAnimations

self:RemoveAnimations()

Restart

self:Restart([reverse], [offset])

Arguments

reversebool default false
offsetnumber default 0

SetAnimationSpeedMultiplier

self:SetAnimationSpeedMultiplier(animationSpeedMultiplier)

Arguments

animationSpeedMultipliernumber

SetLooping

self:SetLooping(loopType)

Arguments

loopTypeLoopType

SetPlaying

self:SetPlaying(play)

Arguments

playbool

SetScript

self:SetScript(scriptTypeName, [script])

Arguments

scriptTypeNameScriptTypeName
scriptLuaFunctionReference may be nil

SetToFinalAlpha

self:SetToFinalAlpha(setToFinalAlpha)

Arguments

setToFinalAlphabool

Stop

self:Stop()

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