Quantcast
Channel: Answers for "How to detect if mouse over a button"
Browsing latest articles
Browse All 4 View Live

Answer by jahroy

Something like this should work. I haven't tested it (so there could be typos), but this is the general idea.You need to adjust the y-coordinate of the mouse position because the GUI uses a different...

View Article



Answer by Ejlersen

jahroy has answered this, even though I'm a bit confused about why one wants a GetButtonRectangle() method... But well, it's just a code snippet :)Here is my suggestion:public class Answer { public...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images