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

This class allows any dev or modder to group PAW fields into a collapsable Group. More...

Inheritance diagram for UIPartActionGroup:
UIPartActionItem

Public Member Functions

void AddItemToContent (Transform t)
 Adds the paw item to this PAW Group. More...
 
void Collapse ()
 Collapse this PAW Group More...
 
void Expand ()
 Expand this PAW Group More...
 
void Initialize (string groupName, string groupDisplayName, bool startCollapsed, UIPartActionWindow pawWindow)
 Initializes the PAW group with the group. More...
 
void UpdateContentSize ()
 Updates the content size when the content is edited. More...
 
- Public Member Functions inherited from UIPartActionItem
virtual void AddInputFieldLock (string val)
 
virtual bool IsItemValid ()
 
virtual void RemoveInputfieldLock ()
 
void SetupItem (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control)
 
virtual void UpdateItem ()
 

Additional Inherited Members

- Protected Attributes inherited from UIPartActionItem
UI_Control control
 
bool isModule
 
Part part
 
PartModule partModule
 
UI_Scene scene
 
UIPartActionWindow window
 
- Properties inherited from UIPartActionItem
UI_Control Control [get]
 
bool IsModule [get]
 
Part Part [get]
 
PartModule PartModule [get]
 
UI_Scene Scene [get]
 
UIPartActionWindow Window [get]
 

Detailed Description

This class allows any dev or modder to group PAW fields into a collapsable Group.

Member Function Documentation

void UIPartActionGroup.AddItemToContent ( Transform  t)
inline

Adds the paw item to this PAW Group.

Parameters
tTransform component from the PAW item to add.
void UIPartActionGroup.Collapse ( )
inline

Collapse this PAW Group

void UIPartActionGroup.Expand ( )
inline

Expand this PAW Group

void UIPartActionGroup.Initialize ( string  groupName,
string  groupDisplayName,
bool  startCollapsed,
UIPartActionWindow  pawWindow 
)
inline

Initializes the PAW group with the group.

Parameters
groupNameInternal name of the group.
groupDisplayNamePAW's group Display name.
startCollapsedshoudl this group be initialized collapsed
pawWindowthe PAW that this group is in
void UIPartActionGroup.UpdateContentSize ( )
inline

Updates the content size when the content is edited.


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