mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
overwrite FrameStackTooltip OnUpdate instead of hooking
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user