Table of Contents

Class TerminalDropdown<T>

Namespace
RichHudFramework.UI.Client
Assembly
RichHudClient.dll

A collapsing dropdown list with a label. For ControlTiles.

Designed to mimic the appearance of the dropdown in the SE terminal.

public class TerminalDropdown<T> : TerminalValue<EntryData<T>>

Type Parameters

T

The type of object associated with each list entry.

Inheritance
TerminalDropdown<T>
Inherited Members

Examples

new TerminalDropdown<float>()
{
    Name = "TerminalDropdown",
    List =
    {
        { "Entry 1", 0f },
        { "Entry 2", 1f },
        { "Entry 3", 1f },
        { "Entry 4", 2f },
        { "Entry 5", 3f },
        { "Entry 6", 5f },
        { "Entry 7", 8f },
        { "Entry 8", 13f },
    },
    ControlChangedHandler = (obj, args) =>
    {
        var list = obj as TerminalDropdown<float>;
        ExceptionHandler.SendChatMessage($"Selected: {list.Value.Element.TextBoard} = {list.Value.AssocMember}");
    },
    ToolTip = "A generic dropdown list with custom labels associated with arbitrary values."
}

Constructors

TerminalDropdown()

public TerminalDropdown()

Properties

List

Accessor for the underlying list data model.

public ListBoxData<T> List { get; }

Property Value

ListBoxData<T>

Value

The currently selected list entry.

public override EntryData<T> Value { get; set; }

Property Value

EntryData<T>