예제 #1
0
 public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
 {
     if (initialized)
     {
         scrolling.Update(gameTime);
     }
     base.Update(gameTime);
 }
예제 #2
0
        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);
        }
예제 #3
0
 public override void Update(GameTime time)
 {
     scrolling.Update(time);
     base.Update(time);
 }