Table of Contents

Interface IComboBoxOptionBuilder<TBuilder>

Namespace
BSGameLib.UI.Builder
Assembly
BSGameLib.UI.dll

Builds one option of a combo box.

public interface IComboBoxOptionBuilder<TBuilder>

Type Parameters

TBuilder

Methods

WithDisplayValue(string)

Sets the text shown for the option. A "{Localize key}" shows that key's text in the current language.

IComboBoxOptionBuilder<TBuilder> WithDisplayValue(string text)

Parameters

text string

Returns

IComboBoxOptionBuilder<TBuilder>

WithKey(string)

Sets the key that identifies the option, and that the selected key names.

IComboBoxOptionBuilder<TBuilder> WithKey(string key)

Parameters

key string

Returns

IComboBoxOptionBuilder<TBuilder>

WithSortIndex(int)

Sets the option's position in the list. Lower values come first.

IComboBoxOptionBuilder<TBuilder> WithSortIndex(int index)

Parameters

index int

Returns

IComboBoxOptionBuilder<TBuilder>