Class AssemblyPartsPicker
- Namespace
- KSP.OAB
- Assembly
- Assembly-CSharp.dll
public class AssemblyPartsPicker : KerbalMonoBehaviour
- Inheritance
-
AssemblyPartsPicker
- Inherited Members
-
- Extension Methods
-
Constructors
AssemblyPartsPicker()
public AssemblyPartsPicker()
Fields
PartInfoOverlay
public PartInfoOverlay PartInfoOverlay
Field Value
- PartInfoOverlay
SearchFilterSortRT
public RectTransform SearchFilterSortRT
Field Value
- RectTransform
_builderEvents
protected ObjectAssemblyBuilderEvents _builderEvents
Field Value
- ObjectAssemblyBuilderEvents
_events
protected ObjectAssemblyUIEvents _events
Field Value
- ObjectAssemblyUIEvents
_stats
protected OABSessionInformation _stats
Field Value
- OABSessionInformation
public Transform buttonHoldingPen
Field Value
- Transform
public List<ObjectAssemblyCategoryButton> categoryButtons
Field Value
- List<ObjectAssemblyCategoryButton>
public Button clearSearchButton
Field Value
- Button
currentCategory
public PartCategories currentCategory
Field Value
- PartCategories
currentFilter
public AssemblyPartFilterType currentFilter
Field Value
- AssemblyPartFilterType
cursorMovableArea
public RectTransform cursorMovableArea
Field Value
- RectTransform
emptyParts
public RectTransform emptyParts
Field Value
- RectTransform
expandCollapseToggle
public Toggle expandCollapseToggle
Field Value
- Toggle
filterColors
public PartSizeColorData filterColors
Field Value
- PartSizeColorData
filterContainerSimplePrefab
public AssemblyFilterContainer filterContainerSimplePrefab
Field Value
- AssemblyFilterContainer
filterHighlightColors
public PartSizeColorData filterHighlightColors
Field Value
- PartSizeColorData
public RectTransform manipulateShipToolbarRT
Field Value
- RectTransform
public AssemblyPartsButton partButtonSimplePrefab
Field Value
- AssemblyPartsButton
partCategorySortingTypes
public List<PartCategorySortingType> partCategorySortingTypes
Field Value
- List<PartCategorySortingType>
partContentRT
public RectTransform partContentRT
Field Value
- RectTransform
partDropPreview
public UIPartDropPreview partDropPreview
Field Value
- UIPartDropPreview
public RectTransform partsCategoriesToolbarRT
Field Value
- RectTransform
partsPickerBGPanelRT
public RectTransform partsPickerBGPanelRT
Field Value
- RectTransform
public ScrollRect partsPickerScrollRect
Field Value
- ScrollRect
partsPickerView
public RectTransform partsPickerView
Field Value
- RectTransform
searchText
public TMP_InputField searchText
Field Value
- TMP_InputField
sortingDropdown
public DropdownExtended sortingDropdown
Field Value
- DropdownExtended
public Toggle togglePartsFiltersButton
Field Value
- Toggle
public Toggle toggleSearchButton
Field Value
- Toggle
public UITrashCanWidget trashCanWidget
Field Value
- UITrashCanWidget
viewCubeRT
public RectTransform viewCubeRT
Field Value
- RectTransform
Properties
IsHoveredByCursor
public bool IsHoveredByCursor { get; }
Property Value
- bool
Methods
public AssemblyPartsButton AddButtonForPartDuplicate(IObjectAssemblyAvailablePart part)
Parameters
part IObjectAssemblyAvailablePart
Returns
- AssemblyPartsButton
ApplySuggestedRotation(IObjectAssemblyPart)
public void ApplySuggestedRotation(IObjectAssemblyPart part)
Parameters
part IObjectAssemblyPart
ForceRefreshUIGroups()
public void ForceRefreshUIGroups()
public AssemblyPartsButton GetButtonForPart(IObjectAssemblyAvailablePart part)
Parameters
part IObjectAssemblyAvailablePart
Returns
- AssemblyPartsButton
public ObjectAssemblyCategoryButton GetCategoryButton(PartCategories partCategory)
Parameters
partCategory PartCategories
Returns
- ObjectAssemblyCategoryButton
GetFilterColorFromFilterEnum(int, PartSizeColorData)
public static Color GetFilterColorFromFilterEnum(int filterSubType, PartSizeColorData filterColors)
Parameters
filterSubType int
filterColors PartSizeColorData
Returns
- Color
GetSuggestedRotation(IObjectAssemblyPart)
public Quaternion? GetSuggestedRotation(IObjectAssemblyPart part)
Parameters
part IObjectAssemblyPart
Returns
- Quaternion?
public virtual void Initialize(ObjectAssemblyUIEvents eventsToUse, ObjectAssemblyBuilderEvents builderEvents, OABSessionInformation statsToUse)
Parameters
eventsToUse ObjectAssemblyUIEvents
builderEvents ObjectAssemblyBuilderEvents
statsToUse OABSessionInformation
OnConfigDataLoaded(TextAsset)
public void OnConfigDataLoaded(TextAsset data)
Parameters
data TextAsset
OnLocalize()
OnRequestPartDeleteFX(IObjectAssemblyPart, Vector3)
public void OnRequestPartDeleteFX(IObjectAssemblyPart part, Vector3 loc)
Parameters
part IObjectAssemblyPart
loc Vector3
RefreshPartsPicker()
public void RefreshPartsPicker()
ReloadPartIcons(IObjectAssemblyAvailablePart)
public virtual void ReloadPartIcons(IObjectAssemblyAvailablePart availablePart)
Parameters
availablePart IObjectAssemblyAvailablePart
SetCategory(PartCategories)
public void SetCategory(PartCategories categoryToUse)
Parameters
categoryToUse PartCategories
SetFilter(AssemblyPartFilterType, bool)
public void SetFilter(AssemblyPartFilterType filterToUse, bool reverseFilter = false)
Parameters
filterToUse AssemblyPartFilterType
reverseFilter bool
SetNextFilter(bool)
public void SetNextFilter(bool reverseFilter = false)
Parameters
reverseFilter bool
SetUICamera(Camera)
public void SetUICamera(Camera camera)
Parameters
camera Camera
TogglePartsFilterSearch(bool)
public void TogglePartsFilterSearch(bool toggled)
Parameters
toggled bool
ToggleSearch(bool)
public void ToggleSearch(bool toggled)
Parameters
toggled bool
UpdateSearch()
public void UpdateSearch()