Game Development Community

Gui help needed

by Christian · in Torque Game Engine · 05/14/2007 (6:28 pm) · 2 replies

For GuiGraphCtrl, I want to clear all the Datum's i've added. There is a command .clear() set.clear().

using graph.clear(); doesn't work so I'm assuming that it has something to do with set.clear() right after the .clear in .dump();

#1
05/14/2007 (8:53 pm)
I believe clear() is for removing all the children of a GuiControl (or any SimSet, for that matter).

so you might need to open up the engine and take a look around. there may not be a consolemethod for clearing the data, but it probably wouldn't be too hard to write one.
#2
03/01/2010 (2:54 am)
You could do

yourTextObject.setText("");
for each component in there....

Perhaps. if you need to loop through them, maybe you could fill them in an array using MainGui.listObjects();