You would make a hoverBox and a hoverdBox.
Spoiler for Voids :
Code:
public static void addHoverButton(int i, String imageName, 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.aByte254 = 0;
tab.mOverInterToTrigger = hoverOver;
tab.sprite1 = new Sprite(""+imageName);
tab.sprite2 = new Sprite(""+imageName);
tab.width = tab.sprite1.myWidth;
tab.height = tab.sprite1.myHeight;
tab.tooltip = text;
}
public static void addHoveredButton(int i, String imageName, int IMAGEID) {//hoverable button
RSInterface tab = addTabInterface(i);
tab.parentID = i;
tab.id = i;
tab.type = 0;
tab.atActionType = 0;
tab.isMouseoverTriggered = true;
tab.aByte254 = 0;
tab.mOverInterToTrigger = -1;
tab.scrollMax = 0;
addHoverImage(IMAGEID, ""+imageName);
tab.totalChildren(1);
tab.child(0, IMAGEID, 0, 0);
}
public static void addHoverImage(int i, String name) {
client c = new client();
RSInterface tab = addTabInterface(i);
tab.id = i;
tab.parentID = i;
tab.type = 5;
tab.atActionType = 0;
tab.contentType = 0;
tab.aByte254 = 0;
tab.mOverInterToTrigger = 52;
tab.sprite1 = new Sprite(""+name);
tab.sprite2 = new Sprite(""+name);
tab.width = tab.sprite1.myWidth;
tab.height = tab.sprite1.myHeight;
}
just set the boundaries to the original image you want to hover over.
Example:
Code:
addHoverButton(15010, "exit 0", "Close Window", -1, 15011, 1);
addHoveredButton(15011, "exit 1", 15051);
then set the location to the same so it hovers the "hoveredButton" in the same spot as the original
Code:
setBounds(15010, 421, 29, 3, Interface);
setBounds(15011, 421, 29, 4, Interface);