overwrite FrameStackTooltip OnUpdate instead of hooking

This commit is contained in:
Pinya
2018-07-18 15:16:30 +03:00
parent 0b342cc9c0
commit 4c0338d5e0
+2 -2
View File
@@ -74,11 +74,11 @@ if IsAddOnLoaded("!DebugTools") then
end)
local _timeSinceLast = 0
HookScript(FrameStackTooltip, "OnUpdate", function()
FrameStackTooltip:SetScript("OnUpdate", function()
_timeSinceLast = _timeSinceLast - arg1
if _timeSinceLast <= 0 then
_timeSinceLast = FRAMESTACK_UPDATE_TIME
local highlightFrame = GetMouseFocus()
local highlightFrame = UpdateFrameStack(this, this.showHidden)
FrameStackHighlight:ClearAllPoints()
if highlightFrame and highlightFrame ~= _G["WorldFrame"] then