示例#1
0
        public void Update(GameTime gameTime)
        {
            if (_transparency < 0.0f || _transparency > 1.0f)
            {
                _transparencyDiff *= -1;
            }

            _transparency += (_transparencyDiff * gameTime.ElapsedGameTime.Milliseconds);

            if (!_showOptions)
            {
                if (MultipleInput.GetInstance().StartButton == ButtonState.Pressed)
                {
                    ChangeState(true);
                }
                else
                {
                    _firstKeyUp = true;
                }
            }
            else
            {
                _options.Update(gameTime);

                if (MultipleInput.GetInstance().FaceButtonB == ButtonState.Pressed)
                {
                    ChangeState(false);
                }
            }
        }
示例#2
0
        /// <summary>
        /// Creates the Component List.
        /// </summary>
        public ComponentList()
        {
            _components     = new List <Component>();
            _input          = MultipleInput.GetInstance();
            ComponentHeight = null;

            _timeout = 0;

            _arrow     = GameContent.LoadContent <Texture2D>("Images/arrow");
            _selectSfx = GameContent.LoadContent <SoundEffect>("Sfx/select");
        }