Game Development Community

Dialog Box Entirely From C

by William Todd Scott · in Torque Game Engine Advanced · 03/17/2007 (12:28 am) · 2 replies

Hi all,

I need to be able to pop up a dialog box to get some text from the user. Now the hard part, I need to do it entirely in C++ with no script calls.

Does anyone have any example of how to do this? I'm confident it can be done, but am a little lost on where to start.

I need to be able to do this all from C++ because the state of the process is in question (e.g. I'm in the catch portion of an exception and I am trying to fail gracefully.)

Thanks
Todd

#1
04/05/2007 (2:05 am)
Have a look for where the script call does pushdialog and trace the code it uses when the script call is made? (i.e. look for the consolefunction).
#2
04/05/2007 (8:49 am)
Hey Phil,

That is a good idea, thanks for the suggestion.

Todd