Max property
Min property
Value property
int Slider.Max;Gets/sets the maximum value of the specified GUI slider.
When changing the maximum, the slider's Value will be adjusted if necessary so that it lies within the Min - Max range.
An error occurs if you try to set the Max to a lower value than the Min.
Example:
sldHealth.Max = 200;sets the maximum value of the sldHealth slider to 200.
See Also: Slider.Min, Slider.Value
int Slider.Min;Gets/sets the minimum value of the specified GUI slider.
When changing the minimum, the slider's Value will be adjusted if necessary so that it lies within the Min - Max range.
An error occurs if you try to set the Min to a higher value than the Max.
Example:
sldHealth.Min = 0;sets the minimum value of the sldHealth slider to 0.
See Also: Slider.Max, Slider.Value
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