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.
This commit is contained in:
Parnic
2024-02-10 10:47:04 -06:00
parent 7e4a6ecab6
commit 2db6ddea57
3 changed files with 20 additions and 8 deletions

View File

@ -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