Code:
public static void addSettingsWidgetGlobals(TextDrawingArea[] tda) {
//Background
addSprite(31001, 0, "Options/main tab/sprite");
addBankHover(31014, 4, 31015, 1, 2, //Aid
"Options/Interface/aid", 40, 40, 304, 1,
"Toggle Accept Aid", 31016, 1, 2,
"Options/Interface/aid", 31017, "", "", 12, 20);
addBankHover(31018, 4, 31019, 1, 2, //Run
"Options/Interface/run", 40, 40, 173, 1,
"Toggle run", 31020, 1, 2, "Options/Interface/run",
31021, "", "", 12, 20);
addButton(31022, 1, "Options/Interface/bond", 40, 40, "Open Store", 1); //Bond
addButton(31023, 1, "Options/Interface/house", 40, 40, "More Options", 1); //Empty
//Display Pressed
addHoverButton(31002, "Options/main tab/display", 2, 40, 40, "Display", -1, 31003, 1);
addHoveredButton(31003, "Options/main tab/display", 4, 40, 40, 31004);
//Display Not Pressed
addHoverButton(31041, "Options/main tab/display", 1, 40, 40, "Display", -1, 31042, 1);
addHoveredButton(31042, "Options/main tab/display", 3, 40, 40, 31043);
//Audio Pressed
addHoverButton(31061, "Options/main tab/audio", 2, 40, 40, "Audio", -1, 31062, 1);
addHoveredButton(31062, "Options/main tab/audio", 4, 40, 40, 31063);
//Audio Not Pressed
addHoverButton(31005, "Options/main tab/audio", 1, 40, 40, "Audio", -1, 31006, 1);
addHoveredButton(31006, "Options/main tab/audio", 3, 40, 40, 31007);
//Chat Pressed
addHoverButton(31051, "Options/main tab/chat", 2, 40, 40, "Chat", -1, 31052, 1);
addHoveredButton(31052, "Options/main tab/chat", 4, 40, 40, 31053);
//Chat Not Pressed
addHoverButton(31008, "Options/main tab/chat", 1, 40, 40, "Chat", -1, 31009, 1);
addHoveredButton(31009, "Options/main tab/chat", 3, 40, 40, 31010);
//Controls Pressed
addHoverButton(31081, "Options/main tab/controls", 2, 40, 40, "Controls", -1, 31082, 1);
addHoveredButton(31082, "Options/main tab/controls", 4, 40, 40, 31083);
//Controls Not Pressed
addHoverButton(31011, "Options/main tab/controls", 1, 40, 40, "Controls", -1, 31012, 1);
addHoveredButton(31012, "Options/main tab/controls", 3, 40, 40, 31013);
}
public static void addSettingsAdvancedOptions(TextDrawingArea[] tda) {
RSInterface advanced = addInterface(31300);
//Background
addSprite(31301, 0, "Options/Interface/5/advanced");
//Close Hover Button
addHoverButton(31302, "Options/Interface/5/advanced", 1, 21, 21, "Close", -1, 31303, 1);
addHoveredButton(31303, "Options/Interface/5/advanced", 2, 21, 21, 31304);
//Title Text
addText(31305, "Advanced Options", 0xFF981F, true, true, -1, tda, 2);
addBankHover(31306, 4, 31307, 1, 2,
"Options/Interface/5/panel", 40, 40, 775, 1,
"Toggle Transparent side-panel", 31308, 1, 2,
"Options/Interface/5/panel", 31309, "", "", 12, 20);
addBankHover(31310, 4, 31311, 2, 1,
"Options/Interface/5/xp", 40, 40, 308, 0,
"Toggle 'Remaining XP' tooltips", 31312, 2, 1,
"Options/Interface/5/xp", 31313, "", "", 12, 20);
addBankHover(31314, 4, 31315, 1, 2,
"Options/Interface/5/roof", 40, 40, 307, 1,
"Toggle Roof-removal", 31316, 1, 2,
"Options/Interface/5/roof", 31317, "", "", 12, 20);
addBankHover(31318, 4, 31319, 1, 2,
"Options/Interface/5/orbs", 40, 40, 306, 0,
"Toggle Data orbs", 31320, 1, 2,
"Options/Interface/5/orbs", 31321, "", "", 12, 20);
addBankHover(31322, 4, 31323, 1, 2,
"Options/Interface/5/chat", 40, 40, 776, 1,
"Toggle Transparent chatbox", 31324, 1, 2,
"Options/Interface/5/chat", 31325, "", "", 12, 20);
addBankHover(31326, 4, 31327, 1, 2,
"Options/Interface/5/tab", 40, 40, 777, 1,
"Toggle Side-stones arrangement", 31328, 1, 2,
"Options/Interface/5/tab", 31329, "", "", 12, 20);
setChildren(16, advanced);
setBounds(31301, 134, 64, 0, advanced);
setBounds(31302, 350, 71, 1, advanced);
setBounds(31303, 350, 71, 2, advanced);
setBounds(31305, 255, 74, 3, advanced);
//Transparent side panel
setBounds(31306, 146, 104, 4, advanced);
setBounds(31308, 146, 104, 5, advanced);
//Remaining XP
setBounds(31310, 206, 104, 6, advanced);
setBounds(31312, 206, 104, 7, advanced);
//Roofs
setBounds(31314, 266, 104, 8, advanced);
setBounds(31316, 266, 104, 9, advanced);
//Orbs
setBounds(31318, 326, 104, 10, advanced);
setBounds(31320, 326, 104, 11, advanced);
//Transparent Chat
setBounds(31322, 146, 158, 12, advanced);
setBounds(31324, 146, 158, 13, advanced);
//Side stones arrangement
setBounds(31326, 146, 212, 14, advanced);
setBounds(31328, 146, 212, 15, advanced);
}
public static void addSettingsWidgetControlsTab(TextDrawingArea[] tda) {
RSInterface widget = addInterface(31080); // Controls Tab
addBankHover(31084, 4, 31085, 1, 2,
"Options/Interface/4/mouse", 40, 40, 313, 0,
"Toggle number of mouse buttons", 31086, 1, 2,
"Options/Interface/4/mouse", 31087, "",
"", 12, 20);
addButton(31040, 1, "Options/Interface/4/fkeys", 40, 40,
"Set F-Keys", 1);
addBankHover(31088, 4, 31089, 1, 2,
"Options/Interface/4/camera", 40, 40, 314, 0,
"Toggle Mouse Camera", 31090, 1, 2,
"Options/Interface/4/camera", 31091, "",
"", 12, 20);
addBankHover(31070, 4, 31071, 1, 2,
"Options/Interface/4/shift", 40, 40, 778, 1,
"Toggle Shift-Click Drop", 31072, 1, 2,
"Options/Interface/4/shift", 31073, "",
"", 12, 20);
addText(31092, "Attack option priority:", 0xFF981F, false, true, 52,
tda, 1);
addBankHover(31093, 4, 31094, 2, 1,
"Options/Interface/4/check", 15, 15, 315, 1, "Left-click",
31095, 2, 1, "Options/Interface/4/check", 31096, "",
"", 12, 20);
addBankHover(31097, 4, 31098, 1, 2,
"Options/Interface/4/check", 15, 15, 315, 1, "Right-click",
31099, 1, 2, "Options/Interface/4/check", 31100, "",
"", 12, 20);
addHoverText(31106, "Left-click where available.",
"Left-click where available.", tda, 0, 0xFF981F, false, true,
150);
addHoverText(31107, "Always right-click.", "Always right-click.", tda,
0, 0xFF981F, false, true, 150);
setChildren(30, widget);
setBounds(31001, 3, 45, 0, widget);
setBounds(31041, 6, 3, 1, widget); // Display
setBounds(31042, 6, 3, 2, widget);
setBounds(31005, 52, 3, 24, widget); // Audio
setBounds(31006, 52, 3, 25, widget);
setBounds(31008, 98, 3, 26, widget); // Chat
setBounds(31009, 98, 3, 27, widget);
setBounds(31081, 144, 3, 3, widget); // Controls
setBounds(31082, 144, 3, 4, widget);
setBounds(31014, 6, 221, 5, widget); // Aid
setBounds(31016, 6, 221, 6, widget); // Aid
setBounds(31018, 52, 221, 7, widget); // Run
setBounds(31020, 52, 221, 8, widget); // Run
setBounds(31022, 144, 221, 9, widget); // House
setBounds(31023, 98, 221, 10, widget); // Membership Bonds
setBounds(149, 57, 241, 11, widget); // Run Text
setBounds(31084, 12, 71, 12, widget); // Mouse
setBounds(31086, 12, 71, 13, widget); // Mouse
setBounds(31088, 54, 71, 15, widget); // Camera
setBounds(31090, 54, 71, 16, widget); // Camera
setBounds(31040, 96, 71, 14, widget); // fkeys
setBounds(31070, 138, 71, 28, widget); // Shift Drop
setBounds(31072, 138, 71, 29, widget); // Shift Drop
setBounds(31092, 14, 126, 17, widget); // Text
setBounds(31093, 15, 145, 18, widget); // Check
setBounds(31095, 15, 145, 19, widget); // Check
setBounds(31097, 15, 162, 20, widget); // Check
setBounds(31099, 15, 162, 21, widget); // Check
setBounds(31106, 33, 146, 22, widget); // Text
setBounds(31107, 33, 163, 23, widget); // Text
}
public static void addSettingsWidgetDisplayTab(TextDrawingArea[] tda) {
RSInterface widget = addInterface(904);
//Advanced Options Button
addButton(31150, 2, "Options/Interface/1/options", 140, 30, "Advanced Options", 1);
addText(31151, "Advanced Options", 16750623, false, true, 52, tda, 1);
//Fixed Screen and Resizable Screen Buttons
addBankHover(31152, 5, 31153, 0, 1,
"Options/Interface/1/fixed", 62, 52, 771, 0,
"Fixed Screen", 31154, 0, 1, "Options/Interface/1/fixed",
31155, "", "", 12, 20);
addBankHover(31156, 5, 31157, 0, 1,
"Options/Interface/1/resizable", 62, 52, 771, 1,
"Resizable Screen", 31158, 0, 1, "Options/Interface/1/resizable",
31159, "", "", 12, 20);
/*
addBankHover(31024, 4, 31025, 1, 2,
"Options/main tab/orbs", 40, 40, 306, 0,
"Toggle Data Orbs", 31026, 1, 2,
"Options/main tab/orbs", 31027, "", "", 12, 20);
addBankHover(31028, 4, 31029, 1, 2,
"Options/main tab/roof", 40, 40, 307, 1,
"Toggle roof-removal", 31030, 1, 2,
"Options/main tab/roof", 31031, "", "", 12, 20);
addBankHover(31122, 4, 31123, 1, 2,
"Options/main tab/pchat", 40, 40, 287, 1,
"Toggle Split Chat", 31124, 1, 2,
"Options/main tab/pchat", 31125, "", "", 12, 20);
addBankHover(31032, 4, 31033, 2, 1,
"Options/main tab/xp", 40, 40, 308, 0,
"Toggle 'XP Drop' Most Recent", 31034, 2, 1,
"Options/main tab/xp", 31035, "", "", 12, 20);
*/
addText(149, "", 16750623, false, true, 52, tda, 1);
addSprite(31035, 3, "Options/Interface/1/light");
addSprite(31036, 0, "Options/Interface/1/light");
addBankHover(31037, 5, 31038, 2, 1, "Options/Interface/1/light", 16,
16, 166, 1, "Adjust Screen Brightness", 31039, 2, 1,
"Options/Interface/1/light", 31108, "", "", 12, 20);
addBankHover(31109, 5, 31110, 2, 1, "Options/Interface/1/light", 16,
16, 166, 2, "Adjust Screen Brightness", 31111, 2, 1,
"Options/Interface/1/light", 31112, "", "", 12, 20);
addBankHover(31113, 5, 31114, 2, 1, "Options/Interface/1/light", 16,
16, 166, 3, "Adjust Screen Brightness", 31115, 2, 1,
"Options/Interface/1/light", 31116, "", "", 12, 20);
addBankHover(31117, 5, 31118, 2, 1, "Options/Interface/1/light", 16,
16, 166, 4, "Adjust Screen Brightness", 31119, 2, 1,
"Options/Interface/1/light", 31120, "", "", 12, 20);
addToggleButton(31200, 904, 3, 4, "Options/Interface/1/zoom", 32, 32, "Toggle Scroll Zooming", 0, 774);
addSprite(31201, 0, "Options/Interface/1/zoom");
addSlider(37771, 101, 37772, 0, "Options/Interface/1/zoom", 37773, 1, "Options/Interface/1/zoom");
setChildren(34, widget);
setBounds(31001, 3, 45, 0, widget);
setBounds(31002, 6, 3, 1, widget); // Display
setBounds(31003, 6, 3, 2, widget);
setBounds(31005, 52, 3, 11, widget); // Audio
setBounds(31006, 52, 3, 12, widget);
setBounds(31008, 98, 3, 13, widget); // Chat
setBounds(31009, 98, 3, 14, widget);
setBounds(31011, 144, 3, 3, widget); // Controls
setBounds(31012, 144, 3, 4, widget);
setBounds(31014, 6, 221, 5, widget); // Aid
setBounds(31016, 6, 221, 6, widget); // Aid
setBounds(31018, 52, 221, 7, widget); // Run
setBounds(31020, 52, 221, 8, widget); // Run
setBounds(31022, 144, 221, 9, widget); // House
setBounds(31023, 98, 221, 10, widget); // Membership Bonds
/*
setBounds(31024, 23, 119, 11, widget); // Orbs
setBounds(31026, 23, 119, 12, widget); // Orbs
setBounds(31028, 75, 119, 13, widget); // Roof
setBounds(31030, 75, 119, 14, widget); // Roof
setBounds(31122, 75, 110, 15, widget); // Split-private
setBounds(31124, 75, 110, 16, widget); // Split-private
setBounds(31032, 127, 119, 17, widget); // Remaining-XP
setBounds(31034, 127, 119, 18, widget); // Remaining-XP
*/
setBounds(31150, 26, 180, 30, widget); // Advanced Options
setBounds(31151, 45, 188, 31, widget);
setBounds(31152, 26, 123, 15, widget); // Fixed
setBounds(31154, 26, 123, 16, widget); // Fixed
setBounds(31156, 104, 123, 17, widget); // Resizable
setBounds(31158, 104, 123, 18, widget); // Resizable
setBounds(149, 57, 241, 19, widget); // Run Text
// Zooming bar
setBounds(31200, 12, 53, 32, widget); // Mouse
setBounds(37771, 66, 62, 33, widget); // Zoom bar
//Brightness bar
setBounds(31035, 12, 89, 20, widget); // Sun
setBounds(31036, 50, 97, 21, widget); // Bar
setBounds(31037, 58, 98, 22, widget); // Button
setBounds(31039, 58, 98, 23, widget); // Button
setBounds(31109, 90, 98, 24, widget); // Button
setBounds(31111, 90, 98, 25, widget); // Button
setBounds(31113, 121, 98, 26, widget); // Button
setBounds(31115, 121, 98, 27, widget); // Button
setBounds(31117, 153, 98, 28, widget); // Button
setBounds(31119, 153, 98, 29, widget); // Button
}
public static void addSettingsWidgetSoundTab(TextDrawingArea[] tda) {
RSInterface widget = addInterface(31500); // Chat Tab
setChildren(16, widget);
setBounds(31001, 3, 45, 0, widget);
setBounds(31041, 6, 3, 1, widget); // Display
setBounds(31042, 6, 3, 2, widget);
setBounds(31061, 52, 3, 3, widget); // Audio
setBounds(31062, 52, 3, 4, widget);
setBounds(31008, 98, 3, 5, widget); // Chat
setBounds(31009, 98, 3, 6, widget);
setBounds(31011, 144, 3, 7, widget); // Controls
setBounds(31012, 144, 3, 8, widget);
setBounds(31014, 6, 221, 9, widget); // Aid
setBounds(31016, 6, 221, 10, widget); // Aid
setBounds(31018, 52, 221, 11, widget); // Run
setBounds(31020, 52, 221, 12, widget); // Run
setBounds(31022, 144, 221, 13, widget); // House
setBounds(31023, 98, 221, 14, widget); // Membership Bonds
setBounds(149, 57, 241, 15, widget); // Run Text
}
public static void addSettingsWidgetChatTab(TextDrawingArea[] tda) {
RSInterface widget = addInterface(31400); // Chat Tab
addBankHover(31401, 4, 31402, 1, 2,
"Options/Interface/3/pchat", 40, 40, 287, 1,
"Toggle Split Chat", 31403, 1, 2,
"Options/Interface/3/pchat", 31404, "",
"", 12, 20);
setChildren(18, widget);
setBounds(31001, 3, 45, 0, widget);
setBounds(31041, 6, 3, 1, widget); // Display
setBounds(31042, 6, 3, 2, widget);
setBounds(31005, 52, 3, 3, widget); // Audio
setBounds(31006, 52, 3, 4, widget);
setBounds(31051, 98, 3, 5, widget); // Chat
setBounds(31052, 98, 3, 6, widget);
setBounds(31011, 144, 3, 7, widget); // Controls
setBounds(31012, 144, 3, 8, widget);
setBounds(31401, 75, 71, 16, widget); //Private Chat Split
setBounds(31403, 75, 71, 17, widget);
setBounds(31014, 6, 221, 9, widget); // Aid
setBounds(31016, 6, 221, 10, widget); // Aid
setBounds(31018, 52, 221, 11, widget); // Run
setBounds(31020, 52, 221, 12, widget); // Run
setBounds(31022, 144, 221, 13, widget); // House
setBounds(31023, 98, 221, 14, widget); // Membership Bonds
setBounds(149, 57, 241, 15, widget); // Run Text
}
public static void addSettingsWidget(TextDrawingArea[] tda) {
addSettingsWidgetGlobals(tda);
addSettingsAdvancedOptions(tda);
addSettingsWidgetDisplayTab(tda);
addSettingsWidgetSoundTab(tda);
addSettingsWidgetChatTab(tda);
addSettingsWidgetControlsTab(tda);
}