Game Development Community

How to register GuiCtrls ingame

by Till Hoffmann · in Torque Game Engine · 11/10/2005 (12:55 pm) · 1 replies

Hello,

I'm developing an inventory system which should display several items. But I don't know how many items there are, so I have to create the GuiCtrls by script. But the ctrls aren't rendered. Probably this happens because they do not belong to a GUI. How can I attach these new GuiCtrls to a menu, if that is the solution.

Till

#1
11/10/2005 (1:50 pm)
Well.... do an add()

GUIParent.add(GuiCtrl);