Table of Contents

Class PartElement

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

Constructors

PartElement(IInteractivePart, PropertyReadonly<KSPActionGroup>, Action)

public PartElement(IInteractivePart part, PropertyReadonly<KSPActionGroup> selectedActionGroupProperty, Action onChange)

Parameters

part IInteractivePart
selectedActionGroupProperty PropertyReadonly<KSPActionGroup>
onChange Action

Fields

ActionGroupActions

[DataList("ActionsList")]
public ContextListProperty<ActionGroupActionElement> ActionGroupActions

Field Value

ContextListProperty<ActionGroupActionElement>

ActionsCount

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

Field Value

PropertyReadonly<int>

DisplayName

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

Field Value

PropertyReadonly<string>

Guid

[DataProperty("GUID")]
public PropertyReadonly<IGGuid> Guid

Field Value

PropertyReadonly<IGGuid>

HasActions

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

Field Value

PropertyReadonly<bool>

HasSelectedActions

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

Field Value

PropertyReadonly<bool>

IsHighlighted

[DataProperty("IsHighlighted")]
public Property<bool> IsHighlighted

Field Value

Property<bool>

SelectedActionsCount

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

Field Value

PropertyReadonly<int>

Methods

UpdateElement(IInteractivePart, PropertyReadonly<KSPActionGroup>)

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

Parameters

part IInteractivePart
selectedActionGroupProperty PropertyReadonly<KSPActionGroup>