- added custom upper/lower text coloring to custom buff/debuff bars and custom cooldown bars since they don't have any dogtag support

- fixed lower text to be visible on custom buff/debuff bars and custom cooldown bars
- fixed upper/lower text blocks in the text settings page to not be multi-line if the module doesn't support dogtags so that everything is laid out more cleanly
This commit is contained in:
Parnic
2010-12-14 06:55:15 +00:00
parent f4c098565d
commit e3e3d01583
3 changed files with 115 additions and 4 deletions

View File

@ -632,7 +632,7 @@ do
disabled = function()
return not self.moduleSettings.enabled
end,
multiline = true,
multiline = self.moduleSettings.usesDogTagStrings,
usage = "<upper text to display>",
order = 13.2,
},
@ -661,7 +661,7 @@ do
disabled = function()
return not self.moduleSettings.enabled
end,
multiline = true,
multiline = self.moduleSettings.usesDogTagStrings,
usage = "<lower text to display>",
order = 14.2,
},
@ -1345,7 +1345,9 @@ function IceBarElement.prototype:SetBottomText1(text, color)
alpha = 1
end
self.frame.bottomUpperText:SetTextColor(self:GetColor(color, alpha))
if not self.textColorOverride then
self.frame.bottomUpperText:SetTextColor(self:GetColor(color, alpha))
end
self.frame.bottomUpperText:SetText(text)
self.frame.bottomUpperText:SetWidth(0)
end
@ -1375,11 +1377,20 @@ function IceBarElement.prototype:SetBottomText2(text, color, alpha)
alpha = 1
end
self.frame.bottomLowerText:SetTextColor(self:GetColor(color, alpha))
if not self.textColorOverride then
self.frame.bottomLowerText:SetTextColor(self:GetColor(color, alpha))
end
self.frame.bottomLowerText:SetText(text)
self.frame.bottomLowerText:SetWidth(0)
end
function IceBarElement.prototype:SetCustomTextColor(fontInstance, colorTable)
if not fontInstance or not colorTable or type(colorTable) ~= "table" then
return
end
fontInstance:SetTextColor(colorTable.r, colorTable.g, colorTable.b)
end
function IceBarElement.prototype:SetTextAlpha()
if self.frame.bottomUpperText then