Attempt to fix other uses of PowerBarContainer

Apparently other things are now using the game's UIWidgetPowerBarContainerFrame but we're forcing it to be hidden due to a variety of factors. This attempts to restrict the Hide behavior of that frame to only when we're Dragonriding.
This commit is contained in:
Parnic
2024-01-21 12:36:15 -06:00
parent af33ab9781
commit 7e4a6ecab6
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
v1.14.35:
- Fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event.
v1.14.34:
- Fix Vigor showing up sometimes when it shouldn't.

View File

@ -58,6 +58,7 @@ function DragonridingVigor.prototype:CheckShouldShow(event, unit, info)
local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID)
if not info or info.shownState == 0 then
self:Show(false)
self.suppressHideBlizz = true
if self.moduleSettings.hideBlizz then
self:ShowBlizz()
end
@ -91,6 +92,8 @@ function DragonridingVigor.prototype:UpdateVigorRecharge(event, widget)
return
end
self.suppressHideBlizz = false
if event ~= "internal" then
if self.moduleSettings.hideBlizz then
self:HideBlizz()
@ -167,7 +170,9 @@ function DragonridingVigor.prototype:ShowBlizz()
end
function DragonridingVigor.prototype:HideBlizz()
UIWidgetPowerBarContainerFrame:Hide()
if not self.suppressHideBlizz then
UIWidgetPowerBarContainerFrame:Hide()
end
end
-- Load us up

View File

@ -1,5 +1,9 @@
# Changelog
v1.14.35:
- Fix IceHUD stomping on other uses of the PowerBarContainer such as the Digging bar for the Archive event.
v1.14.34:
- Fix Vigor showing up sometimes when it shouldn't.