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 GameManagerViewModelOnGymsAreDisabled(object sender, EventArgs e)
        {
            ProfessorDialog dialog = new ProfessorDialog(BackGroundType.Light, false);

            dialog.Messages.Add(new MessageEntry("I regret to inform you that gyms are currently disabled.", 60));
            dialog.Messages.Add(new MessageEntry("The new battling system has not yet been implemented.", 60));
            dialog.Messages.Add(new MessageEntry("Come back when there is a new version of POGO-UWP!", 60));

            dialog.Closed += Dialog_Closed;
            dialog.Show();
        }
Beispiel #3
0
        private void GameManagerViewModelOnPlayerLevelInsufficient(object sender, EventArgs e)
        {
            ProfessorDialog dialog = new ProfessorDialog(BackGroundType.Light, false);

            dialog.Messages.Add(new MessageEntry("This is a Gym, a place where you'll test your skills at Pokémon battles.", 60));
            dialog.Messages.Add(new MessageEntry("It looks like you don't have much experience as a Pokémon Trainer yet.", 60));
            dialog.Messages.Add(new MessageEntry("Come back when you've reached level 5!", 30));

            dialog.Closed += Dialog_Closed;
            dialog.Show();
        }
Beispiel #4
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 #5
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();
        }
Beispiel #6
0
        private void GameManagerViewModelOnShowSelectAvatarScreen(object sender, EventArgs e)
        {
            AudioUtils.PlaySound(AudioUtils.PROFESSOR);

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

            dialog.Show();

            dialog = new ProfessorDialog(BackGroundType.Dark, true);
            dialog.Messages.Add(new MessageEntry("Hello there! I am Professor Willow.", 60));
            dialog.Messages.Add(new MessageEntry("Did you know that this world is inhabited by creatures known as Pokémon?", 90));
            dialog.Messages.Add(new MessageEntry("Pokémon can be found in every corner of the earth.", 60));
            dialog.Messages.Add(new MessageEntry("Some run across the plains, others fly through the skies, some live in the mountains, or in the forests, or near water...", 120));
            dialog.Messages.Add(new MessageEntry("I have spent my whole life studying them and their regional distribution.", 60));
            dialog.Messages.Add(new MessageEntry("Will you help me with my research?", 60));
            dialog.Messages.Add(new MessageEntry("That's great! I was just looking for someone like you to help!", 60));
            dialog.Messages.Add(new MessageEntry("You'll need to find and collect Pokémon from everywhere!", 60));
            dialog.Messages.Add(new MessageEntry("Now, choose your style for your adventure.", 60));
            dialog.Show();

            ShowSelectAvatarStoryboard.Begin();
        }