Thread: moving boxes
View Single Post
05-13-09, 09:22 PM   #25
Baltharus
A Chromatic Dragonspawn
 
Baltharus's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 190
Originally Posted by spiel2001 View Post
It's not in both places... it is setting the bottom right corner of the tooltip to a point that is relative to the bottom left corner of the user interface (UIParent) setting it overlay:GetRight() (a distance in screen units) from the left edge and overlay:GetBottom() (also a distance in screen units) from the bottom edge of the user interface

Think of it like this...

xOffset = overlay:GetRight()
yOffset = overlay:GetBottom()
anchorPointOnTooltip = "BOTTOMRIGHT"
anchorPointOnUserInterface = "BOTTOMLEFT"
userInterface = UIParent

tooltip:SetPoint( anchorPointOnTooltip, userInterface, anchorPointOnUserInterface, xOffset, yOffset )
my brain just exploded