GUI Guide Status
by Michael Smith · in Torque 2D Beginner · 10/15/2013 (10:02 pm) · 3 replies
I see from the Trello boards that the GUI Guide is still in the back log. Is there even a partial document available? How relevant would the pre-MIT docs be, if they exist?
I ask because I am at a crossroads. I have been using Sprites and onTouch events to get by so far. Now I either need to make that work a lot better or take the plunge into the GUI system.
Thanks!
I ask because I am at a crossroads. I have been using Sprites and onTouch events to get by so far. Now I either need to make that work a lot better or take the plunge into the GUI system.
Thanks!
About the author
Bible translator by day-- game programmer by night
#2
https://github.com/RichardRanft/Torque2D/tree/inventory
The inventory "system" isn't much on the back end - I was trying to illustrate to another forum member how to build the drag-and-drop part. This might help you see how to do some other things with the gui system though....
Also - you don't (for the most part) have to manually convert guis to TAML; you can use exec() to load them and then just use TamlWrite() to save them out. Of course, the old TGB gui editor won't have access to the few new gui controls available in T2D, but you can convert them manually later if you like.
10/16/2013 (8:28 pm)
Yeah, it's pretty much the same. T2D added a few neat things like the guiImageButtonCtrl and guiSpriteCtrl, but for the most part it's the same gui system. For some fun, check out my drag-and-drop inventory system in the inventory branch of my T2D repo : https://github.com/RichardRanft/Torque2D/tree/inventory
The inventory "system" isn't much on the back end - I was trying to illustrate to another forum member how to build the drag-and-drop part. This might help you see how to do some other things with the gui system though....
Also - you don't (for the most part) have to manually convert guis to TAML; you can use exec() to load them and then just use TamlWrite() to save them out. Of course, the old TGB gui editor won't have access to the few new gui controls available in T2D, but you can convert them manually later if you like.
#3
10/17/2013 (7:13 am)
Quote:Perhaps the backlog needs to be explained better. It is there simply as a wish-list so if someone in the community is interested in helping write documentation then they have some subjects where they can focus their attention.This times 1,000. The same goes for all features of the engine, be it docs, art, script, or engine modification. The Trello board is meant to focus people who wish to contribute, but do not know where to start.
Associate Mike Lilligreen
Retired T2Der
As far as I am aware, the GUI system did not change much between TGB and T2D MIT. So any documents from the older engines should still be more or less applicable. If you have a TGB license, the GUI editor can still be used as well, you would just have to manually convert the output from a datablock to TAML XML.