View Single Post
Unread 09-28-09, 11:12 PM   #1203
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 982
Originally Posted by Icerat View Post
Another question, whats the differeance between

Code:
self.Auras:SetPoint("BOTTOMRIGHT", self, 30, 0)
Code:
self.Auras:SetPoint("BOTTOMRIGHT", self, "TOPRIGHT", 30, 0)
From what I've observed the first put the aura icon where i want it 30 away from the bottom right edge of my target frame and the second puts it 30 away from the top right edge of the frame.

My question is why not use the first example, why do the various layouts I've looked at use the second example, whats the point of the "BOTTOMRIGHT" in the second example?

As always thanks for the responses and i look forward to learning from them.
Code:
self.Auras:SetPoint("BOTTOMRIGHT", self, 30, 0)
is the same as
Code:
self.Auras:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", 30, 0)
http://wowprogramming.com/docs/widgets/Region/SetPoint
__________________
「貴方は1人じゃないよ」
haste is offline