mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update DebugTools
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local mod = math.mod
|
||||
local modulo = math.modulo
|
||||
local getn = table.getn
|
||||
|
||||
EVENT_TRACE_EVENT_HEIGHT = 16;
|
||||
@@ -49,7 +49,7 @@ function EventTraceFrame_OnLoad(self)
|
||||
EventTraceFrame_OnSizeChanged(self, self:GetWidth(), self:GetHeight());
|
||||
self:EnableMouse(true);
|
||||
self:EnableMouseWheel(true);
|
||||
self:SetScript("OnMouseWheel", function() EventTraceFrame_OnMouseWheel(tris, arg1) end);
|
||||
self:SetScript("OnMouseWheel", function() EventTraceFrame_OnMouseWheel(this, arg1) end);
|
||||
end
|
||||
|
||||
local _workTable = {};
|
||||
@@ -100,13 +100,13 @@ function EventTraceFrame_OnEvent (self, event, ...)
|
||||
local hours = math.floor(minutes / 60);
|
||||
seconds = seconds - 60 * minutes;
|
||||
minutes = minutes - 60 * hours;
|
||||
hours = mod(hours, 1000)
|
||||
hours = modulo(hours, 1000)
|
||||
self.times[nextIndex] = string.format("%.2d:%.2d:%06.3f", hours, minutes, seconds);
|
||||
self.timeSinceLast[nextIndex] = 0;
|
||||
self.framesSinceLast[nextIndex] = 0;
|
||||
self.eventids[nextIndex] = GetCurrentEventID();
|
||||
|
||||
local numArgs = select("#", unpack(arg));
|
||||
local numArgs = getn(arg);
|
||||
for i = 1, numArgs do
|
||||
if (not self.args[i]) then
|
||||
self.args[i] = {};
|
||||
|
||||
@@ -543,7 +543,7 @@
|
||||
FrameStackTooltip_OnUpdate(this, arg1);
|
||||
</OnUpdate>
|
||||
<OnEvent>
|
||||
FrameStackTooltip_OnEvent(this, arg);
|
||||
FrameStackTooltip_OnEvent(this, event, arg1);
|
||||
</OnEvent>
|
||||
</Scripts>
|
||||
</GameTooltip>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Cache global variables
|
||||
local mod = math.mod
|
||||
local pairs = pairs
|
||||
local tostring = tostring
|
||||
local fmod = math.fmod
|
||||
local format, match = string.format, string.match
|
||||
local getn, setn, tinsert, tsort, twipe = table.getn, table.setn, table.insert, table.sort, table.wipe
|
||||
-- WoW API
|
||||
@@ -174,7 +174,7 @@ function UpdateFrameStack(tooltip, showHidden)
|
||||
end
|
||||
|
||||
if l ~= ol then
|
||||
cs = mod(cs, cn) + 1
|
||||
cs = fmod(cs, cn) + 1
|
||||
ol = l
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user