Contents Up Previous Next

GUI Slider properties

Enabled property (inherited)
Height property (inherited)
ID property (inherited)
OwningGUI property (inherited)
SetPosition (inherited)
SetSize (inherited)
Visible property (inherited)
Width property (inherited)
X property (inherited)
Y property (inherited)

Value property


Value property

(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.SetText

Browser Based Help. Published by chm2web software.
1