Game Development Community

Playgui wont allow mouse to operate

by Gary Roberson · in Torque Game Engine · 01/13/2012 (1:50 pm) · 6 replies

I'm just now starting to experiment with the PlayGui feature of TGE 1.4
I have one in my demo, but it diables the mouse from normal operation!

Does anyone know how I would fix that problem?

#1
01/13/2012 (2:50 pm)
Check the setting of "noCursor"
#2
01/17/2012 (10:47 am)
Ok Mike,

I've checked the Inspector for this 'noCursor' attribute.
I've also checked the Playgui.cs file, and could not find such an attribute.

Do you know where it is?
#3
01/18/2012 (3:57 pm)
I don't remember much about TGE 1.4, but in 1.5 and up there was some confusion over the noCursor property, which was located in the top level control of the playGUI, that caused some camera-control/cursor issues.

Are you expecting the mouse to control the camera viewpoint through the playGui control, or are you wanting a cursor to function in order to select buttons, etc.
#4
01/19/2012 (2:04 pm)
I'm not sure what you're saying, you first statement might be what I mean by now. Lets say that the WASD keys on hte keyboard moves het character on the level, while the mouse lets teh character change his view. This is the way it woerked before I started messing with the PlayGui. Now when I move the mouse, the view doesn't change at all.
#5
01/19/2012 (2:37 pm)
Ok, that sounds like the noCursor issue I remember. Try adding
noCursor = "1";
just after all the other properties of the GameTSCtrl(PlayGui) and before any other controls in the playGui.gui script. If it's the same problem that I recall you'll have to manually add that line back to the gui whenever you edit it through the GUI Editor.
#6
01/19/2012 (2:57 pm)
Once again, Mike, thanks!

I'll check on this when I get back to the office!