private void Submit_Click(object sender, RoutedEventArgs e)
        {
            EyeGazeDataSingleton.Instance.User.Age            = datePicker.SelectedDate.Value;
            EyeGazeDataSingleton.Instance.User.EducationLevel = comboBoxIstruzione.Text;
            EyeGazeDataSingleton.Instance.User.FirstName      = textBoxFirstName.Text;
            EyeGazeDataSingleton.Instance.User.LastName       = textBoxLastName.Text;
            //TODO: passa alla finestra successiva
            WelcomeScreen ws = new WelcomeScreen(wavList.AudioFiles, 0);

            ws.Show();
            this.Close();
        }
예제 #2
0
파일: Program.cs 프로젝트: peruvin/metroid
    public static void Start()
    {
        Hardware hardware = new Hardware(800, 600, 24, false);

        WelcomeScreen welcome = new WelcomeScreen(hardware);
        CreditsScreen credits = new CreditsScreen(hardware);
        MenuScreen    menu    = new MenuScreen(hardware);
        GameScreen    game    = new GameScreen(hardware);

        welcome.Show();
        menu.Show();
        game.Show();
        credits.Show();
    }
예제 #3
0
    public void Run()
    {
        myLoadingScreen.Show();
        myWelcomeScreen.Show();

        ConsoleKeyInfo key = Console.ReadKey();

        if (key.Key == ConsoleKey.Spacebar)
        {
            myGame.Run();
        }

        // TO DO
    }
예제 #4
0
        public void Start()
        {
            Hardware hardware = new Hardware(SCREEN_WIDTH, SCREEN_HEIGHT,
                                             24, false);
            bool exit = false;

            WelcomeScreen welcome = new WelcomeScreen(hardware);

            welcome.Show();
            MenuScreen menu = new MenuScreen(hardware);

            do
            {
                menu.Show();

                switch (menu.ChosenOption)
                {
                case 1:
                    GameScreen game = new GameScreen(hardware, 0);
                    game.Show();
                    break;

                case 2:
                    LoadScreen load = new LoadScreen(hardware);
                    load.Show();

                    // To load the selected level
                    GameScreen gameLoaded = new GameScreen(hardware,
                                                           load.NumLevel);
                    gameLoaded.Show();
                    break;

                case 3:
                    ScoreBoard score = new ScoreBoard(hardware);
                    score.Show();
                    break;

                case 4:
                    CreditsScreen credits = new CreditsScreen(hardware);
                    credits.Show();
                    break;

                default:
                    exit = true;
                    break;
                }
            } while (!exit);
        }
예제 #5
0
    public static void ShowWindow()
    {
        // get an instance to the editor window
        WelcomeScreen wscreen = (WelcomeScreen)EditorWindow.GetWindow(typeof(WelcomeScreen), false);
        // set the window title
        GUIContent titleContent = new GUIContent("GemMine Media presents: " + gameName);

        wscreen.titleContent = titleContent;
        // contrain the window size
        Vector2 maxSize = new Vector2(500, 700);

        wscreen.maxSize = maxSize;
        wscreen.minSize = maxSize;
        // show the window
        wscreen.Show();
    }
예제 #6
0
 private void ListViewItemSignOut_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (MessageBox.Show(rm.GetString("areYouSureToExit"), rm.GetString("system"), MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
     {
         Properties.Settings.Default.username    = string.Empty;
         Properties.Settings.Default.password    = string.Empty;
         Properties.Settings.Default.nameSurname = string.Empty;
         Properties.Settings.Default.userMail    = string.Empty;
         Properties.Settings.Default.signedIn    = false;
         Properties.Settings.Default.userDbID    = string.Empty;
         Properties.Settings.Default.phoneNumber = string.Empty;
         Properties.Settings.Default.Save();
         Vars.JustSignedOut = true;
         Vars.IsAdmin       = false;
         WelcomeScreen welcomeScreen = new WelcomeScreen();
         welcomeScreen.Show();
         this.Close();
     }
 }
예제 #7
0
    public void Start()
    {
        Hardware          hardware   = new Hardware(840, 755, 24, false);
        WelcomeScreen     welcome    = new WelcomeScreen(hardware);
        SettingScreen     setting    = new SettingScreen(hardware);
        ControllerScreen  controller = new ControllerScreen(hardware);
        CreditsScreen     credits    = new CreditsScreen(hardware);
        MapCreationScreen mapedition = new MapCreationScreen(hardware);
        SelectLenguage    select     = new SelectLenguage(hardware);

        do
        {
            hardware.ClearScreen();
            select.Show();
            if (!welcome.GetExit())
            {
                welcome.Show();
                switch (welcome.GetChosenOption())
                {
                case 1:
                    setting.Show();
                    break;

                case 2:
                    mapedition.Show();
                    break;

                case 3:
                    controller.Show();
                    break;

                case 4:
                    credits.Show();
                    break;

                case 5:
                    welcome.GetExit();
                    break;
                }
            }
        } while (!welcome.GetExit());
    }
예제 #8
0
    public void Start()
    {
        Hardware hardware =
            new Hardware(SCREEN_WIDTH, SCREEN_HEIGHT, 24, false);

        WelcomeScreen welcome = new WelcomeScreen(hardware, this);
        MenuScreen    menu    = new MenuScreen(hardware, this);
        CreditsScreen credits = new CreditsScreen(hardware, this);

        hardware.ClearScreen();
        welcome.Show();

        do
        {
            hardware.ClearScreen();
            menu.Show();
            hardware.ClearScreen();
            credits.Show();
        }while (!menu.GetExit());
        SetLanguaje();
    }
예제 #9
0
        public void Start()
        {
            Hardware hardware = new Hardware(800, 600, 24, false);

            WelcomeScreen      welcome      = new WelcomeScreen(hardware);
            CreditsScreen      credits      = new CreditsScreen(hardware);
            PlayerSelectScreen playerSelect = new PlayerSelectScreen(hardware);
            GameScreen         game         = new GameScreen(hardware);

            do
            {
                hardware.ClearScreen();
                welcome.Show();
                if (!welcome.GetExit())
                {
                    playerSelect.Show();
                    game.ChosenPlayer = playerSelect.GetChosenPlayer();
                    hardware.ClearScreen();
                    game.Show();
                    hardware.ClearScreen();
                    credits.Show();
                }
            } while (!welcome.GetExit());
        }