Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Bender86 on Mon 16/06/2003 13:59:39

Title: GUI is having an effect on cursor modes
Post by: Bender86 on Mon 16/06/2003 13:59:39
I have implemented a feature into my game which displays a hotspots name over each hotspot when the mouse scrolls over it (with help from some of you guys).

The code is for if mouse is over hostpot is:
SetGUIPosition(0,mouse.x+13,mouse.y);
 GUIOn(0);

Sadly this creates another problem. Once the cursor has been held over a hotspot, the current mouse mode locks. For example if it was on look mode, it stays on look mode after the first time the above has been done, and the right mouse button does not change the mode any longer:(

I have not altered any of the cycle cursor functions in the games global script - any advice?

Thanx
Title: Re:GUI is having an effect on cursor modes
Post by: Pumaman on Mon 16/06/2003 22:19:46
Does it work again once you do  GUIOff(0);   ?

If so, you might want to change GUI 0's setting to Normal instead of Popup Modal.
Title: Re:GUI is having an effect on cursor modes
Post by: Bender86 on Mon 16/06/2003 23:46:57
Thanx CJ, changin it to normal did the trick :)