Class MColourSliderDefinition
Used to define an MColourSlider in an XML file.
Inheritance
MColourSliderDefinition
Assembly: Assembly-CSharp.dll
Syntax
public class MColourSliderDefinition : MapperTypeDefinition, IValidatable
Constructors
MColourSliderDefinition()
Declaration
public MColourSliderDefinition()
Fields
A
Alpha component of the default colour, between 0 and 1.
Declaration
Field Value
B
Blue component of the default colour, between 0 and 1.
Declaration
Field Value
G
Green component of the default colour, between 0 and 1.
Declaration
Field Value
R
Red component of the default colour, between 0 and 1.
Declaration
Field Value
SnapColors
Whether to snap to predefined colour values.
Declaration
Field Value
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
Validate(String)
Declaration
protected override bool Validate(string elementName)
Parameters
Type |
Name |
Description |
String |
elementName |
|
Returns
Overrides
Implements