AttachGui
by Kevin Ryan · in Torque Game Builder · 02/20/2006 (12:43 pm) · 2 replies
When attaching a gui to a t2d object is the gui object drawn in the same layer as the object that it is attached to?
Specifically I've got several static sprites with a text gui attached to them. Right now when the sprites overlap each other the text will all be drawn on top of all the sprites which is not what I want.
Specifically I've got several static sprites with a text gui attached to them. Right now when the sprites overlap each other the text will all be drawn on top of all the sprites which is not what I want.
#2
I ended up just modifying the code so that I could render the regular gui objects on different layers within a t2d SceneWindow.
I guess I gotta start calling it TGB instead of T2D.
02/21/2006 (10:29 pm)
Thanks Stephen. I figured that out when I saw that the attached GUIs were being added as childs of the T2D SceneWindow and so were drawn after all T2D objects within the Scene Window. Unfortunately the text I'm displaying is entered by the user so it could be anything and therefore I can't pre-build a set of bitmaps with the text to use as t2d objects within the scene.I ended up just modifying the code so that I could render the regular gui objects on different layers within a t2d SceneWindow.
I guess I gotta start calling it TGB instead of T2D.
Torque 3D Owner Stephen Zepp
It's actually a great use as well--we are recommending to many customers to consider TGB as a "super-gui" layer for highly dynamic and controllable interfaces for when the stock TGE gui system doesn't give them the bling they want.