View Single Post
02-07-12, 05:51 PM   #18
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
for the second part, change:
Code:
    self:SetSize(width, height)
    if(unit == "targettarget" or unit == "focus" or unit == "pet") then
        self:SetSize(80, height)
    end
to be like this...
Code:
    if(unit == "targettarget") then
    	self:SetSize(x, y)
    else if (unit == "focus" or unit == "pet") then
        self:SetSize(80, height)
    else
    	self:SetSize(width, height)
    end
  Reply With Quote