protected override void OnCancel(PlayerIndex playerIndex) { const string message = "Are you sure you want to exit Hockey Slam?"; MessageBoxScreen confirmExitMessageBox = new MessageBoxScreen(message); confirmExitMessageBox.Accepted += ConfirmedExitMessageBoxAccepted; ScreenManager.AddScreen(confirmExitMessageBox, playerIndex); }
private void handleMenuSelected(LocalNetworkGamer gamer) { if (!gamer.IsReady) gamer.IsReady = true; else if (gamer.IsHost) { MessageBoxScreen messageBox = new MessageBoxScreen("Are you sure you want to start the game,\neven though not all players are ready?"); messageBox.Accepted += ConfirmStartGameMessageBoxAccepted; ScreenManager.AddScreen(messageBox, gamer.SignedInGamer.PlayerIndex); } }