Beispiel #1
0
        private void NewGame()
        {
            if (!GlobalVariables.SaveExists())
            {
                //Go to the story
                GoToDriveSelector();
            }
            else
            {
                List<Button> buttons = new List<Button>();
                Color color = new Color(255, 180, 180);
                buttons.Add(new Button(color, "Yes", new ButtonPressed(DeleteSaveAndStart)));
                buttons.Add(new Button(color, "No", null));

                TitleButtonAnnouncerEntity pauseMenu = new TitleButtonAnnouncerEntity(new AnnouncerEnded(UnPauseGame), color,
                    "Delete Scan History and Start New Scan?", buttons);
                pauseMenu.ChangePosition(140);
                pauseMenu.EscapeHandler = pauseMenu.FinishAnnouncer;

                PauseEntity = pauseMenu;

                base.PauseGame();
            }
        }
Beispiel #2
0
        private void ExitGame()
        {
            List<Button> buttons = new List<Button>();
            Color color = new Color(255, 180, 180);
            buttons.Add(new Button(color, "Yes", new ButtonPressed(TerminateApplication)));
            buttons.Add(new Button(color, "No", null));

            TitleButtonAnnouncerEntity pauseMenu = new TitleButtonAnnouncerEntity(new AnnouncerEnded(UnPauseGame), color,
                "Stop Scanning?", buttons);
            pauseMenu.ChangePosition(140);
            pauseMenu.EscapeHandler = pauseMenu.FinishAnnouncer;

            PauseEntity = pauseMenu;

            base.PauseGame();
        }