That's almost how i had it before, but i want it this way, cause its more understandable, and the other way is just confusing abit
----------- old code ------------
Code:
if(unit~='player')then
local name = hp:CreateFontString(nil, 'OVERLAY')
if(unit == 'targettarget' or unit == 'focus' or unit == 'pet' or unit =='focustarget' or unit == 'party') then
name:SetPoint('CENTER')
name:SetWidth(150)
else
name:SetPoint('LEFT', hp, 'LEFT', -1, 27)
name:SetWidth(300)
name:SetJustifyH'LEFT'
end
name:SetFont(font, 15, 'THINOUTLINE')
name:SetHeight(15)
self.Info = name
if(unit == 'target')then
self:Tag(self.Info,'[difficulty][level][shortclassification] [raidcolor][AfterName]')
else
self:Tag(self.Info,'[raidcolor][name]')
end
end