WowAddons

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

SimpleHTMLAPI (widget methods)

23 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

GetContentHeight

height = self:GetContentHeight()

Returns

heightuiUnit

GetFont

fontFile, height, flags = self:GetFont(textType)

Arguments

textTypeHTMLTextType

Returns

fontFilecstring
heightuiFontHeight
flagsTBFFlags

GetFontObject

font = self:GetFontObject(textType)

Arguments

textTypeHTMLTextType

Returns

fontSimpleFont

GetHyperlinkFormat

format = self:GetHyperlinkFormat()

Returns

formatcstring

GetIndentedWordWrap

wordWrap = self:GetIndentedWordWrap(textType)

Arguments

textTypeHTMLTextType

Returns

wordWrapbool

GetJustifyH

justifyH = self:GetJustifyH(textType)

Arguments

textTypeHTMLTextType

Returns

justifyHJustifyHorizontal

GetJustifyV

justifyV = self:GetJustifyV(textType)

Arguments

textTypeHTMLTextType

Returns

justifyVJustifyVertical

GetShadowColor

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

Arguments

textTypeHTMLTextType

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetShadowOffset

offsetX, offsetY = self:GetShadowOffset(textType)

Arguments

textTypeHTMLTextType

Returns

offsetXnumber
offsetYnumber

GetSpacing

spacing = self:GetSpacing(textType)

Arguments

textTypeHTMLTextType

Returns

spacinguiUnit

GetTextColor

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

Arguments

textTypeHTMLTextType

Returns

colorRnumber
colorGnumber
colorBnumber
colorAnumber

GetTextData

content = self:GetTextData()

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

Returns

contentHTMLContentNode[]

SetFont

self:SetFont(textType, fontFile, height, flags)

Arguments

textTypeHTMLTextType
fontFilecstring
heightuiFontHeight
flagsTBFFlags

SetFontObject

self:SetFontObject(textType, font)

Arguments

textTypeHTMLTextType
fontSimpleFont

SetHyperlinkFormat

self:SetHyperlinkFormat(format)

Arguments

formatcstring

SetIndentedWordWrap

self:SetIndentedWordWrap(textType, wordWrap)

Arguments

textTypeHTMLTextType
wordWrapbool

SetJustifyH

self:SetJustifyH(textType, justifyH)

Arguments

textTypeHTMLTextType
justifyHJustifyHorizontal

SetJustifyV

self:SetJustifyV(textType, justifyV)

Arguments

textTypeHTMLTextType
justifyVJustifyVertical

SetShadowColor

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

Arguments

textTypeHTMLTextType
colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

SetShadowOffset

self:SetShadowOffset(textType, offsetX, offsetY)

Arguments

textTypeHTMLTextType
offsetXnumber
offsetYnumber

SetSpacing

self:SetSpacing(textType, spacing)

Arguments

textTypeHTMLTextType
spacinguiUnit

SetText

self:SetText(text, [ignoreMarkup])

Arguments

textcstring
ignoreMarkupbool default false

SetTextColor

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

Arguments

textTypeHTMLTextType
colorRnumber
colorGnumber
colorBnumber
aSingleColorValue may be nil

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