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

Public Member Functions

void RefreshToolTipHeight (Vector2 localCursor)
 Updates the height of the tooltip to adjust to the current widgets More...
 
void Setup (AvailablePart availablePart, Callback< PartListTooltip > onPurchase, RenderTexture texture=null)
 Setup a PartList ToolTip for a Part. More...
 
void Setup (AvailablePart availablePart, PartUpgradeHandler.Upgrade up, Callback< PartListTooltip > onPurchase, RenderTexture texture=null)
 Set up a PartList Tooltip for an upgrade. More...
 

Public Attributes

RectTransform extInfoListContainer
 Parent for the widget list More...
 
RectTransform extInfoListSpacer
 Spacer for the widget list More...
 
PartListTooltipWidget extInfoModuleWidgetPrefab
 Prefab for the module info widget More...
 
PartListTooltipWidget extInfoRscWidgePrefab
 Prefab for the resource info widget More...
 
StoredPart inventoryStoredPart
 Reference to the part stored in the inventory slot More...
 
bool mouseOver = false
 Is the mouse over this tooltip More...
 
TMPro.TextMeshProUGUI textName
 TextMeshPro label for the part name More...
 
InventoryPartListTooltipController toolTipController
 Reference to the tooltip controller More...
 

Properties

bool isGrey [get, set]
 
- Properties inherited from KSP.UI.Tooltip
RectTransform RectTransform [get]
 

Additional Inherited Members

- Protected Member Functions inherited from KSP.UI.Tooltip
void Awake ()
 

Member Function Documentation

void KSP.UI.Screens.Editor.InventoryPartListTooltip.RefreshToolTipHeight ( Vector2  localCursor)
inline

Updates the height of the tooltip to adjust to the current widgets

void KSP.UI.Screens.Editor.InventoryPartListTooltip.Setup ( AvailablePart  availablePart,
Callback< PartListTooltip onPurchase,
RenderTexture  texture = null 
)
inline

Setup a PartList ToolTip for a Part.

Parameters
availablePart
onPurchase
texture
void KSP.UI.Screens.Editor.InventoryPartListTooltip.Setup ( AvailablePart  availablePart,
PartUpgradeHandler.Upgrade  up,
Callback< PartListTooltip onPurchase,
RenderTexture  texture = null 
)
inline

Set up a PartList Tooltip for an upgrade.

Parameters
availablePart
up
onPurchase
texture

Member Data Documentation

RectTransform KSP.UI.Screens.Editor.InventoryPartListTooltip.extInfoListContainer

Parent for the widget list

RectTransform KSP.UI.Screens.Editor.InventoryPartListTooltip.extInfoListSpacer

Spacer for the widget list

PartListTooltipWidget KSP.UI.Screens.Editor.InventoryPartListTooltip.extInfoModuleWidgetPrefab

Prefab for the module info widget

PartListTooltipWidget KSP.UI.Screens.Editor.InventoryPartListTooltip.extInfoRscWidgePrefab

Prefab for the resource info widget

StoredPart KSP.UI.Screens.Editor.InventoryPartListTooltip.inventoryStoredPart

Reference to the part stored in the inventory slot

bool KSP.UI.Screens.Editor.InventoryPartListTooltip.mouseOver = false

Is the mouse over this tooltip

TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.InventoryPartListTooltip.textName

TextMeshPro label for the part name

InventoryPartListTooltipController KSP.UI.Screens.Editor.InventoryPartListTooltip.toolTipController

Reference to the tooltip controller

Property Documentation

bool KSP.UI.Screens.Editor.InventoryPartListTooltip.isGrey
getset

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