Volume Control Slider [Help]
Posted: 19 Oct 2008, 13:58
I can't seem to figure out how to create a Toggable GUI.
Ive fixed the TA Music widget but i want to add a slider for the volume level.
To be honest i don't even know where to start.
This is the code ive got to play a sound file with a set volume.
but i want to change it to something like this.
Could i have the input of the slider something like this..
See i dont even know how to add the mouse control or how the slider will interact with the code above.
So i desperately need some help.
Thanks
Ive fixed the TA Music widget but i want to add a slider for the volume level.
To be honest i don't even know where to start.
This is the code ive got to play a sound file with a set volume.
Code: Select all
Spring.PlaySoundStream("music/17.ogg",0.8)
Code: Select all
Spring.PlaySoundStream("music/17.ogg",Volvalue)
Code: Select all
Volvalue = {
name = 'Music Volume',
desc = 'Adjust the Volume level.',
type = 'number', min = 0, max = 1, step = 0.05,
value = 0.8
}=
So i desperately need some help.
Thanks