Table of Contents

Class SliderSetting

Namespace
Exiled.API.Features.Core.UserSettings
Assembly
Exiled.API.dll

Represents a slider setting.

public class SliderSetting : SettingBase, IWrapper<ServerSpecificSettingBase>, IWrapper<SSSliderSetting>
Inheritance
SliderSetting
Implements
IWrapper<ServerSpecificSettingBase>
IWrapper<SSSliderSetting>
Inherited Members
Extension Methods

Constructors

SliderSetting(int, string, float, float, float, bool, string, string, string)

Initializes a new instance of the SliderSetting class.

public SliderSetting(int id, string label, float minValue, float maxValue, float defaultValue, bool isInteger = false, string stringFormat = "0.##", string displayFormat = "{0}", string hintDescription = null)

Parameters

id int
label string
minValue float
maxValue float
defaultValue float
isInteger bool
stringFormat string
displayFormat string
hintDescription string

Properties

Base

Gets the base UserSettings.ServerSpecific.SSSliderSetting that this class is wrapping.

public SSSliderSetting Base { get; }

Property Value

SSSliderSetting

DefaultValue

Gets or sets the default value of the slider.

public float DefaultValue { get; set; }

Property Value

float

DisplayFormat

Gets or sets the formatting used for the final display of the value of the slider.

public string DisplayFormat { get; set; }

Property Value

string

IsBeingDragged

Gets a value indicating whether the slider is currently being dragged.

public bool IsBeingDragged { get; }

Property Value

bool

IsInteger

Gets or sets a value indicating whether the slider displays integers.

public bool IsInteger { get; set; }

Property Value

bool

MaximumValue

Gets or sets the maximum value of the slider.

public float MaximumValue { get; set; }

Property Value

float

MinimumValue

Gets or sets the minimum value of the slider.

public float MinimumValue { get; set; }

Property Value

float

SliderValue

Gets a float that represents the current value of the slider.

public float SliderValue { get; }

Property Value

float

StringFormat

Gets or sets the formatting used for the number in the slider.

public string StringFormat { get; set; }

Property Value

string

Methods

ToString()

Returns a representation of this SliderSetting.

public override string ToString()

Returns

string

A string in human-readable format.