Game Development Community

Mounting one gui object to another

by Aditya Kulkarni · in Torque Game Builder · 01/19/2010 (9:19 am) · 4 replies

I have a GuiBitmapButtonCtrl and i need to show 3 GuiMLTextCtrls on it...whenever i move the button, the textfields should move alongwith it...

as far as i know, 'mount' is used to attach a t2d object to another and 'attachgui' is used to attach a gui to a t2d object...but couldn't find a method to mount 2 gui objects

#1
01/19/2010 (10:05 am)
What you might want to try is making one of the controls a container, look at the properties and check the container box. Any control placed within the container control will move along with it.
#2
01/19/2010 (10:12 am)
the problem is, i have 56 of those buttons all in a single gui so it's already a bit messed up...having 56 more containers clutters it even more...:(
#3
01/19/2010 (10:21 am)
Hey sorry i misread that. Thought i had to add some new 'container' element.

Got it working now. Thankzzz Steve!!

#4
01/19/2010 (11:27 am)
No problem :)