public override void Update(Microsoft.Xna.Framework.GameTime gameTime) { if (initialized) { scrolling.Update(gameTime); } base.Update(gameTime); }
public override void Update(GameTime time) { scrolling.Update(time); // Could be optimized to be on count updated instead if (lastCount < EditorEngine.Instance.World.EntityContainer.GetBuildings().Count()) { Rectangle lb = this.getEntityBounds().Last <Rectangle>(); lastCount = getEntityBounds().Count <Rectangle>(); this.scrollBar.Maximum = Math.Max(0, lb.Y + lb.Height - Height); } base.Update(time); }
public override void Update(GameTime time) { scrolling.Update(time); base.Update(time); }