Mouse over gui

Started by jamesreg, Thu 01/04/2010 22:43:26

Previous topic - Next topic

jamesreg

What Is the easiest way to get a mouse over effect on a gui passover

I have a gui that is 800*100   running across the bottom of the screen

I want when the mouse moves into this space for it to change the cursor to a certain cursor

Galen

I can't be bothered to write any code but:
In the repeatedly excecute section:
Check if a GUI is visible
Check if mouse is over, if so what it's over, then change the cursor accordingly

Of course I imagine if you're a beginner I'm being rather unhelpful, especially since my solution requires a basic understanding of pointers (a confusing subject to me atleast). If nobody's replied with something more solid I'll try and write up a piece of code that does what you want tomorrow.

Dualnames

Code: ags

if (GUI.GetAtScreen(mouse.x,mouse.y)==gGuiHere) {
mouse.mode=emodewhatevermodeyouwantittochange;
//perhaps use a variable to grab mouse mode.
}
else {
//revert to default mouse mode
}
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk