Creating an array of controls
by Colossai Studios · in Torque Game Engine · 03/14/2005 (2:20 am) · 3 replies
I'm trying to create an array of controls, but I'm not getting the syntax right. To create one control i use this code:
new GUIBitmapButtonCtrl(bnUnit)
{
property = value;
}
To create an indexed control I've tried this, but it won't compile:
new GUIBitmapButtonCtrl(bnUnit[0])
{
property = value;
}
Anyone know how to do this?
thanks
new GUIBitmapButtonCtrl(bnUnit)
{
property = value;
}
To create an indexed control I've tried this, but it won't compile:
new GUIBitmapButtonCtrl(bnUnit[0])
{
property = value;
}
Anyone know how to do this?
thanks
About the author
Torque 3D Owner Colossai Studios
$unitArray[%index] = new GUIBitmapButtonCtrl(bnUnit)