addHoverButton
Code:
public static void addHoverButton(int interfaceId, int spriteId, int width, int height, String text, int contentType, int hoverOver, int actionType) {
// hoverable button
RSInterface tab = addTabInterface(interfaceId);
tab.id = interfaceId;
tab.parentID = interfaceId;
tab.type = 5;
tab.atActionType = actionType;
tab.contentType = contentType;
tab.opacity = 0;
tab.hoverType = hoverOver;
if (spriteId >= 0) {
tab.sprite1 = Client.cacheSprite[spriteId];
tab.sprite2 = Client.cacheSprite[spriteId];
}
tab.width = width;
tab.height = height;
tab.tooltip = text;
}
public static void addHoverButton(int i, int disabledSprite,
int enabledSprite, int width, int height, String text,
int contentType, int hoverOver, int aT) {// hoverable
// button
RSInterface tab = addTabInterface(i);
tab.id = i;
tab.parentID = i;
tab.type = 5;
tab.atActionType = aT;
tab.contentType = contentType;
tab.opacity = 0;
tab.hoverType = hoverOver;
tab.sprite1 = Client.cacheSprite[disabledSprite];
tab.sprite2 = Client.cacheSprite[enabledSprite];
tab.width = width;
tab.height = height;
tab.tooltip = text;
}
addHoveredButton
Code:
public static void addHoveredButton(int i, int disabledSprite,
int enabledSprite, int w, int h, int IMAGEID) {
RSInterface tab = addTabInterface(i);
tab.parentID = i;
tab.id = i;
tab.type = 0;
tab.atActionType = 0;
tab.width = w;
tab.height = h;
tab.interfaceShown = true;
tab.opacity = 0;
tab.hoverType = -1;
tab.scrollMax = 0;
addHoverImage(IMAGEID, disabledSprite, enabledSprite);
tab.totalChildren(1);
tab.child(0, IMAGEID, 0, 0);
}
public static void addHoveredButton(int i, int j, int w, int h, int IMAGEID) {
// hoverable button
RSInterface tab = addTabInterface(i);
tab.parentID = i;
tab.id = i;
tab.type = 0;
tab.atActionType = 0;
tab.width = w;
tab.height = h;
tab.interfaceShown = true;
tab.opacity = 0;
tab.hoverType = -1;
tab.scrollMax = 0;
addHoverImage(IMAGEID, j, j);
tab.totalChildren(1);
tab.child(0, IMAGEID, 0, 0);
}
addHoverImage
Code:
private static void addHoverImage(int i, int j, int k) {
RSInterface tab = addTabInterface(i);
tab.id = i;
tab.parentID = i;
tab.type = 5;
tab.atActionType = 0;
tab.contentType = 0;
tab.width = 512;
tab.height = 334;
tab.opacity = 0;
tab.hoverType = 52;
tab.sprite1 = Client.cacheSprite[j];
tab.sprite2 = Client.cacheSprite[k];
}