From fa966b99305f8172b76bfa151dfa8648922bfa2e Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 3 Oct 2020 19:21:37 +0200 Subject: [PATCH] unitframes: add clique support to all frames --- api/unitframes.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 32d85f11..03d6bdd6 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1093,6 +1093,10 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) f:Hide() end + -- register frame for clique + _G.ClickCastFrames = ClickCastFrames or {} + ClickCastFrames[f] = true + table.insert(pfUI.uf.frames, f) return f end