Game Development Community

Example use of GuiTSCtrl, GameTSCtrl, or ShowTSCtrl

by Demolishun · in Torque Game Engine · 09/28/2004 (6:00 pm) · 3 replies

I looked through the GUI code for the examples and now am more confused than I was when I started. I cannot for the life of me figure out how to use any of these controls to display an object on the screen with the regular GUI widgets. I tried loading ShowTSCtrl and it turned the screen black! I found where GameTSCtrl was created for each example, but that is all I could find other than a couple of functions defined for "onAwake" and "onSleep". Am I completely nuts? BTW I am using Torque 1.2 as my codebase.

Thanks,
Frank

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
09/29/2004 (8:10 am)
Hello,

If you just want to display a shape then you may want to look at the show mod. It uses the ShowTSCtrl and doesn't use any of the networking. Check out the show directory in the example. A good tutorial to look at is TicTacToe (search in the resources). It actually creates a TSCtrl and displays shapes.
TicTacToe is not a good tutorial for game development itself since it does all the rendering and Scene Stuff itself but it will give you an idea of how the TSCtrl work.

Ben
#2
10/07/2004 (8:41 pm)
Gametsctrl(playgui in tribes i think?) is for the actual gameplay. You'd use guitsctrl for displaying shapes in gui i think.
#3
10/07/2004 (8:43 pm)
What type of object are you tryin' to display? GUIObjectView might be what you're lookin' for... PlayGUI IS in TGE.