
Originally Posted by
Kaylia
Thank for the answer.
#4 I will just leave xperl run in the background until I find another app that can turn it off all the time. I just hate leaving pluging running for no reason.
You're welcome. I looked at how oUF handles it, and here is the same thing but slightly modified:
Code:
local Fake = function() end
for Index = 1, 4 do
local Frame = _G["PartyMemberFrame" .. Index]
Frame:UnregisterAllEvents()
Frame.Show = Fake
Frame:Hide()
_G[Frame .. "HealthBar"]:UnregisterAllEvents()
_G[Frame .. "ManaBar"]:UnregisterAllEvents()
end
You can attach this to the very bottom of a *.lua file for any working addon and it should run fine - so long as the addon isn't having issues. Alternatively, you can build it as a seperate addon so it is not affected by any outside issues.