GuiProgressCtrl question
by Eric Flint · in General Discussion · 03/01/2007 (9:07 pm) · 6 replies
Where do you edit the GuiProgressCtrl? I want to change the appearence of it, but cannot seem to find anything for it. I tried the search, but to no avail. Thanks!
About the author
#2
03/02/2007 (4:34 pm)
Nice, didn't find that when I did a search. I am checking it out right now. Thanks for the link!
#3
Here's it is around line 190:
You change it, or make your own, like this one:
03/02/2007 (5:58 pm)
You can change it in common/gui/profiles.csHere's it is around line 190:
Quote:
if(!isObject(GuiProgressProfile)) new GuiControlProfile ("GuiProgressProfile")
{
opaque = false;
fillColor = "44 152 162 100";
border = true;
borderColor = "78 88 120";
};
You change it, or make your own, like this one:
Quote:
if(!isObject(MyProgressProfile)) new GuiControlProfile ("MyProgressProfile")
{
opaque = false;
fillColor = "152 44 162 100";
border = true;
borderColor = "78 88 120";
};
#4
I take it the values are in RGBA order? Ehh I will play with it and find out, thanks again...
03/02/2007 (6:23 pm)
Oh very sweet, that is all I wanted, just to change the colors of it. Thanks! :)I take it the values are in RGBA order? Ehh I will play with it and find out, thanks again...
#5
Yes, RGBA. I use photoshop and pick my color and see what the RGBA values are and use those. Pretty easy.
03/03/2007 (10:49 am)
@Eric FlintYes, RGBA. I use photoshop and pick my color and see what the RGBA values are and use those. Pretty easy.
Torque Owner John Doppler Schiff
I haven't done any research on this, so I'm talking out of my backside here.
It's my understanding that the progress control isn't skinnable, and if you want to change the appearance, you'll either need to modify engine/game/guiProgressCtrl.cc in the source code or roll your own version.
There's a resource here for a skinnable progress bar, but I haven't tried it out.
If you do try it, let us know how it works! =)