Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
KSP.UI.Screens.RDPartListItem Class Reference
Inheritance diagram for KSP.UI.Screens.RDPartListItem:
KSP.UI.Screens.EditorPartIcon

Public Member Functions

void Setup (string label, string buttonState, AvailablePart availablePart, PartUpgradeHandler.Upgrade upgrade)
 
- Public Member Functions inherited from KSP.UI.Screens.EditorPartIcon
void Create (EditorPartList partList, AvailablePart part, float iconSize, float iconOverScale, float iconOverSpin)
 Creates a part icon with the specified parameters More...
 
void Create (EditorPartList partList, AvailablePart part, float iconSize, float iconOverScale, float iconOverSpin, Callback< EditorPartIcon > placePartCallback, bool btnPlacePartActive)
 Creates a part icon with the specified parameters More...
 
void Create (EditorPartList partList, AvailablePart part, StoredPart sPart, float iconSize, float iconOverScale, float iconOverSpin, Callback< EditorPartIcon > placePartCallback, bool btnPlacePartActive, bool skipVariants, PartVariant variant, bool useImageThumbnail, bool inInventory)
 Creates a part icon with the specified parameters More...
 
void DisableAddButton ()
 
void DisableDeleteButton ()
 
void EnableAddButton ()
 
void EnableDeleteButton ()
 
PartVariant GetCurrentVariant ()
 Return the current variant that is applied to the availablePart. More...
 
void Highlight ()
 
void MouseInput_PointerEnter (PointerEventData data)
 
void MouseInput_PointerExit (PointerEventData data)
 
void MouseInput_SpawnPart ()
 
void SetEmptySlot ()
 Sets this as an empty slot when there is no part icon to show. More...
 
void SetGrey (string why)
 
void ToggleVariant ()
 Will toggle More...
 
void Unhighlight ()
 
void UnsetGrey ()
 
bool VariantsAvailable ()
 Will return true if the availablePart has Variants More...
 

Public Attributes

UIStateButton button
 
TMPro.TextMeshProUGUI label
 
AvailablePart myPart
 
Image searchHighlight
 
- Public Attributes inherited from KSP.UI.Screens.EditorPartIcon
Button btnAdd
 
Button btnPlacePart
 
Button btnRemove
 
Button btnSpawnPart
 
Button btnSwapTexture
 
Color experimentalPartColor = new Color32(128, 128, 255, 255)
 
FlagDecalBackground flagDecalBackground
 The flag Part module reference, assigned when this is created and the part has the module. More...
 
Image highlightImage
 
float iconOverScale
 
float iconOverSpin
 
float iconSize
 
bool inInventory
 This is true if this icon is inside a ModuleInventoryPart grid. More...
 
RawImage inventoryItemThumbnail
 
bool isEmptySlot = false
 Indicates if this PartIcon is an Empty Slot in the Inventory Grid in the PAW. Is not relevant if this instance is not part of an Inventory Grid in a PAW UI. More...
 
bool isFlag
 True if this EditorPartIcon is a flag part. More...
 
bool isPart = true
 
Material[] materials
 
Color missionRequiredPartColor = new Color32(128, 128, 255, 255)
 
PartIcon partIcon
 Reference to the Part Icon object - which contains a reference to the Icon GameObject and cached Renderers. More...
 
Callback< EditorPartIconPlacePartCallback
 
TMPro.TextMeshProUGUI stackAmountText
 
Slider stackSlider
 The slider that shows how many items in a stack are filled More...
 
PartUpgradeHandler.Upgrade upgrade = null
 
int variantIndex
 

Additional Inherited Members

- Static Public Member Functions inherited from KSP.UI.Screens.EditorPartIcon
static void CleanUpMaterials (GameObject gameObject)
 
static Material[] CreateMaterialArray (GameObject gameObject)
 
static Material[] CreateMaterialArray (GameObject gameObject, bool includeInactiveRenderers)
 
static void SetPartColor (GameObject partIcon, Color color, AvailablePart part=null)
 Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
 
static void SetPartColor (GameObject partIcon, Color color, bool isFlag, AvailablePart part=null)
 Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
 
static void SetPartColor (GameObject partIcon, Color color, bool processUnlit, bool isFlag, AvailablePart part=null)
 Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
 
- Protected Member Functions inherited from KSP.UI.Screens.EditorPartIcon
void Start ()
 
- Properties inherited from KSP.UI.Screens.EditorPartIcon
AvailablePart AvailPart [get]
 Reference to the AvailablePart prefab More...
 
bool Focused [get]
 
string greyoutToolTipMessage [get, set]
 
bool HasIconOrThumbnail [get]
 Does the icon or thumbnail exist? More...
 
bool IsCargoPart [get]
 True if Part implements ModuleCargoPart More...
 
bool IsDeployablePart [get]
 
bool isGrey [get, set]
 
bool MouseOver [get]
 
Transform PartIcon [get]
 The Part Icon transform More...
 
AvailablePart partInfo [get]
 
bool StillFocused [get]
 

Member Function Documentation

void KSP.UI.Screens.RDPartListItem.Setup ( string  label,
string  buttonState,
AvailablePart  availablePart,
PartUpgradeHandler.Upgrade  upgrade 
)
inline

Member Data Documentation

UIStateButton KSP.UI.Screens.RDPartListItem.button
TMPro.TextMeshProUGUI KSP.UI.Screens.RDPartListItem.label
AvailablePart KSP.UI.Screens.RDPartListItem.myPart
Image KSP.UI.Screens.RDPartListItem.searchHighlight

The documentation for this class was generated from the following file: