Guest User

Untitled

a guest
Jan 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.60 KB | None | 0 0
  1.  
  2.  
  3.     public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {
  4.         RSInterface tab = addTabInterface(i);
  5.         tab.id = i;
  6.         tab.parentID = i;
  7.         tab.type = 5;
  8.         tab.atActionType = aT;
  9.         tab.contentType = contentType;
  10.         tab.aByte254 = 0;
  11.         tab.mOverInterToTrigger = hoverOver;
  12.         tab.sprite1 = imageLoader(j, imageName);
  13.         tab.sprite2 = imageLoader(j, imageName);
  14.         tab.width = width;
  15.         tab.height = height;
  16.         tab.tooltip = text;
  17.     }
  18.  
  19.     public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {
  20.         RSInterface tab = addTabInterface(i);
  21.         tab.parentID = i;
  22.         tab.id = i;
  23.         tab.type = 0;
  24.         tab.atActionType = 0;
  25.         tab.width = w;
  26.         tab.height = h;
  27.         tab.isMouseoverTriggered = true;
  28.         tab.aByte254 = 0;
  29.         tab.mOverInterToTrigger = -1;
  30.         tab.scrollMax = 0;
  31.         addHoverImage(IMAGEID, j, j, imageName);
  32.         tab.totalChildren(1);
  33.         tab.child(0, IMAGEID, 0, 0);
  34.     }
  35.  
  36.     public static void addHoverImage(int i, int j, int k, String name) {
  37.         RSInterface tab = addTabInterface(i);
  38.         tab.id = i;
  39.         tab.parentID = i;
  40.         tab.type = 5;
  41.         tab.atActionType = 0;
  42.         tab.contentType = 0;
  43.         tab.width = 512;
  44.         tab.height = 334;
  45.         tab.aByte254 = 0;
  46.         tab.mOverInterToTrigger = 52;
  47.         tab.sprite1 = imageLoader(j, name);
  48.         tab.sprite2 = imageLoader(k, name);
  49.     }
Add Comment
Please, Sign In to add comment