- added option to use out-of-combat alpha on class power bars (holy power, shards) when targeting a friendly

This commit is contained in:
Parnic
2010-10-15 04:48:46 +00:00
parent 5c122c227d
commit af0c4c7023
2 changed files with 30 additions and 2 deletions

View File

@ -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