Bryno 21 Share Posted September 21, 2021 Hi guys! So I am easily drawing images and text using the onPaint() method. I was just curious though... I wanted to make a small button and when clicked do something in the script. How can I achieve this? Is this still in onPaint() ? Thanks! Link to comment Share on other sites More sharing options...
Pandemic 2705 Share Posted September 21, 2021 You can use a MouseListener and check for clicks within your button's clickable area Link to comment Share on other sites More sharing options...
camelCase 226 Share Posted September 21, 2021 @Bryno Link to comment Share on other sites More sharing options...
boomslap 5 Share Posted November 20, 2021 Could there possibly be a solution though to only capture user clicks and not clicks performed by the bot? Because the bot could click accidentally on a clickable area. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.