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

Public Member Functions

void DisplayExtendedInfo (bool display, string rmbHintText)
 
delegate string PartStatsDelegate (Part p, bool showUpgradesAvail)
 
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...
 
void SetupGrayout (string grayoutMessage)
 
void UpdateCargoPartModuleInfo ()
 Update the extended tooltip for a cargo part to get the mass values from variants in there More...
 
void UpdateVariantText (string varName)
 

Static Public Member Functions

static string _GetPartStats (Part p, bool showUpgradesAvail)
 
static string GetPrimaryInfo (AvailablePart aP, int maxLines)
 Returns string of the primary part Info from the AvailablePart, precompiled at game load. More...
 
static string GetUpgradedPrimaryInfo (AvailablePart aP, int maxLines)
 Returns string of primary part Info from the AvailablePart partPrefab itself. If you want the AvailablePart precompiled primary part Info , use GetPrimaryInfo. More...
 

Public Attributes

Button buttonPurchase
 
TMPro.TextMeshProUGUI buttonPurchaseCaption
 
TMPro.TextMeshProUGUI buttonPurchaseCaptionRed
 
GameObject buttonPurchaseContainer
 
Button buttonPurchaseRed
 
Button buttonToggleVariant
 
GameObject costPanel
 
RectTransform extInfoListContainer
 
RectTransform extInfoListSpacer
 
RectTransform extInfoListSpacerVariants
 
PartListTooltipWidget extInfoModuleWidgetPrefab
 
PartListTooltipWidget extInfoRscWidgePrefab
 
PartListTooltipWidget extInfoVariantsWidgePrefab
 
float iconSpin = 60f
 
RawImage imagePart
 
Material[] materials
 
GameObject panelExtended
 
Slider sliderScaleTape
 
TMPro.TextMeshProUGUI textCost
 
TMPro.TextMeshProUGUI textDescription
 
TMPro.TextMeshProUGUI textGreyoutMessage
 
TMPro.TextMeshProUGUI textInfoBasic
 
TMPro.TextMeshProUGUI textManufacturer
 
TMPro.TextMeshProUGUI textName
 
TMPro.TextMeshProUGUI textRMBHint
 
TMPro.TextMeshProUGUI textScale
 

Static Public Attributes

static PartStatsDelegate GetPartStats = _GetPartStats
 

Protected Member Functions

void onBtnPurchaseRed ()
 
void SetupScaleGauge (float iconScale)
 
- Protected Member Functions inherited from KSP.UI.Tooltip
void Awake ()
 

Properties

bool HasExtendedInfo [get]
 
GameObject icon [get]
 
Transform iconTransform [get, set]
 
bool isGrey [get, set]
 
PartIcon partIcon [get, set]
 Reference to the Part Icon object - which contains a reference to the Icon GameObject and cached Renderers. More...
 
- Properties inherited from KSP.UI.Tooltip
RectTransform RectTransform [get]
 

Member Function Documentation

static string KSP.UI.Screens.Editor.PartListTooltip._GetPartStats ( Part  p,
bool  showUpgradesAvail 
)
inlinestatic
void KSP.UI.Screens.Editor.PartListTooltip.DisplayExtendedInfo ( bool  display,
string  rmbHintText 
)
inline
static string KSP.UI.Screens.Editor.PartListTooltip.GetPrimaryInfo ( AvailablePart  aP,
int  maxLines 
)
inlinestatic

Returns string of the primary part Info from the AvailablePart, precompiled at game load.

Parameters
aPAvailablePart
maxLinesmax lines to use in the string.
Returns
static string KSP.UI.Screens.Editor.PartListTooltip.GetUpgradedPrimaryInfo ( AvailablePart  aP,
int  maxLines 
)
inlinestatic

Returns string of primary part Info from the AvailablePart partPrefab itself. If you want the AvailablePart precompiled primary part Info , use GetPrimaryInfo.

Parameters
aPAvailablePart
maxLinesmax lines to use in the string.
Returns
void KSP.UI.Screens.Editor.PartListTooltip.onBtnPurchaseRed ( )
inlineprotected
delegate string KSP.UI.Screens.Editor.PartListTooltip.PartStatsDelegate ( Part  p,
bool  showUpgradesAvail 
)
void KSP.UI.Screens.Editor.PartListTooltip.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.PartListTooltip.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
void KSP.UI.Screens.Editor.PartListTooltip.SetupGrayout ( string  grayoutMessage)
inline
void KSP.UI.Screens.Editor.PartListTooltip.SetupScaleGauge ( float  iconScale)
inlineprotected
void KSP.UI.Screens.Editor.PartListTooltip.UpdateCargoPartModuleInfo ( )
inline

Update the extended tooltip for a cargo part to get the mass values from variants in there

void KSP.UI.Screens.Editor.PartListTooltip.UpdateVariantText ( string  varName)
inline

Member Data Documentation

Button KSP.UI.Screens.Editor.PartListTooltip.buttonPurchase
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.buttonPurchaseCaption
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.buttonPurchaseCaptionRed
GameObject KSP.UI.Screens.Editor.PartListTooltip.buttonPurchaseContainer
Button KSP.UI.Screens.Editor.PartListTooltip.buttonPurchaseRed
Button KSP.UI.Screens.Editor.PartListTooltip.buttonToggleVariant
GameObject KSP.UI.Screens.Editor.PartListTooltip.costPanel
RectTransform KSP.UI.Screens.Editor.PartListTooltip.extInfoListContainer
RectTransform KSP.UI.Screens.Editor.PartListTooltip.extInfoListSpacer
RectTransform KSP.UI.Screens.Editor.PartListTooltip.extInfoListSpacerVariants
PartListTooltipWidget KSP.UI.Screens.Editor.PartListTooltip.extInfoModuleWidgetPrefab
PartListTooltipWidget KSP.UI.Screens.Editor.PartListTooltip.extInfoRscWidgePrefab
PartListTooltipWidget KSP.UI.Screens.Editor.PartListTooltip.extInfoVariantsWidgePrefab
PartStatsDelegate KSP.UI.Screens.Editor.PartListTooltip.GetPartStats = _GetPartStats
static
float KSP.UI.Screens.Editor.PartListTooltip.iconSpin = 60f
RawImage KSP.UI.Screens.Editor.PartListTooltip.imagePart
Material [] KSP.UI.Screens.Editor.PartListTooltip.materials
GameObject KSP.UI.Screens.Editor.PartListTooltip.panelExtended
Slider KSP.UI.Screens.Editor.PartListTooltip.sliderScaleTape
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textCost
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textDescription
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textGreyoutMessage
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textInfoBasic
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textManufacturer
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textName
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textRMBHint
TMPro.TextMeshProUGUI KSP.UI.Screens.Editor.PartListTooltip.textScale

Property Documentation

bool KSP.UI.Screens.Editor.PartListTooltip.HasExtendedInfo
get
GameObject KSP.UI.Screens.Editor.PartListTooltip.icon
get
Transform KSP.UI.Screens.Editor.PartListTooltip.iconTransform
getset
bool KSP.UI.Screens.Editor.PartListTooltip.isGrey
getset
PartIcon KSP.UI.Screens.Editor.PartListTooltip.partIcon
getset

Reference to the Part Icon object - which contains a reference to the Icon GameObject and cached Renderers.


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