public override void Update(GameTime gameTime) { if (!IsShow) { return; } _closeButton.Update(gameTime); _listView.Update(gameTime); }
public override void Update(GameTime gameTime) { if (!IsShow) { return; } base.Update(gameTime); _saveloadButton.Update(gameTime); _opetionButton.Update(gameTime); _exitButton.Update(gameTime); _returnButton.Update(gameTime); }
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); }
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 = "无名地图"; } }
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); }
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); }