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