From cdfd797f4744fd9e229c81355ebe52e06a196526 Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Sun, 16 Aug 2020 20:40:58 +0200 Subject: [PATCH] Update for v90001 pre-patch - Fix an issue with backdrop inheritance - Stop using names to detect frame sub components --- BlizzardFrames.lua | 16 +++++----------- Clique.toc | 2 +- Clique.xml | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) 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 @@ -