Table of Contents

Class PartCategoryElement

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class PartCategoryElement : ApiDataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
Inheritance
PartCategoryElement
Implements
Inherited Members
Extension Methods

Constructors

PartCategoryElement(IInteractivePart, PropertyReadonly<KSPActionGroup>)

public PartCategoryElement(IInteractivePart part, PropertyReadonly<KSPActionGroup> selectedActionGroupProperty)

Parameters

part IInteractivePart
selectedActionGroupProperty PropertyReadonly<KSPActionGroup>

Fields

Category

[DataProperty("Category")]
public PropertyReadonly<PartCategories> Category

Field Value

PropertyReadonly<PartCategories>

DisplayName

[DataProperty("DisplayName")]
public Property<string> DisplayName

Field Value

Property<string>

HasParts

[DataProperty("HasParts")]
public PropertyReadonly<bool> HasParts

Field Value

PropertyReadonly<bool>

HasSelectedActionParts

[DataProperty("HasSelectedActionParts")]
public PropertyReadonly<bool> HasSelectedActionParts

Field Value

PropertyReadonly<bool>

Parts

[DataList("PartsList")]
public ContextListProperty<PartElement> Parts

Field Value

ContextListProperty<PartElement>

PartsCount

[DataProperty("PartsCount")]
public PropertyReadonly<int> PartsCount

Field Value

PropertyReadonly<int>

SelectedActionPartsCount

[DataProperty("SelectedActionPartsCount")]
public PropertyReadonly<int> SelectedActionPartsCount

Field Value

PropertyReadonly<int>

Methods

OnDestroy()

public void OnDestroy()

OnLocalizeEvent()

public void OnLocalizeEvent()

RemovePart(IGGuid)

public void RemovePart(IGGuid partId)

Parameters

partId IGGuid

UpdateElement(IInteractivePart, PropertyReadonly<KSPActionGroup>)

public void UpdateElement(IInteractivePart part, PropertyReadonly<KSPActionGroup> selectedActionGroupProperty)

Parameters

part IInteractivePart
selectedActionGroupProperty PropertyReadonly<KSPActionGroup>