Skip to content

Commit

Permalink
Fixes #524 - Status Bars no longer hide with the UI in Pet battles
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Sep 4, 2024
1 parent cd98f6c commit df6a48b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Modules/Artwork/StatusBars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@ function module:CreateBarContainer(barManager, key, index)
barContainer:SetFrameStrata('LOW')
barContainer:SetFrameLevel(20)

-- Hide with SpartanUI
SpartanUI:HookScript('OnHide', function()
barContainer:Hide()
end)
SpartanUI:HookScript('OnShow', function()
barContainer:Show()
end)

self:SetupBarContainerVisuals(barContainer, barStyle)
self:SetupBarContainerPosition(barContainer, barStyle, index)

Expand Down

0 comments on commit df6a48b

Please sign in to comment.