Hi!
I'd like to change my cursor graphic when hovering over any clickable button.
I am able to change the cursor graphic when hovering over any GUI control, using this code (in the 'repeatedly_execute' section of my global script):
Code: ags
However, this also changes the cursor graphic when hovering over GUI labels and unclickable buttons, which I don't want.
Thanks in advance!
I'd like to change my cursor graphic when hovering over any clickable button.
I am able to change the cursor graphic when hovering over any GUI control, using this code (in the 'repeatedly_execute' section of my global script):
GUIControl *anyGUIControl = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (anyGUIControl)
{
mouse.ChangeModeGraphic(eModePointer, 2);
}
else
{
mouse.ChangeModeGraphic(eModePointer, 1);
}
However, this also changes the cursor graphic when hovering over GUI labels and unclickable buttons, which I don't want.
Thanks in advance!