Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Core/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ function BetterCooldownManager:OnEnable()
BCDM:CreateCooldownViewerOverlays()
end)
BCDM:SetupEditModeManager()
C_Timer.After(1, function() BCDM:RestoreMirrorFrames() end)
end
4 changes: 4 additions & 0 deletions Core/EventManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ function BCDM:SetupEventManager()
if unit ~= "player" then return end
LEMO:ApplyChanges()
BCDM:UpdateBCDM()
BCDM:RestoreMirrorFrames()
else
BCDM:UpdateBCDM()
if event == "PLAYER_ENTERING_WORLD" or event == "LOADING_SCREEN_DISABLED" then
C_Timer.After(1, function() BCDM:RestoreMirrorFrames() end)
end
end
end)
end
25 changes: 25 additions & 0 deletions Core/Globals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -637,3 +637,28 @@ StaticPopupDialogs["BCDM_RELOAD"] = {
function BCDM:PromptReload()
StaticPopup_Show("BCDM_RELOAD")
end

function BCDM:RestoreMirrorFrames()
local container = MirrorTimerContainer or MirrorTimerFrame
if not container then
return
end

container:Show()
container:Raise()

for i = 1, 5 do
local mirror = _G["MirrorTimer" .. i] or _G["MirrorTimer" .. i .. "Bar"]
if mirror then
mirror:Show()
mirror:Raise()
if mirror.Update then
mirror:Update()
end
end
end

if MirrorTimerFrame_Update then
MirrorTimerFrame_Update()
end
end
5 changes: 4 additions & 1 deletion Modules/CastBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ function BCDM:CreateCastBar()
if CastBarDB.Icon.Enabled then CastBar.Icon:Show() else CastBar.Icon:Hide() end

CastBar:Hide()
PlayerCastingBarFrame:UnregisterAllEvents()
PlayerCastingBarFrame:SetAlpha(0)
PlayerCastingBarFrame:EnableMouse(false)
PlayerCastingBarFrame:SetScript("OnShow", nil)
PlayerCastingBarFrame:SetScript("OnHide", nil)
end
end

Expand Down