Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
SuitButton Class Reference

This class represents a suit type in the helmet suit picker window. On click, it will apply the selections into its proto crew. More...

Inheritance diagram for SuitButton:

Public Types

enum  EVAHelmetNeckRingState { EVAHelmetNeckRingState.HelmetNeckRingOn, EVAHelmetNeckRingState.OnlyNeckRingOn, EVAHelmetNeckRingState.HelmetNeckRingOff }
 

Public Member Functions

void GenerateButtonName (string kerbalName, string suitType)
 
void OnButtonClicked ()
 
void OnPointerEnter (PointerEventData eventData)
 
void OnPointerExit (PointerEventData eventData)
 
void Reset ()
 
void Select ()
 

Public Attributes

int buttonIndex
 Helmet/suit picker window suit button identifier. More...
 
ComboSelector comboSelector
 Holds the reference to this button combo selector. More...
 
EVAHelmetNeckRingState evaHelmetNeckRingState
 The helmet state for this suit button. More...
 
int helmetNeckRingIndex = 0
 Holds a reference to the helmet state. More...
 
RawImage thumbImg
 References the thumbnail image preview. More...
 

Properties

TMPro.TextMeshProUGUI ComboName [get]
 
Button HelmetNeckRingButton [get]
 
Sprite[] HelmetNeckRingState [get]
 
int HelmetStates [get]
 Count of available helmet states. More...
 
KerbalPreview KerbalPreview [get, set]
 References the Kerbal object used to preview the suit selection. More...
 
ProtoCrewMember.KerbalSuit KerbalSuit [get, set]
 References the suit type this suit button belongs to. More...
 
SuitLightColorPicker SuitLightColorPicker [get]
 References its suit light color picker tool. More...
 

Detailed Description

This class represents a suit type in the helmet suit picker window. On click, it will apply the selections into its proto crew.

Member Enumeration Documentation

Enumerator
HelmetNeckRingOn 
OnlyNeckRingOn 
HelmetNeckRingOff 

Member Function Documentation

void SuitButton.GenerateButtonName ( string  kerbalName,
string  suitType 
)
inline
void SuitButton.OnButtonClicked ( )
inline
void SuitButton.OnPointerEnter ( PointerEventData  eventData)
inline
void SuitButton.OnPointerExit ( PointerEventData  eventData)
inline
void SuitButton.Reset ( )
inline
void SuitButton.Select ( )
inline

Member Data Documentation

int SuitButton.buttonIndex

Helmet/suit picker window suit button identifier.

ComboSelector SuitButton.comboSelector

Holds the reference to this button combo selector.

EVAHelmetNeckRingState SuitButton.evaHelmetNeckRingState

The helmet state for this suit button.

int SuitButton.helmetNeckRingIndex = 0

Holds a reference to the helmet state.

RawImage SuitButton.thumbImg

References the thumbnail image preview.

Property Documentation

TMPro.TextMeshProUGUI SuitButton.ComboName
get
Button SuitButton.HelmetNeckRingButton
get
Sprite [] SuitButton.HelmetNeckRingState
get
int SuitButton.HelmetStates
get

Count of available helmet states.

KerbalPreview SuitButton.KerbalPreview
getset

References the Kerbal object used to preview the suit selection.

ProtoCrewMember.KerbalSuit SuitButton.KerbalSuit
getset

References the suit type this suit button belongs to.

SuitLightColorPicker SuitButton.SuitLightColorPicker
get

References its suit light color picker tool.


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