Game Development Community

Property changing GUI

by William James · in Torque Game Engine · 06/14/2007 (12:46 pm) · 4 replies

I would like to make a GUI that will allow me to change to properties or attributes of a shape by inputting values
into a text box... IE(width, height, etc.) Is this something that requires changing code or can it be done by scripting?

#1
06/14/2007 (5:29 pm)
Well, the WorldEditor performs exactly what you are talking about. Have a look at Editor.cs, WorldEditor.h/.cc, and you can probably see how the WorldEditor manipulates shapes.
#2
06/15/2007 (5:32 pm)
Thanks!!! I'm lookin' into it now...
#3
06/17/2007 (7:43 am)
F11 -> World Editor Inspector seems to be exactly what you're asking for.

Width, Height, and Depth can be changed in the "scale" box.

I don't know what other things you need to change, but unless I'm mistaken really you shouldn't have to do much more than edit the "initPersistFields()" function.
#4
06/17/2007 (7:34 pm)
I'm kinda finding my way around a little. Thanks for the help. What I'm trying to attempt is to create a standalone interface that will be somewhat like the image below. I'm having quite a bit of trouble trying to figure out if I would use this as the PlayGui and make the window the GameTSCtrl and then add my buttons and controls?

www.garagegames.com/images/ul/4387.editor3.jpg