GUI problem
by Architecture@Uni Melbourne · in Torque Game Engine · 11/27/2003 (2:09 pm) · 3 replies
I'm trying to make some new GUIs for my own purpose. One of them is for displaying the parameters of "metrics.cs" during run-time. But I feel like I just cannot totoally understand the current GUI of "metrics.cs".
From the code, I think it is displayed on a "FrameOverlayGui", and is controlled by "TextOverlayControl". But I cannot find the source code of "TextOverlayControl", so I have no idea how it works.
It seems, "TextOverlayControl" can only display one line of output?...But I want to have a nicer-looking, standard GUI to display several parameters of "metrics.cs" at the same time.
Can anyone give my suggestions what is the best way to do that? Please in a little bit detail, becasue it is the first time I'm making a GUI in Torque. Thanks!!!
From the code, I think it is displayed on a "FrameOverlayGui", and is controlled by "TextOverlayControl". But I cannot find the source code of "TextOverlayControl", so I have no idea how it works.
It seems, "TextOverlayControl" can only display one line of output?...But I want to have a nicer-looking, standard GUI to display several parameters of "metrics.cs" at the same time.
Can anyone give my suggestions what is the best way to do that? Please in a little bit detail, becasue it is the first time I'm making a GUI in Torque. Thanks!!!
About the author
Torque 3D Owner Phil Carlisle
The metrics simply reads a bunch of global script variables and creates a text string, so its really not that nice looking.
Make a new gui (using the gui editor) add some text objects for each thing you want to track.. make it use the script variables of the metrics functions.. update the gui control's text to reflect those values.. etc etc..
phil.