Hi dudes,
I just simply want to the save the mouse cursor before it goes over a GUI, so when the mouse is no longer over that GUI, it reverts back to the previous cursor.
Here is what I tried, and failed. I read some threads on problems with the "saveCursorUntilItLeaves" function so Im not sure if its even a good way to do this (I put this code in my repeatedly_execute):
Code: ags
When it goes on the GUI it changes to the pointer, but when it leaves it stays as the pointer.
:o
I just simply want to the save the mouse cursor before it goes over a GUI, so when the mouse is no longer over that GUI, it reverts back to the previous cursor.
Here is what I tried, and failed. I read some threads on problems with the "saveCursorUntilItLeaves" function so Im not sure if its even a good way to do this (I put this code in my repeatedly_execute):
GUI *theGui = GUI.GetAtScreenXY(mouse.x, mouse.y);
if (theGui == gTurtleWax)
{
SaveCursorUntilItLeaves();
mouse.Mode = eModePointer;
}
When it goes on the GUI it changes to the pointer, but when it leaves it stays as the pointer.
:o