This commit is contained in:
Bunny67
2017-12-16 20:54:30 +03:00
parent 15b978d2cb
commit 273a5e6832
9 changed files with 107 additions and 92 deletions
@@ -106,12 +106,12 @@ function EventTraceFrame_OnEvent (self, event, ...)
self.framesSinceLast[nextIndex] = 0;
self.eventids[nextIndex] = GetCurrentEventID();
local numArgs = select("#", arg);
local numArgs = select("#", unpack(arg));
for i=1, numArgs do
if (not self.args[i]) then
self.args[i] = {};
end
self.args[i][nextIndex] = select(i, arg);
self.args[i][nextIndex] = arg[i];
end
if (self.eventsToCapture) then
@@ -135,7 +135,7 @@ function EventTraceFrame_OnShow(self)
scrollBar:SetValue(maxValue);
end
function EventTraceFrame_OnUpdate ()
function EventTraceFrame_OnUpdate (self, elapsed)
EventTraceFrame_Update();
end
@@ -528,7 +528,7 @@ function ScriptErrorsFrame_OnLoad (self)
_ScriptErrorsFrame = self;
end
function ScriptErrorsFrame_OnShow ()
function ScriptErrorsFrame_OnShow (self)
ScriptErrorsFrame_Update();
end
@@ -669,7 +669,7 @@ function FrameStackTooltip_OnLoad(self)
self:RegisterEvent("DISPLAY_SIZE_CHANGED")
end
function FrameStackTooltip_OnEvent(self, event)
function FrameStackTooltip_OnEvent(self, event, ...)
if (event == "DISPLAY_SIZE_CHANGED") then
FrameStackTooltip_OnDisplaySizeChanged(self)
end
@@ -375,7 +375,7 @@
EventTraceFrame_OnShow(this);
</OnShow>
<OnEvent>
EventTraceFrame_OnEvent(this, event, arg);
EventTraceFrame_OnEvent(this, event, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15);
</OnEvent>
<OnUpdate>
EventTraceFrame_OnUpdate(this, arg1);
+3 -6
View File
@@ -3,7 +3,7 @@ local mod = math.mod
local pairs = pairs
local tostring = tostring
local format, match = string.format, string.match
local getn, tinsert, tsort, twipe = table.getn, table.insert, table.sort, table.wipe
local getn, setn, tinsert, tsort, twipe = table.getn, table.setn, table.insert, table.sort, table.wipe
-- WoW API
local GetTime = GetTime
@@ -86,11 +86,7 @@ local function FrameStackSort(b, a)
return
end
if a and b then
return a < b
else
return
end
return a < b
end
function UpdateFrameStack(tooltip, showHidden)
@@ -99,6 +95,7 @@ function UpdateFrameStack(tooltip, showHidden)
for i = 1, getn(frameStackList) do
frameStackList[i] = nil
end
setn(frameStackList, 0)
for k in pairs(frameStackLevels) do
frameStackLevels[k] = nil