(Formerly known as GetSliderValue, which is now obsolete)
(Formerly known as SetSliderValue, which is now obsolete)
int Slider.Value;
Gets/sets the value of the specified GUI slider. You would usually
use this in the interface_click function to find out what value the
player has changed the slider to, in order to process their command.
When setting the value, the new value must lie between the MIN and MAX settings
for the slider, as set up in the GUI editor.
Example:
SetMusicMasterVolume(sldVolume.Value);
will set the master music volume to the value of the slider sldVolume.
See Also: Label.Text
|