World of Warcraft Forever API · FrameAPICooldown.md, for your AI
FrameAPICooldown (widget methods)
46 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
Clear
self:Clear()
Protected: only Blizzard's own code may call it.
GetCooldownDisplayDuration
duration = self:GetCooldownDisplayDuration()
The returned duration unit is milliseconds, unaffected by modRate.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
duration | number |
|---|
GetCooldownDuration
duration = self:GetCooldownDuration()
The returned duration unit is milliseconds and is multiplied by the modRate.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
duration | number |
|---|
GetCooldownTimes
start, duration = self:GetCooldownTimes()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
start | number | |
|---|---|---|
duration | number |
GetCountdownAbbrevThreshold
seconds = self:GetCountdownAbbrevThreshold()
Returns the threshold below which cooldown numbers are displayed as an abbreviated form without a unit suffix (eg. '1:31').
Returns
seconds | Seconds |
|---|
GetCountdownFontString
countdownString = self:GetCountdownFontString()
Returns
countdownString | SimpleFontString |
|---|
GetCountdownFormatter
formatter = self:GetCountdownFormatter()
Returns
formatter | NumericFormatter may be nil |
|---|
GetCountdownMillisecondsThreshold
seconds = self:GetCountdownMillisecondsThreshold()
Returns the threshold below which cooldown numbers are displayed as a decimal value with one place for milliseconds (eg. '8.7').
Returns
seconds | Seconds |
|---|
GetDrawBling
drawBling = self:GetDrawBling()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
drawBling | bool |
|---|
GetDrawEdge
drawEdge = self:GetDrawEdge()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
drawEdge | bool |
|---|
GetDrawSwipe
drawSwipe = self:GetDrawSwipe()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
drawSwipe | bool |
|---|
GetEdgeScale
edgeScale = self:GetEdgeScale()
Returns
edgeScale | number |
|---|
GetHideCountdownNumbers
hideNumbers = self:GetHideCountdownNumbers()
Returns
hideNumbers | bool |
|---|
GetMinimumCountdownDuration
milliseconds = self:GetMinimumCountdownDuration()
Returns
milliseconds | Milliseconds |
|---|
GetReverse
reverse = self:GetReverse()
Returns
reverse | bool |
|---|
GetRotation
rotationRadians = self:GetRotation()
Returns
rotationRadians | number |
|---|
GetUseAuraDisplayTime
useAuraDisplayTime = self:GetUseAuraDisplayTime()
Returns
useAuraDisplayTime | bool |
|---|
IsPaused
isPaused = self:IsPaused()
Returns
isPaused | bool |
|---|
Pause
self:Pause()
Resume
self:Resume()
SetBlingTexture
self:SetBlingTexture(texture, colorR, colorG, colorB, colorA)
Arguments
texture | FileAsset | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
colorA | number |
SetCooldown
self:SetCooldown(start, duration, [modRate])
Protected: only Blizzard's own code may call it.
Arguments
start | Seconds | |
|---|---|---|
duration | Seconds | |
modRate | number default 1 |
SetCooldownDuration
self:SetCooldownDuration(duration, [modRate])
Protected: only Blizzard's own code may call it.
Arguments
duration | Seconds | |
|---|---|---|
modRate | number default 1 |
SetCooldownFromDurationObject
self:SetCooldownFromDurationObject(duration, [clearIfZero])
Protected: only Blizzard's own code may call it.
Arguments
duration | LuaDurationObject | |
|---|---|---|
clearIfZero | bool default true |
SetCooldownFromExpirationTime
self:SetCooldownFromExpirationTime(expirationTime, duration, [modRate])
Protected: only Blizzard's own code may call it.
Arguments
expirationTime | Seconds | |
|---|---|---|
duration | Seconds | |
modRate | number default 1 |
SetCooldownUNIX
self:SetCooldownUNIX(start, duration, [modRate])
Protected: only Blizzard's own code may call it.
Arguments
start | number | |
|---|---|---|
duration | number | |
modRate | number default 1 |
SetCountdownAbbrevThreshold
self:SetCountdownAbbrevThreshold(seconds)
Sets the threshold below which cooldown numbers are displayed as an abbreviated form without a unit suffix (eg. '1:31').
Arguments
seconds | Seconds | Number of seconds below which numbers will be abbreviated. If above one hour or below one minute, no abbreviation will be performed. |
|---|
SetCountdownFont
self:SetCountdownFont(fontName)
Arguments
fontName | cstring |
|---|
SetCountdownFormatter
self:SetCountdownFormatter([formatter])
Arguments
formatter | NumericFormatter may be nil |
|---|
SetCountdownMillisecondsThreshold
self:SetCountdownMillisecondsThreshold(seconds)
Sets the threshold below which cooldown numbers are displayed as a decimal value with one place for milliseconds (eg. '8.7').
Arguments
seconds | Seconds | Number of seconds below which numbers are displayed with milliseconds. |
|---|
SetDrawBling
self:SetDrawBling([drawBling])
Arguments
drawBling | bool default false |
|---|
SetDrawEdge
self:SetDrawEdge([drawEdge])
Arguments
drawEdge | bool default false |
|---|
SetDrawSwipe
self:SetDrawSwipe([drawSwipe])
Arguments
drawSwipe | bool default false |
|---|
SetEdgeColor
self:SetEdgeColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetEdgeScale
self:SetEdgeScale(scale)
Arguments
scale | number |
|---|
SetEdgeTexture
self:SetEdgeTexture(texture, colorR, colorG, colorB, colorA)
Arguments
texture | FileAsset | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
colorA | number |
SetHideCountdownNumbers
self:SetHideCountdownNumbers([hideNumbers])
Arguments
hideNumbers | bool default false |
|---|
SetMinimumCountdownDuration
self:SetMinimumCountdownDuration(milliseconds)
Controls the minimum duration above which countdown text will be shown. This is applied based upon the total duration of the cooldown, not the remaining duration as it ticks down.
Arguments
milliseconds | Milliseconds |
|---|
SetPaused
self:SetPaused(paused)
Arguments
paused | bool |
|---|
SetReverse
self:SetReverse([reverse])
Arguments
reverse | bool default false |
|---|
SetRotation
self:SetRotation(rotationRadians)
Arguments
rotationRadians | number |
|---|
SetSwipeColor
self:SetSwipeColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetSwipeTexture
self:SetSwipeTexture([texture], colorR, colorG, colorB, colorA)
Arguments
texture | FileAsset may be nil | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
colorA | number |
SetTexCoordRange
self:SetTexCoordRange(low, high)
Arguments
low | vector2 | |
|---|---|---|
high | vector2 |
SetUseAuraDisplayTime
self:SetUseAuraDisplayTime([useAuraDisplayTime])
Aura durations are displayed slightly differently than cooldown durations. Setting this to true will adjust the display logic to stay in sync with aura timers.
Arguments
useAuraDisplayTime | bool default false |
|---|
SetUseCircularEdge
self:SetUseCircularEdge([useCircularEdge])
Arguments
useCircularEdge | bool default false |
|---|