void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Quit Current Game?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer);
        }
        void BreakoutEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Play BreakOut?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message);

            confirmQuitMessageBox.Accepted += ConfirmQuitBreakoutxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer);
        }
 void controlsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ControlsScreen(), ControllingPlayer);
 }
 void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen("MainBG"),
                                                    new MainMenuScreen());
 }
 void PrologueMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new MessageBoxScreen("This old TV aerial wire has terrible signal. It's our job to\nmake sure none of that pesky extra data can clog up our\nnice reception. Luckily we have our trusty cleanup\nsystem at hand.\n\nWe can go about this two different ways. To clean the\ncables when theres no incoming signal, or we can do it\non the fly, up to you.",false), ControllingPlayer);
 }
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new PlaySelectScreen(), e.PlayerIndex);
 }
 void InstructionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new MessageBoxScreen("Bounce the ball against the blocks.\n\n-Red blocks are the weakest and require a single hit.\n-Green blocks are a little stronger, needing 2 hits.\n-Blue blocks need the most with 3 hits.\n-Brown blocks cannot be destroyed.\n\nUse Modifiers\n-Acid Ball: Melts everything in it's path.\n-Size Changers: Slim down or fatten up in pesky spots.\n-Gold Ball: Twice the damage!\n-Padle Size: Get Big or Small with these.\n\nGame Modes\n-BreakOut: Destroy levels of increasing difficulty.\n-Assault: Hold back a horde of blocks for as long as possible.", false), ControllingPlayer);
 }
 void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
 void ConfirmQuitBreakoutxAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                         new GameplayScreen(ScreenManager.GraphicsDevice, 0));
 }
Exemple #10
0
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }