public override void Update(DwarfTime time)
        {
            base.Update(time);
            Animation.Update(time);

            Image = new ImageFrame(Animation.SpriteSheet.GetTexture(), Animation.GetCurrentFrameRect());
        }
Exemple #2
0
        public override void Update(DwarfTime time)
        {
            base.Update(time);
            Animation.Update(time);

            Image = new ImageFrame(Animation.SpriteSheet.GetTexture(), Animation.GetCurrentFrameRect());

            if (Animation.IsDone())
            {
                ShouldDelete = true;
            }
        }
 public AnimatedImagePanel(DwarfGUI gui, GUIComponent parent, Animation animtion)
     : base(gui, parent, new ImageFrame(animtion.SpriteSheet.GetTexture(), animtion.GetCurrentFrameRect()))
 {
     Animation = animtion;
 }
 public AnimatedImagePanel(DwarfGUI gui, GUIComponent parent, Animation animtion)
     : base(gui, parent, new ImageFrame(animtion.SpriteSheet.GetTexture(), animtion.GetCurrentFrameRect()))
 {
     Animation = animtion;
 }