WowAddons

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

SimpleMessageFrameAPI (widget methods)

33 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

AddMessage

self:AddMessage(text, colorR, colorG, colorB, [a], [messageID])

Arguments

textcstring
colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil
messageIDnumber may be nil

Clear

self:Clear()

GetFadeDuration

fadeDurationSeconds = self:GetFadeDuration()

Returns

fadeDurationSecondsnumber

GetFadePower

fadePower = self:GetFadePower()

Returns

fadePowernumber

GetFading

isFading = self:GetFading()

Returns

isFadingbool

GetFont

fontFile, height, flags = self:GetFont()

Returns

fontFilecstring
heightuiFontHeight
flagsTBFFlags

GetFontObject

font = self:GetFontObject()

Returns

fontSimpleFont

GetFontStringByID

fontString = self:GetFontStringByID(messageID)

Arguments

messageIDnumber

Returns

fontStringSimpleFontString

GetIndentedWordWrap

wordWrap = self:GetIndentedWordWrap()

Returns

wordWrapbool

GetInsertMode

mode = self:GetInsertMode()

Returns

modeInsertMode

GetJustifyH

justifyH = self:GetJustifyH()

Returns

justifyHJustifyHorizontal

GetJustifyV

justifyV = self:GetJustifyV()

Returns

justifyVJustifyVertical

GetShadowColor

colorR, colorG, colorB, colorA = self:GetShadowColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetShadowOffset

offsetX, offsetY = self:GetShadowOffset()

Returns

offsetXnumber
offsetYnumber

GetSpacing

spacing = self:GetSpacing()

Returns

spacinguiUnit

GetTextColor

colorR, colorG, colorB, colorA = self:GetTextColor()

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetTimeVisible

timeVisibleSeconds = self:GetTimeVisible()

Returns

timeVisibleSecondsnumber

HasMessageByID

hasMessage = self:HasMessageByID(messageID)

Arguments

messageIDnumber

Returns

hasMessagebool

ResetMessageFadeByID

self:ResetMessageFadeByID(messageID)

Arguments

messageIDnumber

SetFadeDuration

self:SetFadeDuration(fadeDurationSeconds)

Arguments

fadeDurationSecondsnumber

SetFadePower

self:SetFadePower(fadePower)

Arguments

fadePowernumber

SetFading

self:SetFading(fading)

Arguments

fadingbool

SetFont

self:SetFont(fontFile, height, flags)

Arguments

fontFilecstring
heightuiFontHeight
flagsTBFFlags

SetFontObject

self:SetFontObject(font)

Arguments

fontSimpleFont

SetIndentedWordWrap

self:SetIndentedWordWrap(wordWrap)

Arguments

wordWrapbool

SetInsertMode

self:SetInsertMode(mode)

Arguments

modeInsertMode

SetJustifyH

self:SetJustifyH(justifyH)

Arguments

justifyHJustifyHorizontal

SetJustifyV

self:SetJustifyV(justifyV)

Arguments

justifyVJustifyVertical

SetShadowColor

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

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetShadowOffset

self:SetShadowOffset(offsetX, offsetY)

Arguments

offsetXnumber
offsetYnumber

SetSpacing

self:SetSpacing(spacing)

Arguments

spacinguiUnit

SetTextColor

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

Arguments

colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetTimeVisible

self:SetTimeVisible(timeVisibleSeconds)

Arguments

timeVisibleSecondsnumber

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