View Single Post
06-13-15, 02:08 PM   #5
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You're calling :SetPoint() in your :SetPoint() hook, Resike. That'll make an infinite loop.

In WFWW, I create a container frame, parent the objective tracker to that, and move/size the container. Then I do this, to avoid the recursive :SetPoint call...
Lua Code:
  1. local cap = ObjectiveTrackerFrame.ClearAllPoints
  2.     local sp = ObjectiveTrackerFrame.SetPoint
  3.     hooksecurefunc(ObjectiveTrackerFrame, "SetPoint", function(self)
  4.         cap(self)
  5.         sp(self, "TOPLEFT", 30, -10)
  6.     end)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote