Table of Contents

Class TerminalList<T>

Namespace
RichHudFramework.UI.Client
Assembly
RichHudClient.dll

A non-collapsing, fixed-height list box with a label. For ControlTiles.

Designed to mimic the appearance of the list box in the SE terminal.

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

Type Parameters

T
Inheritance
TerminalList<T>
Inherited Members

Examples

new TerminalList<float>()
{
    Name = "TerminalList",
    List =
    {
        { "Entry 1", 21f },
        { "Entry 2", 34f },
        { "Entry 3", 55f },
        { "Entry 4", 89f },
        { "Entry 5", 144f },
        { "Entry 6", 233f },
        { "Entry 7", 377f },
        { "Entry 8", 610f },
    },
    ControlChangedHandler = (obj, args) =>
    {
        var list = obj as TerminalList<float>;
        ExceptionHandler.SendChatMessage($"Selected: {list.Value.Element.TextBoard} = {list.Value.AssocMember}");
    },
    ToolTip = "Fixed-size scrolling list with custom labels associated with arbitrary values."
}

Constructors

TerminalList()

public TerminalList()

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>