View Single Post
02-26-09, 12:46 PM   #825
lanacan
A Warpwood Thunder Caller
 
lanacan's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 94
Originally Posted by haste View Post
Code:
        local pvpFlag = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightLeft')
        pvpFlag:SetPoint('LEFT', 3, 0)
The :SetPoint() is the same as:
Code:
        pvpFlag:SetPoint('LEFT', pvpFlag, 'LEFT', 3, 0)
To throw it outside the frame you have to do:
Code:
        pvpFlag:SetPoint('RIGHT', self, 'LEFT', 3, 0)
Thanks Haste!
__________________
Busy modifying your code for my own UI.