WowAddons

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

durationnumber

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

durationnumber

GetCooldownTimes

start, duration = self:GetCooldownTimes()

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

Returns

startnumber
durationnumber

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

secondsSeconds

GetCountdownFontString

countdownString = self:GetCountdownFontString()

Returns

countdownStringSimpleFontString

GetCountdownFormatter

formatter = self:GetCountdownFormatter()

Returns

formatterNumericFormatter 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

secondsSeconds

GetDrawBling

drawBling = self:GetDrawBling()

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

Returns

drawBlingbool

GetDrawEdge

drawEdge = self:GetDrawEdge()

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

Returns

drawEdgebool

GetDrawSwipe

drawSwipe = self:GetDrawSwipe()

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

Returns

drawSwipebool

GetEdgeScale

edgeScale = self:GetEdgeScale()

Returns

edgeScalenumber

GetHideCountdownNumbers

hideNumbers = self:GetHideCountdownNumbers()

Returns

hideNumbersbool

GetMinimumCountdownDuration

milliseconds = self:GetMinimumCountdownDuration()

Returns

millisecondsMilliseconds

GetReverse

reverse = self:GetReverse()

Returns

reversebool

GetRotation

rotationRadians = self:GetRotation()

Returns

rotationRadiansnumber

GetUseAuraDisplayTime

useAuraDisplayTime = self:GetUseAuraDisplayTime()

Returns

useAuraDisplayTimebool

IsPaused

isPaused = self:IsPaused()

Returns

isPausedbool

Pause

self:Pause()

Resume

self:Resume()

SetBlingTexture

self:SetBlingTexture(texture, colorR, colorG, colorB, colorA)

Arguments

textureFileAsset
colorRnumber
colorGnumber
colorBnumber
colorAnumber

SetCooldown

self:SetCooldown(start, duration, [modRate])

Protected: only Blizzard's own code may call it.

Arguments

startSeconds
durationSeconds
modRatenumber default 1

SetCooldownDuration

self:SetCooldownDuration(duration, [modRate])

Protected: only Blizzard's own code may call it.

Arguments

durationSeconds
modRatenumber default 1

SetCooldownFromDurationObject

self:SetCooldownFromDurationObject(duration, [clearIfZero])

Protected: only Blizzard's own code may call it.

Arguments

durationLuaDurationObject
clearIfZerobool default true

SetCooldownFromExpirationTime

self:SetCooldownFromExpirationTime(expirationTime, duration, [modRate])

Protected: only Blizzard's own code may call it.

Arguments

expirationTimeSeconds
durationSeconds
modRatenumber default 1

SetCooldownUNIX

self:SetCooldownUNIX(start, duration, [modRate])

Protected: only Blizzard's own code may call it.

Arguments

startnumber
durationnumber
modRatenumber 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

secondsSecondsNumber 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

fontNamecstring

SetCountdownFormatter

self:SetCountdownFormatter([formatter])

Arguments

formatterNumericFormatter 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

secondsSecondsNumber of seconds below which numbers are displayed with milliseconds.

SetDrawBling

self:SetDrawBling([drawBling])

Arguments

drawBlingbool default false

SetDrawEdge

self:SetDrawEdge([drawEdge])

Arguments

drawEdgebool default false

SetDrawSwipe

self:SetDrawSwipe([drawSwipe])

Arguments

drawSwipebool default false

SetEdgeColor

self:SetEdgeColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetEdgeScale

self:SetEdgeScale(scale)

Arguments

scalenumber

SetEdgeTexture

self:SetEdgeTexture(texture, colorR, colorG, colorB, colorA)

Arguments

textureFileAsset
colorRnumber
colorGnumber
colorBnumber
colorAnumber

SetHideCountdownNumbers

self:SetHideCountdownNumbers([hideNumbers])

Arguments

hideNumbersbool 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

millisecondsMilliseconds

SetPaused

self:SetPaused(paused)

Arguments

pausedbool

SetReverse

self:SetReverse([reverse])

Arguments

reversebool default false

SetRotation

self:SetRotation(rotationRadians)

Arguments

rotationRadiansnumber

SetSwipeColor

self:SetSwipeColor(colorR, colorG, colorB, [a])

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetSwipeTexture

self:SetSwipeTexture([texture], colorR, colorG, colorB, colorA)

Arguments

textureFileAsset may be nil
colorRnumber
colorGnumber
colorBnumber
colorAnumber

SetTexCoordRange

self:SetTexCoordRange(low, high)

Arguments

lowvector2
highvector2

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

useAuraDisplayTimebool default false

SetUseCircularEdge

self:SetUseCircularEdge([useCircularEdge])

Arguments

useCircularEdgebool default false

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