mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- only create the fontstring for upper/lower text if it doesn't already exist. (sigh, garbage generation)
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user