Exemple #1
0
 // Token: 0x060003E2 RID: 994 RVA: 0x0001E49C File Offset: 0x0001C69C
 public static void drawSmallImage(mGraphics g, int id, int f, int x, int y, int w, int h, int transform, int anchor)
 {
     if (SmallImage.imgbig == null)
     {
         Small small = SmallImage.imgNew[id];
         if (small == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             g.drawRegion(small.img, 0, f * w, w, h, transform, x, y, anchor);
         }
         return;
     }
     if (SmallImage.smallImg != null)
     {
         if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id] == null || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256)
         {
             Small small2 = SmallImage.imgNew[id];
             if (small2 == null)
             {
                 SmallImage.createImage(id);
             }
             else
             {
                 small2.paint(g, transform, f, x, y, w, h, anchor);
             }
         }
         else if (SmallImage.smallImg[id][0] != 4 && SmallImage.imgbig[SmallImage.smallImg[id][0]] != null)
         {
             g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], 0, f * w, w, h, transform, x, y, anchor);
         }
         else
         {
             Small small3 = SmallImage.imgNew[id];
             if (small3 == null)
             {
                 SmallImage.createImage(id);
             }
             else
             {
                 small3.paint(g, transform, f, x, y, w, h, anchor);
             }
         }
     }
     else if (GameCanvas.currentScreen != GameScr.gI())
     {
         Small small4 = SmallImage.imgNew[id];
         if (small4 == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             small4.paint(g, transform, f, x, y, w, h, anchor);
         }
     }
 }
Exemple #2
0
 // Token: 0x060003E1 RID: 993 RVA: 0x0001E328 File Offset: 0x0001C528
 public static void drawSmallImage(mGraphics g, int id, int x, int y, int transform, int anchor)
 {
     if (SmallImage.imgbig == null)
     {
         Small small = SmallImage.imgNew[id];
         if (small == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             g.drawRegion(small, 0, 0, mGraphics.getImageWidth(small.img), mGraphics.getImageHeight(small.img), transform, x, y, anchor);
         }
         return;
     }
     if (SmallImage.smallImg != null)
     {
         if (id >= SmallImage.smallImg.Length || SmallImage.smallImg[id][1] >= 256 || SmallImage.smallImg[id][3] >= 256 || SmallImage.smallImg[id][2] >= 256 || SmallImage.smallImg[id][4] >= 256)
         {
             Small small2 = SmallImage.imgNew[id];
             if (small2 == null)
             {
                 SmallImage.createImage(id);
             }
             else
             {
                 small2.paint(g, transform, x, y, anchor);
             }
         }
         else if (SmallImage.imgbig[SmallImage.smallImg[id][0]] != null)
         {
             g.drawRegion(SmallImage.imgbig[SmallImage.smallImg[id][0]], SmallImage.smallImg[id][1], SmallImage.smallImg[id][2], SmallImage.smallImg[id][3], SmallImage.smallImg[id][4], transform, x, y, anchor);
         }
     }
     else if (GameCanvas.currentScreen != GameScr.gI())
     {
         Small small3 = SmallImage.imgNew[id];
         if (small3 == null)
         {
             SmallImage.createImage(id);
         }
         else
         {
             small3.paint(g, transform, x, y, anchor);
         }
     }
 }