- only create the fontstring for upper/lower text if it doesn't already exist. (sigh, garbage generation)

This commit is contained in:
Parnic
2010-10-16 15:43:57 +00:00
parent 88a309ef8c
commit eefedd6a93

View File

@ -921,8 +921,12 @@ end
function IceBarElement.prototype:CreateTexts() function IceBarElement.prototype:CreateTexts()
if not self.frame.bottomUpperText then
self.frame.bottomUpperText = self:FontFactory(self.moduleSettings.barFontSize, nil, self.frame.bottomUpperText) self.frame.bottomUpperText = self:FontFactory(self.moduleSettings.barFontSize, nil, self.frame.bottomUpperText)
end
if not self.frame.bottomLowerText then
self.frame.bottomLowerText = self:FontFactory(self.moduleSettings.barFontSize, nil, self.frame.bottomLowerText) self.frame.bottomLowerText = self:FontFactory(self.moduleSettings.barFontSize, nil, self.frame.bottomLowerText)
end
-- Parnic - commented these out so that they conform to whatever width the string is set to -- Parnic - commented these out so that they conform to whatever width the string is set to
-- self.frame.bottomUpperText:SetWidth(80) -- self.frame.bottomUpperText:SetWidth(80)