View Single Post
11-02-22, 11:30 AM   #12
Deadlyz
A Wyrmkin Dreamwalker
 
Deadlyz's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 55
I appreciate your help, but I don't seem to be able to make this work

Lua Code:
  1. --  Doesn't need to be done, but saves some (not all) processing
  2.     TargetFrame:UnregisterEvent("UNIT_AURA");
  3.     FocusFrame:UnregisterEvent("UNIT_AURA");
  4.      
  5.     local function ReleaseAllAuras(self)
  6.         for obj in self.auraPools:EnumerateActive() do obj:Hide(); end
  7.         self.auraPools:ReleaseAll()--   Cleanup
  8.      
  9.         self.auraRows,self.spellbarAnchor=0,nil;--  Revert to initial values
  10.             if self.spellbar then
  11.         self.spellbar:ClearAllPoints();
  12.         self.spellbar:SetPoint("TOPLEFT",self,"BOTTOMLEFT",43,-100);--   Default anchor on large frame with ToT shown
  13.     end--  Update anchor
  14.     end
  15.      
  16.     hooksecurefunc(TargetFrame,"UpdateAuras",ReleaseAllAuras);
  17.     hooksecurefunc(FocusFrame,"UpdateAuras",ReleaseAllAuras);
I change the coordiantes (e.g. 43,-100), then save the file and /reload ui but the castbars don't move. What am I doing wrong?
__________________

My last movie: Rogue Sweethearts

Last edited by Deadlyz : 11-02-22 at 11:42 AM.
  Reply With Quote