From 18fa31807c72c751f3e8465201d93ab1deffec28 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 1 Apr 2023 20:58:25 -0500 Subject: [PATCH] Hide Debuff frame along with Buffs if desired --- changelog.md | 1 + modules/PlayerInfo.lua | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/changelog.md b/changelog.md index 3160fb2..683e1aa 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ v1.14.18: - 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. - 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: diff --git a/modules/PlayerInfo.lua b/modules/PlayerInfo.lua index 6d91db7..6bfb95e 100644 --- a/modules/PlayerInfo.lua +++ b/modules/PlayerInfo.lua @@ -115,6 +115,13 @@ end function PlayerInfo.prototype:ShowBlizz() BuffFrame:Show() + if DebuffFrame then + DebuffFrame:Show() + DebuffFrame:GetScript("OnLoad")(DebuffFrame) + if DebuffFrame.Update then + DebuffFrame:Update() + end + end if TemporaryEnchantFrame then TemporaryEnchantFrame:Show() end @@ -128,6 +135,10 @@ end function PlayerInfo.prototype:HideBlizz() BuffFrame:Hide() + if DebuffFrame then + DebuffFrame:Hide() + DebuffFrame:UnregisterAllEvents() + end if TemporaryEnchantFrame then TemporaryEnchantFrame:Hide() end