Game Development Community

GUI question

by Hadoken · in Torque Game Engine · 04/09/2003 (10:52 am) · 6 replies

I'm trying to make a gui to display the currently selected item/player/whatever. I would like this gui to be displayed or hidden when the user presses a key. My problem is that if i make a separate gui (like the one in the inventory popup tutorial), it overrides the playGui and when it's displayed the character doesn't move, the camera doesn't rotate, etc. If i build it inside the playGui, then i can't find a way to hide it.
What am i doing wrong? Please help me :)

#1
04/09/2003 (11:10 am)
Try using the "visible" property of the control.
#2
04/09/2003 (11:28 am)
Donavan... thanks a lot!! I thought it would take a few days to fix it, it took 10 minutes instead. I'm starting to love torque:)
btw, is there some reference documentation for gui objects? i.e. something like a list of all properties for each gui control?
#3
04/09/2003 (12:08 pm)
To be honest I'm not sure. When I read you post I just checked the source code, I figured what you wanted was something that *should* be there.
#4
04/09/2003 (12:30 pm)
just use the dump command.
#5
04/09/2003 (4:05 pm)
thanks again, but... er... what's a dump command and where do i use it?
#6
04/09/2003 (5:05 pm)
You can dump commands for any object in the game.

Etc. Typing...

MyObject.dump();

Gives you a list of commands you can use for MyObject.