Ejemplo n.º 1
0
 void PlayMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( signInMenuScreen, e.PlayerIndex );
 }
Ejemplo n.º 2
0
 void LeaderboardMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( highscoreScreen, e.PlayerIndex );
 }
Ejemplo n.º 3
0
 void OptionsMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( optionsMenuScreen, e.PlayerIndex );
 }
Ejemplo n.º 4
0
 void CreditsMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( creditsMenuScreen, e.PlayerIndex );
 }
Ejemplo n.º 5
0
 void HowToPlayMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( controlsMenuScreen, e.PlayerIndex );
 }
Ejemplo n.º 6
0
        void RestartMenuEntrySelected( object sender, PlayerIndexEventArgs e )
        {
            const string message = "Ack! Do you really want to quit this game?";

              MessageBoxScreen confirmRestartMessageBox = new MessageBoxScreen( message );

              confirmRestartMessageBox.Accepted += ConfirmRestartMessageBoxAccepted;

              ScreenManager.AddScreen( confirmRestartMessageBox, ControllingPlayer );
        }
Ejemplo n.º 7
0
 void ConfirmExitMessageBoxAccepted( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.Game.Exit();
 }
Ejemplo n.º 8
0
 void ConfirmQuitMessageBoxAccepted( object sender, PlayerIndexEventArgs e )
 {
     LoadingScreen.Load( ScreenManager, false, null, new BackgroundScreen(),
                                               new MainMenuScreen() );
       ScreenManager.MenuTrack.Dispose();
       ScreenManager.MenuTrack = null;
       //float volume = GameCore.Instance.MusicVolume;
       //ScreenManager.MenuTrack = GameCore.Instance.AudioManager.Play2DCue( "menuLoop", volume );
 }
Ejemplo n.º 9
0
 void ConfirmRestartMessageBoxAccepted( object sender, PlayerIndexEventArgs e )
 {
     Slot[] slots = GameplayScreen.Instance.Slots;
       LoadingScreen.Load( ScreenManager, true, null, new GameplayScreen( slots ) );
 }
Ejemplo n.º 10
0
 public void ShowBuy( object o, PlayerIndexEventArgs args )
 {
     SignedInGamer gamer = null;
       foreach ( SignedInGamer temp in SignedInGamer.SignedInGamers )
       {
     if ( temp.IsSignedInToLive )
     {
       if ( gamer == null || ( temp.PlayerIndex == args.PlayerIndex ) )
     gamer = temp;
     }
       }
       if ( gamer != null && gamer.PlayerIndex == args.PlayerIndex )
     Guide.ShowMarketplace( gamer.PlayerIndex );
       else
     screenManager.AddScreen( new MessageBoxScreen( "You must be signed in to Xbox Live" ), null );
 }
 void ViewHighScores( object sender, PlayerIndexEventArgs e )
 {
     //ScreenManager.AddScreen( new LeaderboardMenuScreen(), null );
       ScreenManager.AddScreen( new HighscoreScreen( ScreenManager ), e.PlayerIndex );
       fadeBackBuffer = true;
 }
 void PlayAgain( object sender, PlayerIndexEventArgs e )
 {
     //ScreenManager.MenuTrack.Pause();
       LoadingScreen.Load( ScreenManager, true, null, new GameplayScreen( slots ) );
 }
 void Exit( object sender, PlayerIndexEventArgs e )
 {
     LoadingScreen.Load( ScreenManager, false, null, new BackgroundScreen(),
                                               new MainMenuScreen() );
       fadeBackBuffer = true;
 }
Ejemplo n.º 14
0
 protected void OnCancel( object sender, PlayerIndexEventArgs e )
 {
     OnCancel( e.PlayerIndex );
 }