Thread: moving boxes
View Single Post
05-13-09, 05:14 PM   #24
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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 )
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/