Ejemplo n.º 1
0
        public static void Update(GameTime gameTime)
        {
            _hBox.Update(gameTime);
            infoScreenTransition.Update(gameTime);

            if (InputManager.GamePadConnected())
            {
                if (InputManager.OnButtonDown(Buttons.A))
                {
                    if (InputManager.OnButtonToggle(Buttons.A))
                    {
                        infoScreenTransition.Backward();
                    }
                    else
                    {
                        infoScreenTransition.Forward();
                    }
                }
            }
            else
            {
                if (InputManager.OnKeyDown(_keyboardInput.Inputs[EInput.InfoScreen]))
                {
                    if (InputManager.OnKeyToggle(_keyboardInput.Inputs[EInput.InfoScreen]))
                    {
                        infoScreenTransition.Backward();
                    }
                    else
                    {
                        infoScreenTransition.Forward();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void Update(GameTime gameTime)
        {
            _maxHp.SetText("" + _character.MaxHp);
            _currentHp.SetText("" + _character.CurrentHp);
            _hBox.Update(gameTime);
            _hBox.X = _x;
            _hBox.Y = _y;

            //_name.CursorOnIt = false;
            //_maxHp.CursorOnIt = false;
            //_currentHp.CursorOnIt = false;
        }
Ejemplo n.º 3
0
 public override void Update(GameTime gameTime)
 {
     _box.Update(gameTime);
 }