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();
        }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
    public void Run()
    {
        myLoadingScreen.Show();
        myWelcomeScreen.Show();

        ConsoleKeyInfo key = Console.ReadKey();

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

        // TO DO
    }
Exemplo n.º 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);
        }
Exemplo n.º 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();
    }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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());
    }
Exemplo n.º 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();
    }
Exemplo n.º 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());
        }