World of Warcraft Forever API · SimpleScriptRegionResizingAPI.md, for your AI
SimpleScriptRegionResizingAPI (widget methods)
13 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
AdjustPointsOffset
self:AdjustPointsOffset(x, y)
Protected: only Blizzard's own code may call it.
Arguments
x | uiUnit | |
|---|---|---|
y | uiUnit |
ClearAllPoints
self:ClearAllPoints()
Clears all points and immediately invalidates the rect. (Prior to 11.2.0, this would only invalidate rect immediately for AnchoringRestricted regions.)
Protected: only Blizzard's own code may call it.
ClearPoint
self:ClearPoint(point)
Protected: only Blizzard's own code may call it.
Arguments
point | FramePoint |
|---|
ClearPointsOffset
self:ClearPointsOffset()
Protected: only Blizzard's own code may call it.
GetNumPoints
numPoints = self:GetNumPoints()
Returns
numPoints | number |
|---|
GetPoint
point, relativeTo, relativePoint, offsetX, offsetY = self:GetPoint([anchorIndex], [resolveCollapsed])
May return nothing.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
anchorIndex | luaIndex default 0 | |
|---|---|---|
resolveCollapsed | bool default false |
Returns
point | FramePoint | |
|---|---|---|
relativeTo | ScriptRegion | |
relativePoint | FramePoint | |
offsetX | uiUnit | |
offsetY | uiUnit |
GetPointByName
point, relativeTo, relativePoint, offsetX, offsetY = self:GetPointByName(point, [resolveCollapsed])
May return nothing.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
point | FramePoint | |
|---|---|---|
resolveCollapsed | bool default false |
Returns
point | FramePoint | |
|---|---|---|
relativeTo | ScriptRegion | |
relativePoint | FramePoint | |
offsetX | uiUnit | |
offsetY | uiUnit |
SetAllPoints
self:SetAllPoints(relativeTo, [doResize])
Protected: only Blizzard's own code may call it.
Arguments
relativeTo | ScriptRegion | |
|---|---|---|
doResize | bool default true |
SetHeight
self:SetHeight(height)
Protected: only Blizzard's own code may call it.
Arguments
height | uiUnit |
|---|
SetPoint
self:SetPoint(point, relativeTo, relativePoint, offsetX, offsetY)
Protected: only Blizzard's own code may call it.
Arguments
point | FramePoint | |
|---|---|---|
relativeTo | ScriptRegion | |
relativePoint | FramePoint | |
offsetX | uiUnit | |
offsetY | uiUnit |
SetPointsOffset
self:SetPointsOffset(x, y)
Protected: only Blizzard's own code may call it.
Arguments
x | uiUnit | |
|---|---|---|
y | uiUnit |
SetSize
self:SetSize(x, y)
Protected: only Blizzard's own code may call it.
Arguments
x | uiUnit | |
|---|---|---|
y | uiUnit |
SetWidth
self:SetWidth(width)
Protected: only Blizzard's own code may call it.
Arguments
width | uiUnit |
|---|