GUI is having an effect on cursor modes

Started by Bender86, Mon 16/06/2003 13:59:39

Previous topic - Next topic

Bender86

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
-This message will self destruct in 5 seconds-

Pumaman

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.

Bender86

Thanx CJ, changin it to normal did the trick :)
-This message will self destruct in 5 seconds-

SMF spam blocked by CleanTalk