View Single Post
12-14-14, 12:16 PM   #13
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Don't get the hassle about this, i can freely move/scale/parent/show/hide/setwidth/setheight the frame even in combat, without getting any taints. The key object here is the SetUserPlaced(true)

Lua Code:
  1. local moving
  2. hooksecurefunc(ObjectiveTrackerFrame, "SetPoint", function(self)
  3.     if moving then
  4.         return
  5.     end
  6.     moving = true
  7.     self:SetMovable(true)
  8.     self:SetUserPlaced(true)
  9.     self:ClearAllPoints()
  10.     self:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
  11.     self:SetScale(1.1)
  12.     self:SetWidth(300)
  13.     self:SetHeight(400)
  14.     self:SetParent(TargetFrame) -- Only for default Blizzard unitframes.
  15.     self:SetMovable(false)
  16.     moving = nil
  17. end)

Of course i did'nt tested with all of the quest items, but i guess if one is working properly then all should.

Two things could cause this taint issues, if you have an addon which abuses this frame badly, or if you have ANY ADDON which calls ObjectiveTracker_Update() at any point. If you call ObjectiveTracker_Update() at any point by an addon then you are fucked.

Last edited by Resike : 12-14-14 at 12:30 PM.
  Reply With Quote