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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user