Fixed "Time out of combat" after mythic+ and another round of polishing frames and menus

This commit is contained in:
Tercio Jose
2024-03-06 14:50:56 -03:00
parent 9c23a8a8af
commit b7e6b89792
14 changed files with 133 additions and 95 deletions
+1 -1
View File
@@ -2164,6 +2164,7 @@ function detailsFramework:CreateSimplePanel(parent, width, height, title, frameN
local titleBar = CreateFrame("frame", frameName .. "TitleBar", simplePanel, "BackdropTemplate")
if (panelOptions.RoundedCorners) then
--a key named "TitleBar" is created by the rounded corners function
simplePanel.TitleBar:SetColor(.2, .2, .2, 0.4)
simplePanel.TitleBar:SetBorderCornerColor(0, 0, 0, 0)
@@ -2175,7 +2176,6 @@ function detailsFramework:CreateSimplePanel(parent, width, height, title, frameN
titleBar:SetBackdrop(SimplePanel_frame_backdrop)
titleBar:SetBackdropColor(.2, .2, .2, 1)
titleBar:SetBackdropBorderColor(0, 0, 0, 1)
simplePanel.TitleBar = titleBar
end
local close = CreateFrame("button", frameName and frameName .. "CloseButton", titleBar)
+4
View File
@@ -430,6 +430,7 @@ detailsFramework.RoundedCornerPanelMixin = {
error("df_roundedpanel:CalculateBorderEdgeSize(self, alignment) alignment must be 'vertical' or 'horizontal'")
end,
---create the border textures
---@param self df_roundedpanel
CreateBorder = function(self)
local r, g, b, a = 0, 0, 0, 0.8
@@ -492,6 +493,7 @@ detailsFramework.RoundedCornerPanelMixin = {
self.bHasBorder = true
end,
---set the color of the titlebar
---@param self df_roundedpanel
---@param red any
---@param green number|nil
@@ -504,6 +506,7 @@ detailsFramework.RoundedCornerPanelMixin = {
end
end,
---set the color of the border corners
---@param self df_roundedpanel
---@param red any
---@param green number|nil
@@ -525,6 +528,7 @@ detailsFramework.RoundedCornerPanelMixin = {
end
end,
---set the background color of the rounded panel
---@param self df_roundedpanel
---@param red any
---@param green number|nil