Table of Contents

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

buttonHoldingPen

public Transform buttonHoldingPen

Field Value

Transform

categoryButtons

public List<ObjectAssemblyCategoryButton> categoryButtons

Field Value

List<ObjectAssemblyCategoryButton>

clearSearchButton

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

manipulateShipToolbarRT

public RectTransform manipulateShipToolbarRT

Field Value

RectTransform

partButtonSimplePrefab

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

partsCategoriesToolbarRT

public RectTransform partsCategoriesToolbarRT

Field Value

RectTransform

partsPickerBGPanelRT

public RectTransform partsPickerBGPanelRT

Field Value

RectTransform

partsPickerScrollRect

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

togglePartsFiltersButton

public Toggle togglePartsFiltersButton

Field Value

Toggle

toggleSearchButton

public Toggle toggleSearchButton

Field Value

Toggle

trashCanWidget

public UITrashCanWidget trashCanWidget

Field Value

UITrashCanWidget

viewCubeRT

public RectTransform viewCubeRT

Field Value

RectTransform

Properties

IsHoveredByCursor

public bool IsHoveredByCursor { get; }

Property Value

bool

Methods

AddButtonForPartDuplicate(IObjectAssemblyAvailablePart)

public AssemblyPartsButton AddButtonForPartDuplicate(IObjectAssemblyAvailablePart part)

Parameters

part IObjectAssemblyAvailablePart

Returns

AssemblyPartsButton

ApplySuggestedRotation(IObjectAssemblyPart)

public void ApplySuggestedRotation(IObjectAssemblyPart part)

Parameters

part IObjectAssemblyPart

ForceRefreshUIGroups()

public void ForceRefreshUIGroups()

GetButtonForPart(IObjectAssemblyAvailablePart)

public AssemblyPartsButton GetButtonForPart(IObjectAssemblyAvailablePart part)

Parameters

part IObjectAssemblyAvailablePart

Returns

AssemblyPartsButton

GetCategoryButton(PartCategories)

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?

Initialize(ObjectAssemblyUIEvents, ObjectAssemblyBuilderEvents, OABSessionInformation)

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()

public void 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()