/// <summary> /// Constructor. /// </summary> public TutorialMenuScreen() : base("Tutorial") { // Create our menu entries. ungulateMenuEntry = new MenuEntry(string.Empty); SetMenuEntryText(); MenuEntry backMenuEntry = new MenuEntry("Back"); // Hook up menu event handlers. ungulateMenuEntry.Selected += UngulateMenuEntrySelected; // Add entries to the menu. MenuEntries.Add(ungulateMenuEntry); }
/// <summary> /// Constructor. /// </summary> public EndMenuScreen() : base("End") { // Create our menu entries. ungulateMenuEntry = new MenuEntry(string.Empty); videoPlayer = new VideoPlayer(); SetMenuEntryText(); //gameFont = new SpriteFont(); MenuEntry backMenuEntry = new MenuEntry("Back"); // Hook up menu event handlers. ungulateMenuEntry.Selected += UngulateMenuEntrySelected; // Add entries to the menu. MenuEntries.Add(ungulateMenuEntry); }
/// <summary> /// Constructor fills in the menu contents. /// </summary> public MainMenuScreen() : base(zh_cn.���˵�) { // Create our menu entries. MenuEntry playGameMenuEntry = new MenuEntry(zh_cn.��ʼ��Ϸ); MenuEntry optionsMenuEntry = new MenuEntry(zh_cn.����ѡ��); MenuEntry exitMenuEntry = new MenuEntry(zh_cn.�˳�); // Hook up menu event handlers. playGameMenuEntry.Selected += PlayGameMenuEntrySelected; optionsMenuEntry.Selected += OptionsMenuEntrySelected; exitMenuEntry.Selected += OnCancel; // Add entries to the menu. MenuEntries.Add(playGameMenuEntry); MenuEntries.Add(optionsMenuEntry); MenuEntries.Add(exitMenuEntry); }
/// <summary> /// Constructor fills in the menu contents. /// </summary> public MainMenuScreen() : base("Main Menu") { // Create our menu entries. MenuEntry playGameMenuEntry = new MenuEntry("Play Game"); MenuEntry tutorialMenuEntry = new MenuEntry("Tutorial"); MenuEntry exitMenuEntry = new MenuEntry("Exit"); // Hook up menu event handlers. playGameMenuEntry.Selected += PlayGameMenuEntrySelected; tutorialMenuEntry.Selected += TutorialMenuEntrySelected; exitMenuEntry.Selected += OnCancel; // Add entries to the menu. MenuEntries.Add(playGameMenuEntry); MenuEntries.Add(tutorialMenuEntry); MenuEntries.Add(exitMenuEntry); }
/// <summary> /// Constructor. /// </summary> public PauseMenuScreen() : base("Paused") { // Flag that there is no need for the game to transition // off when the pause menu is on top of it. IsPopup = true; // Create our menu entries. MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game"); MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game"); // Hook up menu event handlers. resumeGameMenuEntry.Selected += OnCancel; quitGameMenuEntry.Selected += QuitGameMenuEntrySelected; // Add entries to the menu. MenuEntries.Add(resumeGameMenuEntry); MenuEntries.Add(quitGameMenuEntry); }