EmulatorControllerOption13.13
Class in Unbroken.LaunchBox.Plugins
Obsolete since 14.1
public class EmulatorControllerOption
An option this emulator can have set
Constructors
EmulatorControllerOptionChanged 13.27Initializes a legacy emulator option descriptor.
EmulatorControllerOption Changed 13.27
public EmulatorControllerOption(
string identifier,
EmulatorControllerOptionTypes type,
string label,
string? description = null,
object? currentValue = null,
object? defaultValue = null,
IEnumerable<object>? possibleValues = null
)Initializes a legacy emulator option descriptor.
identifier- The non-null option identifier.
type- The kind of value accepted by the option.
label- The non-null display label.
description- The optional descriptive text.
currentValue- The current option value.
defaultValue- The default option value.
possibleValues- The allowed choices, copied into a list; null produces an empty list.
Properties
CurrentValueChanged 13.27The current value of this optionDefaultValueChanged 13.27The default value of this optionDescriptionChanged 13.27UI string describing this optionIdentifierUnique identifier for this optionLabelUI Label for this optionOptionTypeType of data this option utilizesPossibleValuesA collection of possible values for this option
CurrentValue Changed 13.27
public object? CurrentValue { get; }
The current value of this option
DefaultValue Changed 13.27
public object? DefaultValue { get; }
The default value of this option
Description Changed 13.27
public string? Description { get; }
UI string describing this option
Identifier
public string Identifier { get; }
Unique identifier for this option
Label
public string Label { get; }
UI Label for this option
OptionType
public EmulatorControllerOptionTypes OptionType { get; }
Type of data this option utilizes
PossibleValues
public IReadOnlyList<object> PossibleValues { get; }
A collection of possible values for this option
Methods
ToStringReturns the display label.
ToString
public override string ToString()Returns the display label.