-
-
Save anonymous/a9dce3de4f058fa2922f9c7d9308d612 to your computer and use it in GitHub Desktop.
ElvUI\Modules\unitframes\unitframes.lua 10.07
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function HideRaid() | |
if InCombatLockdown() then return end | |
CompactRaidFrameManager:Kill() | |
local compact_raid = CompactRaidFrameManager_GetSetting("IsShown") | |
if compact_raid and compact_raid ~= "0" then | |
CompactRaidFrameManager_SetSetting("IsShown", "0") | |
end | |
end | |
function UF:DisableBlizzard(event) | |
if (not E.private["unitframe"]["disabledBlizzardFrames"].raid) and (not E.private["unitframe"]["disabledBlizzardFrames"].party) then return; end | |
if not CompactRaidFrameManager_UpdateShown then | |
E:StaticPopup_Show("WARNING_BLIZZARD_ADDONS") | |
else | |
hooksecurefunc("CompactRaidFrameManager_UpdateShown", HideRaid) | |
CompactRaidFrameManager:HookScript('OnShow', HideRaid) | |
CompactRaidFrameContainer:UnregisterAllEvents() | |
HideRaid() | |
--hooksecurefunc("CompactUnitFrame_RegisterEvents", CompactUnitFrame_UnregisterEvents) -- breaks nameplates names | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment