- separated alpha settings for "OOC and target" and "OOC and not full"; existing user settings are preserved (target gets copied to the new Not Full setting) the first time this version (or later) of the addon is loaded by a user with existing settings

This commit is contained in:
Parnic
2009-01-06 07:41:27 +00:00
parent 4df215afc8
commit 1a6ff9fe7f
4 changed files with 67 additions and 6 deletions

View File

@ -739,9 +739,12 @@ function IceBarElement.prototype:UpdateBar(scale, color, alpha)
if (self.combat) then
self.alpha = self.settings.alphaic
self.backgroundAlpha = self.settings.alphaicbg
elseif (self.target or self:UseTargetAlpha(scale)) then
elseif (self.target) then
self.alpha = self.settings.alphaTarget
self.backgroundAlpha = self.settings.alphaTargetbg
elseif (self:UseTargetAlpha(scale)) then
self.alpha = self.settings.alphaNotFull
self.backgroundAlpha = self.settings.alphaNotFullbg
else
self.alpha = self.settings.alphaooc
self.backgroundAlpha = self.settings.alphaoocbg