KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Member Functions | Public Attributes | List of all members
KSPAction Class Reference

Apply this attribute to a function to allow it to be called via action groups. More...

Inheritance diagram for KSPAction:

Public Member Functions

 KSPAction (string guiName)
 
 KSPAction (string guiName, KSPActionGroup actionGroup)
 

Public Attributes

KSPActionGroup actionGroup
 Which action groups this action is currently a part of? Probably you can test whether this action is part of a given action group (say, the Abort group) with More...
 
string guiName
 The name of this action as it appears in the action group editor. More...
 

Detailed Description

Apply this attribute to a function to allow it to be called via action groups.

Constructor & Destructor Documentation

KSPAction.KSPAction ( string  guiName)
KSPAction.KSPAction ( string  guiName,
KSPActionGroup  actionGroup 
)

Member Data Documentation

KSPActionGroup KSPAction.actionGroup

Which action groups this action is currently a part of? Probably you can test whether this action is part of a given action group (say, the Abort group) with

if((actionGroup & KSPActionGroup.Abort) != 0)

string KSPAction.guiName

The name of this action as it appears in the action group editor.


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