Ejemplo n.º 1
0
        private static void ShowPoliceComputer()
        {
            Game.IsPaused = true;
            if (!Configs.SkipLogin)
            {
                login = new ComputerLogin();
                login.Show();

                while (login.Window.IsVisible || ComputerLogin.next_form.IsAlive || ComputerMain.form_ped_db.IsAlive ||
                       ComputerMain.form_veh_db.IsAlive || ComputerMain.form_backup.IsAlive || ComputerMain.form_active_calls.IsAlive ||
                       ComputerPedDB.form_main.IsAlive || ComputerVehDB.form_main.IsAlive || ComputerRequestBackup.form_main.IsAlive ||
                       ComputerCurrentCallDetails.form_main.IsAlive)
                {
                    GameFiber.Yield();
                }
            }
            else
            {
                main = new ComputerMain();
                main.Show();

                while (main.Window.IsVisible || ComputerMain.form_ped_db.IsAlive || ComputerMain.form_veh_db.IsAlive ||
                       ComputerMain.form_backup.IsAlive || ComputerMain.form_active_calls.IsAlive || ComputerPedDB.form_main.IsAlive ||
                       ComputerPedDB.form_main.IsAlive || ComputerVehDB.form_main.IsAlive || ComputerRequestBackup.form_main.IsAlive ||
                       ComputerCurrentCallDetails.form_main.IsAlive)
                {
                    GameFiber.Yield();
                }
            }

            Function.DisableBackground();

            _opened       = false;
            Game.IsPaused = false;
        }
Ejemplo n.º 2
0
        private static void OpenMainMenuForm()
        {
            GwenForm main = new ComputerMain();

            main.Show();
            while (main.Window.IsVisible)
            {
                GameFiber.Yield();
            }
        }