Example #1
0
 /// <summary>
 /// Prepare the menu items to be displayed on this menu
 /// </summary>
 protected override void SetupMenuItems()
 {
     menuItems = new MenuItem[1];
     menuItems[0] = new MenuItem(gammaDraconis, Commands.Back);
     menuItems[0].text = "";
 }
Example #2
0
        /// <summary>
        /// Sets up the menu items for the main menu
        /// </summary>
        protected override void SetupMenuItems()
        {
            menuItems = new MenuItem[6];
            menuItems[0] = new MenuItem(gammaDraconis, Commands.Play);
            menuItems[0].text = "Play";
            menuItems[1] = new MenuItem(gammaDraconis, Commands.Controls);
            menuItems[1].text = "Controls";
            menuItems[2] = new MenuItem(gammaDraconis, Commands.GeneralSettings);
            menuItems[2].text = "Gameplay Settings";
            menuItems[3] = new MenuItem(gammaDraconis, Commands.VideoSettings);
            menuItems[3].text = "Video Settings";
            menuItems[4] = new MenuItem(gammaDraconis, Commands.ToggleFullscreen);
            menuItems[4].text = "Toggle Fullscreen";
            menuItems[5] = new MenuItem(gammaDraconis, Commands.Quit);
            menuItems[5].text = "Quit";

            AutoPositionMenuItems();

            foreach (MenuItem item in menuItems)
                item.RelativePosition += new Vector2(100.0f, 350.0f);

            screenInterface.AddComponents(menuItems);
        }
        /// <summary>
        /// Sets up the menu items for the main menu
        /// </summary>
        protected override void SetupMenuItems()
        {
            menuItems = new MenuItem[5];
            menuItems[0] = new MenuItem(gammaDraconis, Commands.ToggleBloom);
            menuItems[0].text = "Bloom Enabled";
            bloomIndex = 0;
            menuItems[1] = new MenuItem(gammaDraconis, Commands.ToggleBloomType);
            menuItems[1].text = "Bloom Type";
            bloomTypeIndex = 1;
            menuItems[2] = new MenuItem(gammaDraconis, Commands.TogglePPL);
            menuItems[2].text = "Toggle PPL";
            perPixelLightingIndex = 2;
            menuItems[3] = new MenuItem(gammaDraconis, Commands.ToggleResolution);
            menuItems[3].text = "Display Resolution";
            resolutionIndex = 3;
            menuItems[4] = new MenuItem(gammaDraconis, Commands.Back);
            menuItems[4].text = "Back";

            AutoPositionMenuItems();

            foreach(MenuItem item in menuItems)
                item.RelativePosition += new Vector2(100.0f, 350.0f);

            screenInterface.AddComponents(menuItems);
        }
        /// <summary>
        /// Sets up the menu items for the main menu
        /// </summary>
        protected override void SetupMenuItems()
        {
            menuItems = new MenuItem[3];
            menuItems[0] = new MenuItem(gammaDraconis, Commands.ToggleTimeToStart);
            menuItems[0].text = "Toggle Time To Start";
            timeToStartIndex = 0;
            menuItems[1] = new MenuItem(gammaDraconis, Commands.ToggleUseMouse);
            menuItems[1].text = "Toggle Use Mouse";
            useMouseIndex = 1;
            menuItems[2] = new MenuItem(gammaDraconis, Commands.Back);
            menuItems[2].text = "Back";

            AutoPositionMenuItems();

            foreach(MenuItem item in menuItems)
                item.RelativePosition += new Vector2(100.0f, 350.0f);

            screenInterface.AddComponents(menuItems);
        }