Game Development Community

How to change the graphic of the defult Gui???

by Tim Kin Chu · in Torque Game Builder · 06/15/2006 (3:52 am) · 5 replies

I want to replace the graphic of the slider .

but how to do that ?

is then any method to make a new slider without touching the C++ code????

#1
06/15/2006 (2:17 pm)
Take a look at the .gui files for the definition of the gui components. It's just torquescript, but saved with a .gui extension.
#2
06/15/2006 (11:33 pm)
How can i change the graphic then???????
#3
06/16/2006 (12:10 am)
Look in \common\gui\images. You'll see all the graphics for the various GUI controls. You could either edit the graphics directly or put your own images in there and call them from your .gui files.
#4
06/16/2006 (12:16 am)
Is it free to change the size of the image?

also where is the definition of the color of separating the image frame???
#5
06/16/2006 (1:50 am)
If they're configured as KEY images, then you shouldn't need to worry about the size.

The background colour is read from the image file. The colour of the pixel in the top left of the image is used as the background colour.

Take a read through the Image Map Reference PDF file as it explains it all in there.