49
edits
No edit summary |
|||
| Line 131: | Line 131: | ||
Each of these are, in the general case, equivalient: | Each of these are, in the general case, equivalient: | ||
<pre> | |||
<[[XML/Anchor|Anchor]] point="TOPLEFT" /> | |||
</pre> | |||
<pre> | |||
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeTo="$parent" /> | |||
</pre> | |||
<pre> | |||
<[[XML/Anchor|Anchor]] point="TOPLEFT" relativeKey="$parent" /> | |||
</pre> | |||
In each case the relative frame is parent. For the default case, the relative frame its the parent. For 'relativeTo', a named parent frame's full name will replace '$parent' causing 'relativeTo' to refer to the parent frame by name. For 'relativeKey', the named or unnamed parent frame's Lua 'reference' will be used as the relative frame, similar to 'self.GetParent()'. | In each case the relative frame is parent. For the default case, the relative frame its the parent. For 'relativeTo', a named parent frame's full name will replace '$parent' causing 'relativeTo' to refer to the parent frame by name. For 'relativeKey', the named or unnamed parent frame's Lua 'reference' will be used as the relative frame, similar to 'self.GetParent()'. | ||