Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Positions the region the same as another region.

ScriptRegionResizing:SetAllPoints([relativeTo, doResize])

Arguments[]

relativeTo
ScriptRegion|string? - The reference or name of a region.
if omitted, anchors to the parent region if applicable, otherwise to the screen dimensions.
If explicitly passed nil, anchors relative to the screen dimensions.
doResize
boolean? = true

Details[]

  • Only the TOPLEFT and BOTTOMRIGHT points will be set.

Example[]

local f = CreateFrame("Frame")
f:SetAllPoints(UIParent)

is equivalent to:

local f = CreateFrame("Frame")
f:ClearAllPoints() -- unsets any existing points
f:SetPoint("TOPLEFT", UIParent)
f:SetPoint("BOTTOMRIGHT", UIParent)

Patch changes[]

Bc icon Patch 2.2.0 (2007-09-25): Coordinates are now relative to the closest anchor point.
WoW Icon update Patch 1.10.0 (2006-03-28): Updated.

Advertisement