What exactly is the problem? and what base?
|
Can anyone share the code for the modern and ancient magic tabs? I've been messing with mine for a few days, can't seem to get it to to work properly. Will +rep, my code below.
Code:public static void normalSpellbookEdit(GameFont[] t) { Widget tab = addTabInterface(39000); Widget spellButtons = interfaceCache[12424]; spellButtons.scrollMax = 0; spellButtons.height = 260; spellButtons.width = 190; int[] spellButton = { 1196, 1199, 1206, 1215, 1224, 1231, 1240, 1249, 1258, 1267, 1274, 1283, 1573, 1290, 1299, 1308, 1315, 1324, 1333, 1340, 1349, 1358, 1367, 1374, 1381, 1388, 1397, 1404, 1583, 12038, 1414, 1421, 1430, 1437, 1446, 1453, 1460, 1469, 15878, 1602, 1613, 1624, 7456, 1478, 1485, 1494, 1503, 1512, 1521, 1530, 1544, 1553, 1563, 1593, 1635, 12426, 12436, 12446, 12456, 6004, 18471 }; tab.totalChildren(63); tab.child(0, 12424, 13, 24); for (int i1 = 0; i1 < spellButton.length; i1++) { int yPos = i1 > 34 ? 8 : 183; tab.child(1, 1195, 13, 24); tab.child(i1 + 2, spellButton[i1], 5, yPos); addButton(1195, 1, "Cast @gre@Home Teleport"); Widget homeButton = interfaceCache[1195]; homeButton.hoverType = 1196; } }
Screenshot
Two sprites overlapping for the home teleport button, and the outline of the text box I deleted, but it refuses to go away for whatever reason.
I believe it's the sprites causing the issue (Actual home button, and the blue orb overlapping). But if I delete either of those lines for the sprites, the interface turns in to the Thesselisa's Legs interface for some reason. I've checked all IDs, and none of them are duplicates. If I open the interface (::interface 12424) it's fine, doesn't have the issue.
Screenshot
Got rid of the blue orb, but now these boxes for the spell hovers showed up. I have no clue why, I got rid of the hovers a while ago while diagnosing the sprite issues.
What source are you using?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |