Game Development Community

How the T3D save a Gui?

by qiansheng · in Torque 3D Beginner · 12/10/2012 (11:09 pm) · 3 replies

I wanted to find the method that the T3D saves a Gui,but I failed.
I set the breakpoint,but cannot find what I wanted to see.Exactly,I can't find the save function in the C++ code,and the scripts doubts me.

Is there somebody tell me?I will thank you very much.

#1
12/11/2012 (9:02 am)
Gui objects are derived from SimObject so you're looking for SimObject::save().

It's in Engine/console/simObject.cpp.
#2
12/11/2012 (6:48 pm)
Thank you very much!
#3
12/12/2012 (12:19 am)
Also, if you want to save the script for a GUI element to a string rather than to file you can use this resource:
www.garagegames.com/community/resources/view/21813