World of Warcraft Forever API · FrameAPITooltip.md, for your AI
FrameAPITooltip (widget methods)
9 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
AddFontStrings
self:AddFontStrings(leftFontString, rightFontString)
Arguments
leftFontString | SimpleFontString | |
|---|---|---|
rightFontString | SimpleFontString |
ClearPadding
self:ClearPadding()
Set all padding values to 0.0 and remove the Padding SecretAspect.
GetLeftLine
leftFontString = self:GetLeftLine(line)
Arguments
line | luaIndex |
|---|
Returns
leftFontString | SimpleFontString |
|---|
GetMinimumWidth
width, forced = self:GetMinimumWidth()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
width | number | |
|---|---|---|
forced | bool |
GetPadding
right, bottom, left, top = self:GetPadding()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Returns
right | number | |
|---|---|---|
bottom | number | |
left | number | |
top | number |
GetRightLine
rightFontString = self:GetRightLine(line)
Arguments
line | luaIndex |
|---|
Returns
rightFontString | SimpleFontString |
|---|
SetMinimumWidth
self:SetMinimumWidth(width, [force])
Arguments
width | number | |
|---|---|---|
force | bool default false |
SetPadding
self:SetPadding(right, bottom, [left], [top])
Arguments
right | number | |
|---|---|---|
bottom | number | |
left | number may be nil | |
top | number may be nil |
SetText
self:SetText(text, colorR, colorG, colorB, [alpha], [wrap])
Arguments
text | cstring | |
|---|---|---|
colorR | number | |
colorG | number | |
colorB | number | |
alpha | number default 1 | |
wrap | bool default false |