Lore archive · Warcraft Wiki, 2023 dump
API ScriptRegionResizing SetPoint
Last wiki revision 2023-05-07
Sets an anchor point for the region. ScriptRegionResizing:SetPoint(point [, relativeTo [, relativePoint]] [, offsetX, offsetY])
- point: : FramePoint - The point of this region.
- relativeTo: - The reference or name of the other region. For example or.
- If omitted, anchors to the parent region if applicable, otherwise to the screen dimensions. Exceptions to this rule are frames managed by Edit Mode.
- If explicitly passed, anchors relative to the screen dimensions.
- relativePoint: : FramePoint - The point of the other region to anchor to. If omitted, defaults to <font color="#71d5ff">.
- offsetX: - Offset right (negative for left). Requires <font color="#71d5ff"> to be specified.
- offsetY: - Offset up (negative for down). Requires <font color="#71d5ff"> to be specified.
Repositions the PlayerFrame.
Sets the same point multiple times, all of the calls have the same result and illustrate the different overloads:
- UI scaling affects the distances for offsetX and offsetY; increasing the Region's scale will increase the offset.
- frames may silently ignore calls to this function if the relative frame is a FontString.
There appear to be multiple causes that can throw anchor family connection errors.
Source
https://warcraft.wiki.gg/wiki/API_ScriptRegionResizing_SetPoint · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.