Game Development Community

GUI, colour of Loading Datablock Bar.....

by Harvey Greensall · in Torque Game Engine · 03/11/2006 (4:02 am) · 2 replies

Feel a bit daft asking this, but have looked everywhere. Can anyone tell me how I can change the colour of the GUIprogressprofile. You know, the blue-ish loading bar in the loading screens....

Had no problems finding everything else I need to change the colour of, just can't find this one...

I'm sure it's starting me in the face....

Many thanks in advance.

Harvey

#1
03/11/2006 (6:13 am)
Look into your loading gui, example (taken from my code not head version of tge) :

...
new GuiProgressCtrl(LoadingProgress) {
         profile = "GuiHudProgressProfile" ;
         horizSizing = "relative";
         vertSizing = "relative";
         position = "314 443";
         extent = "172 16"; 
         minExtent = "8 8";
         visible = "1";
         helpTag = "0";
...

And in customProfiles.cs redefine (or change the default) to :

new GuiControlProfile ("GuiHudProgressProfile")
{
   opaque = true;
   fillColor = "4 133 103";
   border = false;
   borderColor   = "78 88 120";
};
#2
03/11/2006 (8:47 am)
Brilliant, thanks v.much. it was already there in GuiProfiles, and only had to add

new GuiControlProfile ("GuiProgressProfile")
{
opaque = true;
fillColor = "255 255 255";
border = false;
borderColor = "78 88 120";
};

to customProfiles.cs

Thanks again for your help. Greatly appreciated indeed !!!!

Harvey