Exemple #1
0
 private void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Exemple #2
0
 private void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Exemple #3
0
 private void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     GameScreen[] Screens = ScreenManager.GetScreens();
     Screens[0].ExitScreen();
     ScreenManager.AddScreen(new GameplayScreen(new Player(new Vector2(ScreenManager.GraphicsDevice.Viewport.Width / 2, ScreenManager.GraphicsDevice.Viewport.Height / 2))), e.PlayerIndex);
 }