d89467e - Add player flag support, hide blizzard focus
[wowui.git] / OmaRF / RaidFrame.lua
index 12ac13f..015ce88 100644 (file)
@@ -372,6 +372,16 @@ local function hideBlizzardRaid()
     CompactRaidFrameContainer:HookScript("OnShow", hide);
     hooksecurefunc("CompactRaidFrameManager_UpdateOptionsFlowContainer", hideBlizzardRaidButton);
     hideBlizzardRaidButton();
     CompactRaidFrameContainer:HookScript("OnShow", hide);
     hooksecurefunc("CompactRaidFrameManager_UpdateOptionsFlowContainer", hideBlizzardRaidButton);
     hideBlizzardRaidButton();
+
+    -- hide focus frame
+    for _, frame in pairs({FocusFrame, FocusFrameToT}) do
+        frame:UnregisterAllEvents();
+        frame.healthbar:UnregisterAllEvents();
+        frame.manabar:UnregisterAllEvents();
+        if frame.spellbar then frame.spellbar:UnregisterAllEvents() end
+        if frame.powerBarAlt then frame.powerBarAlt:UnregisterAllEvents() end
+        frame:Hide();
+    end
 end
 
 CFrame:RegisterEvent("ADDON_LOADED");
 end
 
 CFrame:RegisterEvent("ADDON_LOADED");