public InstructionScreen(PlayerIndexEventArgs e, GameToPlay gameToPlay) : base("") { _gameToPlay = gameToPlay; _marginLeft = 110; _e = e; }
void SurvivalMenuEntrySelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayScreen(GameToPlay.SurvivalGame)); }
/// <summary> /// Event handler for when the Play Game menu entry is selected. /// </summary> void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new InstructionScreen(e,GameToPlay.NewGame), e.PlayerIndex); }
/// <summary> /// Event handler for when the Options menu entry is selected. /// </summary> void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex); }
void HighScoresMenuEntrySelected(object sender, PlayerIndexEventArgs e) { HighScores.UploadScore(); ScreenManager.AddScreen(new HighScoresScreen(), e.PlayerIndex); }
/// <summary> /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler. /// </summary> protected void OnCancel(object sender, PlayerIndexEventArgs e) { OnCancel(e.PlayerIndex); }