mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- if "always display at full alpha" is checked for slice and dice bar, then don't let it hide itself
This commit is contained in:
@ -49,7 +49,11 @@ function SliceAndDice.prototype:Enable(core)
|
|||||||
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateDurationBar")
|
self:RegisterEvent("PLAYER_COMBO_POINTS", "UpdateDurationBar")
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Show(false)
|
if not self.moduleSettings.alwaysFullAlpha then
|
||||||
|
self:Show(false)
|
||||||
|
else
|
||||||
|
self:UpdateSliceAndDice(self.unit)
|
||||||
|
end
|
||||||
|
|
||||||
self:SetBottomText1("")
|
self:SetBottomText1("")
|
||||||
end
|
end
|
||||||
@ -211,9 +215,9 @@ function SliceAndDice.prototype:UpdateSliceAndDice(unit, fromUpdate)
|
|||||||
if not fromUpdate or IceHUD.WowVer < 30000 then
|
if not fromUpdate or IceHUD.WowVer < 30000 then
|
||||||
sndDuration, remaining = self:GetBuffDuration(self.unit, "Ability_Rogue_SliceDice")
|
sndDuration, remaining = self:GetBuffDuration(self.unit, "Ability_Rogue_SliceDice")
|
||||||
|
|
||||||
if not remaining then
|
if not remaining then
|
||||||
sndEndTime = 0
|
sndEndTime = 0
|
||||||
else
|
else
|
||||||
sndEndTime = remaining + now
|
sndEndTime = remaining + now
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -239,7 +243,9 @@ function SliceAndDice.prototype:UpdateSliceAndDice(unit, fromUpdate)
|
|||||||
self.frame:SetScript("OnUpdate", nil)
|
self.frame:SetScript("OnUpdate", nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Show(false)
|
if not self.moduleSettings.alwaysFullAlpha then
|
||||||
|
self:Show(false)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user