From 2db6ddea5788c44b6a754f170c6cb3246e879bd6 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 10 Feb 2024 10:47:04 -0600 Subject: [PATCH] Only hide Blizzard Vigor bar, not all fill-ups This fixes the bar from the Digging event in 10.2.5 not showing. For real this time. --- changelog.md | 4 ++++ modules/DragonridingVigor.lua | 20 ++++++++++++-------- this_version.md | 4 ++++ 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/changelog.md b/changelog.md index 5913610..fde8b4c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.36: + +- Really fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event. + v1.14.35: - Fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event. diff --git a/modules/DragonridingVigor.lua b/modules/DragonridingVigor.lua index 75f7d5b..00bdd2f 100644 --- a/modules/DragonridingVigor.lua +++ b/modules/DragonridingVigor.lua @@ -92,7 +92,12 @@ function DragonridingVigor.prototype:UpdateVigorRecharge(event, widget) return end - self.suppressHideBlizz = false + local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID) + if not info then + return + end + + self.suppressHideBlizz = not info or info.shownState == 0 if event ~= "internal" then if self.moduleSettings.hideBlizz then @@ -102,11 +107,6 @@ function DragonridingVigor.prototype:UpdateVigorRecharge(event, widget) end end - local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID) - if not info then - return - end - if info.numFullFrames == info.numTotalFrames then return end @@ -166,12 +166,16 @@ function DragonridingVigor.prototype:GetPartialRuneAtlas(rune) end function DragonridingVigor.prototype:ShowBlizz() - UIWidgetPowerBarContainerFrame:Show() + local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID) + if not info or info.shownState == 0 then + return + end + UIWidgetPowerBarContainerFrame.widgetFrames[vigorWidgetID]:Show() end function DragonridingVigor.prototype:HideBlizz() if not self.suppressHideBlizz then - UIWidgetPowerBarContainerFrame:Hide() + UIWidgetPowerBarContainerFrame.widgetFrames[vigorWidgetID]:Hide() end end diff --git a/this_version.md b/this_version.md index ff41a9e..acec5d2 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.36: + +- Really fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event. + v1.14.35: - Fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event.