Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 0.81 KB | Hits: 24 | Expires: Never
Copy text to clipboard
  1.         private static Sprite imageLoader(int i, String s) {
  2.                 long l = (TextClass.method585(s) << 8) + (long)i;
  3.                 Sprite sprite = (Sprite) aMRUNodes_238.insertFromCache(l);
  4.                 if(sprite != null)
  5.                         return sprite;
  6.                 try {
  7.                         sprite = new Sprite(s+" "+i);
  8.                         aMRUNodes_238.removeFromCache(sprite, l);
  9.                 } catch(Exception exception) {
  10.                         return null;
  11.                 }
  12.                 return sprite;
  13.         }
  14.  
  15.  
  16.         public static void addSprite(int id, int spriteId, String spriteName) {
  17.                 RSInterface tab = interfaceCache[id] = new RSInterface();
  18.                 tab.id = id;
  19.                 tab.parentID = id;
  20.                 tab.type = 5;
  21.                 tab.atActionType = 0;
  22.                 tab.contentType = 0;
  23.                 tab.aByte254 = (byte)0;
  24.                 tab.mOverInterToTrigger = 52;
  25.                 tab.sprite1 = imageLoader(spriteId, spriteName);
  26.                 tab.sprite2 = imageLoader(spriteId, spriteName);
  27.                 tab.width = 512;
  28.                 tab.height = 334;
  29.         }