Class StagePartGroupDataContext
- Namespace
- KSP.Game
- Assembly
- Assembly-CSharp.dll
public class StagePartGroupDataContext : DataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
- Inheritance
-
StagePartGroupDataContext
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
StagePartGroupDataContext(StageDataContext, StagePartDataContext)
public StagePartGroupDataContext(StageDataContext stage, StagePartDataContext partToAdd)
Parameters
stage StageDataContext
partToAdd StagePartDataContext
Fields
DEFAULT_IS_PART_GROUP_EXPANDED
public const bool DEFAULT_IS_PART_GROUP_EXPANDED = false
Field Value
- bool
EngineType
protected EngineType EngineType
Field Value
- EngineType
GroupDisplayName
public Property<string> GroupDisplayName
Field Value
- Property<string>
GroupItemCount
public PropertyExternal<int> GroupItemCount
Field Value
- PropertyExternal<int>
Icon
public Property<Sprite> Icon
Field Value
- Property<Sprite>
IsActive
public PropertyExternal<bool> IsActive
Field Value
- PropertyExternal<bool>
IsEmpty
public PropertyExternal<bool> IsEmpty
Field Value
- PropertyExternal<bool>
IsGroupExpanded
public Property<bool> IsGroupExpanded
Field Value
- Property<bool>
IsGroupIconHighlighted
public Property<bool> IsGroupIconHighlighted
Field Value
- Property<bool>
Items
public ContextListProperty<StagePartDataContext> Items
Field Value
- ContextListProperty<StagePartDataContext>
StageType
protected AssemblyPartStageType StageType
Field Value
- AssemblyPartStageType
partName
protected string partName
Field Value
- string
Properties
GroupAndStageExpanded
public Property<bool> GroupAndStageExpanded { get; }
Property Value
- Property<bool>
HighlightIndex
public Property<int> HighlightIndex { get; }
Property Value
- Property<int>
IsDragging
public Property<bool> IsDragging { get; }
Property Value
- Property<bool>
PartWithSymIsHighlighted
public Property<bool> PartWithSymIsHighlighted { get; }
Property Value
- Property<bool>
Methods
GetGroupItemCount()
public int GetGroupItemCount()
Returns
- int
GetStageType()
public string GetStageType()
Returns
- string
IsGroupActive()
public bool IsGroupActive()
Returns
- bool
IsGroupEmpty()
public bool IsGroupEmpty()
Returns
- bool
MatchesCriteria(string)
public bool MatchesCriteria(string _partName)
Parameters
_partName string
Returns
- bool
OnStageOrGroupExpandedChanged()
public void OnStageOrGroupExpandedChanged()
TryAddPart(StagePartDataContext)
public void TryAddPart(StagePartDataContext partToAdd)
Parameters
partToAdd StagePartDataContext
TryAddPartAtIndex(StagePartDataContext, int)
public void TryAddPartAtIndex(StagePartDataContext partToAdd, int targetIndex)
Parameters
partToAdd StagePartDataContext
targetIndex int
TryGetPartAtIndex(int, out StagePartDataContext)
public bool TryGetPartAtIndex(int partIndex, out StagePartDataContext part)
Parameters
partIndex int
part StagePartDataContext
Returns
- bool
TryRemovePart(StagePartDataContext)
public bool TryRemovePart(StagePartDataContext partToRemove)
Parameters
partToRemove StagePartDataContext
Returns
- bool