mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix EventTrace argument problem
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user