예제 #1
0
 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);
     }
 }
예제 #2
0
        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.");
        }
예제 #3
0
        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.");
        }