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
text | cstring | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil | |
messageID | number may be nil |
Clear
self:Clear()
GetFadeDuration
fadeDurationSeconds = self:GetFadeDuration()
Returns
fadeDurationSeconds | number |
|---|
GetFadePower
fadePower = self:GetFadePower()
Returns
fadePower | number |
|---|
GetFading
isFading = self:GetFading()
Returns
isFading | bool |
|---|
GetFont
fontFile, height, flags = self:GetFont()
Returns
fontFile | cstring | |
|---|---|---|
height | uiFontHeight | |
flags | TBFFlags |
GetFontObject
font = self:GetFontObject()
Returns
font | SimpleFont |
|---|
GetFontStringByID
fontString = self:GetFontStringByID(messageID)
Arguments
messageID | number |
|---|
Returns
fontString | SimpleFontString |
|---|
GetIndentedWordWrap
wordWrap = self:GetIndentedWordWrap()
Returns
wordWrap | bool |
|---|
GetInsertMode
mode = self:GetInsertMode()
Returns
mode | InsertMode |
|---|
GetJustifyH
justifyH = self:GetJustifyH()
Returns
justifyH | JustifyHorizontal |
|---|
GetJustifyV
justifyV = self:GetJustifyV()
Returns
justifyV | JustifyVertical |
|---|
GetShadowColor
colorR, colorG, colorB, colorA = self:GetShadowColor()
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetShadowOffset
offsetX, offsetY = self:GetShadowOffset()
Returns
offsetX | number | |
|---|---|---|
offsetY | number |
GetSpacing
spacing = self:GetSpacing()
Returns
spacing | uiUnit |
|---|
GetTextColor
colorR, colorG, colorB, colorA = self:GetTextColor()
Returns
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
colorA | number |
GetTimeVisible
timeVisibleSeconds = self:GetTimeVisible()
Returns
timeVisibleSeconds | number |
|---|
HasMessageByID
hasMessage = self:HasMessageByID(messageID)
Arguments
messageID | number |
|---|
Returns
hasMessage | bool |
|---|
ResetMessageFadeByID
self:ResetMessageFadeByID(messageID)
Arguments
messageID | number |
|---|
SetFadeDuration
self:SetFadeDuration(fadeDurationSeconds)
Arguments
fadeDurationSeconds | number |
|---|
SetFadePower
self:SetFadePower(fadePower)
Arguments
fadePower | number |
|---|
SetFading
self:SetFading(fading)
Arguments
fading | bool |
|---|
SetFont
self:SetFont(fontFile, height, flags)
Arguments
fontFile | cstring | |
|---|---|---|
height | uiFontHeight | |
flags | TBFFlags |
SetFontObject
self:SetFontObject(font)
Arguments
font | SimpleFont |
|---|
SetIndentedWordWrap
self:SetIndentedWordWrap(wordWrap)
Arguments
wordWrap | bool |
|---|
SetInsertMode
self:SetInsertMode(mode)
Arguments
mode | InsertMode |
|---|
SetJustifyH
self:SetJustifyH(justifyH)
Arguments
justifyH | JustifyHorizontal |
|---|
SetJustifyV
self:SetJustifyV(justifyV)
Arguments
justifyV | JustifyVertical |
|---|
SetShadowColor
self:SetShadowColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetShadowOffset
self:SetShadowOffset(offsetX, offsetY)
Arguments
offsetX | number | |
|---|---|---|
offsetY | number |
SetSpacing
self:SetSpacing(spacing)
Arguments
spacing | uiUnit |
|---|
SetTextColor
self:SetTextColor(colorR, colorG, colorB, [a])
Arguments
colorR | number | |
|---|---|---|
colorG | number | |
colorB | number | |
a | SingleColorValue may be nil |
SetTimeVisible
self:SetTimeVisible(timeVisibleSeconds)
Arguments
timeVisibleSeconds | number |
|---|