From 6399796175a65227901698d427caa8aa1a77628b Mon Sep 17 00:00:00 2001 From: iceroth Date: Fri, 21 Jul 2006 19:11:13 +0000 Subject: [PATCH] Fixed AlphaOOC 0 problem with bar texts --- IceBarElement.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index 10ddcce..8c0dbdc 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -299,10 +299,15 @@ function IceBarElement.prototype:SetBottomText2(text, color, alpha) color = "text" end if not (alpha) then - alpha = self.alpha + 0.1 - if (alpha > 1) then - alpha = 1 + -- 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)