mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
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:
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# 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:
|
v1.14.34:
|
||||||
|
|
||||||
- Fix Vigor showing up sometimes when it shouldn't.
|
- Fix Vigor showing up sometimes when it shouldn't.
|
||||||
|
@ -58,6 +58,7 @@ function DragonridingVigor.prototype:CheckShouldShow(event, unit, info)
|
|||||||
local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID)
|
local info = C_UIWidgetManager.GetFillUpFramesWidgetVisualizationInfo(vigorWidgetID)
|
||||||
if not info or info.shownState == 0 then
|
if not info or info.shownState == 0 then
|
||||||
self:Show(false)
|
self:Show(false)
|
||||||
|
self.suppressHideBlizz = true
|
||||||
if self.moduleSettings.hideBlizz then
|
if self.moduleSettings.hideBlizz then
|
||||||
self:ShowBlizz()
|
self:ShowBlizz()
|
||||||
end
|
end
|
||||||
@ -91,6 +92,8 @@ function DragonridingVigor.prototype:UpdateVigorRecharge(event, widget)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.suppressHideBlizz = false
|
||||||
|
|
||||||
if event ~= "internal" then
|
if event ~= "internal" then
|
||||||
if self.moduleSettings.hideBlizz then
|
if self.moduleSettings.hideBlizz then
|
||||||
self:HideBlizz()
|
self:HideBlizz()
|
||||||
@ -167,7 +170,9 @@ function DragonridingVigor.prototype:ShowBlizz()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function DragonridingVigor.prototype:HideBlizz()
|
function DragonridingVigor.prototype:HideBlizz()
|
||||||
UIWidgetPowerBarContainerFrame:Hide()
|
if not self.suppressHideBlizz then
|
||||||
|
UIWidgetPowerBarContainerFrame:Hide()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Load us up
|
-- Load us up
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# 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:
|
v1.14.34:
|
||||||
|
|
||||||
- Fix Vigor showing up sometimes when it shouldn't.
|
- Fix Vigor showing up sometimes when it shouldn't.
|
||||||
|
Reference in New Issue
Block a user