Class MSliderDefinition
Used to define an MSlider in an XML file.
Implements
Inherited Members
Namespace: Modding.Serialization
Assembly: Assembly-CSharp.dll
Syntax
public class MSliderDefinition : MapperTypeDefinition, IValidatable
Constructors
MSliderDefinition()
Declaration
public MSliderDefinition()
Fields
Default
Default value of the slider.
Declaration
public float Default
Field Value
| Type | Description |
|---|---|
| Single |
Max
Maximum value of the slider.
Declaration
public float Max
Field Value
| Type | Description |
|---|---|
| Single |
Min
Minimum value of the slider.
Declaration
public float Min
Field Value
| Type | Description |
|---|---|
| Single |
Unclamped
If set to true, it is possible to type in values outside of the normal maximum and minimum. In this case max and min only apply to the slider itself.
Declaration
public bool Unclamped
Field Value
| Type | Description |
|---|---|
| Boolean |
Methods
Create(SaveableDataHolder)
Adds this mapper type to the given holder.
Declaration
public override MapperType Create(SaveableDataHolder holder)
Parameters
| Type | Name | Description |
|---|---|---|
| SaveableDataHolder | holder |
Returns
| Type | Description |
|---|---|
| MapperType | The created MapperType instance. |