Game Development Community

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!!!

#1
11/27/2003 (3:21 pm)
Ok, the metrics gui is actually created from a script file.. What I'd suggest is that you create a new .gui and add some functions for getting and setting the values you want to watch..

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.
#2
11/28/2003 (2:13 am)
Check out the following resource fps mod

Look at the source, and take a look at the metrics.cs file... that should get you started.
#3
11/28/2003 (7:33 pm)
Thank so much!!! That's just what I want!