Show / Hide Table of Contents

Class MSliderDefinition

Used to define an MSlider in an XML file.

Inheritance
Object
Element
MapperTypeDefinition
MSliderDefinition
Implements
IValidatable
Inherited Members
MapperTypeDefinition.Key
MapperTypeDefinition.DisplayName
MapperTypeDefinition.ShowInMapper
Element.Validate()
Element.Validate(String)
Element.MissingElement(String, String)
Element.MissingAttribute(String, String)
Element.InvalidData(String, String)
Element.Warn(String, String)
Element.LineNumber
Element.LinePosition
Element.AttributesUsed
Element.ElementsUsed
Element.FileName
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.

Overrides
MapperTypeDefinition.Create(SaveableDataHolder)

Implements

IValidatable
Back to top Generated by DocFX