void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { const string message = "Ana menüye dönmek istediðinize emin misiniz?"; MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message); confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted; ScreenManager.AddScreen(confirmQuitMessageBox, ControllingPlayer); }
void RulesMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new RulesScreen(), e.PlayerIndex); }
void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new GameplayScreen()); }
void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex); }
void ConfirmExitMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { ScreenManager.Game.Exit(); }
void LanguageMenuEntrySelected(object sender, PlayerIndexEventArgs e) { currentLanguage = (currentLanguage + 1) % languages.Length; SetMenuEntryText(); }
void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, false, null, new BackgroundScreen(), new MainMenuScreen()); }
protected void OnCancel(object sender, PlayerIndexEventArgs e) { OnCancel(e.PlayerIndex); }