Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • Cole1497: this shout box is diarrhetic
      July 15, 2019, 04:53:27 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 13, 2019, 04:54:43 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 13, 2019, 04:34:05 PM
    • rune-list:[link] RuneScape Private Servers List & Community.
      July 12, 2019, 12:25:23 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! [link]
      July 11, 2019, 10:31:15 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! [link]
      July 11, 2019, 10:31:11 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 05:27:05 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 05:10:40 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 10, 2019, 04:43:07 AM
    • ArtexAdv: Artex-rsps,com [link] (BRAND NEW SERVER)
      July 08, 2019, 07:59:48 PM
    • ArtexAdv:[link] (BRAND NEW SERVER)
      July 08, 2019, 07:59:31 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 07:03:33 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 07:03:16 PM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 08, 2019, 06:59:50 PM
    • dan v jad: guys join PkOwnage today!! Great new server, raids, eco, PK! Discord [link] homepage [link]
      July 07, 2019, 10:59:48 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! - [link]
      July 07, 2019, 08:19:24 AM
    • ragnoroker: Join PoonScape today! amazing new server - growing fast! - [link]
      July 07, 2019, 08:19:04 AM
    • PavSwag: autoscape,0rg free ultra M box today (twisted bow??)
      July 05, 2019, 04:22:44 PM
    • PavSwag: autoscape,0rg
      July 05, 2019, 04:22:32 PM
    • PavSwag: #AS [link] is 317 Oldschool RuneScape Private Server emulating core factors of the game with a strong economy and balance of experience to bossing and prestiging - Lumbridge remade - Login with a starter set of armour and items - PK District - Preloading sets - GE PVP - Clan Wars Safe PK - PVP Tournaments - Activity points for training - All Skills Working, Skilling Island, Skilling Pets, Skilling Rewards - All Working Max Capes - 25+ Bosses with Pets - Superior Slayer Encounters - Clue Scrolls & Imbue Scrolls - Player Profiles - Player Owned Shops - Minigames, Construction, Sawmill, Warriors Guild, Pest Control, Barrows (with pets), Fight Caves, Inferno Caves, Chambers of Xeric, Custom Raids - QoL Updates: Keybinds, Skill Guides,
      July 05, 2019, 04:22:29 PM

    Author Topic: Bank "Deposit all" Not Clickable  (Read 1404 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineThe Web Guy

    • Member
    • ****
    • Posts: 1,134
    • Thanks: +0/-0
      • View Profile
    Bank "Deposit all" Not Clickable
    « on: April 04, 2017, 11:25:00 AM »
    I'm working on adding the newer bank interface to my server, the sprites and hover-over sprites are working, but the button itself isn't working. And when I click it, the server doesn't output, "USERNAME - actionbutton: ####" like it does with swap items, and bank pin buttons. Any ideas? Below is my newBank() method in RSInterface.java.

    Code: [Select]
    public static void newBank(){
    RSInterface Interface = addTabInterface(5292);
    setChildren(19, Interface);
    addSprite(5293, 0, "Bank/BANK");
    setBounds(5293, 13, 13, 0, Interface);
    addHover(5384, 3, 0, 5380, 1, "Bank/BANK", 17, 17, "Close Window");
    addHovered(5380, 2, "Bank/BANK", 17, 17, 5379);
    setBounds(5384, 476, 16, 3, Interface);
    setBounds(5380, 476, 16, 4, Interface);

    addHover(5294, 4, 0, 5295, 3, "Bank/BANK", 114, 25, "Set A Bank PIN");
    addHovered(5295, 4, "Bank/BANK", 114, 25, 5296);
    setBounds(5294, 110, 285, 5, Interface);
    setBounds(5295, 110, 285, 6, Interface);

    addHover(21000, 5, 0, 21001, 6, "Bank/BANK", 35, 25, "Swap Item");
    addHovered(21001, 8, "Bank/BANK", 35, 25, 21002);
    setBounds(21000, 25, 285, 7, Interface);
    setBounds(21001, 25, 285, 8, Interface);

    addHover(21003, 6, 0, 21004, 13, "Bank/BANK", 35, 25, "Search");
    addHovered(21004, 14, "Bank/BANK", 35, 25, 21005);
    setBounds(21003, 65, 285, 9, Interface);
    setBounds(21004, 65, 285, 10, Interface);

    addHover(21006, 7, 0, 21007, 9, "Bank/BANK", 35, 25, "Note Item");
    addHovered(21007, 10, "Bank/BANK", 35, 25, 21008);
    setBounds(21006, 240, 285, 11, Interface);
    setBounds(21007, 240, 285, 12, Interface);

    addHover(21009, 8, 0, 21010, 17, "Bank/BANK", 35, 25, "Deposit carried items");
    addHovered(21010, 18, "Bank/BANK", 35, 25, 21011);
    setBounds(21009, 375, 285, 13, Interface);
    setBounds(21010, 375, 285, 14, Interface);

    addHover(21012, 9, 0, 21012, 19, "Bank/BANK", 35, 25, "Deposit worn items");
    addHovered(21013, 20, "Bank/BANK", 35, 25, 21014);
    setBounds(21012, 415, 285, 15, Interface);
    setBounds(21013, 415, 285, 16, Interface);

    addHover(21015, 10, 0, 21015, 21, "Bank/BANK", 35, 25, "Deposit beast of burden inventory");
    addHovered(21016, 22, "Bank/BANK", 35, 25, 21017);
    setBounds(21015, 455, 285, 17, Interface);
    setBounds(21016, 455, 285, 18, Interface);

    setBounds(5383, 170, 15, 1, Interface);
    setBounds(5385, -4, 74, 2, Interface);
    Interface = interfaceCache[5385];
    Interface.height = 247;
    Interface.width = 480;
    Interface = interfaceCache[5382];
    Interface.width = 10;
    Interface.invSpritePadX = 12;
    Interface.height = 35;
    }
    I am The Web Guy.
    Not The Java Guy, please don't ask me about Java.
    Skype: aj.cordio
    Email: [email protected]
    Moparscape: Stahp.
    Runescape Gambling

    OfflineiMaverick

    • Member
    • **
    • Posts: 8
    • Thanks: +10/-10
      • View Profile
    Re: Bank "Deposit all" Not Clickable
    « Reply #1 on: June 13, 2017, 01:45:02 PM »
    I don't know if you figured it out or not but put
    Code: Java(TM) 2 Platform Standard Edition 5.0
    1. c.sendMessage("i pressed the button: " + buttonActionId);
    In your onbuttonclick, above where it says switch(buttonActionId):
     
    (Replace "buttonActionId" with the name of the variable)

    Then when you click a button it will send a message to your client with the action id of the button.

    You can also do
    Code: Java(TM) 2 Platform Standard Edition 5.0
    1. System.out.println("buttonId: " + buttonActionId)
    to have it output in console.
    Runescape Gambling

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal