Esempio n. 1
0
 public virtual void DisableAnimation()
 {
     currentFrame  = 0;
     cyclesLeft    = 0;
     ticksPerFrame = 1;
     ticks         = -1;
     wrapperType   = AnimationWrapperType.Off;
 }
Esempio n. 2
0
 public virtual void StartAnimation(int ticksPerFrame, int cyclesLeft, AnimationWrapperType wrapperType)
 {
     if (AnimationCount == 1)
     {
         return;
     }
     this.ticksPerFrame = ticksPerFrame;
     this.cyclesLeft    = cyclesLeft;
     this.wrapperType   = wrapperType;
     ticks          = 0;
     currentFrame   = 0;
     reverseAnimate = false;
 }
Esempio n. 3
0
 public void StartAnimation(int ticksPerFrame, int cyclesLeft, AnimationWrapperType wrapperType)
 {
     if ((CannonGraphic as Graphic_Animate).AnimationFrameCount == 1)
     {
         return;
     }
     this.ticksPerFrame = ticksPerFrame;
     this.cyclesLeft    = cyclesLeft;
     this.wrapperType   = wrapperType;
     ticks          = 0;
     currentFrame   = 0;
     reverseAnimate = false;
 }