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
animationType | cstring may be nil | |
|---|---|---|
name | cstring may be nil | |
templateName | cstring may be nil |
Returns
anim | SimpleAnim |
|---|
Finish
self:Finish()
GetAnimationSpeedMultiplier
animationSpeedMultiplier = self:GetAnimationSpeedMultiplier()
Returns
animationSpeedMultiplier | number |
|---|
GetAnimations
anims = self:GetAnimations()
Returns
anims | SimpleAnim |
|---|
GetDuration
durationSec = self:GetDuration()
Returns
durationSec | number |
|---|
GetElapsed
elapsedSec = self:GetElapsed()
Returns
elapsedSec | number |
|---|
GetLoopState
loopState = self:GetLoopState()
Returns
loopState | cstring |
|---|
GetLooping
loopType = self:GetLooping()
Returns
loopType | LoopType |
|---|
GetProgress
progress = self:GetProgress()
Returns
progress | number |
|---|
GetScript
script = self:GetScript(scriptTypeName, [bindingType])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
bindingType | ScriptBindingType default "Extrinsic" |
Returns
script | LuaFunctionReference |
|---|
HasScript
hasScript = self:HasScript(scriptName)
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
scriptName | cstring |
|---|
Returns
hasScript | bool |
|---|
HookScript
success = self:HookScript(scriptTypeName, script, [bindingType])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
script | LuaFunctionReference | |
bindingType | ScriptBindingType default "Extrinsic" |
Returns
success | bool |
|---|
IsDone
isDone = self:IsDone()
Returns
isDone | bool |
|---|
IsPaused
isPaused = self:IsPaused()
Returns
isPaused | bool |
|---|
IsPendingFinish
isPendingFinish = self:IsPendingFinish()
Returns
isPendingFinish | bool |
|---|
IsPlaying
isPlaying = self:IsPlaying()
Returns
isPlaying | bool |
|---|
IsReverse
isReverse = self:IsReverse()
Returns
isReverse | bool |
|---|
IsSetToFinalAlpha
isSetToFinalAlpha = self:IsSetToFinalAlpha()
Returns
isSetToFinalAlpha | bool |
|---|
Pause
self:Pause()
Play
self:Play([reverse], [offset])
Arguments
reverse | bool default false | |
|---|---|---|
offset | number default 0 |
RemoveAnimations
self:RemoveAnimations()
Restart
self:Restart([reverse], [offset])
Arguments
reverse | bool default false | |
|---|---|---|
offset | number default 0 |
SetAnimationSpeedMultiplier
self:SetAnimationSpeedMultiplier(animationSpeedMultiplier)
Arguments
animationSpeedMultiplier | number |
|---|
SetLooping
self:SetLooping(loopType)
Arguments
loopType | LoopType |
|---|
SetPlaying
self:SetPlaying(play)
Arguments
play | bool |
|---|
SetScript
self:SetScript(scriptTypeName, [script])
Arguments
scriptTypeName | ScriptTypeName | |
|---|---|---|
script | LuaFunctionReference may be nil |
SetToFinalAlpha
self:SetToFinalAlpha(setToFinalAlpha)
Arguments
setToFinalAlpha | bool |
|---|
Stop
self:Stop()