interface 29400 is a custom interface, have a look at the values set for it client sided. Then have a look if it even got support for more text.
|
Test, Test2, and Test3 do not appear on quest tab interface.
Using interface 29400
The following code is QuestTab.java
The following code is InterfaceHandler.javaCode:package com.vencillio.rs2.content.interfaces.impl; import com.vencillio.VencillioConstants; import com.vencillio.Server; import com.vencillio.core.util.Utility; import com.vencillio.rs2.content.interfaces.InterfaceHandler; import com.vencillio.rs2.entity.World; import com.vencillio.rs2.entity.player.Player; import com.vencillio.rs2.entity.player.net.out.impl.SendColor; /** * Handles the quest tab text * @author Daniel * */ public class QuestTab extends InterfaceHandler { public QuestTab(Player player) { super(player); color(16, 0xC71C1C); color(17, 0xC71C1C); } public void color(int id, int color) { player.send(new SendColor(startingLine() + id, color)); } private final String[] text = { "@or1@ [ @lre@Game Information @or1@]", "@or2@Online Player(s): @whi@" + World.getActivePlayers(), "@or2@Online Staff(s): @whi@" + World.getStaff(), "@or2@Online Player Record: @whi@" + VencillioConstants.MOST_ONLINE, "@or2@Time: @whi@"+ Utility.getCurrentServerTime(), "@or2@Date: @whi@"+ Server.vencillioDate(), "@or2@Uptime: @whi@"+ Server.getUptime(), "@or2@Votes: @whi@" + Utility.format(VencillioConstants.CURRENT_VOTES), "@or2@Last Voter: @whi@" + Utility.formatPlayerName(VencillioConstants.LAST_VOTER) , "@or2@Vesion: @whi@" + VencillioConstants.VERSION, "", "@or1@ [ @lre@Player Information @or1@]", "@or2@Username: @whi@" + Utility.capitalizeFirstLetter(player.getUsername()), "@or2@Rank: " + player.determineIcon(player) + player.determineRank(player) , "@or2@Money spent: @whi@$" + Utility.format(player.getMoneySpent()), "@or2@Credits: @whi@" + Utility.format(player.getCredits()), "@or2@Log Panel [</col>View@or2@]", "@or2@Kill Counts", "", "@or1@ [ @lre@TEST @or1@]", "@or2@ [ @lre@TEST2 @or1@]", "@or2@ [ @lre@TEST3 @or1@]", "", "", }; @Override protected String[] text() { return text; } @Override protected int startingLine() { return 29501; } }
I can also provide the following if needed.Code:package com.vencillio.rs2.content.interfaces; import com.vencillio.rs2.entity.player.Player; import com.vencillio.rs2.entity.player.net.out.impl.SendString; /** * Handles the interfaces * * @author Daniel * */ public abstract class InterfaceHandler { public InterfaceHandler(Player player) { this.player = player; } protected Player player; protected abstract String[] text(); protected abstract int startingLine(); public static void writeText(InterfaceHandler interfacetext) { int line = interfacetext.startingLine(); for (int i1 = 0; i1 < interfacetext.text().length; i1++) { interfacetext.player.send(new SendString(interfacetext.text()[i1], line++)); } } }
SendString.java
OutgoingPacket.java
interface 29400 is a custom interface, have a look at the values set for it client sided. Then have a look if it even got support for more text.
I don't understand this code that's why i'm asking xD
Code:public static void questTab(TextDrawingArea[] vencillio) { RSInterface tab = addTabInterface(29400); addSprite(29401, 82); addSprite(29402, 38); addText(29403, "Warlord", vencillio, 2, 0xF7AA25, true, true); addText(29407, "Www.warlords317.com", vencillio, 2, 0xF7AA25, true, true); addHoverButton(29404, 84, 25, 25, "Achievement diary", -1, 29405, 1); addHoveredButton(29405, 85, 25, 25, 29406); addHoverButton(29410, 351, 15, 15, "Refresh", -1, 29411, 1); addHoveredButton(29411, 352, 15, 15, 29412); addHoverText(29413, "", "", vencillio, 0, 0x47B320, false, true, 50); tab.scrollMax = 0; tab.totalChildren(11); tab.child(0, 29401, -4, 34); tab.child(1, 29402, -0, 34); tab.child(2, 29402, -0, 229); tab.child(3, 29403, 92, 9); tab.child(4, 29404, 160, 4); tab.child(5, 29405, 160, 4); tab.child(6, 29407, 92, 239); tab.child(7, 29500, 10, 36); tab.child(8, 29410, 160, 36); tab.child(9, 29411, 160, 36); tab.child(10, 29413, 8, 22); RSInterface scrollInterface = addTabInterface(29500); scrollInterface.parentID = 29400; scrollInterface.scrollPosition = 0; scrollInterface.atActionType = 0; scrollInterface.contentType = 0; scrollInterface.width = 165; scrollInterface.height = 193; scrollInterface.scrollMax = 1550; int x = 7, y = 9; int amountOfLines = 100; scrollInterface.totalChildren(amountOfLines); for (int i = 0; i < amountOfLines; i++) { addHoverText(29501 + i, "", "", vencillio, 0, 0x47B320, false, true, 168); scrollInterface.child(i, 29501 + i, x, y); y += 18; }
Start looking at the ids in (hoverbutton, addtext, addsprite)
then look at the child(ids) which they match, now go to child method and look at what each value means.
That's where you should start, and even start reading each method.
Thank you that really does help but i'm still confused on how i would figure out what the child method means.
0 is the line, 29401 is the first child ID, but i don't understand any of the last 2 integers in tab.childCode:tab.child(0, 29401, -4, 34);
for example: -4, 34
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |