Posted December 28, 20195 yr comment_41990 Have not tested. OP notes (Madara) 'this is just a base, modify the size of the item container and the item lists yourself' Skillguide Interace: public static void skillGuide(GameFont[] tda) { Widget mainScroll = addTabInterface(36100); Widget list = addTabInterface(36350); Widget side = addTabInterface(36150); int pos = 36151; int y = 0; side.height = 75; side.width = 260; list.height = 237; list.width = 284; list.scrollMax = 1750; addSprite(36101, 496); addSprite(36351, 497); addSprite(36352, 498); addButton(36104, 36100, 24, 24, 501, 501, 36105, "Close"); addHoveredButton_sprite_loader(36105, 502, 24, 24, 36106); addHoverText3(36353, "Weapons", "Open", tda, 3, 0x46320a, true, false, 150); addHoverText3(36354, "Armour", "Open", tda, 3, 0x46320a, true, false, 150); addHoverText3(36355, "Salamanders", "Open", tda, 3, 0x46320a, true, false, 150); addTitle(36102, "Attack", tda, 3, 0x46320a, true, false, true); addText(36103, "Weapons", tda, 0, 0x446320a, true, false); Widget container = addTabInterface(36250); container.spritesX = new int[20]; container.spritesY = new int[20]; container.inventoryItemId = new int[58]; container.inventoryAmounts = new int[58]; container.filled = false; container.replaceItems = false; container.usableItems = false; container.allowSwapItems = false; container.spritePaddingX = 0; container.spritePaddingY = 3; container.height = 58; container.width = 1; container.parent = 42000; container.type = TYPE_INVENTORY; for(int i = 0; i < 200; i++) { addText(pos + i, "" + i, tda, 1, 0x46320a, true, false); addText(pos + (i + 1), "" + (i + 1), tda, 1, 0x46320a, false, false); addText(pos + (i + 2), "" + (i + 2), tda, 1, 0x46320a, false, false); i += 3; } mainScroll.totalChildren(7); side.totalChildren(5); list.totalChildren(451); int scrollChild = 0; mainScroll.child(scrollChild++, 36101, 0, 0); mainScroll.child(scrollChild++, 36104, 470, 5); mainScroll.child(scrollChild++, 36105, 470, 5); mainScroll.child(scrollChild++, 36102, 180, 15); mainScroll.child(scrollChild++, 36103, 180, 32); mainScroll.child(scrollChild++, 36150, 355, 35); mainScroll.child(scrollChild++, 36350, 30, 75); int sideChild = 0; side.child(sideChild++, 36351, 0, 0); side.child(sideChild++, 36352, 0, 66); side.child(sideChild++, 36353, 0, 10); side.child(sideChild++, 36354, 0, 28); side.child(sideChild++, 36355, 0, 46); int listChild = 0; list.child(listChild++, 36250, 23, 0); for(int i = 0; i < 600; i++) { list.child(listChild++, pos + i, 11, y + 2); list.child(listChild++, pos + (i + 1), 61, y); list.child(listChild++, pos + (i + 2), 61, y + 13); y += 35; i += 3; } } 508 Scrollbar: public void draw508Scrollbar(int height, int pos, int y, int x, int maxScroll, boolean transparent) { if (transparent) { drawTransparentScrollBar(x, y, height, maxScroll, pos); } else { scrollBar3.drawSprite(x, y); // <- custom sprite scrollBar4.drawSprite(x, (y + height) - 16); // <- custom sprite Rasterizer2D.drawBox(x, y + 16, 16, height - 32, 0x746241); Rasterizer2D.drawBox(x, y + 16, 15, height - 32, 0x77603e); Rasterizer2D.drawBox(x, y + 16, 14, height - 32, 0x95784a); Rasterizer2D.drawBox(x, y + 16, 12, height - 32, 0x997c52); Rasterizer2D.drawBox(x, y + 16, 11, height - 32, 0x9e8155); Rasterizer2D.drawBox(x, y + 16, 10, height - 32, 0xa48558); Rasterizer2D.drawBox(x, y + 16, 8, height - 32, 0xaa8b5c); Rasterizer2D.drawBox(x, y + 16, 6, height - 32, 0xb09060); Rasterizer2D.drawBox(x, y + 16, 3, height - 32, 0x866c44); Rasterizer2D.drawBox(x, y + 16, 1, height - 32, 0x7c6945); int k1 = ((height - 32) * height) / maxScroll; if (k1 < 8) { k1 = 8; } int l1 = ((height - 32 - k1) * pos) / (maxScroll - height); int l2 = ((height - 32 - k1) * pos) / (maxScroll - height) + 6; Rasterizer2D.drawVerticalLine(x + 1, y + 16 + l1, k1, 0x5c492d); Rasterizer2D.drawVerticalLine(x + 14, y + 16 + l1, k1, 0x5c492d); Rasterizer2D.drawHorizontalLine(x + 1, y + 16 + l1, 14, 0x5c492d); Rasterizer2D.drawHorizontalLine(x + 1, y + 15 + l1 + k1, 14, 0x5c492d); Rasterizer2D.drawHorizontalLine(x + 4, y + 18 + l1, 8, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 4, y + 13 + l1 + k1, 8, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 3, y + 19 + l1, 2, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 11, y + 19 + l1, 2, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 3, y + 12 + l1 + k1, 2, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 11, y + 12 + l1 + k1, 2, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 3, y + 14 + l1 + k1, 11, 0x866c44); Rasterizer2D.drawHorizontalLine(x + 3, y + 17 + l1, 11, 0x866c44); Rasterizer2D.drawVerticalLine(x + 13, y + 12 + l2, k1 - 4, 0x866c44); Rasterizer2D.drawVerticalLine(x + 3, y + 13 + l2, k1 - 6, 0x664f2b); Rasterizer2D.drawVerticalLine(x + 12, y + 13 + l2, k1 - 6, 0x664f2b); Rasterizer2D.drawHorizontalLine(x + 2, y + 18 + l1, 2, 0x866c44); Rasterizer2D.drawHorizontalLine(x + 2, y + 13 + l1 + k1, 2, 0x866c44); Rasterizer2D.drawHorizontalLine(x + 12, y + 18 + l1, 1, 0x866c44); Rasterizer2D.drawHorizontalLine(x + 12, y + 13 + l1 + k1, 1, 0x866c44); } } Transparent Background: if(rsInterface.id == 36100) { Rasterizer2D.drawTransparentBox(-100, 0, Rasterizer2D.width + 100, Rasterizer2D.height, 0x3e2f1d, 100); }
May 22, 20205 yr comment_56182 Thank you for this, I always wanted to make a more improved skill guide.
Create an account or sign in to comment