Exemple #1
0
        private async void GameManagerViewModelOnShowPokemonCaptureScreen(object sender, EventArgs e)
        {
            if (GameClient.PokemonSettings.Count() == 0)
            {
                await GameClient.LoadGameSettings(true);
            }

            if (LocationServiceHelper.Instance.Geoposition != null)
            {
                await UpdateMap(LocationServiceHelper.Instance.Geoposition.Coordinate.Point);

                ViewModel.CreateStarterPokemons(LocationServiceHelper.Instance.Geoposition.Coordinate.Point);
            }

            ShowPokemonCatchStoryboard.Begin();

            ProfessorDialog dialog = new ProfessorDialog(BackGroundType.Dark, false);

            dialog.SetToLowerRightCorner();
            dialog.SetTranslucent(true);
            dialog.Messages.Add(new MessageEntry("There's a Pokémon nearby!", 60));
            dialog.Messages.Add(new MessageEntry("Here are some Poké Balls. These will help you catch one!", 60));
            dialog.Closed += ProfessorCaptureDialog_Closed;
            dialog.Show();
        }
Exemple #2
0
        private async void GameManagerViewModelOnShowItsTimeToWalkScreen(object sender, EventArgs e)
        {
            if (LocationServiceHelper.Instance.Geoposition != null)
            {
                await UpdateMap(LocationServiceHelper.Instance.Geoposition.Coordinate.Point);

                ViewModel.ClearStarterPokemons();
            }

            ShowPokemonCatchStoryboard.Begin();
            ButtonSkipTutorial.Visibility = Visibility.Visible;

            AudioUtils.PlaySound(AudioUtils.PROFESSOR);

            TimeToWalkGrid.Visibility = Visibility.Visible;
            ShowTimeToWalkStoryboard.Begin();
        }
Exemple #3
0
        private async void GameManagerViewModelOnShowNameSelectionScreen(object sender, EventArgs e)
        {
            if (LocationServiceHelper.Instance.Geoposition != null)
            {
                await UpdateMap(LocationServiceHelper.Instance.Geoposition.Coordinate.Point);

                ViewModel.ClearStarterPokemons();
            }

            ShowPokemonCatchStoryboard.Begin();

            AudioUtils.PlaySound(AudioUtils.PROFESSOR);

            ButtonSkipTutorial.Visibility = Visibility.Collapsed;

            ProfessorDialog dialog = new Views.ProfessorDialog(BackGroundType.Dark, false);

            dialog.SetToLowerRightCorner();
            dialog.SetTranslucent(true);
            dialog.Messages.Add(new MessageEntry("Congratulations! You've caught your first Pokémon!", 60));
            dialog.Messages.Add(new MessageEntry("You are such a talented Pokémon Trainer! What should I call you?", 60));
            dialog.Closed += ProfessorNameDialog_Closed;
            dialog.Show();
        }