mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Hide Debuff frame along with Buffs if desired
This commit is contained in:
@ -5,6 +5,7 @@ v1.14.18:
|
|||||||
- Fixed Runic Power showing on a scale of 0-1000+ instead of 0-100+ with DogTags off
|
- Fixed Runic Power showing on a scale of 0-1000+ instead of 0-100+ with DogTags off
|
||||||
- Added option (enabled by default) to hide mod during cataloging.
|
- Added option (enabled by default) to hide mod during cataloging.
|
||||||
- Fixed "Hide Blizzard Buffs" option on PlayerInfo causing errors and "?" icons when toggling off.
|
- Fixed "Hide Blizzard Buffs" option on PlayerInfo causing errors and "?" icons when toggling off.
|
||||||
|
- Also hide Debuff frame if it exists (Dragonflight+) when enabling "Hide Blizzard Buffs" in the PlayerInfo module.
|
||||||
|
|
||||||
v1.14.17:
|
v1.14.17:
|
||||||
|
|
||||||
|
@ -115,6 +115,13 @@ end
|
|||||||
|
|
||||||
function PlayerInfo.prototype:ShowBlizz()
|
function PlayerInfo.prototype:ShowBlizz()
|
||||||
BuffFrame:Show()
|
BuffFrame:Show()
|
||||||
|
if DebuffFrame then
|
||||||
|
DebuffFrame:Show()
|
||||||
|
DebuffFrame:GetScript("OnLoad")(DebuffFrame)
|
||||||
|
if DebuffFrame.Update then
|
||||||
|
DebuffFrame:Update()
|
||||||
|
end
|
||||||
|
end
|
||||||
if TemporaryEnchantFrame then
|
if TemporaryEnchantFrame then
|
||||||
TemporaryEnchantFrame:Show()
|
TemporaryEnchantFrame:Show()
|
||||||
end
|
end
|
||||||
@ -128,6 +135,10 @@ end
|
|||||||
|
|
||||||
function PlayerInfo.prototype:HideBlizz()
|
function PlayerInfo.prototype:HideBlizz()
|
||||||
BuffFrame:Hide()
|
BuffFrame:Hide()
|
||||||
|
if DebuffFrame then
|
||||||
|
DebuffFrame:Hide()
|
||||||
|
DebuffFrame:UnregisterAllEvents()
|
||||||
|
end
|
||||||
if TemporaryEnchantFrame then
|
if TemporaryEnchantFrame then
|
||||||
TemporaryEnchantFrame:Hide()
|
TemporaryEnchantFrame:Hide()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user