Auto-blacklist buttons without RegisterForClicks
Jim Whitehead [07-20-16 - 05:43]
Auto-blacklist buttons without RegisterForClicks
The new nameplates inherit from the compact raid frame templates, but
don't have all of the methods needed to work with click-casting, so for
now we'll auto-blacklist all of those frames.
diff --git a/Clique.lua b/Clique.lua
index bfbc7b4..df58b66 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -910,6 +910,13 @@ function addon:IsFrameBlacklisted(frame)
if type(frame) == "table" then
name = frame.GetName and frame:GetName()
end
+
+ -- Not sure how to make this work with buttons that don't have
+ -- the RegisterForClicks method, so always blacklist those
+ if not button.RegisterForClicks then
+ return true
+ end
+
return self.settings.blacklist[name]
end