- fixed a bug causing bar font size adjustments to not take effect/display until a ui reload

This commit is contained in:
Parnic
2010-10-21 01:42:35 +00:00
parent 1a3b4cbda9
commit 04a885b123
3 changed files with 5 additions and 15 deletions

View File

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

View File

@ -476,9 +476,7 @@ end
function IceClassPowerCounter.prototype:CreateRuneFrame()
-- create numeric runes
if not self.frame.numeric then
self.frame.numeric = self:FontFactory(self.moduleSettings.runeFontSize, self.frame, self.frame.numeric)
end
self.frame.numeric = self:FontFactory(self.moduleSettings.runeFontSize, self.frame, self.frame.numeric)
self.frame.numeric:SetWidth(50)
self.frame.numeric:SetJustifyH("CENTER")

View File

@ -385,9 +385,7 @@ end
function TargetOfTarget.prototype:CreateToTFrame()
if not self.frame.totName then
self.frame.totName = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totName)
end
self.frame.totName = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totName)
self.frame.totName:SetHeight(self.height)
self.frame.totName:SetJustifyH("LEFT")
@ -399,9 +397,7 @@ end
function TargetOfTarget.prototype:CreateToTHPFrame()
if not self.frame.totHealth then
self.frame.totHealth = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totHealth)
end
self.frame.totHealth = self:FontFactory(self.moduleSettings.fontSize, self.frame.bar, self.frame.totHealth)
self.frame.totHealth:SetHeight(self.height)
self.frame.totHealth:SetJustifyH("RIGHT")