Advertisement
Guest User

Untitled

a guest
Sep 13th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. public static void addHoverButton(int i, String imageName, int j, int width, int height, String text, int contentType, int hoverOver, int aT) {//hoverable button
  2. RSInterface tab = addTabInterface(i);
  3. tab.id = i;
  4. tab.parentID = i;
  5. tab.type = 5;
  6. tab.atActionType = aT;
  7. tab.contentType = contentType;
  8. tab.aByte254 = 0;
  9. tab.mOverInterToTrigger = hoverOver;
  10. tab.sprite1 = imageLoader(j, imageName);
  11. tab.sprite2 = imageLoader(j, imageName);
  12. tab.width = width;
  13. tab.height = height;
  14. tab.tooltip = text;
  15. }
  16.  
  17. public static void addHoveredButton(int i, String imageName, int j, int w, int h, int IMAGEID) {//hoverable button
  18. RSInterface tab = addTabInterface(i);
  19. tab.parentID = i;
  20. tab.id = i;
  21. tab.type = 0;
  22. tab.atActionType = 0;
  23. tab.width = w;
  24. tab.height = h;
  25. tab.isMouseoverTriggered = true;
  26. tab.aByte254 = 0;
  27. tab.mOverInterToTrigger = -1;
  28. tab.scrollMax = 0;
  29. addHoverImage(IMAGEID, j, j, imageName);
  30. tab.totalChildren(1);
  31. tab.child(0, IMAGEID, 0, 0);
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement