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

Paw default base field implmentation, this uses KSPField integration and UI_Control handeling. More...

Inheritance diagram for BaseField:
BaseAxisField

Public Member Functions

 BaseField (KSPField fieldAttrib, FieldInfo fieldInfo, object host)
 
 BaseField (UI_Control fieldAttrib, FieldInfo fieldInfo, object host)
 
virtual void CopyField (BaseField field)
 Copy user editable settings More...
 
string GetStringValue (object host, bool gui)
 
string GuiString (object host)
 
void Read (string value, object host)
 
void Write (StreamWriter sw, string tabIndent, object host)
 

Public Attributes

BasePAWGroup group
 The group that this item will appear in in the PartActionWindow More...
 

Static Protected Attributes

static string cacheAutoLOC_8004438
 
static string cacheAutoLOC_8004439
 
static Dictionary< int,
UI_Control[]> 
fieldInfoToUIControlDictionary = new Dictionary<int, UI_Control[]>()
 
static KSPUtil.ObjectActivator
< UI_Label
objectActivatorUILabelLambdaExpression = null
 
static Dictionary< System.Type,
FieldInfo[]> 
typeToFieldInfoDictionary = new Dictionary<System.Type, FieldInfo[]>()
 

Properties

bool advancedTweakable [get, set]
 
string category [get, set]
 string category id More...
 
bool guiActive [get, set]
 Is this field active on gui More...
 
bool guiActiveEditor [get, set]
 Is this field active on editor gui More...
 
bool guiActiveUnfocused [get, set]
 Is this field active while focused on another vessel? More...
 
string guiFormat [get, set]
 The gui format string for this field (D4, F2, N0, etc). Blank if none More...
 
bool guiInteractable [get, set]
 Is this field interactable on gui More...
 
bool guiRemovedIfPinned [get, set]
 Range to check if the gui should be active or not. More...
 
float guiUnfocusedRange [get, set]
 Range to check if the gui should be active or not. More...
 
string guiUnits [get, set]
 The field's gui units (blank if none) More...
 
bool isPersistant [get, set]
 Is this field persistant? More...
 
UI_Control uiControlEditor [get, set]
 ui control used for editor More...
 
UI_Control uiControlFlight [get, set]
 ui control used for flight More...
 
bool uiControlOnly [get]
 is this a UIControl masqerading as a KSPField? More...
 
bool WasActiveBeforePartWasAdjusted [get, set]
 

Detailed Description

Paw default base field implmentation, this uses KSPField integration and UI_Control handeling.

Constructor & Destructor Documentation

BaseField.BaseField ( KSPField  fieldAttrib,
FieldInfo  fieldInfo,
object  host 
)
inline
BaseField.BaseField ( UI_Control  fieldAttrib,
FieldInfo  fieldInfo,
object  host 
)
inline

Member Function Documentation

virtual void BaseField.CopyField ( BaseField  field)
inlinevirtual

Copy user editable settings

Reimplemented in BaseAxisField.

string BaseField.GetStringValue ( object  host,
bool  gui 
)
inline
string BaseField.GuiString ( object  host)
inline
void BaseField.Read ( string  value,
object  host 
)
inline
void BaseField.Write ( StreamWriter  sw,
string  tabIndent,
object  host 
)
inline

Member Data Documentation

string BaseField.cacheAutoLOC_8004438
staticprotected
string BaseField.cacheAutoLOC_8004439
staticprotected
Dictionary<int, UI_Control[]> BaseField.fieldInfoToUIControlDictionary = new Dictionary<int, UI_Control[]>()
staticprotected
BasePAWGroup BaseField.group

The group that this item will appear in in the PartActionWindow

KSPUtil.ObjectActivator<UI_Label> BaseField.objectActivatorUILabelLambdaExpression = null
staticprotected
Dictionary<System.Type, FieldInfo[]> BaseField.typeToFieldInfoDictionary = new Dictionary<System.Type, FieldInfo[]>()
staticprotected

Property Documentation

bool BaseField.advancedTweakable
getset
string BaseField.category
getset

string category id

bool BaseField.guiActive
getset

Is this field active on gui

bool BaseField.guiActiveEditor
getset

Is this field active on editor gui

bool BaseField.guiActiveUnfocused
getset

Is this field active while focused on another vessel?

string BaseField.guiFormat
getset

The gui format string for this field (D4, F2, N0, etc). Blank if none

bool BaseField.guiInteractable
getset

Is this field interactable on gui

bool BaseField.guiRemovedIfPinned
getset

Range to check if the gui should be active or not.

float BaseField.guiUnfocusedRange
getset

Range to check if the gui should be active or not.

string BaseField.guiUnits
getset

The field's gui units (blank if none)

bool BaseField.isPersistant
getset

Is this field persistant?

UI_Control BaseField.uiControlEditor
getset

ui control used for editor

UI_Control BaseField.uiControlFlight
getset

ui control used for flight

bool BaseField.uiControlOnly
get

is this a UIControl masqerading as a KSPField?

bool BaseField.WasActiveBeforePartWasAdjusted
getset

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