Game Development Community

PushDialog(the_gui) versus SetContent(the_gui) ?

by Steve Acaster · in Torque 3D Beginner · 12/20/2011 (2:53 pm) · 2 replies

I was just wondering if anybody had an indepth explanaition of the differences between pushDialog(the_gui) and setContent(the_gui). On the face of it they appear to do the same thing ...

#1
12/20/2011 (3:38 pm)
As far as I know, setContent is used to fill the entire screen with one GUI control (think main menu screens), where as pushDialog/popDialog can be used to add and remove individual gui elements from the screen (such as windows or individual hud parts, like the chat hud)
#2
12/20/2011 (5:37 pm)
Yeah, that seems to be pretty much what the code says.