Esempio n. 1
0
 //blocker windows activator
 private void WindowBlocker_Open()
 {
     if (windowBlocker)
     {
         windowBlocker.Open();
     }
 }
Esempio n. 2
0
 //blocker console Windows activator
 private void ConsoleWindowBlocker_Open()
 {
     if (consoleWindowBlocker)
     {
         consoleWindowBlocker.Open();
     }
 }
Esempio n. 3
0
        public void ActivateGameInterface()
        {
            if (!isGameInterfaceActivated)
            {
                gameWindowHud.Open();

                ActivateGameWEvent();

                isGameInterfaceActivated = true;

                ChangeGameWEvent(isGameInterfaceActivated);
            }
        }
Esempio n. 4
0
        //activators
        protected void WindowActivator_Open(int number)
        {
            if ((number >= 0) && (number < windowActivator.Length))
            {
                WindowOpenClose activeA = windowActivator[number];

                if (activeA)
                {
                    if (!activeA.IsOpen())
                    {
                        activeA.Open();
                    }
                }
            }
        }
Esempio n. 5
0
        //activators
        private void WindowActivator_Open(int number)
        {
            if (number < windowActivator.Length)
            {
                WindowOpenClose activeA = windowActivator[number];

                if (activeA)
                {
                    if (!activeA.IsOpen())
                    {
                        activeA.Open();
                    }
                }
            }
        }
Esempio n. 6
0
        public void ShowAdviceGameWindow(string value)
        {
            gameWindowAdviceText.text = TextHelp.SpecTextChar(value);

            gameWindowAdvice.Open();

            if (IsInvoking(nameof(CloseAdviceGameWindow)))
            {
                CancelInvoke();
            }

            int delayTime = value.Length / _countCharForDelayOneSecond;

            delayTime = delayTime > 0 ? delayTime : 1;

            Invoke(nameof(CloseAdviceGameWindow), delayTime);

            ActivateAdviceGameWEvent();
        }