Game Development Community

How to modify GuiSliderControl bitmap?

by Raja John · in Torque Game Builder · 12/23/2008 (9:24 pm) · 2 replies

Hi everyone..

i almost done my sample game, in my game i wanna control the master volume and effects volume by GuiSliderControl. I have done this perfectly, but i cant change the images for GuiSliderControl.

In ~Common/gui/profiles.cs..

if(!isObject(GuiSliderProfile)) new GuiControlProfile (GuiSliderProfile)
{
   bitmap = "./images/slider";
};

If i change the "slider" nothing happened. I wanna use slider control like this..

e.imagehost.org/0083/simAudio.jpg
is this possible in TGB? or any other method for this?

Thank You..

#1
12/27/2008 (8:57 am)
I use the following::

new GuiControlProfile (GuiSliderProfile)
{
   bitmap = "~/data/images/GUI/sliderGame";
};

The sliderGame.png was created using the default image as a template.
#2
12/28/2008 (8:30 am)
Hi Don!

i tried ur solution but nothing changed, how can i modify the default template e.imagehost.org/0799/slider.png like the previous image i posted early?

Thank You.