mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
v.1.3.2 - bumped toc version of icehud to 1.3.2 in preparation of the next repo tag
- made aggro alpha setting on the threat bar actually work
This commit is contained in:
@ -3,11 +3,10 @@
|
||||
## Name: IceHUD
|
||||
## Title: IceHUD |cff7fff7f -Ace2-|r
|
||||
## Notes: Another HUD addon
|
||||
## Version: 1.3 ($Revision$)
|
||||
## Version: 1.3.2 ($Revision$)
|
||||
## SavedVariables: IceCoreDB
|
||||
## OptionalDeps: Ace2, Ace3, LibSharedMedia-3.0, Waterfall-1.0, Deformat, LibDogTag-3.0, LibDogTag-Unit-3.0, LibDruidMana-1.0, LibRangeCheck-2.0, Threat-2.0
|
||||
## X-Category: HUDs
|
||||
## X-Date: $Date$
|
||||
## X-Website: http://www.wowace.com/projects/wowace-ice-hud/
|
||||
|
||||
# Libraries
|
||||
@ -48,6 +47,7 @@ modules\FocusMana.lua
|
||||
modules\FocusCast.lua
|
||||
modules\LacerateCount.lua
|
||||
modules\Runes.lua
|
||||
# - make sure TargetOfTarget health/mana load after TargetHealth/TargetMana since they inherit
|
||||
modules\TargetOfTargetHealth.lua
|
||||
modules\TargetOfTargetMana.lua
|
||||
modules\Threat.lua
|
||||
|
@ -33,6 +33,7 @@ function IHUD_Threat.prototype:GetDefaultSettings()
|
||||
settings["side"] = IceCore.Side.Left
|
||||
settings["offset"] = 3
|
||||
settings["enabled"] = false
|
||||
settings["aggroAlpha"] = 0.7
|
||||
return settings
|
||||
end
|
||||
|
||||
@ -61,6 +62,27 @@ function IHUD_Threat.prototype:GetOptions()
|
||||
order = 20
|
||||
}
|
||||
|
||||
opts["aggroAlpha"] =
|
||||
{
|
||||
type = 'range',
|
||||
name = 'Aggro Indicator',
|
||||
desc = 'Aggro indicator alpha (0 is disabled)',
|
||||
min = 0,
|
||||
max = 1,
|
||||
step = 0.1,
|
||||
get = function()
|
||||
return self.moduleSettings.aggroAlpha
|
||||
end,
|
||||
set = function(value)
|
||||
self.moduleSettings.aggroAlpha = value
|
||||
self:Redraw()
|
||||
end,
|
||||
disabled = function()
|
||||
return not self.moduleSettings.enabled
|
||||
end,
|
||||
order = 21
|
||||
}
|
||||
|
||||
return opts
|
||||
end
|
||||
|
||||
@ -111,7 +133,7 @@ function IHUD_Threat.prototype:CreateAggroBar()
|
||||
if (self.settings.backgroundToggle) then
|
||||
r, g, b = self:GetColor("CastCasting")
|
||||
end
|
||||
self.aggroBar:SetStatusBarColor(r, g, b, self.moduleSettings.lagAlpha)
|
||||
self.aggroBar:SetStatusBarColor(r, g, b, self.moduleSettings.aggroAlpha)
|
||||
|
||||
if (self.moduleSettings.side == IceCore.Side.Left) then
|
||||
self.aggroBar.bar:SetTexCoord(1, 0, 0, 0)
|
||||
|
Reference in New Issue
Block a user