protected override void OnCancel(PlayerIndex playerIndex) { const string message = "Last chance, exit?"; MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message); confirmExitMessageBox.Accepted += ConfirmExitMessageBoxAccepted; ScreenManager.AddScreen(confirmExitMessageBox, playerIndex); }
void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { const string message = "Dude, are you sure you want to quit? Q(T.TQ)"; MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message); confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted; ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer); }