Example #1
0
 public override int GetHeight()
 {
     if (cycle != null)
     {
         return(cycle.GetCollisionBox().height);
     }
     else
     {
         return(wait.height);
     }
 }
Example #2
0
 public WaitSprite(int s, int w, int h)
 {
     this.style = s;
     this.wait = new WaitSprite.DrawWait(s, w, h);
     this.delay = new LTimer(120);
     this.alpha = 1.0F;
     this.visible = true;
     if (s > 1)
     {
         int width_0 = w / 2;
         int height_1 = h / 2;
         cycle = NewSample(s - 2, width_0, height_1);
         RectBox limit = cycle.GetCollisionBox();
         SetLocation(
                 (w - ((limit.GetWidth() == 0) ? (float)(20) : (float)(limit.GetWidth()))) / 2,
                 (h - ((limit.GetHeight() == 0) ? (float)(20) : (float)(limit.GetHeight()))) / 2);
     }
     Update(0);
 }
Example #3
0
 public WaitSprite(int s, int w, int h)
 {
     this.style   = s;
     this.wait    = new DrawWait(s, w, h);
     this.delay   = new LTimer(120);
     this.alpha   = 1.0F;
     this.visible = true;
     if (s > 1)
     {
         int width  = w / 2;
         int height = h / 2;
         cycle = NewSample(s - 2, width, height);
         RectBox limit = cycle.GetCollisionBox();
         SetLocation(
             (w - ((limit.GetWidth() == 0) ? 20 : limit.GetWidth())) / 2,
             (h - ((limit.GetHeight() == 0) ? 20 : limit.GetHeight())) / 2);
     }
     Update(0);
 }