- minor cleanup of the animation/scale-setting code to avoid duplicating chunks of code

This commit is contained in:
Parnic
2010-03-31 16:31:38 +00:00
parent 87cf1d74c6
commit ca4107446e
3 changed files with 25 additions and 40 deletions

View File

@ -201,7 +201,7 @@ function IceCastBar.prototype:FlashBar(color, alpha, text, textColor)
self.frame.bg:SetVertexColor(r, g, b, 0.3)
self.barFrame.bar:SetVertexColor(self:GetColor(color, 0.8))
self:SetScale(self.barFrame.bar, 1)
self:SetScale(1)
self:SetBottomText1(text, textColor or "Text")
end