Table of Contents

Class UIValueEnumBinder

Namespace
KSP.UI.Binding.Core
Assembly
Assembly-CSharp.dll
public abstract class UIValueEnumBinder : UIValueBinder<string>, IUIDataContextBindable, IUIValueBinder, IUIValueBinder<string>, IUIValueBindable<string>, IUIValueEnumBindable, IUIValueBindable
Inheritance
UIValueEnumBinder
Implements
Derived
Inherited Members
Extension Methods

Constructors

UIValueEnumBinder()

protected UIValueEnumBinder()

Properties

EnumValues

public IReadOnlyList<string> EnumValues { get; }

Property Value

IReadOnlyList<string>

Methods

AddMappedEnumValueOffset(int)

public void AddMappedEnumValueOffset(int indexOffset)

Parameters

indexOffset int

Awake()

protected override void Awake()

BindValue(IProperty)

public override void BindValue(IProperty valueProperty)

Parameters

valueProperty IProperty

BindValue(IProperty, IEnumerable<string>)

public void BindValue(IProperty valueEnumProperty, IEnumerable<string> enumValues)

Parameters

valueEnumProperty IProperty
enumValues IEnumerable<string>

BindValue(IProperty, Type)

public void BindValue(IProperty valueEnumProperty, Type enumType)

Parameters

valueEnumProperty IProperty
enumType Type

GetMappedEnumValueIndex(string)

public int GetMappedEnumValueIndex(string enumValue)

Parameters

enumValue string

Returns

int

OnMappedEnumValuesChanged(IReadOnlyList<string>, bool)

protected virtual void OnMappedEnumValuesChanged(IReadOnlyList<string> newValues, bool shouldRedraw)

Parameters

newValues IReadOnlyList<string>
shouldRedraw bool

PopulateValueMap()

protected virtual void PopulateValueMap()

SetMappedEnum(Type, bool)

public void SetMappedEnum(Type enumType, bool shouldRedraw = true)

Parameters

enumType Type
shouldRedraw bool

SetMappedEnumValueIndex(int)

public void SetMappedEnumValueIndex(int newIndex)

Parameters

newIndex int

SetMappedEnumValues(IEnumerable<string>, bool)

public void SetMappedEnumValues(IEnumerable<string> enumValues, bool shouldRedraw = true)

Parameters

enumValues IEnumerable<string>
shouldRedraw bool