/// <summary> /// When the user cancels the main menu, ask if they want to exit the sample. /// </summary> protected override void OnCancel() { const string message = "Give up already?"; MessageBoxScreen messageBox = new MessageBoxScreen(message); messageBox.Accepted += ExitMessageBoxAccepted; ScreenManager.AddScreen(messageBox); }
void RestartGame(object sender, EventArgs e) { MessageBoxScreen message = new MessageBoxScreen("Are you sure you want to restart?"); message.Accepted += RestartGameAccepted; ScreenManager.AddScreen(message); }
/// <summary> /// Event handler for when the Highscores meny entry is selected. /// </summary> void HighScoresMenuEntrySelected(object sender, EventArgs e) { MessageBoxScreen messageBox = new MessageBoxScreen("Highscores is not available in this version.", false); ScreenManager.AddScreen(messageBox); //ScreenManager.AddScreen(new HighscoreScreen()); }
/// <summary> /// Event handler for when the Options menu entry is selected. /// </summary> void OptionsMenuEntrySelected(object sender, EventArgs e) { MessageBoxScreen messageBox = new MessageBoxScreen("Options is not available in this version.", false); ScreenManager.AddScreen(messageBox); }