From c37a245db40855b55b02fcf339fdea9c97e6be19 Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Wed, 20 Jul 2016 07:43:00 +0200 Subject: [PATCH] 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. --- Clique.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 1.7.9.5