Skip to content

Commit

Permalink
[fix] Automatically hide ECS frame when Blizzard Gear Manager is shown
Browse files Browse the repository at this point in the history
Fixes #214
  • Loading branch information
BreakBB committed Oct 23, 2022
1 parent 84b2eb1 commit 5880300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Modules/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,12 @@ function _Init.RegisterEvents(eventFrame)
eventFrame:RegisterEvent("GROUP_ROSTER_UPDATE") -- Triggered whenever someone joins or leaves the group (party and raid)
if ECS.IsWotlk then
eventFrame:RegisterEvent("SOCKET_INFO_SUCCESS") -- Triggers whenever the player successfully sockets an item

GearManagerDialog:SetScript("OnShow", function()
Stats:HideWindow()
end)
GearManagerDialog:SetScript("OnHide", function()
Stats:ShowWindow()
end)
end
end
4 changes: 4 additions & 0 deletions Modules/Stats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ function Stats:HideWindow()
_Stats.frame:SetShown(false)
end

function Stats:ShowWindow()
_Stats.frame:SetShown(true)
end

function Stats:GetFrame()
return _Stats.frame
end
Expand Down

0 comments on commit 5880300

Please sign in to comment.