Game Development Community

TGB Resource - Easy Edit

by David Higgins · 01/20/2007 (3:10 am) · 3 comments

Easy Edit


A Custom Resource Floater for Torque Game Builder

This resource is not necessarily "useful" as a functional tool, but is a perfect example of creating "useful" tools in TGB quickly and easily. The total time spent on this resource was just over an hour -- 20 minutes was wasted attempting to make the controls "bitmap" buttons, and this idea was dropped when I realized I could not rotate the bitmaps on the GuiBitmapControl and did not want to clutter the resource with a series of 'useless' images (if this resource were used 'in house' I would have spent some time cleaning up the UI and making it 'purty' -- correction, Steve would have made it 'purty').


Here is a quick screenshot of the resource:

www.zoulcreations.com/images/stories/EasyEdit.png
You can download this resource from Gear Worx Productions download page -- Download Page

What does it do?


Well, as you can see from the sreenshot above, the resource is a floater window with 9 buttons. Each button is labelled with "N", "S", "E", "W", "NE", "SE", "NW", "SW" and "O".

These buttons move the current Level Builder Scene Window Camera in the given direction, using a 'step' value defined in the 'resourceDatabase.cs' (right at the top for easy tweaking).

You can toggle the resource on/off by using the "View->Toggle Easy Edit" menu or using the shortcut key (by default, Ctrl-D, also configurable in resourceDatabase.cs)


I hope this resource finds itself useful to those who may be looking for "quick and easy" tweaks to the level builder UI and asked themselves, "how do you do it?".


#1
01/20/2007 (6:26 am)
Thanks,

This will come in handy.
#2
01/20/2007 (2:39 pm)
Hmm, Looks interesting...
#3
01/20/2007 (7:32 pm)
Thanks