void ChallengeInfoEntrySelected(object sender, PlayerIndexEventArgs e) { ChallengeModeMessageBoxScreen challengeInfoEntryScreen = new ChallengeModeMessageBoxScreen(this.challenge.GetName(), this.challenge.GetDescription(), true); ScreenManager.AddScreen(challengeInfoEntryScreen, ControllingPlayer); }
void ChallengeEntrySelected(object sender, PlayerIndexEventArgs e) { string challengeName = ((MenuEntry)sender).Text; currentlySelectedChallenge = ChallengeManager.Instance.GetChallengeByName(challengeName); string message = "Challenge - " + currentlySelectedChallenge.GetName() + "\n\n" + currentlySelectedChallenge.GetDescription(); ChallengeModeMessageBoxScreen confirmExitMessageBox = new ChallengeModeMessageBoxScreen(currentlySelectedChallenge.GetName(), currentlySelectedChallenge.GetDescription(), false); confirmExitMessageBox.Accepted += ConfirmChallengeSelected; ScreenManager.AddScreen(confirmExitMessageBox, ControllingPlayer); }