Exemplo n.º 1
0
 public override void Update(GameTime gameTime)
 {
     if (!IsShow)
     {
         return;
     }
     _closeButton.Update(gameTime);
     _listView.Update(gameTime);
 }
Exemplo n.º 2
0
 public override void Update(GameTime gameTime)
 {
     if (!IsShow)
     {
         return;
     }
     base.Update(gameTime);
     _saveloadButton.Update(gameTime);
     _opetionButton.Update(gameTime);
     _exitButton.Update(gameTime);
     _returnButton.Update(gameTime);
 }
Exemplo n.º 3
0
        public override void Update(GameTime gameTime)
        {
            if (!IsShow)
            {
                return;
            }
            base.Update(gameTime);
            _text.Update(gameTime);
            _portrait.Update(gameTime);

            //Updata selection
            _selectA.Update(gameTime);
            _selectB.Update(gameTime);
        }
Exemplo n.º 4
0
        public override void Update(GameTime gameTime)
        {
            if (!IsShow)
            {
                return;
            }
            base.Update(gameTime);
            GuiManager.IsMouseStateEated = true;

            var state = Keyboard.GetState();

            if (state.IsKeyDown(Keys.Up))
            {
                Up();
            }
            else if (state.IsKeyDown(Keys.Left))
            {
                Left();
            }
            else if (state.IsKeyDown(Keys.Right))
            {
                Right();
            }
            else if (state.IsKeyDown(Keys.Down))
            {
                Down();
            }

            //Buttons
            _leftButton.Update(gameTime);
            _rightButton.Update(gameTime);
            _upButton.Update(gameTime);
            _downButton.Update(gameTime);
            _closeButton.Update(gameTime);

            //Textures
            _player.Update(gameTime);
            _enemy.Update(gameTime);
            _partner.Update(gameTime);
            _neutral.Update(gameTime);

            if (_showNameDictionary.ContainsKey(MapBase.MapFileNameWithoutExtension))
            {
                _mapName.Text = _showNameDictionary[MapBase.MapFileNameWithoutExtension];
            }
            else
            {
                _mapName.Text = "无名地图";
            }
        }
Exemplo n.º 5
0
 public override void Update(GameTime gameTime)
 {
     if (!IsShow)
     {
         return;
     }
     base.Update(gameTime);
     _list.Update(gameTime);
     _saveSnapshot.Update(gameTime);
     _loadButton.Update(gameTime);
     if (CanSave)
     {
         _saveButton.Update(gameTime);
     }
     _exitButton.Update(gameTime);
     _saveTime.Update(gameTime);
 }
Exemplo n.º 6
0
        public override void Update(GameTime gameTime)
        {
            if (!IsShow)
            {
                return;
            }
            base.Update(gameTime);
            var mouseState     = Mouse.GetState();
            var screenPosition = new Vector2(mouseState.X, mouseState.Y);

            Position = screenPosition;
            var dragTexture = GuiManager.DragDropSourceTexture;

            if (dragTexture == null)
            {
                _drapImage.BaseTexture = null;
            }
            else
            {
                _drapImage.BaseTexture = dragTexture;
                _drapImage.Position    = new Vector2(-dragTexture.Width / 2f, -dragTexture.Height / 2f);
            }
            _drapImage.Update(gameTime);
        }