Class PartCategoryElement
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
partIInteractivePartselectedActionGroupPropertyPropertyReadonly<KSPActionGroup>
Fields
Category
[DataProperty("Category")]
public PropertyReadonly<PartCategories> Category
Field Value
DisplayName
[DataProperty("DisplayName")]
public Property<string> DisplayName
Field Value
HasParts
[DataProperty("HasParts")]
public PropertyReadonly<bool> HasParts
Field Value
HasSelectedActionParts
[DataProperty("HasSelectedActionParts")]
public PropertyReadonly<bool> HasSelectedActionParts
Field Value
Parts
[DataList("PartsList")]
public ContextListProperty<PartElement> Parts
Field Value
PartsCount
[DataProperty("PartsCount")]
public PropertyReadonly<int> PartsCount
Field Value
SelectedActionPartsCount
[DataProperty("SelectedActionPartsCount")]
public PropertyReadonly<int> SelectedActionPartsCount
Field Value
Methods
OnDestroy()
public void OnDestroy()
OnLocalizeEvent()
public void OnLocalizeEvent()
RemovePart(IGGuid)
public void RemovePart(IGGuid partId)
Parameters
partIdIGGuid
UpdateElement(IInteractivePart, PropertyReadonly<KSPActionGroup>)
public void UpdateElement(IInteractivePart part, PropertyReadonly<KSPActionGroup> selectedActionGroupProperty)
Parameters
partIInteractivePartselectedActionGroupPropertyPropertyReadonly<KSPActionGroup>