Fixed AlphaOOC 0 problem with bar texts

This commit is contained in:
iceroth
2006-07-21 19:11:13 +00:00
parent 30d82c07fe
commit 6399796175

View File

@ -299,11 +299,16 @@ function IceBarElement.prototype:SetBottomText2(text, color, alpha)
color = "text"
end
if not (alpha) then
-- boost text alpha a bit to make it easier to see
if (self.alpha > 0) then
alpha = self.alpha + 0.1
if (alpha > 1) then
alpha = 1
end
end
end
self.frame.bottomLowerText:SetTextColor(self:GetColor(color, alpha))
self.frame.bottomLowerText:SetText(text)
end