Skip to content

Instantly share code, notes, and snippets.

/unitframes.lua Secret

Created July 30, 2016 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a9dce3de4f058fa2922f9c7d9308d612 to your computer and use it in GitHub Desktop.
Save anonymous/a9dce3de4f058fa2922f9c7d9308d612 to your computer and use it in GitHub Desktop.
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