m
Move page script moved page API Region SetAllPoints to WoW:API Region SetAllPoints without leaving a redirect
(Formatting) |
m (Move page script moved page API Region SetAllPoints to WoW:API Region SetAllPoints without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
Sets an object to be positioned and sized exactly the same as another object. | Sets an object to be positioned and sized exactly the same as another object. | ||
MyObject:SetAllPoints( | MyObject:SetAllPoints(relativeRegion or "regionName") | ||
... is exactly equivalent to: | ... is exactly equivalent to: | ||
MyObject:SetPoint("TOPLEFT", | MyObject:SetPoint("TOPLEFT", relativeRegion ,"TOPLEFT", 0, 0) | ||
MyObject:SetPoint("BOTTOMRIGHT", relativeRegion ,"BOTTOMRIGHT", 0, 0) | |||
MyObject:SetPoint("BOTTOMRIGHT", | |||
* See [[API Region SetPoint|Region:SetPoint]]() | * See [[API Region SetPoint|Region:SetPoint]]() | ||
* '' | * ''region'' may be given as nil to anchor relative to the whole screen. | ||
* ''region'' unspecified anchors the object to the parent. | |||