update for DragonFlightReloaded

This commit is contained in:
Jrc13245
2026-03-21 09:02:04 -04:00
parent 72de9a00cc
commit 0e6371692e
+23 -6
View File
@@ -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