View Single Post
09-29-14, 03:45 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,322
Originally Posted by expand View Post
ty, how about making the auras of the target, focus, and tot noninteractive?
These took a little more time. The target and focus frames dynamicly create their buff and debuff frames. The ToT frame has a static number of 4 frames at all times.

lua Code:
  1. --  TargetFrame and FocusFrame
  2. hooksecurefunc("TargetFrame_UpdateAuras",function(self)
  3.     local name=self:GetName();
  4.  
  5.     for i=1,MAX_TARGET_BUFFS do
  6.         local frame=_G[name.."Buff"..i];
  7.         if frame then frame:EnableMouse(false); end
  8.     end
  9.  
  10.     for i=1,(self.maxDebuffs or MAX_TARGET_DEBUFFS) do
  11.         local frame=_G[name.."Debuff"..i];
  12.         if frame then frame:EnableMouse(false); end
  13.     end
  14. end);
  15.  
  16. --  Target of Target
  17. for i=1,4 do _G["TargetFrameToTDebuff"..i]:EnableMouse(false); end
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote