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

Public Member Functions

override void DisplayGAP ()
 Initalize the GAP, this is the entry point for the GAP in this parameter More...
 
override ConfigNode GetState ()
 
void OnHistoryValueChange (ConfigNode data, HistoryType type)
 
override void RefreshUI ()
 Refresh the UI display based on the field value More...
 
void UpdateDisplayedParts ()
 Update the parts displayed in the parts list parameter. We use this to update the parts list because an undo has caused the parameter controlling the excluded parts to update and we need to update those grey boxes! 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 void Display ()
 
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...
 

Public Attributes

Button openPartPickerButton
 
MEPartSelectorBrowser partSelectorPrefab
 
TextMeshProUGUI selectedPartsText
 
- 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...
 

Protected Member Functions

void OnPartPickerOpen ()
 
void OnPartSelectionChange (AvailablePart part, bool status)
 
override void ResetDefaultValue (string value)
 Reset to default value based on an attribute value More...
 
override void Setup (string name)
 
- Protected Member Functions inherited from Expansions.Missions.Editor.MEGUIParameter
virtual void Awake ()
 
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 ()
 
virtual void Update ()
 
void UpdateNodeBodyUI ()
 

Protected Attributes

GAPPartPicker gapPartPicker
 
- 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

string DialogTitle [get]
 MEGUI_PartPicker dialog title attribute More...
 
Dictionary< string, List
< string > > 
ExcludedParts [get]
 Dictionary of excluded parts and the reason for this part picker More...
 
List< string > FieldValue [get, set]
 Parameter value More...
 
Color SelectedPartsColor [get]
 MEGUI_PartPicker selected parts color attribute 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]
 

Member Function Documentation

override void Expansions.Missions.Editor.MEGUIParameterPartPicker.DisplayGAP ( )
inlinevirtual

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

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

override ConfigNode Expansions.Missions.Editor.MEGUIParameterPartPicker.GetState ( )
inline
void Expansions.Missions.Editor.MEGUIParameterPartPicker.OnHistoryValueChange ( ConfigNode  data,
HistoryType  type 
)
inline
void Expansions.Missions.Editor.MEGUIParameterPartPicker.OnPartPickerOpen ( )
inlineprotected
void Expansions.Missions.Editor.MEGUIParameterPartPicker.OnPartSelectionChange ( AvailablePart  part,
bool  status 
)
inlineprotected
override void Expansions.Missions.Editor.MEGUIParameterPartPicker.RefreshUI ( )
inlinevirtual

Refresh the UI display based on the field value

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

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

Reset to default value based on an attribute value

Parameters
value

Reimplemented from Expansions.Missions.Editor.MEGUIParameter.

override void Expansions.Missions.Editor.MEGUIParameterPartPicker.Setup ( string  name)
inlineprotectedvirtual
void Expansions.Missions.Editor.MEGUIParameterPartPicker.UpdateDisplayedParts ( )
inline

Update the parts displayed in the parts list parameter. We use this to update the parts list because an undo has caused the parameter controlling the excluded parts to update and we need to update those grey boxes!

Member Data Documentation

GAPPartPicker Expansions.Missions.Editor.MEGUIParameterPartPicker.gapPartPicker
protected
Button Expansions.Missions.Editor.MEGUIParameterPartPicker.openPartPickerButton
MEPartSelectorBrowser Expansions.Missions.Editor.MEGUIParameterPartPicker.partSelectorPrefab
TextMeshProUGUI Expansions.Missions.Editor.MEGUIParameterPartPicker.selectedPartsText

Property Documentation

string Expansions.Missions.Editor.MEGUIParameterPartPicker.DialogTitle
get

MEGUI_PartPicker dialog title attribute

Dictionary<string, List<string> > Expansions.Missions.Editor.MEGUIParameterPartPicker.ExcludedParts
get

Dictionary of excluded parts and the reason for this part picker

List<string> Expansions.Missions.Editor.MEGUIParameterPartPicker.FieldValue
getset

Parameter value

Color Expansions.Missions.Editor.MEGUIParameterPartPicker.SelectedPartsColor
get

MEGUI_PartPicker selected parts color attribute


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