Show / Hide Table of Contents

Class MColourSliderDefinition

Used to define an MColourSlider in an XML file.

Inheritance
Object
Element
MapperTypeDefinition
MColourSliderDefinition
Implements
IValidatable
Inherited Members
MapperTypeDefinition.Key
MapperTypeDefinition.DisplayName
MapperTypeDefinition.ShowInMapper
Element.Validate()
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 MColourSliderDefinition : MapperTypeDefinition, IValidatable

Constructors

MColourSliderDefinition()

Declaration
public MColourSliderDefinition()

Fields

A

Alpha component of the default colour, between 0 and 1.

Declaration
public float A
Field Value
Type Description
Single

B

Blue component of the default colour, between 0 and 1.

Declaration
public float B
Field Value
Type Description
Single

G

Green component of the default colour, between 0 and 1.

Declaration
public float G
Field Value
Type Description
Single

R

Red component of the default colour, between 0 and 1.

Declaration
public float R
Field Value
Type Description
Single

SnapColors

Whether to snap to predefined colour values.

Declaration
public bool SnapColors
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)

Validate(String)

Declaration
protected override bool Validate(string elementName)
Parameters
Type Name Description
String elementName
Returns
Type Description
Boolean
Overrides
Element.Validate(String)

Implements

IValidatable
Back to top Generated by DocFX