WoW:API GameTooltip SetOwner: Difference between revisions

m
Pointer, not name.
No edit summary
m (Pointer, not name.)
Line 4: Line 4:
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->


GameTooltip:SetOwner(owner, anchor&#91;, +x, +y&#93;);
GameTooltip:SetOwner(owner, "anchor"&#91;, +x, +y&#93;);


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
Line 16: Line 16:


:(owner, "Anchor"&#91;, +x, +y&#93;)
:(owner, "Anchor"&#91;, +x, +y&#93;)
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on (But is it a pointer or the name in text or what?)
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on. A pointer to the frame is required, not the frame name itself (use getglobal() to get the pointer from the frame name).
:;anchor : String - a string that describes the anchor point as it would be set via the SetPoint() function.  Anchoring meathods as follows:
:;anchor : String - a string that describes the anchor point as it would be set via the SetPoint() function.  Anchoring meathods as follows:
::ANCHOR_TOPRIGHT    -------    SetPoint("BOTTOMRIGHT",object,"TOPRIGHT")
::ANCHOR_TOPRIGHT    -------    SetPoint("BOTTOMRIGHT",object,"TOPRIGHT")