DragFrames

Fix no background displayed
Fix dragframe not registering clicks.
This commit is contained in:
Sattva
2023-09-13 17:27:41 +03:00
parent 6b08b5ffc7
commit a91e21b404
+6 -1
View File
@@ -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)