public static void RefreshTimer() { if (!ThrottleTimer.TimerStopwatch.IsRunning) { ThrottleTimer.CreateThrottleTimer(ThrottleTimer.TimerStopwatch, 1800000, ThrottleTimer.RefreshUITimerString); } else { ThrottleTimer.CheckThrottleTimer(ThrottleTimer.TimerStopwatch, ThrottleTimers[0].Time, ThrottleTimer.RefreshUITimerString); } }
public void Init() { InitHasRun = true; FirstPass = false; UIRStatusText = "{TimerName}: {TimeRemaining} ({TimeDuration})"; for (var i = 0; i < ThrottleTimer.ThrottleTimerCount; i++) { ThrottleTimers[i] = new ThrottleTimer("", 0); } ThrottleTimers[0].TimerName = ThrottleTimer.RefreshUITimerString; BotEvents.OnBotStopped += BotEvent_OnBotStopped; UIRLog("Initialization complete."); }
public void Init() { InitHasRun = true; FirstPass = false; UIRStatusText = "{TimerName}: {TimeRemaining} ({TimeDuration})"; for(var i = 0; i < ThrottleTimer.ThrottleTimerCount; i++) { ThrottleTimers[i] = new ThrottleTimer("", 0); } ThrottleTimers[0].TimerName = ThrottleTimer.RefreshUITimerString; BotEvents.OnBotStopped += BotEvent_OnBotStopped; UIRLog("Initialization complete."); }