WoW:API GameTooltip SetOwner: Difference between revisions
Jump to navigation
Jump to search
GameTooltip:SetOwner -Documentation by Xenoveritas-
-Edited by ThePooBurner-
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<center>'''GameTooltip:SetOwner''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center> | <center>'''GameTooltip:SetOwner''' ''-Documentation by [[user:Xenoveritas|Xenoveritas]]-''</center> | ||
<center>''-Edited by [[user:ThePooBurner|ThePooBurner]]-''</center> | |||
<!-- 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 --> | ||
Line 16: | Line 17: | ||
:(owner, "Anchor") | :(owner, "Anchor") | ||
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on | :;owner : Frame - Owner frame, which defines the element where the tooltip is centered on | ||
:;anchor : String - a string that describes the anchor point, "ANCHOR_LEFT" | :;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_RIGHT ------- SetPoint("BOTTOMLEFT",object,"TOPRIGHT") | |||
::ANCHOR_BOTTOMRIGHT ------- SetPoint("TOPLEFT",object,"BOTTOMRIGHT") | |||
::ANCHOR_TOPLEFT ------- SetPoint("BOTTOMLEFT",object,"TOPLEFT") | |||
::ANCHOR_LEFT ------- SetPoint("BOTTOMRIGHT",object,"TOPLEFT") | |||
::ANCHOR_BOTTOMLEFT ------- SetPoint("TOPRIGHT",object,"BOTTOMLEFT") | |||
---- | ---- |
Revision as of 02:09, 7 July 2005
GameTooltip:SetOwner(owner, anchor);
Moves the game tooltip to a location based on the "owner" frame.
- Arguments
- (owner, "Anchor")
- owner
- Frame - Owner frame, which defines the element where the tooltip is centered on
- 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_RIGHT ------- SetPoint("BOTTOMLEFT",object,"TOPRIGHT")
- ANCHOR_BOTTOMRIGHT ------- SetPoint("TOPLEFT",object,"BOTTOMRIGHT")
- ANCHOR_TOPLEFT ------- SetPoint("BOTTOMLEFT",object,"TOPLEFT")
- ANCHOR_LEFT ------- SetPoint("BOTTOMRIGHT",object,"TOPLEFT")
- ANCHOR_BOTTOMLEFT ------- SetPoint("TOPRIGHT",object,"BOTTOMLEFT")
- Returns
- Nothing?
- Details
- This only appears to be a convience method for setting the location of the tooltip, it doesn't seem to actually grant any "ownership" of the tooltip over anything else.