From 87399827b8a8910e79723e3462d62fa2b18c3525 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Wed, 20 Sep 2023 21:53:44 +0200 Subject: [PATCH] core: Fix contextual ping on suffix units (#659) --- ouf.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ouf.lua b/ouf.lua index e80ec14c..802d258b 100644 --- a/ouf.lua +++ b/ouf.lua @@ -346,6 +346,17 @@ local function initObject(unit, style, styleFunc, header, ...) func(object) end + --[[ frame.IsPingable + This boolean can be set to false to disable the frame from being pingable. Enabled by default. + --]] + --[[ Override: frame:GetContextualPingType() + Used to define which contextual ping is used for the frame. + + By default this wraps `C_Ping.GetContextualPingTypeForUnit(UnitGUID(frame.unit))`. + --]] + object:SetAttribute('ping-receiver', true) + Mixin(object, PingableType_UnitFrameMixin) + -- Make Clique kinda happy if(not object.isNamePlate) then _G.ClickCastFrames = _G.ClickCastFrames or {} @@ -361,17 +372,6 @@ local function walkObject(object, unit) local header = parent:GetAttribute('oUF-headerType') and parent - --[[ frame.IsPingable - This boolean can be set to false to disable the frame from being pingable. Enabled by default. - --]] - --[[ Override: frame:GetContextualPingType() - Used to define which contextual ping is used for the frame. - - By default this wraps `C_Ping.GetContextualPingTypeForUnit(UnitGUID(frame.unit))`. - --]] - object:SetAttribute('ping-receiver', true) - Mixin(object, PingableType_UnitFrameMixin) - -- Check if we should leave the main frame blank. if(object:GetAttribute('oUF-onlyProcessChildren')) then object.hasChildren = true