Пример #1
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);
 }
Пример #2
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);
 }