Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • Cole1497: join horney scape we are horney all the time and have a sex emote
      November 09, 2019, 05:14:33 PM
    • thewraith500: try autoscape,0rg brand new osrs CUSTOMS server! fight caves for flaming fire cape, upgrade them to infernal wings + more!
      November 09, 2019, 01:37:29 AM
    • SuperNativeZ: Come play brand new server [link]
      November 08, 2019, 02:13:24 PM
    • SuperNativeZ: Come play brand new server [link]
      November 08, 2019, 02:13:17 PM
    • SuperNativeZ: Come play brand new server [link]
      November 08, 2019, 02:13:14 PM
    • ragnoroker: Brand new server, come join the fun - unique server - RuneGuild - [link]
      November 07, 2019, 11:55:44 AM
    • ragnoroker: Brand new server, come join the fun - unique server - RuneGuild - [link]
      November 07, 2019, 11:55:40 AM
    • ragnoroker: Brand new server, come join the fun - unique server - RuneGuild - [link]
      November 07, 2019, 11:55:35 AM
    • ArtexAdv: Come play brand new server [link]
      November 07, 2019, 07:36:34 AM
    • grefin::cool:
      November 04, 2019, 12:55:57 AM
    • grefin: Hi friends! I cant get through that bank pin thing. What should i do my friends?
      November 04, 2019, 12:55:36 AM
    • cows1471: its weird
      November 03, 2019, 02:56:40 PM
    • cows1471: fudge me
      November 03, 2019, 02:56:34 PM
    • cows1471: my original account is 11 years ago
      November 03, 2019, 02:56:26 PM
    • cows1471: and yet
      November 03, 2019, 02:56:14 PM
    • Christmas_tree: this place has changed
      November 03, 2019, 02:54:34 PM
    • Christmas_tree: fudge me
      November 03, 2019, 02:54:25 PM
    • Christmas_tree: six years ago i registered this account
      November 03, 2019, 02:54:22 PM
    • thewraith500: everyone join autoscape,0rg its the best customs osrs server yet! the owner gives ultra boxes!
      October 28, 2019, 08:03:09 PM
    • gameruler93: I am so fudgeing glad to see this website is still alive.
      October 28, 2019, 07:57:18 PM

    Author Topic: Bank "Deposit all" Not Clickable  (Read 1492 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.

     

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