/// <summary> /// Event handler for when the Ungulate menu entry is selected. /// </summary> void UngulateMenuEntrySelected(object sender, PlayerIndexEventArgs e) { currentUngulate++; if (currentUngulate > Ungulate.Llama) currentUngulate = 0; SetMenuEntryText(); }
/// <summary> /// Event handler for when the Back menu entry is selected. /// </summary> void BackMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ExitScreen(); }
/// <summary> /// Event handler for when the Frobnicate menu entry is selected. /// </summary> void FrobnicateMenuEntrySelected(object sender, PlayerIndexEventArgs e) { frobnicate = !frobnicate; SetMenuEntryText(); }
/// <summary> /// Event handler for when the Language menu entry is selected. /// </summary> void LanguageMenuEntrySelected(object sender, PlayerIndexEventArgs e) { currentLanguage = (currentLanguage + 1) % languages.Length; SetMenuEntryText(); }
/// <summary> /// Event handler for when the Options menu entry is selected. /// </summary> void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e) { //ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex); }
/// <summary> /// Event handler for when the Elf menu entry is selected. /// </summary> void ElfMenuEntrySelected(object sender, PlayerIndexEventArgs e) { elf++; SetMenuEntryText(); }
void NewMenuEntrySelected(object sender, PlayerIndexEventArgs e) { //ScreenManager.AddScreen(new AboutScreen(), e.PlayerIndex); }
/// <summary> /// Event handler for when the Options menu entry is selected. /// </summary> void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e) { ScreenManager.Game.Exit(); }
/// <summary> /// Event handler for when the Play Game menu entry is selected. /// </summary> void ResumeGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { BGScreen.ExitScreen(); ExitScreen(); }
/// <summary> /// Event handler for when the Options menu entry is selected. /// </summary> void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e) { //LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new GameplayScreen(), // new MainMenuScreen()); ScreenManager.Game.Exit(); }
/// <summary> /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler. /// </summary> protected void OnCancel(object sender, PlayerIndexEventArgs e) { OnCancel(e.PlayerIndex); }