Table of Contents

Class ColorPickerRGB

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

A named color picker component utilizing RGB sliders, styled to mimic the Space Engineers terminal interface.

Operating in RGB mode. Alpha (transparency) is not supported.

public class ColorPickerRGB : HudElementBase, IReadOnlyHudElement, IReadOnlyHudNode, IReadOnlyHudParent, IValueControl<Color>, IValueControl
Inheritance
ColorPickerRGB
Implements
Derived
Inherited Members

Constructors

ColorPickerRGB()

public ColorPickerRGB()

ColorPickerRGB(HudParentBase)

public ColorPickerRGB(HudParentBase parent)

Parameters

parent HudParentBase

Properties

Name

Gets or sets the text content of the picker's label.

public RichText Name { get; set; }

Property Value

RichText

NameBuilder

Gets the text builder backing the label.

public ITextBuilder NameBuilder { get; }

Property Value

ITextBuilder

NameFormat

Gets or sets the glyph formatting used by the main label.

public GlyphFormat NameFormat { get; set; }

Property Value

GlyphFormat

UpdateValueCallback

Utility property for registering a value update callback via object initializers.

public EventHandler UpdateValueCallback { set; }

Property Value

EventHandler

Value

Gets or sets the color currently specified by the picker.

Setting this value will automatically update the positions of the sliders.

public virtual Color Value { get; set; }

Property Value

Color

ValueFormat

Gets or sets the glyph formatting used by the numeric value labels next to the sliders.

public GlyphFormat ValueFormat { get; set; }

Property Value

GlyphFormat

Methods

SetChannelFocused(int)

Sets input focus to the slider corresponding to the given color channel index.

public void SetChannelFocused(int channel)

Parameters

channel int

The index of the slider to focus (0 to 2).

Events

ValueChanged

Event invoked when the selected color value changes.

public event EventHandler ValueChanged

Event Type

EventHandler