From a91e21b404cbd2f06f96e65015041479964ee6f1 Mon Sep 17 00:00:00 2001 From: Sattva Date: Wed, 13 Sep 2023 17:27:41 +0300 Subject: [PATCH] DragFrames Fix no background displayed Fix dragframe not registering clicks. --- Leatrix_Plus.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 4577ea1..150366d 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -10283,11 +10283,14 @@ LeaPlusLC[dragframe] = dragframe dragframe:SetSize(realframe:GetSize()) dragframe:SetPoint("TOP", realframe, "TOP", 0, 2.5) - dragframe:SetBackdropColor(0.0, 0.5, 1.0) dragframe:SetBackdrop({ + bgFile = "Interface/Buttons/WHITE8X8", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = false, tileSize = 0, edgeSize = 16, insets = { left = 0, right = 0, top = 0, bottom = 0 }}) + + dragframe:SetBackdropColor(0.0, 0.5, 1.0, 0.5) -- Set the texture color and transparency of the background + dragframe:SetToplevel(true) dragframe:SetFrameStrata("HIGH") @@ -10298,6 +10301,8 @@ dragframe:Hide() realframe:SetMovable(true) + dragframe:EnableMouse(true) + -- Click handler dragframe:SetScript("OnMouseDown", function(self, btn)