From 8a1c6e62cffdfc5e1305e96699c4a939fadea5d3 Mon Sep 17 00:00:00 2001 From: Petr G Date: Thu, 9 Jun 2016 12:07:30 +0300 Subject: [PATCH] Events start and stop msg colors updated and time added to ui --- ViragDevTool.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ViragDevTool.lua b/ViragDevTool.lua index 4e85fb1..cbe04fa 100644 --- a/ViragDevTool.lua +++ b/ViragDevTool.lua @@ -449,7 +449,7 @@ function ViragDevTool:SortFnForCells(nodeList) return a.name < b.name end end - + if #nodeList > 20000 then -- just optimisation for _G cmpFn = function(a, b) return a.name < b.name end end @@ -866,7 +866,7 @@ function ViragDevTool:StartMonitorEvent(event, unit) local eventName = event if unit then eventName = eventName .. " " .. tostring(unit) end - self:print("Start event monitoring: " .. eventName) + self:print(self.colors.green.."Start"..self.colors.white.." event monitoring: " .. self.colors.lightblue.. eventName) end function ViragDevTool:StopMonitorEvent(event, unit) @@ -879,7 +879,8 @@ function ViragDevTool:StopMonitorEvent(event, unit) local eventName = event if unit then eventName = eventName .. " " .. tostring(unit) end - self:print("Stop event monitoring: " .. eventName) + + self:print(self.colors.red.."Stop"..self.colors.white.." event monitoring: ".. self.colors.lightblue .. eventName) end end @@ -901,7 +902,7 @@ function ViragDevTool:SetMonitorEventScript() local event = args[1] if ViragDevTool:GetMonitoredEvent(event) then if #args == 1 then args = args[1] end - ViragDevTool:Add(args, event) + ViragDevTool:Add(args, date("%X") .." " .. event) end end); end -- 1.7.9.5