From b85b9a48ad8a3ec5f1b158025be72bca6a8b763d Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 9 Oct 2008 15:41:01 +0000 Subject: [PATCH] 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 --- IceHUD.toc | 4 ++-- modules/Threat.lua | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/IceHUD.toc b/IceHUD.toc index ab072f4..3edeecb 100644 --- a/IceHUD.toc +++ b/IceHUD.toc @@ -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 diff --git a/modules/Threat.lua b/modules/Threat.lua index 17b2cc9..46f8c00 100644 --- a/modules/Threat.lua +++ b/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)