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 / A useful function for use in menu screens or any other 2D stuff

Author
Message
Moggie100
21
Years of Service
User Offline
Joined: 15th Oct 2002
Location: Behind You...
Posted: 21st Jun 2003 02:49 Edited at: 21st Jun 2003 02:51
Just thought someone might find this useful:



all it does is take the co-oords in the same way as the box command does so you can specify areas on the screen that you can click in. the function then outputs:

1- if the mouse is over the area
2- if the mouse is clicking with the left button on the mouse
3- if the mouse is clicking with the right button on the mouse
4- if both the right and left buttons are being clicked
5- if the mousewheel is being pressed (or buton 3 on the mouse)
6- if button 3 (or mousewheel press) and the left button are both pressed
7- if button 3 (or mousewheel press) and the right button are both pressed
8 if both the left and right buttons are pressed as well as button 3 or whe mousewheel button are pressed

also, if the debug value is set to 0 then the hotsopt will draw itself to the screen.

Login to post a reply

Server time is: 2024-04-23 10:46:22
Your offset time is: 2024-04-23 10:46:22