From 0e6371692e943369b31fd07f957cee9b6ef12570 Mon Sep 17 00:00:00 2001 From: Jrc13245 Date: Sat, 21 Mar 2026 09:02:04 -0400 Subject: [PATCH] update for DragonFlightReloaded --- Extensions/Mouseover/DragonflightReloaded.lua | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/Extensions/Mouseover/DragonflightReloaded.lua b/Extensions/Mouseover/DragonflightReloaded.lua index e367fea..9789bcd 100644 --- a/Extensions/Mouseover/DragonflightReloaded.lua +++ b/Extensions/Mouseover/DragonflightReloaded.lua @@ -8,8 +8,12 @@ unit frames (PlayerFrame, TargetFrame, etc.) rather than creating its own. The Blizzard.lua extension already handles these frames with priority 3. - This extension is intentionally minimal - we just register to ensure - the extension system doesn't complain, but we don't need to hook anything. + DFRL hides the original HealthBar/ManaBar StatusBars and replaces them with + custom Frame-based bars (CreateStatusBar) that don't have EnableMouse. The + default PartyMemberFrame HitRectInsets (left=7 right=85) only cover the + portrait area, so hovering over the replacement bars never fires OnEnter. + We widen the hit rects so the Blizzard.lua hooks on the parent frames work + across the full visible area. ]] local _G = _G or getfenv(0) local CleveRoids = _G.CleveRoids or {} @@ -17,10 +21,23 @@ local CleveRoids = _G.CleveRoids or {} local Extension = CleveRoids.RegisterExtension("DragonflightReloaded") function Extension.OnLoad() - -- DragonflightReloaded modifies Blizzard's default unit frames - -- (PlayerFrame, TargetFrame, PetFrame, PartyMemberFrameX) - -- These are already handled by the Blizzard.lua extension - -- No additional hooks needed! + -- Widen hit rects on frames whose original StatusBars are hidden by DFRL. + -- Without this, the Blizzard.lua mouseover hooks on the parent frames only + -- fire in the portrait area, causing @mouseover to be skipped over bars. + for i = 1, 4 do + local frame = _G["PartyMemberFrame" .. i] + if frame and frame.SetHitRectInsets then + frame:SetHitRectInsets(0, 0, 0, 0) + end + local petFrame = _G["PartyMemberFrame" .. i .. "PetFrame"] + if petFrame and petFrame.SetHitRectInsets then + petFrame:SetHitRectInsets(0, 0, 0, 0) + end + end + local pet = _G["PetFrame"] + if pet and pet.SetHitRectInsets then + pet:SetHitRectInsets(0, 0, 0, 0) + end end _G["CleveRoids"] = CleveRoids