Game Development Community

Clicking on a GuiButtonCtrl and GUITextCtrl in PlayGui?

by GG Fanatic · in Torque Game Engine · 09/08/2005 (11:37 am) · 1 replies

I'm trying to add a GuiButtonCtrl and GuiTextCtrl to a game gui (PlayGui, from starter.fps), but I can't click on them or manipulate them in anyway.

Is there some way of doing that, to somehow "disconnect" the mouse from driving the player so I could click on a control?

Failing that, could I create a separate window, and then communicate with the window with the PlayGui?

Thanks for any info,

Michael Rogers

About the author

Recent Threads


#1
09/08/2005 (11:51 am)
Bind a key to something like this.
function toggleMouse(%val){
   if(%val)   {
      if(Canvas.isCursorOn()) 
CursorOff();      
else
         CursorOn();
   }
}