예제 #1
0
 void PlayMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( signInMenuScreen, e.PlayerIndex );
 }
예제 #2
0
 void LeaderboardMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( highscoreScreen, e.PlayerIndex );
 }
예제 #3
0
 void OptionsMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( optionsMenuScreen, e.PlayerIndex );
 }
예제 #4
0
 void CreditsMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( creditsMenuScreen, e.PlayerIndex );
 }
예제 #5
0
 void HowToPlayMenuEntrySelected( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.AddScreen( controlsMenuScreen, e.PlayerIndex );
 }
예제 #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 );
        }
예제 #7
0
 void ConfirmExitMessageBoxAccepted( object sender, PlayerIndexEventArgs e )
 {
     ScreenManager.Game.Exit();
 }
예제 #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 );
 }
예제 #9
0
 void ConfirmRestartMessageBoxAccepted( object sender, PlayerIndexEventArgs e )
 {
     Slot[] slots = GameplayScreen.Instance.Slots;
       LoadingScreen.Load( ScreenManager, true, null, new GameplayScreen( slots ) );
 }
예제 #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;
 }
예제 #14
0
 protected void OnCancel( object sender, PlayerIndexEventArgs e )
 {
     OnCancel( e.PlayerIndex );
 }