Game Development Community

dev|Pro Game Development Curriculum

guiSkinnedProgressCtrl for TGEA 1.7

by Taylor Petrick · 06/05/2008 (6:57 am) · 8 comments

Download Code File

First off, download the guiSkinnedProgressCtrl.zip attached to this resource. Add the code files in the zip to your project and recompile.

Then, copy the loading.png from the zip into your scriptsAndAssets\client\ui.

Next, open scriptsAndAssets\client\ui\loadingGui.gui. At the very top, add:

new GuiControlProfile ("SkinnedLoadingGuiProfile")
{
   bitmap = "./loading";
   hasBitmapArray = true;
};

Then, in the same file, find the

new GuiProgressCtrl

Replace the entire control with

new GuiSkinnedProgressCtrl(LoadingProgress) {
         canSaveDynamicFields = "0";
         Enabled = "1";
         isContainer = "0";
         Profile = "SkinnedLoadingGuiProfile";
         HorizSizing = "right";
         VertSizing = "bottom";
         Position = "133 263";
         Extent = "243 64";
         MinExtent = "8 2";
         canSave = "1";
         Visible = "1";
         hovertime = "1000";
         displayHealth = "0";


That should be everything.

#1
06/05/2008 (12:51 am)
A screenshot:

img221.imageshack.us/img221/2048/imagecu2.png
#2
06/05/2008 (9:12 am)
Very nice and a really easy convert to 1.03.
#3
06/05/2008 (10:49 am)
Your welcome.
#4
06/08/2008 (5:21 pm)
Great Resource Taylor. :)
i want apply this resource to tgea 1.0.3.

help me please.
#5
06/08/2008 (7:57 pm)
Super easy. In the includes just change all of the "T3D/" references to "game/" and just remove all listings of "getDrawUtil()->".

Thats it.
#6
06/10/2008 (8:03 am)
Ron pretty much said it.

First, find any #include T3D/xxxx.h and replace it with #include game/xxx.h.

Then, find all instances of GFX->getDrawUtil()->xxxxx and remove the getDrawUtil()-> part. That should be all.
#7
09/21/2008 (10:18 am)
Where I could find this for the original Torque Game Engine 1.5.2, or is this already in it?
#8
10/03/2008 (11:52 am)
I added the files to "C:\Torque\TGEA_1_7_1\engine\source\gui\controls"
and compiled it and it produces 1 warning:

Warning	1	warning C4553: '==' : operator has no effect; did you intend '='?	c:\Torque\TGEA_1_7_1\engine\source\gui\controls\guiSkinnedProgressCtrl.cc	170

edit:
don't i need to add a include line to an existing file in the source to link the new .h and .cc files?