Class ColorValueFormatter
- Namespace
- Uncreated.Warfare.Translations.ValueFormatters
- Assembly
- Uncreated.Warfare.dll
Handles formatting colors to hex or rgb(..) strings.
public class ColorValueFormatter : IValueFormatter<Color>, IValueFormatter<Color32>, IValueFormatter
- Inheritance
-
ColorValueFormatter
- Implements
-
IValueFormatter<Color>IValueFormatter<Color32>
- Inherited Members
Fields
FormatColorizedHashHex1
public static readonly SpecialFormat FormatColorizedHashHex1
Field Value
FormatColorizedHashHex2
public static readonly SpecialFormat FormatColorizedHashHex2
Field Value
FormatColorizedHashHex3
public static readonly SpecialFormat FormatColorizedHashHex3
Field Value
FormatColorizedHashHex4
public static readonly SpecialFormat FormatColorizedHashHex4
Field Value
FormatColorizedHashHex6
public static readonly SpecialFormat FormatColorizedHashHex6
Field Value
FormatColorizedHashHex8
public static readonly SpecialFormat FormatColorizedHashHex8
Field Value
FormatColorizedHashHexAuto
public static readonly SpecialFormat FormatColorizedHashHexAuto
Field Value
FormatColorizedHex1
public static readonly SpecialFormat FormatColorizedHex1
Field Value
FormatColorizedHex2
public static readonly SpecialFormat FormatColorizedHex2
Field Value
FormatColorizedHex3
public static readonly SpecialFormat FormatColorizedHex3
Field Value
FormatColorizedHex4
public static readonly SpecialFormat FormatColorizedHex4
Field Value
FormatColorizedHex6
public static readonly SpecialFormat FormatColorizedHex6
Field Value
FormatColorizedHex8
public static readonly SpecialFormat FormatColorizedHex8
Field Value
FormatColorizedHexAuto
public static readonly SpecialFormat FormatColorizedHexAuto
Field Value
FormatColorizedRGB1
public static readonly SpecialFormat FormatColorizedRGB1
Field Value
FormatColorizedRGB255
public static readonly SpecialFormat FormatColorizedRGB255
Field Value
FormatHashHex1
public static readonly SpecialFormat FormatHashHex1
Field Value
FormatHashHex2
public static readonly SpecialFormat FormatHashHex2
Field Value
FormatHashHex3
public static readonly SpecialFormat FormatHashHex3
Field Value
FormatHashHex4
public static readonly SpecialFormat FormatHashHex4
Field Value
FormatHashHex6
public static readonly SpecialFormat FormatHashHex6
Field Value
FormatHashHex8
public static readonly SpecialFormat FormatHashHex8
Field Value
FormatHashHexAuto
public static readonly SpecialFormat FormatHashHexAuto
Field Value
FormatHex1
public static readonly SpecialFormat FormatHex1
Field Value
FormatHex2
public static readonly SpecialFormat FormatHex2
Field Value
FormatHex3
public static readonly SpecialFormat FormatHex3
Field Value
FormatHex4
public static readonly SpecialFormat FormatHex4
Field Value
FormatHex6
public static readonly SpecialFormat FormatHex6
Field Value
FormatHex8
public static readonly SpecialFormat FormatHex8
Field Value
FormatHexAuto
public static readonly SpecialFormat FormatHexAuto
Field Value
FormatRGB1
public static readonly SpecialFormat FormatRGB1
Field Value
FormatRGB255
public static readonly SpecialFormat FormatRGB255
Field Value
Methods
Format(ITranslationValueFormatter, object, in ValueFormatParameters)
public string Format(ITranslationValueFormatter formatter, object value, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormattervalueobjectparametersValueFormatParameters
Returns
Format(ITranslationValueFormatter, Color, in ValueFormatParameters)
public string Format(ITranslationValueFormatter formatter, Color value, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormattervalueColorparametersValueFormatParameters
Returns
Format(ITranslationValueFormatter, Color32, in ValueFormatParameters)
public string Format(ITranslationValueFormatter formatter, Color32 value, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormattervalueColor32parametersValueFormatParameters