DragFrames
Fix no background displayed Fix dragframe not registering clicks.
This commit is contained in:
parent
6b08b5ffc7
commit
a91e21b404
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue