mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a toggle for the "override alpha" behavior that displays class counters at in-combat alpha when out of combat if the counter isn't full/empty
This commit is contained in:
@ -293,6 +293,24 @@ function IceClassPowerCounter.prototype:GetOptions()
|
|||||||
order = 42,
|
order = 42,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
opts["overrideAlpha"] = {
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Override alpha when not full"],
|
||||||
|
desc = L["If your class power is not full (or not empty in the case of Holy Power) then the module will always be displayed on your screen using the In Combat alpha setting. Otherwise it will fade to the OOC alpha when you leave combat."],
|
||||||
|
width = "double",
|
||||||
|
get = function()
|
||||||
|
return self.moduleSettings.overrideAlpha
|
||||||
|
end,
|
||||||
|
set = function(info, v)
|
||||||
|
self.moduleSettings.overrideAlpha = v
|
||||||
|
self:UpdateAlpha()
|
||||||
|
end,
|
||||||
|
disabled = function()
|
||||||
|
return not self.moduleSettings.enabled
|
||||||
|
end,
|
||||||
|
order = 43,
|
||||||
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -317,6 +335,7 @@ function IceClassPowerCounter.prototype:GetDefaultSettings()
|
|||||||
defaults["customColor"] = {r=1, g=0, b=0, a=1}
|
defaults["customColor"] = {r=1, g=0, b=0, a=1}
|
||||||
defaults["hideFriendly"] = false
|
defaults["hideFriendly"] = false
|
||||||
defaults["pulseWhenFull"] = true
|
defaults["pulseWhenFull"] = true
|
||||||
|
defaults["overrideAlpha"] = true
|
||||||
|
|
||||||
return defaults
|
return defaults
|
||||||
end
|
end
|
||||||
@ -650,6 +669,10 @@ function IceClassPowerCounter.prototype:HideBlizz()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IceClassPowerCounter.prototype:UseTargetAlpha()
|
function IceClassPowerCounter.prototype:UseTargetAlpha()
|
||||||
|
if not self.moduleSettings.overrideAlpha then
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
if self.bTreatEmptyAsFull then
|
if self.bTreatEmptyAsFull then
|
||||||
return self.lastNumReady > 0
|
return self.lastNumReady > 0
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user