- added a cooldown wipe to Runes with a "shine" when the cooldown is over (cooldown currently displays in a square instead of adhering to the circular icon...working on that)

- added the ability for elements to boost the alpha value a bit. runes were way too dark previously
- removed all of the background code for runes since the cooldown wipe makes it extraneous
This commit is contained in:
Parnic
2008-11-14 18:00:33 +00:00
parent 9f972d7c84
commit ac6ecf5b69
2 changed files with 56 additions and 30 deletions

View File

@ -223,9 +223,18 @@ function IceElement.prototype:UpdateAlpha()
self.backgroundAlpha = self.settings.alphaoocbg
end
if self.alpha ~= 0 then
self.alpha = math.min(1, self.alpha + self:GetAlphaAdd())
end
self.frame:SetAlpha(self.alpha)
end
-- use this to add some value to alpha every time. if you always want an element to be slightly brighter than the actual alpha for visibility
function IceElement.prototype:GetAlphaAdd()
return 0
end
function IceElement.prototype:GetColors()
return self.settings.colors