Skip to content

Instantly share code, notes, and snippets.

/unitframes.lua Secret
Created Jul 30, 2016

Embed
What would you like to do?
ElvUI\Modules\unitframes\unitframes.lua 10.07
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
You can’t perform that action at this time.