End of mythic+ panel updates, training dummy icon, etc.

- Added a round of polishing into the end of mythic+ panel.
- Added: Details:RegisterFrameToColor(frame) the registered frame will use the same color scheme of all the other frames from Details!.
- Segments menu will show a different icon for training dummies.
- Fixed functions that retrieve information about a dungeon.
- Fixed an issue while trying to report using the "Report Results" from the report results tooltip.
This commit is contained in:
Tercio Jose
2024-03-07 16:05:47 -03:00
parent b7e6b89792
commit c4ee7e89ea
17 changed files with 217 additions and 91 deletions
@@ -263,6 +263,14 @@ Details.PlayerBreakdown.RoundedCornerPreset = {
color = {.1, .1, .1, 0.834},
}
Details222.RegisteredFramesToColor = {}
function Details:RegisterFrameToColor(frame)
Details222.RegisteredFramesToColor[#Details222.RegisteredFramesToColor+1] = frame
local colorTable = Details.frame_background_color
frame:SetColor(unpack(colorTable))
end
function Details:RefreshWindowColor()
local colorTable = Details.frame_background_color
Details:SetWindowColor(unpack(colorTable))
@@ -290,6 +298,10 @@ function Details:SetWindowColor(r, g, b, a)
DetailsSpellBreakdownOptionsPanel:SetColor(r, g, b, a)
end
for idx, frame in ipairs(Details222.RegisteredFramesToColor) do
frame:SetColor(r, g, b, a)
end
local colorTable = Details.frame_background_color
colorTable[1] = r
colorTable[2] = g