Bug fixes for the Mythic+ End of Run panel

- General fixes applied to the Mythic+ Panel.
- The Mythic+ section in the options panel can now be translated.
- More fixes for text color.
This commit is contained in:
Tercio Jose
2024-02-08 11:46:31 -03:00
parent 1c0a0eaea0
commit 18e7464cef
4 changed files with 35 additions and 20 deletions
+11 -1
View File
@@ -792,7 +792,7 @@ end
--warning2:SetText("This is a concept of a cooldown tracker using the new library 'Open Raid' which uses comms to update cooldown timers.\nThe code to implement is so small that can fit inside a weakaura\nIf you're a coder, the implementation is on Details/frames/window_cdtracker.lua")
cooldownSelectionFrame:RegisterEvent("GROUP_ROSTER_UPDATE")
cooldownSelectionFrame:RegisterEvent("PLAYER_STARTED_MOVING")
--cooldownSelectionFrame:RegisterEvent("PLAYER_STARTED_MOVING") --debug
local maxClasses = 13
@@ -821,6 +821,10 @@ end
--below the player name, show a list in vertical with checkboxes to enable/disable cooldowns for that class
--use DetailsFramework:BuildMenuVolatile() to build the each list
if (not cooldownSelectionFrame:IsShown()) then
return
end
local amountOfUnits = GetNumGroupMembers()
if (amountOfUnits == 0) then
@@ -892,6 +896,12 @@ end
index = index + 1
end
end)
cooldownSelectionFrame:GetScript("OnEvent")(cooldownSelectionFrame, "GROUP_ROSTER_UPDATE")
cooldownSelectionFrame:SetScript("OnShow", function()
cooldownSelectionFrame:GetScript("OnEvent")(cooldownSelectionFrame, "GROUP_ROSTER_UPDATE")
end)
end
_G.DetailsPluginContainerWindow.OpenPlugin(_G.DetailsCDTrackerWindow)