mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -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
|
||||
|
Reference in New Issue
Block a user