Game Development Community

Unwanted mouse cursor on playgui

by Andrew Edmonds · in Torque Game Engine Advanced · 06/24/2007 (7:03 am) · 3 replies

Hi all,

Randomly when I add new gui elements to my playGui, I run the engine and get a mouse cursor on the gui and therefore cannot control my player.

It happens completely at random, and if I remove the gui element I just added, the mouse cursor remains.

I'm fairly sure I cannot be alone in this problem (I've had it for ages, but have never really done any major gui work so haven't been too bothered). Anyone had this problem and resolved it?

Thanks,

Andy

About the author

Formed in 2005, EiKON Games is an indie games development project based in the UK working on the tactical first person shooter "Epoch: Incursion". See the Join Us or Contact Us pages at http://www.eikon-games.com/


#1
06/24/2007 (5:17 pm)
The problem seems to be caused by the fact that the GUI editor doesn't save the variable noCursor when you save playGUI from the editor.

The solution is to simply edit the file playGUI.gui and add the line

noCursor = "1";

to the top of the file, in the first GameTSCtrl section.

I was going to look into fixing this bug at some stage, but as always there are more important bugs to fix elsewhere in my own code.

I hope this helps.
#2
06/25/2007 (2:04 am)
Gah! How annoyingly obvious!

Thanks Daz - much appreciated.
#3
06/25/2007 (10:34 pm)
No worries. That same problem had me scratching my head for a little while before I thought to make a backup, open up the editor and save the new one, and then compare the saved copy with the backup.