Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - Simple Button Function

Author
Message
Ace of Springs
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: Cambodia
Posted: 3rd Jun 2012 04:10
Simply checks if your mouse is over a specified area. Easier than typing it out everytime.

mbutton(x1,x2,y1,y2) returns 1 if mouse is over that area




if mbutton(1,10,1,10) = 1 and mouseclick() = 1
`ACTION FOR USER PRESSING BUTTON
endif

Login to post a reply

Server time is: 2024-04-19 19:36:31
Your offset time is: 2024-04-19 19:36:31