Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Expansions.Missions.Editor.MEGUIParameterVesselPartSelector Class Reference
Inheritance diagram for Expansions.Missions.Editor.MEGUIParameterVesselPartSelector:
Expansions.Missions.Editor.MEGUIParameterVessel Expansions.Missions.Editor.MEGUICompoundParameter Expansions.Missions.Editor.MEGUIParameter Expansions.Missions.Editor.IMEHistoryTarget

Public Member Functions

new void Awake ()
 
override void DisplayGAP ()
 Initalize the GAP, this is the entry point for the GAP in this parameter More...
 
Part GetSelectedPart ()
 Get the currently selected part. More...
 
override ConfigNode GetState ()
 Creates a information node used to create a Undo or Redo action. More...
 
override void OnChangePartSelection (Part part)
 Called when the part selection changes in the GAP display More...
 
new void OnDestroy ()
 
void OnHistoryValueChange (ConfigNode data, HistoryType type)
 
override void OnNextVessel ()
 Triggered when the right button is clicked More...
 
override void OnPrevVessel ()
 Triggered when the left button is clicked More...
 
override void RefreshUI ()
 Refresh the UI display based on the field value More...
 
void SetFieldValues (uint partId, uint vesselID, string partName)
 
- Public Member Functions inherited from Expansions.Missions.Editor.MEGUIParameterVessel
void SetMission (Mission newMission)
 Set the mission manually. We use this if our field.host isn't actually a Test Module or an Action Module. In such cases, setup won't be able to grab a reference to the mission builder mission automatically. We need to set it manually in the partSelectorParameter member of ParamChoices_RepairTypes for example. More...
 
- Public Member Functions inherited from Expansions.Missions.Editor.MEGUICompoundParameter
override void Display ()
 Displays the compund paramter in the SAP, will sort out the inside parameters by order and re-enable the generated groups More...
 
MEGUIParameter GetSubParameter (string fieldId)
 
void OnDestroy ()
 When the compund parameter is destroyed it should take all its instantiated Sub-Parameters with it. More...
 
- Public Member Functions inherited from Expansions.Missions.Editor.MEGUIParameter
void ChangeColor (Color color)
 
MEGUIParameter Create (BaseAPField field, Transform parent, string name=null)
 Creates an intance of the ui paramter. More...
 
virtual string GetGroupName ()
 
void HideColor ()
 
virtual void OnHistoryPinned (ConfigNode data, HistoryType type)
 
void OnParameterReset ()
 Resets the value of this parameter to the defaultValue attribute or if defaultValue is not set reset the parameter to it inital state. More...
 
virtual void OnPointerEnter (PointerEventData eventData)
 Event triggered on pointer enter this gameobject rect More...
 
virtual void OnPointerExit (PointerEventData eventData)
 Event triggered on pointer leave this gameobject rect More...
 
void RemoveParameterByGroup (string group)
 Used to removed fields grouped More...
 
virtual void Select ()
 Set this parameter to be selected More...
 
void SetTooltipActive (bool state)
 
void SetTooltipText (string newText)
 
void ShowColor ()
 
virtual void UnSelect ()
 Set this parameter to be unselected More...
 

Protected Member Functions

override void ResetDefaultValue (string value)
 Reset to default value based on an attribute value More...
 
override void Setup (string name)
 This extra steps in the Setup will instantiate the Sub-Parameters specified in the logic class and will fill the dictionary with its name as the key. More...
 
- Protected Member Functions inherited from Expansions.Missions.Editor.MEGUICompoundParameter
virtual void Setup (string name, object value)
 This creates the subparameters list for this compound parameter More...
 
virtual void Setup (string name, object value, Transform transform)
 This creates the subparameters list for this compound parameter More...
 
override void Update ()
 
- Protected Member Functions inherited from Expansions.Missions.Editor.MEGUIParameter
virtual void LockLocalizedText ()
 To lock the UI for editing when autoLOC's are used More...
 
virtual void OnEnable ()
 
void OnPinValueChanged (bool state)
 
virtual void Start ()
 
void UpdateNodeBodyUI ()
 

Protected Attributes

MEGUIParameterLabel partNameLabel
 
Part selectedPart
 
GAPVesselDisplay vesselDisplay
 
MEGUIParameterVesselDropdownList vesselDropdownList
 
int vesselIndex
 
- Protected Attributes inherited from Expansions.Missions.Editor.MEGUIParameterVessel
Mission mission
 
- Protected Attributes inherited from Expansions.Missions.Editor.MEGUICompoundParameter
Dictionary< string,
MEGUIParameter
subParameters
 This dictionary holds the references to the instantiated Sub-Parameters, you can retrieve the instace by using the name of the parameter as the key. More...
 
- Protected Attributes inherited from Expansions.Missions.Editor.MEGUIParameter
BaseAPField field
 
RectTransform gapDisplayPartner = null
 The rect that will have its right value changed when the GAPIcon is shown More...
 
bool isPinned = false
 
IMENodeDisplay module
 
CanvasGroup pinCanvasGroup
 
TooltipController_Text tooltipComponent
 The Tooltip controller inside this parameter More...
 

Properties

VesselPartIDPair FieldValue [get, set]
 Parameter value More...
 
- Properties inherited from Expansions.Missions.Editor.MEGUIParameterVessel
List< MissionMappedVesselMappedVesselList [get]
 
List< VesselSituationVesselList [get]
 
- Properties inherited from Expansions.Missions.Editor.MEGUICompoundParameter
bool isSubParameterMouseOver [get]
 Does any of the sub parameters been hovered More...
 
- Properties inherited from Expansions.Missions.Editor.MEGUIParameter
bool GroupStartCollapsed [get]
 Start this group collapsed in the SAP More...
 
bool HasGAP [get]
 Does this parameter has a gap display More...
 
virtual bool IsInteractable [get, set]
 Returns if this parameter is interactable More...
 
bool isMouseOver [get, set]
 Has this parameter mouse over More...
 
bool IsPinnable [get]
 
bool IsSelected [get, set]
 Returns if this parameter is selected More...
 
int Order [get, set]
 Order index for this param in the SAP display More...
 
bool TabStop [get, set]
 
string Tooltip [get]
 

Additional Inherited Members

- Public Attributes inherited from Expansions.Missions.Editor.MEGUIParameterVessel
GameObject vesselCameraSetup
 
GAPUtil_VesselFrame vesselFramePrefab
 
- Public Attributes inherited from Expansions.Missions.Editor.MEGUICompoundParameter
bool subParametersPinneable = true
 Defines if the sub parameters can be pinned independently of the pinned status of the parameter More...
 
bool subParametersSelectable = false
 Defines if the sub paramters can be selected independently that the main parameter selection More...
 
- Public Attributes inherited from Expansions.Missions.Editor.MEGUIParameter
GameObject gapDisplayIndicator
 Indicates that the parameter has a gap display More...
 
bool isSelectable = true
 Can this parameter be selected More...
 
MEGUIParameterGroup parentGroup
 The group this parameter is nested on More...
 
Toggle pinToggle
 Toggle that specifies if this parameter is pinned to the node body More...
 
Button resetButton
 Button used to reset this parameter More...
 
Image selectedIndicator
 Image used to display the control selected state More...
 
TextMeshProUGUI title
 Title of this paremeter More...
 

Member Function Documentation

new void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.Awake ( )
inlinevirtual
override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.DisplayGAP ( )
inlinevirtual

Initalize the GAP, this is the entry point for the GAP in this parameter

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

Part Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.GetSelectedPart ( )
inline

Get the currently selected part.

Returns
Returns currently selected part.
override ConfigNode Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.GetState ( )
inlinevirtual

Creates a information node used to create a Undo or Redo action.

Returns
The Undo/Redo action info node

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.OnChangePartSelection ( Part  part)
inlinevirtual

Called when the part selection changes in the GAP display

Parameters
partSelected part

Reimplemented from Expansions.Missions.Editor.MEGUIParameterVessel.

new void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.OnDestroy ( )
inline
void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.OnHistoryValueChange ( ConfigNode  data,
HistoryType  type 
)
inline
override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.OnNextVessel ( )
inlinevirtual

Triggered when the right button is clicked

Reimplemented from Expansions.Missions.Editor.MEGUIParameterVessel.

override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.OnPrevVessel ( )
inlinevirtual

Triggered when the left button is clicked

Reimplemented from Expansions.Missions.Editor.MEGUIParameterVessel.

override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.RefreshUI ( )
inlinevirtual

Refresh the UI display based on the field value

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.ResetDefaultValue ( string  value)
inlineprotectedvirtual

Reset to default value based on an attribute value

Parameters
value

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.SetFieldValues ( uint  partId,
uint  vesselID,
string  partName 
)
inline
override void Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.Setup ( string  name)
inlineprotectedvirtual

This extra steps in the Setup will instantiate the Sub-Parameters specified in the logic class and will fill the dictionary with its name as the key.

Reimplemented from Expansions.Missions.Editor.MEGUIParameterVessel.

Member Data Documentation

MEGUIParameterLabel Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.partNameLabel
protected
Part Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.selectedPart
protected
GAPVesselDisplay Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.vesselDisplay
protected
MEGUIParameterVesselDropdownList Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.vesselDropdownList
protected
int Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.vesselIndex
protected

Property Documentation

VesselPartIDPair Expansions.Missions.Editor.MEGUIParameterVesselPartSelector.FieldValue
getset

Parameter value


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