Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
KSP.UI.Screens.EditorActionControllerHeader Class Reference

header for each override group. looks after display and edit of the name, as well as group collapse button. More...

Inheritance diagram for KSP.UI.Screens.EditorActionControllerHeader:
KSP.UI.UISelectableGridLayoutGroupItem

Public Member Functions

override void Deselect ()
 Ensure related objects are in the correct state when the group is deselected More...
 
override void Select ()
 Ensure related objects are in the correct state when the group is selected More...
 
void Setup (string controllerName, ModuleRoboticController controller)
 Set up the header with the group index, array of group names (which groupOverride indexes) and the expanded/collapsed state of the group More...
 
- Public Member Functions inherited from KSP.UI.UISelectableGridLayoutGroupItem
virtual void Setup (UISelectableGridLayoutGroup selectableGroup, int index)
 

Public Attributes

Button editButton
 Button for entering edit mode More...
 
TMPro.TMP_InputField inputField
 Input field for editing the name More...
 
TMPro.TextMeshProUGUI text
 Title of the controller More...
 
- Public Attributes inherited from KSP.UI.UISelectableGridLayoutGroupItem
Color colorDeselected = Color.gray
 
Color colorSelected = Color.green
 
bool groupAction
 Is this a group action item? More...
 
Transform itemParent
 Parent reference if this class is not at the top of the rpefab or item hierarchy. More...
 
int mySetIndex
 The index of the set this item belongs to. More...
 

Additional Inherited Members

- Properties inherited from KSP.UI.UISelectableGridLayoutGroupItem
int Index [get]
 
Selectable SelectableComponent [get]
 Fetch the selectable READ ONLY More...
 

Detailed Description

header for each override group. looks after display and edit of the name, as well as group collapse button.

Member Function Documentation

override void KSP.UI.Screens.EditorActionControllerHeader.Deselect ( )
inlinevirtual

Ensure related objects are in the correct state when the group is deselected

Reimplemented from KSP.UI.UISelectableGridLayoutGroupItem.

override void KSP.UI.Screens.EditorActionControllerHeader.Select ( )
inlinevirtual

Ensure related objects are in the correct state when the group is selected

Reimplemented from KSP.UI.UISelectableGridLayoutGroupItem.

void KSP.UI.Screens.EditorActionControllerHeader.Setup ( string  controllerName,
ModuleRoboticController  controller 
)
inline

Set up the header with the group index, array of group names (which groupOverride indexes) and the expanded/collapsed state of the group

Note that groupNames does NOT include the default group (index 0) so is effectively 1-based. Use the groupName property to access

Member Data Documentation

Button KSP.UI.Screens.EditorActionControllerHeader.editButton

Button for entering edit mode

TMPro.TMP_InputField KSP.UI.Screens.EditorActionControllerHeader.inputField

Input field for editing the name

TMPro.TextMeshProUGUI KSP.UI.Screens.EditorActionControllerHeader.text

Title of the controller


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