From 51cdf9fb1f63c1990d981cfcd71ef86c72dad9a4 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 13 Jul 2010 02:51:26 +0000 Subject: [PATCH] - if "always display at full alpha" is checked for slice and dice bar, then don't let it hide itself --- modules/SliceAndDice.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/SliceAndDice.lua b/modules/SliceAndDice.lua index f04fa31..b3b8fcd 100644 --- a/modules/SliceAndDice.lua +++ b/modules/SliceAndDice.lua @@ -49,7 +49,11 @@ function SliceAndDice.prototype:Enable(core) self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateDurationBar") end - self:Show(false) + if not self.moduleSettings.alwaysFullAlpha then + self:Show(false) + else + self:UpdateSliceAndDice(self.unit) + end self:SetBottomText1("") end @@ -211,9 +215,9 @@ function SliceAndDice.prototype:UpdateSliceAndDice(unit, fromUpdate) if not fromUpdate or IceHUD.WowVer < 30000 then sndDuration, remaining = self:GetBuffDuration(self.unit, "Ability_Rogue_SliceDice") - if not remaining then + if not remaining then sndEndTime = 0 - else + else sndEndTime = remaining + now end end @@ -239,7 +243,9 @@ function SliceAndDice.prototype:UpdateSliceAndDice(unit, fromUpdate) self.frame:SetScript("OnUpdate", nil) end - self:Show(false) + if not self.moduleSettings.alwaysFullAlpha then + self:Show(false) + end end end