Game Development Community

GuiWindow and Mouse

by CdnGater · in Torque Game Engine · 05/26/2004 (1:46 pm) · 3 replies

Hello,

This is what I am trying to do.

I have greated a GUI with a window control.

I can also switch mouse modes manual.

This works.

While in game with no mouse, I show the GUI using

Canvas.pushDialog( Inventory );

Now because it has a window control, the mouse shows.

I can toggle the mouse off and on after, no problem.

The question is, is there a setting or something that I am missing that will tell the GuiWindow NOT to show a mouse when activated?


I want to show GuiWindow, but I want to control when the mouse will show not GuiWindow.

Thanks

#1
05/26/2004 (1:52 pm)
I think you'll have to dig into the source for this.
Probably guiwindowctrl.cc or guicontrol.cc.
#2
05/26/2004 (2:13 pm)
All of the GUI elements should have:


noCursor = true;


otherwise the engine will turn on the cursor every time it is pushed onto the screen.
#3
05/26/2004 (2:36 pm)
Thanks Harold,

Stupid me even knew about noCursor. I just did not think about it.