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

Apply this attribute to a field in a PartModule or ScenarioModule to make the field get automatically initialized from the cfg file, and optionally persistent. See More...

Inheritance diagram for KSPField:

Public Member Functions

 KSPField ()
 

Public Attributes

string category
 
bool guiActive
 Whether to show the value of this field in the right click menu of the part. More...
 
string guiFormat
 The format string that will be passed to ToString when displaying the value of your field in the right click menu of the part? E.g. "F3" for a floating point number with 3 digits past the decimal point. More...
 
string guiName
 The name that will be shown for this field in the right click menu of the part. More...
 
string guiUnits
 The units that will be shown for this field in the right click menu of the part. More...
 
bool isPersistant
 Whether to store the value of this field in persistent.sfs when the game state is saved, and reload it from persistent.sfs when the game state is loaded. More...
 

Detailed Description

Apply this attribute to a field in a PartModule or ScenarioModule to make the field get automatically initialized from the cfg file, and optionally persistent. See

http://forum.kerbalspaceprogram.com/showthread.php/10296-0-15-code-update-PartModule-KSPField-KSPEvent-ConfigNode-and-PartResource

Constructor & Destructor Documentation

KSPField.KSPField ( )

Member Data Documentation

string KSPField.category
bool KSPField.guiActive

Whether to show the value of this field in the right click menu of the part.

string KSPField.guiFormat

The format string that will be passed to ToString when displaying the value of your field in the right click menu of the part? E.g. "F3" for a floating point number with 3 digits past the decimal point.

string KSPField.guiName

The name that will be shown for this field in the right click menu of the part.

string KSPField.guiUnits

The units that will be shown for this field in the right click menu of the part.

bool KSPField.isPersistant

Whether to store the value of this field in persistent.sfs when the game state is saved, and reload it from persistent.sfs when the game state is loaded.


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