Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void playerOwnedShopHistory(TextDrawingArea[] tda) {
- int baseX = 40;
- int baseY = 25;
- int interfaceId = 50_500;
- int historyListId = 50_550;
- int index = 1;
- RSInterface mainInterface = RSInterface.addInterface(50500); //main interface display
- addSpriteLoader(50501, 1167); //main sprite 50501
- RSInterface.addText(50502, "Shop History", tda, 2, 0xff981f, true);
- addHoverButtonWSpriteLoader(50503, 65, 16, 16, "Close Window", 0, 50504, 3);
- addHoveredImageWSpriteLoader(50504, 66, 16, 16, 50505);
- addHoverButtonWSpriteLoader(50506, 1037, 56, 18, "Select", -1, 50507, 1); //Change 1037 to nonhighlight id
- addHoveredImageWSpriteLoader(50507, 1038, 56, 18, 50508); //Change 1038 to highlight id
- addText(50509, "Home", tda, 0, 0xff7000, true, true);
- addHoverButtonWSpriteLoader(50510, 1037, 56, 18, "Select", -1, 50511, 1); //Change 1037 to nonhighlight id
- addHoveredImageWSpriteLoader(50511, 1038, 56, 18, 50512); //Change 1038 to highlight id
- addText(50513, "Back", tda, 0, 0xff7000, true, true);
- RSInterface historyList = RSInterface.addInterface(historyListId); index++; //history list scroll
- mainInterface.totalChildren(11);
- index = 0;
- mainInterface.child(0, 50501, baseX, baseY); //background
- mainInterface.child(1, 50502, baseX + (432 / 2), baseY + 8); //title
- mainInterface.child(2, 50503, baseX + 408, baseY + 7); //close
- mainInterface.child(3, 50504, baseX + 408, baseY + 7); //close hover
- mainInterface.child(4, 50506, baseX + 408, baseY + 7); //buttons
- mainInterface.child(5, 50507, baseX + 408, baseY + 7); //buttons
- mainInterface.child(6, 50509, baseX + 408, baseY + 7); //buttons
- mainInterface.child(7, 50510, baseX + 408, baseY + 7); //buttons
- mainInterface.child(8, 50511, baseX + 408, baseY + 7); //buttons
- mainInterface.child(9, 50513, baseX + 408, baseY + 7); //buttons
- mainInterface.child(10, historyListId, 4 + baseX, 29 + baseY); //history list
- /*
- * History list
- */
- int totalHistory = 30;
- historyList.width = 405;
- historyList.height = 240;
- historyList.scrollMax = totalHistory * 25 + 5;
- historyList.totalChildren(totalHistory * 2);
- historyListId++;
- index = 0;
- int increaseY = 0;
- for (int i = 0; i < totalHistory; i++) {
- RSInterface.addText(historyListId, " ", tda, 2, 0xc8aa64, true);
- historyList.child(index++, historyListId++, (405 / 2), 7 + increaseY + 3);
- increaseY += 20;
- addRectangle(historyListId, 405, -1, 0x000000, 200, false);
- historyList.child(index++, historyListId++, 0, 7 + increaseY + 3);
- increaseY += 10;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement