Beispiel #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen()
            : base("Test Levels")
        {
            // Create our menu entries.
            tutlevel = new MenuEntry(tutlevelText);
            level1 = new MenuEntry(level1Text);
            level2 = new MenuEntry(level2Text);
            level3 = new MenuEntry(level3Text);
            level4 = new MenuEntry(level4Text);
            test1 = new MenuEntry(test1Text);
            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.

            back.Selected += OnCancel;
            tutlevel.Selected += tutlevel_Selected;
            level1.Selected += level1_Selected;
            level2.Selected += level2_Selected;
            level3.Selected += level3_Selected;
            level4.Selected += level4_Selected;
            test1.Selected += test1_Selected;

            // Add entries to the menu.
            MenuEntries.Add(tutlevel);
            MenuEntries.Add(level1);
            MenuEntries.Add(level2);
            MenuEntries.Add(level3);
            MenuEntries.Add(level4);
            MenuEntries.Add(test1);
            MenuEntries.Add(back);
        }
Beispiel #2
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen()
            : base("")
        {
            // Create our menu entries.
            MenuEntry playGameMenuEntry = new MenuEntry("Play");
            MenuEntry actMenuEntry = new MenuEntry("Select Act");
            MenuEntry optionsMenuEntry = new MenuEntry("Test Levels");
            MenuEntry survivalModeMenuEntry = new MenuEntry("Survival Mode");
            MenuEntry levelEditEntry = new MenuEntry("Level Editor");
            MenuEntry exitMenuEntry = new MenuEntry("Exit");

            // Hook up menu event handlers.
            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            actMenuEntry.Selected += actMenuEntrySelected;
            optionsMenuEntry.Selected += OptionsMenuEntrySelected;
            levelEditEntry.Selected += levelEditEntrySelected;
            survivalModeMenuEntry.Selected += survivalModeEntrySelected;
            exitMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(playGameMenuEntry);
              //  MenuEntries.Add(actMenuEntry);
            MenuEntries.Add(optionsMenuEntry);
               //     MenuEntries.Add(survivalModeMenuEntry);
            //    MenuEntries.Add(levelEditEntry);
            MenuEntries.Add(exitMenuEntry);
        }
Beispiel #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public PauseMenuScreen()
            : base("")
        {
            // 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);
        }
Beispiel #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ActSelectionScreen()
            : base("Act Select")
        {
            // Create our menu entries.
            actOne = new MenuEntry(actOneText);

            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.

            back.Selected += OnCancel;
            actOne.Selected += actOne_Selected;

            // Add entries to the menu.
            MenuEntries.Add(actOne);

            MenuEntries.Add(back);
        }
Beispiel #5
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ActOneScreen()
            : base("Act One")
        {
            // Create our menu entries.
             tut = new MenuEntry(tutText);
               chapterOne = new MenuEntry(chapterOneText);

            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.

            back.Selected += OnCancel;
            tut.Selected +=  tut_Selected;
            chapterOne.Selected += chapterOne_Selected;

            // Add entries to the menu.
            MenuEntries.Add(tut);
            MenuEntries.Add(chapterOne);

            MenuEntries.Add(back);
        }