Opening GUI Upon Client Enter Game?
by Gavin Miller · in Torque Game Engine · 01/27/2004 (3:14 pm) · 2 replies
Ok I have done this tutorial:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2312
on team implementation. Now I am curious, how can I make the TeamSelectDlg.Gui open upon client entering the game, and close after it is selected. My guess would be to add it under function on client enter game in game.cs, but I do not know what would be added. Any insight would be appreciated.
Thanks,
Gavin Miller
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2312
on team implementation. Now I am curious, how can I make the TeamSelectDlg.Gui open upon client entering the game, and close after it is selected. My guess would be to add it under function on client enter game in game.cs, but I do not know what would be added. Any insight would be appreciated.
Thanks,
Gavin Miller
About the author
#2
01/28/2004 (8:57 am)
Thanks Jim tried that, however it does not stay open long enough for me to do anything with it......It blinks open for a second at the very end of mission load, and when you begin to see the world (like when you would normally first spawn as an observer) it dissappears. Anyway to fix that?
Torque Owner Jimomighty
So basically at the bottom just add a line:
And add this function on the client side:
function clientCmdopenTeamChooseHud() { Canvas.pushDialog( TeamSelectDlg ); }You could add neater stuff to this as in sending team names and descriptions and other kinks!