mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added option to use out-of-combat alpha on class power bars (holy power, shards) when targeting a friendly
This commit is contained in:
@ -231,7 +231,7 @@ function IceElement.prototype:UpdateAlpha()
|
||||
if (self.combat) then
|
||||
self.alpha = self.settings.alphaic
|
||||
self.backgroundAlpha = self.settings.alphaicbg
|
||||
elseif (self.target) then
|
||||
elseif (self.target and not self:AlphaPassThroughTarget()) then
|
||||
self.alpha = self.settings.alphaTarget
|
||||
self.backgroundAlpha = self.settings.alphaTargetbg
|
||||
elseif (self:UseTargetAlpha(scale)) then
|
||||
@ -249,6 +249,10 @@ function IceElement.prototype:UpdateAlpha()
|
||||
self.frame:SetAlpha(self.alpha)
|
||||
end
|
||||
|
||||
function IceElement.prototype:AlphaPassThroughTarget()
|
||||
return false
|
||||
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
|
||||
|
Reference in New Issue
Block a user