General round of fixes, implementations and polishing
- Polished tooltips from damage and healing done. - Added new sound: "Details Truck". - Added 'right click to close' icons before the phrase, also the text is move visible now. - Added ReopenAllWindows() as alias for a Portuguese function named ReabrirTodasInstancias(). - Added a close button for the breakdown options panel. - Added support for mask in the spec icons shown in the regular window. Require to add: Instance.row_info.icon_mas = masktexture. - Event "COMBAT_MYTHICPLUS_OVERALL_READY" now sends the overall mythic+ combat as payload.
This commit is contained in:
@@ -317,6 +317,19 @@ function Details:SetWindowColor(r, g, b, a)
|
||||
colorTable[2] = g
|
||||
colorTable[3] = b
|
||||
colorTable[4] = a
|
||||
|
||||
local instanceTable = Details:GetAllInstances()
|
||||
for _, instance in ipairs(instanceTable) do
|
||||
if (instance:IsEnabled()) then
|
||||
local baseFrame = instance.baseframe
|
||||
local fullWindowFrame = baseFrame.fullWindowFrame
|
||||
if (fullWindowFrame.__rcorners) then
|
||||
if (fullWindowFrame.BottomHorizontalEdge:IsShown()) then
|
||||
fullWindowFrame:SetColor(r, g, b, a)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
---open the breakdown window
|
||||
@@ -870,6 +883,9 @@ function Details:CreateBreakdownWindow()
|
||||
statusBar.Text.fontcolor = fontColor
|
||||
end
|
||||
|
||||
local rightClickToCloseLabel = Details:CreateRightClickToCloseLabel(statusBar)
|
||||
rightClickToCloseLabel:SetPoint("right", -332, 4)
|
||||
|
||||
--set default text
|
||||
breakdownWindowFrame:SetStatusbarText()
|
||||
|
||||
|
||||
@@ -33,6 +33,9 @@ local createOptionsPanel = function()
|
||||
--apply rounded corners with the breakdown window preset
|
||||
DF:AddRoundedCornersToFrame(optionsFrame, Details.PlayerBreakdown.RoundedCornerPreset)
|
||||
|
||||
local closeButton = DF:CreateCloseButton(optionsFrame, "$parentTopRightCloseButton")
|
||||
closeButton:SetPoint("topright", optionsFrame, "topright", -5, -5)
|
||||
|
||||
Details:RefreshWindowColor()
|
||||
|
||||
local resetSettings = function()
|
||||
@@ -93,16 +96,16 @@ local createOptionsPanel = function()
|
||||
|
||||
--/run Details.frame_background_color = {0.1215, 0.1176, 0.1294, 0.934}
|
||||
|
||||
local normalizedRed = DF.Math.MapRangeClamped(0, 1, 0, 0.1215, r)
|
||||
local normalizedGreen = DF.Math.MapRangeClamped(0, 1, 0, 0.1176, g)
|
||||
local normalizedBlue = DF.Math.MapRangeClamped(0, 1, 0, 0.1294, b)
|
||||
local normalizedAlpha = DF.Math.MapRangeClamped(0, 1, 0.8, 0.98, a)
|
||||
r = math.min(r, 0.1215)
|
||||
g = math.min(g, 0.1176)
|
||||
b = math.min(b, 0.1294)
|
||||
a = math.min(a, 0.934)
|
||||
|
||||
colorTable[1] = normalizedRed
|
||||
colorTable[2] = normalizedGreen
|
||||
colorTable[3] = normalizedBlue
|
||||
colorTable[4] = normalizedAlpha
|
||||
Details:SetWindowColor(normalizedRed, normalizedGreen, normalizedBlue, normalizedAlpha)
|
||||
colorTable[1] = r
|
||||
colorTable[2] = g
|
||||
colorTable[3] = b
|
||||
colorTable[4] = a
|
||||
Details:SetWindowColor(r, g, b, a)
|
||||
end,
|
||||
name = "Background Color",
|
||||
desc = "Background Color",
|
||||
|
||||
Reference in New Issue
Block a user