Game Development Community

Adding a new category in Level Editor

by Gustavo Boni · in Torque Game Builder · 01/04/2007 (1:16 pm) · 6 replies

Hey guys,

I'm trying to add a new category in the Level Editor.

Basically, when you hit the "Edit" tab with no objected selected, you have that:

img233.imageshack.us/img233/7473/noselectionne2.jpg
And then, when you have an object selected, the Edit tab is like that:

img357.imageshack.us/img357/4764/selectedgq0.jpg
So, when i select the sprite i want to have a new category like the "Collision", "Align", etc...

Anyone can help me?

#1
01/04/2007 (1:37 pm)
Yea... you have to edit the files for the editor... There are a number of files you will have to manipulate...

I posted a resource that made edits to the standard layout as above, you can see it here:

Resource

I don't add the element you are looking to, but I do add some other elements to an existing pane. Pay attention to the edits in the t2dTileLayer.ed.cs file. That is essentially how you add items to the pane. You just need to locate the specific file you want to add to, and find the calls for the elements you want to add.

Be forewarned, you need to have a pretty good grasp of TorqueScript to start digging into the editor scripts. If you want to post more information about what it is you are trying to add, I may be able to give you more specific details...

Eric
Trihex Software
#2
01/04/2007 (5:09 pm)
I've done this exact thing for myself to add some checkboxes, buttons, etc under the "Scripting" tab, and a new rollout for "Game Logic". But, my way includes shameless hacks to the level editor torquescript sources.
#3
01/04/2007 (6:40 pm)
Hey guys, thanks for the help! Finally i got it working!

Thanks
#4
02/02/2007 (11:39 am)
Just some information that may reassure you, Justin is planning on working on some Editor Framework Docs and examples so in the future adding functionality to the Editor should be a lot more accessible.
#5
02/02/2007 (12:04 pm)
What a great news Matthew! =) cant wait to read that!
#6
02/02/2007 (3:01 pm)
Wow Matthew I hope so, that will be very interesting to me.