Game Development Community

World Editor enhancement

by Duncan Gray · in Torque Game Engine · 11/24/2005 (3:54 pm) · 4 replies

I am re-doing my game terrain texturing and changing/fixing anoying editor issues as I go along.

When adding new textures, I found myself constantly going from the editor to WinXp explorer in thumbnail mode to 'see' what the damn texture looked like. The editor texture list just gives names and I wanted to SEE the difference between grass1 and grass2 etc.

I thought, add an image next to the file list. As it turns out, its really simple. Just add a GuiBitmapCtrl(LoadFileBitmap) to the right of the list, then edit the GuiTextListCtrl(loadFileList) and add the following string to it's "command" option.

"LoadFileBitmap.setBitmap(loadFileList.getValue());";

www.wheelracer.info/other/editor1.jpg

#1
11/24/2005 (4:31 pm)
Spiffy!
#2
11/24/2005 (4:38 pm)
That's pretty sexy. :) Nice job, I've noted it in the bug tracker as something to consider. #839.
#3
11/24/2005 (6:09 pm)
I'm confused on how to add this. Could someone help me?

Thanks
#4
11/24/2005 (6:16 pm)
It's pretty straightforward. I'd guess, load up the GUI Editor when having the texture chooser open, right click the window and edit its width to be larger, add a GuiBitmapCtrl in the space and name it "LoadFileBitmap", and then click on the list of textures and edit the properties for the command section to say "LoadFileBitmap.setBitmap(loadFileList.getValue());";.