Пример #1
0
 /// <summary>
 /// Puts the worker state on void
 /// </summary>
 public void MenuVoid()
 {
     PreviousWorkerState = CurrentWorkerState;
     CurrentWorkerState = VideoMenuState.VOID;
 }
Пример #2
0
        /// <summary>
        /// Goes to the "next" option
        /// </summary>
        private void CycleForward()
        {
            if (CurrentWorkerState == VideoMenuState.BACK)
            {
                CurrentWorkerState = VideoMenuState.RESOLUTION;
            }
            else
            {
                CurrentWorkerState++;
            }

            for (int i = 0; i < int_NumOfOptions; i++)
            {
                if (i == (int)CurrentWorkerState)
                {
                    if (i == 1 && mGraphics.Peek.IsFullScreen)
                    {
                        menuItems[1].t2d_Texture = menuItems[1].t2d_Texture_Selected;
                    }
                    else if (i == 2 && mGraphics.Peek.PostProcessing)
                    {
                        menuItems[2].t2d_Texture = menuItems[2].t2d_Texture_Selected;
                    }
                    else
                    {
                        menuItems[i].t2d_Texture = menuItems[i].t2d_Texture_Highlight;
                    }
                }
                else if (i == 1 && mGraphics.Peek.IsFullScreen)
                {
                    menuItems[1].t2d_Texture = menuItems[1].t2d_Texture_Selected_Original;
                }
                else if (i == 2 && mGraphics.Peek.PostProcessing)
                {
                    menuItems[2].t2d_Texture = menuItems[2].t2d_Texture_Selected_Original;
                }
                else
                {
                    menuItems[i].t2d_Texture = menuItems[i].t2d_Texture_Original;
                }
            }
        }
Пример #3
0
        public override void Initialize()
        {
            menuBackground = new menuItem();

            menuItems = new menuItem[int_NumOfOptions];
            for (int i = 0; i < int_NumOfOptions; i++)
            {
                menuItems[i] = new menuItem();
            }

            resItems = new menuItem[int_NumOfResOptions];
            for (int i = 0; i < int_NumOfResOptions; i++)
            {
                resItems[i] = new menuItem();
            }

            CurrentWorkerState = VideoMenuState.BACK;
            CurrentResState = ResolutionOptions.ZERO;
        }