public void Display() { string header = "Favorites"; ArrowedMenu.GetInstance().Load(header, true, Favorites.ToArray()); ArrowedMenu.GetInstance().Display(); }
public void Display() { string header = "Welcome to the Number Guessing Game"; ArrowedMenu.GetInstance().Load(header, true, "Start the Number Guessing Game", HomeMenu.HOME_MENU_STRING); ArrowedMenu.GetInstance().Display(); }
public void Display() { string header = "Welcome to Hangman"; ArrowedMenu.GetInstance().Load(header, true, "Start Hangman", HomeMenu.HOME_MENU_STRING); ArrowedMenu.GetInstance().Display(); }
public void Display() { string header = "Escape Menu"; ArrowedMenu.GetInstance().Load(header, true, HomeMenu.HOME_MENU_STRING, CreditsMenu.CREDITS_MENU_STRING, FavoritesMenu.FAVORITES_MENU_STRING, "Quit"); ArrowedMenu.GetInstance().Display(); }
// Returns the instance of the arrowed menu, creates it if it hasnt been yet public static ArrowedMenu GetInstance() { if (TheOnlyArrowedMenu == null) { TheOnlyArrowedMenu = new ArrowedMenu(); } return(TheOnlyArrowedMenu); }
public void Display() { string header = "This is the Home Page"; string footer = "Up/Down arrows cycle options. Right/Left arrows cycle pages. \n" + "Enter selects an option. F/U favorites/unfavorites an option. Escape goes to escape menu."; ArrowedMenu.GetInstance().Load(header, footer, QuackMenu.QUACK_MENU_STRING, LineRaceMenu.LINE_RACE_MENU_STRING, HangmanMenu.HANGMAN_MENU_STRING, NumberGuessingGameMenu.NUMBER_GUESSING_GAME_MENU_STRING); ArrowedMenu.GetInstance().Display(); }
public IMenu GetNextMenu() { IMenu nextMenu = ArrowedMenu.GetInstance().GetNextMenu(); if (nextMenu == null) { StartNumberGuessingGame(); nextMenu = NumberGuessingGameMenu.GetInstance(); } return nextMenu; }
public IMenu GetNextMenu() { IMenu nextMenu = ArrowedMenu.GetInstance().GetNextMenu(); // If it is null then quit was selected if (nextMenu == null) { StartHangman(); nextMenu = HangmanMenu.GetInstance(); } return(nextMenu); }
public IMenu GetNextMenu() { return(ArrowedMenu.GetInstance().GetNextMenu()); }