removed debug code... opsie

This commit is contained in:
Meow
2026-03-20 20:18:09 +01:00
parent 0a4881b2c0
commit e2f68a9dc1
+2 -9
View File
@@ -4,7 +4,6 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
-- hide blizzard raid group frames so they don't overlap pfUI raid frames
local function HideBlizzardRaidFrames()
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF6600pfUI-Debug:|r HideBlizzardRaidFrames called")
for i = 1, NUM_RAID_GROUPS do
local frame = _G["RaidGroup"..i]
if frame then
@@ -12,14 +11,11 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
frame:Hide()
frame:UnregisterAllEvents()
frame.Show = function()
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF0000pfUI-Debug:|r RaidGroup"..i..":Show() blocked!")
return
return
end
if wasVisible == "visible" then
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF6600pfUI-Debug:|r RaidGroup"..i.." was "..wasVisible..", now hidden")
end
end
else
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF6600pfUI-Debug:|r RaidGroup"..i.." does not exist yet!")
end
end
for i = 1, MAX_RAID_MEMBERS do
@@ -35,16 +31,13 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
-- run once when Blizzard_RaidUI loads
HookAddonOrVariable("Blizzard_RaidUI", function()
DEFAULT_CHAT_FRAME:AddMessage("|cFF00FF00pfUI-Debug:|r Blizzard_RaidUI loaded, running hide")
HideBlizzardRaidFrames()
-- RaidGroupFrame_Update calls :Show() on all RaidGroup frames every update
-- hook it to immediately re-hide them after Blizzard shows them
if RaidGroupFrame_Update then
DEFAULT_CHAT_FRAME:AddMessage("|cFF00FF00pfUI-Debug:|r hooking RaidGroupFrame_Update")
hooksecurefunc("RaidGroupFrame_Update", HideBlizzardRaidFrames)
else
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF0000pfUI-Debug:|r RaidGroupFrame_Update not found!")
end
end)