Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: TheMagician on Sat 14/06/2003 21:43:11

Title: An unwanted Icon-Change in a custom Inventory GUI
Post by: TheMagician on Sat 14/06/2003 21:43:11
Hello again,

I have a main menu bar which is set to "PopUp if the player moves the mouse to the top of the screen.
Now: while moving the mouse cursor over the menu bar it changes to the standart arrow-cursor and after leaving the menu it returns to the previous cursor mode. Works perfect in 99 percent

But here is the problem:

You know the litte trick with custom Invenotry GUIs: you use the "Talk mode" to do interaction with the inventory items. So do I. And of course I change the appearace of the mouse cursor so the people don't get confused. However: if - by accident - I happen to move the mouse to the top of the screen while being in "Interact Mode" in my inventory GUI it changes to the icon for the "Talk mode".

Is there a trick to delete this (tiny) problem?

Thanks in advance.

The Magician
Title: Re:An unwanted Icon-Change in a custom Inventory GUI
Post by: Scorpiorus on Sat 14/06/2003 22:19:49
Hmm, you are right. Seems like it returns it to default cursor if you have used SetMouseCursor() before. A workaround is to set it's graphic instead:

ChangeCursorGraphic (int mode, int slot);

And change it back when the invnetory GUI is closed.

-Cheers
Title: Re:An unwanted Icon-Change in a custom Inventory GUI
Post by: TheMagician on Sat 14/06/2003 23:36:28
Thanks Scorpiorus.

I will give that a try .. tomorrow.

God night everyone.