コード例 #1
0
        public static void AddCooldown(string text, Tuple <string, string, TimedEventInfo> eventInfo)
        {
            if (!initialised)
            {
                Initialise();
            }

            CustomText cooldownText = new CustomText(text, eventInfo.Item3.TimerLength, 0, true);

            cooldownText.SetTimedEvent(eventInfo);
            EventLookup.RunningEventIDs.Add(text);
            customTimerTexts.Add(cooldownText);
        }
コード例 #2
0
        public static void AddCooldown(string text, TimedEventInfo timedEvent)
        {
            if (!initialised)
            {
                Initialise();
            }

            CustomText cooldownText = new CustomText(text, timedEvent.TimerLength, 0, true);

            cooldownText.SetTimedEvent(new KeyValuePair <string, TimedEventInfo>(text, timedEvent));
            EventLookup.RunningEventIDs.Add(text);
            customTimerTexts.Add(cooldownText);
        }