Fixed an issue with the loot on the end of the mythic plus panel

This commit is contained in:
Tercio Jose
2024-07-31 18:53:54 -03:00
committed by andrew6180
parent 434b529cea
commit a65839529b
9 changed files with 54 additions and 14 deletions
+6 -3
View File
@@ -549,13 +549,16 @@ local setColorProperties = function(parent, widget, widgetTable, currentXOffset,
label:ClearAllPoints()
if (bAlignAsPairs) then
PixelUtil.SetPoint(label, "topleft", widget:GetParent(), "topleft", currentXOffset, currentYOffset)
PixelUtil.SetPoint(widget.widget, "left", label, "left", nAlignAsPairsLength, 0)
if (not widget.highlightFrame) then
local highlightFrame = createOptionHighlightFrame(widget, label, (widgetWidth or 140) + nAlignAsPairsLength + 5)
widget.highlightFrame = highlightFrame
end
----
widget._valueChangeHook = valueChangeHook
--widget.highlightFrame:SetScript("OnClick", highlightFrameOnClickToggle) --todo make this function for color picker color pick start
PixelUtil.SetPoint(label, "topleft", widget:GetParent(), "topleft", currentXOffset, currentYOffset)
PixelUtil.SetPoint(widget.widget, "right", widget.highlightFrame, "right", -3, 0)
else
if (widgetTable.boxfirst or bUseBoxFirstOnAllWidgets) then
label:SetPoint("left", widget.widget, "right", 2, 0)