/// <summary> /// Event handler for when the user selects ok on the "are you sure /// you want to quit" message box. This uses the loading screen to /// transition from the game back to the main menu screen. /// </summary> void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen()); }
void InputMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new InputDebugScreen(), e.PlayerIndex); }
/* void CharacterMenuEntrySelected(object sender, PlayerIndexEventArgs e) * { * ScreenManager.AddScreen(new CharacterTestScreen(), e.PlayerIndex); * }*/ void BackMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new MainMenuScreen(), e.PlayerIndex); }
/// <summary> /// Loads the intro sequence. /// </summary> /// <param name="e"></param> void LoadIntroSequence(PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new IntroSequenceScreen()); }
void ScenarioMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new ScenarioScreen(), e.PlayerIndex); }
/// <summary> /// Event handler for when the Elite menu entry is selected. /// </summary> void EliteMenuEntrySelected(object sender, PlayerIndexEventArgs e) { LoadIntroSequence(e); }
/// <summary> /// Event handler for when the Exit Game menu entry is selected. /// </summary> void ExitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { // Exit game code }
/// <summary> /// Event hander for when the Options menu entry is selected. /// </summary> void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new OptionsScreen(), e.PlayerIndex); }
/// <summary> /// Event handler for when the Tutorial menu entry is selected. /// </summary> void TutorialMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new TutorialScreen(), e.PlayerIndex); }
/// <summary> /// Event handler for when the Continue menu entry is selected. /// </summary> void ContinueMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new ContinueMenuScreen(), e.PlayerIndex); }