GripsSkin

References
public sealed class GripsSkin : IStorable
A collection of grip properties.

Constructors

GripsSkin

#
public GripsSkin(GripSkin normal, GripSkin disabled, GripSkin tentative)
Create a new grip palette.
normal (GripSkin)
disabled (GripSkin)
tentative (GripSkin)

GripsSkin

#
public GripsSkin(IReader reader)
Deserialisation constructor.
reader (IReader)

Fields

DefaultDim

#
public static readonly GripsSkin DefaultDim
Gets the default Grip properties in dark mode.

DefaultLit

#
public static readonly GripsSkin DefaultLit
Gets the default Grip properties in bright mode.

Indexers

this[]

#
public GripSkin this[GripKind kind] { get; }
Gets the grip properties associated with the given kind.
kind (GripKind)

Methods

Fade

#
public GripsSkin Fade(float factor)
Multiply the alpha value colours in this collection with the given factor.
factor (float)Fading factor. 0=fully transparent, 1=no change.
Modified palette.

Interpolate

#
public GripsSkin Interpolate(GripsSkin other, float factor)
Interpolate between schemes.
other (GripsSkin)Other scheme.
factor (float)Interpolation factor.
Interpolated scheme.

Store

#
public void Store(IWriter writer)
This method is called whenever the instance is required to serialize itself.
writer (IWriter)Writer object to serialize with.
Store

With

#
public GripsSkin With(GripKind kind, GripSkin gripSkin)
Modify one of the grips.
kind (GripKind)Index of grip spec to modify.
gripSkin (GripSkin)New grip.
Modified grips.