Game Development Community

Unwanted Cursor toggling

by Jeff Trier · in Torque Game Engine · 07/10/2003 (10:35 am) · 2 replies

Hi all,

I made a command view with a toggling cursor. It seems to work fine with the exception of the cursor toggling off after I go into and leave the console and/or other gui's with cursors.

I did a search on the usages of the cursorOn(), cursorOff() and toggleCursor() functions, and they don't seem to be used to toggle the cursors for any of the gui controls.

How is the cursor being toggled without the cursor functions on the other gui's, and are there any rules for cursor usage that I am unaware of?

Thanks guys,
-Jeff

About the author

Originally a Classical/Metal musician, I've always been attracted to anything involving computers, including: Networking, PC Building and Repair, software design and coding. I've been involved with game design and development for over 10 years.


#1
07/10/2003 (12:38 pm)
There's a "noCursor" field that the script code uses to determine if the cursor should or off. What's probably happening is that it's determining that the cursor should be off because your control doesn't have focus. Remove the "noCursor" field from all of your controls in your PlayGUI. Note: Remove not set to false since the script code only checks to see if the field exists not what it's set to.
#2
07/10/2003 (1:06 pm)
Thanks for the tip on the "noCursor" field.

However, I still have the same problem after removing them all.

Hmmm... when you said that it might be turning the cursor off because my control doesn't have focus it got me thinking about my approach. Maybe I need to restructure the process.


Thanks J.

-Jeff