Exemplo n.º 1
0
        public override void Update(DwarfTime time)
        {
            base.Update(time);
            Animation.Update(time);

            Image = new ImageFrame(Animation.SpriteSheet.GetTexture(), Animation.GetCurrentFrameRect());
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 3
0
 public AnimatedImagePanel(DwarfGUI gui, GUIComponent parent, Animation animtion)
     : base(gui, parent, new ImageFrame(animtion.SpriteSheet.GetTexture(), animtion.GetCurrentFrameRect()))
 {
     Animation = animtion;
 }
Exemplo n.º 4
0
 public AnimatedImagePanel(DwarfGUI gui, GUIComponent parent, Animation animtion)
     : base(gui, parent, new ImageFrame(animtion.SpriteSheet.GetTexture(), animtion.GetCurrentFrameRect()))
 {
     Animation = animtion;
 }