View Single Post
12-02-11, 09:48 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
AftermathUI.func is
lua Code:
  1. function () return end
Just for notice. Thus I'm going to try
lua Code:
  1. for _, v in pairs({
  2.     CompactUnitFrame_UpdateVisible, CompactUnitFrame_UpdateAll, --PetFrame_Update,
  3. }) do
  4.     v = function() return end
  5. end
  6.  
  7. for _, v in pairs({
  8.     _G["CompactRaidFrameContainer"], --_G["TutorialFrame"],
  9. }) do
  10.     v:UnregisterAllEvents()
  11.     v.Show = function() return end
  12.     v:Hide()
  13. end
But it is hard to believe that rewriting Blizzard functions and not hooking them secures does not give you taints.
The best solution I found so far for secure hiding is:
lua Code:
  1. local hideMe = function(self)
  2.   self:Hide()
  3. end
  4. hooksecurefunc(obj, "Show", hideMe)
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 12-02-11 at 09:59 AM.
  Reply With Quote