Beispiel #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();
        }
Beispiel #2
0
        private void DialogNeedPokestop(object sender, EventArgs e)
        {
            ProfessorDialog dialog = new ProfessorDialog(BackGroundType.Dark, false);

            dialog.SetToLowerRightCorner();
            dialog.SetTranslucent(true);
            dialog.ShowPokeStop();
            dialog.Messages.Add(new MessageEntry("You can find items at PokéStops.", 60));
            dialog.Messages.Add(new MessageEntry("They're found at interesting places like sculptures and monuments.", 60));
            dialog.Messages.Add(new MessageEntry("From now on, you'll be off exploring all over the world. I hope you get out there and catch Pokémon-and register them in your Pokédex!", 120));
            dialog.Messages.Add(new MessageEntry("It's time to GO!", 60));
            dialog.Closed += DialogItsTimeToGO;
            dialog.Show();
        }
Beispiel #3
0
        private void GameManagerViewModelOnNicknameOkSubmitted(object sender, EventArgs e)
        {
            HideChooseNicknameStoryboard.Begin();

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

            dialog.SetToLowerRightCorner();
            dialog.SetTranslucent(true);

            ButtonSkipTutorial.Visibility = Visibility.Collapsed;

            dialog.Messages.Add(new MessageEntry("Oh, what a cool nickname! Nice to meet you!", 60));
            dialog.Messages.Add(new MessageEntry("You will need more Poké Balls and other useful items during your exploration.", 90));
            dialog.Closed += DialogNeedPokestop;
            dialog.Show();
        }