Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Get width of dialogue/Interface


    Luxe

    Recommended Posts

    How do i get the location, height and width of the box marked in green?

    I want to paint an overlay there.

    image.png.200039c5bce30e8b132eb0db8a96ba0e.png

    Link to comment
    Share on other sites

    Enable Developer Mode in Dreambot settings, then access the drop-down menu at the top of the client. Navigate to Tools > Game Explorer and click on the Widgets tab. This will provide the necessary information. You'll notice clicking on different widgets will highlight the corresponding widgets in your client

    Link to comment
    Share on other sites

    2 minutes ago, xyz111 said:

    Enable Developer Mode in Dreambot settings, then access the drop-down menu at the top of the client. Navigate to Tools > Game Explorer and click on the Widgets tab. This will provide the necessary information. You'll notice clicking on different widgets will highlight the corresponding widgets in your client

    Thanks! I was hoping there was an API to retrieve the size without the use of widgets.
    Not really a fan of using widgets... But thank you <3

    Link to comment
    Share on other sites

    For any future readers

    image.png.66df1550f65766093ec3ff22b7fbcfe4.png

     

        @Override
        public void onPaint(Graphics g) {
    
            Widget dialogueBox = Widgets.getWidget(162);
            WidgetChild chatBox = dialogueBox.getChild(558);
    
            g.setColor(Color.red);
            g.fill3DRect(chatBox.getX(), chatBox.getY(), chatBox.getWidth(), chatBox.getHeight(),false);
    
        }



    Thanks to: @xyz111

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.