Update for v90001 pre-patch
Jim Whitehead [08-16-20 - 18:40]
Update for v90001 pre-patch
- Fix an issue with backdrop inheritance
- Stop using names to detect frame sub components
diff --git a/BlizzardFrames.lua b/BlizzardFrames.lua
index 94dc9a6..9503778 100755
--- a/BlizzardFrames.lua
+++ b/BlizzardFrames.lua
@@ -165,7 +165,7 @@ local function enable(frame)
end
-- skip the nameplates, they're TEHBROKEN
- if frame and frame.GetName and frame:GetName():match("^NamePlate") then
+ if frame and frame.GetName and frame:GetName() and frame:GetName() :match("^NamePlate") then
return
end
@@ -183,18 +183,12 @@ function addon:Enable_BlizzCompactUnitFrames()
return
end
- local name = frame and frame.GetName and frame:GetName()
for i = 1, 3 do
- local buff = _G[name .. "Buff" .. i]
- local debuff = _G[name .. "Debuff" .. i]
- local dispel = _G[name .. "DispelDebuff" .. i]
- local statusIcon = _G[name .. "CenterStatusIcon" .. i]
-
- if buff then enable(buff) end
- if debuff then enable(debuff) end
- if dispel then enable(dispel) end
- if statusIcon then enable(statusIcon) end
+ local buffFrame = frame.BuffFrame
+
+ if buffFrame then enable(buffFrame) end
end
+
enable(frame)
end)
end
diff --git a/Clique.toc b/Clique.toc
index ad67069..b591d43 100755
--- a/Clique.toc
+++ b/Clique.toc
@@ -1,4 +1,4 @@
-## Interface: 80200
+## Interface: 900001
## Title: Clique
## Author: Cladhaire
## Version: @project-version@
diff --git a/Clique.xml b/Clique.xml
index b5223e5..a71b09a 100755
--- a/Clique.xml
+++ b/Clique.xml
@@ -454,7 +454,7 @@
</Button>
<!-- Wrap the scroll frame in a frame that can capture clicks -->
- <Button name="CliqueClickGrabber" parentKey="clickGrabber">
+ <Button name="CliqueClickGrabber" parentKey="clickGrabber" inherits="BackdropTemplate">
<Size x="320" y="160"/>
<Anchors>
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">