Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
InputFieldHandler Class Reference
Inheritance diagram for InputFieldHandler:
TimeInputFieldHandler

Public Member Functions

delegate double GetValueDelegate ()
 Delegate for callback to fetch the current value to be edited More...
 
 InputFieldHandler (ManeuverNodeEditorTabVectorInput owner, TMPro.TMP_InputField field, GetValueDelegate getValue, SetValueDelegate setValue)
 Constructor More...
 
delegate void SetValueDelegate (double newValue)
 Delegate for callback to set the new value after editing More...
 
void UpdateField ()
 Update field from value fetched by GetValueDelegate More...
 

Protected Member Functions

virtual string GetFormattedValue (double value, bool fullPrecision)
 Convert double value to string using either full presion (15 significant digits) or partial (3 decimal places) More...
 
virtual bool ParseText (string text, out double newValue)
 virtual wrapper around double.TryParse More...
 

Protected Attributes

TMPro.TMP_InputField inputField
 TMP input field this handler manages. More...
 
ManeuverNodeEditorTabVectorInput inputTab
 Maneuver node editor instance that owns this handler More...
 

Constructor & Destructor Documentation

InputFieldHandler.InputFieldHandler ( ManeuverNodeEditorTabVectorInput  owner,
TMPro.TMP_InputField  field,
GetValueDelegate  getValue,
SetValueDelegate  setValue 
)
inline

Constructor

Member Function Documentation

virtual string InputFieldHandler.GetFormattedValue ( double  value,
bool  fullPrecision 
)
inlineprotectedvirtual

Convert double value to string using either full presion (15 significant digits) or partial (3 decimal places)

Reimplemented in TimeInputFieldHandler.

delegate double InputFieldHandler.GetValueDelegate ( )

Delegate for callback to fetch the current value to be edited

virtual bool InputFieldHandler.ParseText ( string  text,
out double  newValue 
)
inlineprotectedvirtual

virtual wrapper around double.TryParse

Reimplemented in TimeInputFieldHandler.

delegate void InputFieldHandler.SetValueDelegate ( double  newValue)

Delegate for callback to set the new value after editing

void InputFieldHandler.UpdateField ( )
inline

Update field from value fetched by GetValueDelegate

Member Data Documentation

TMPro.TMP_InputField InputFieldHandler.inputField
protected

TMP input field this handler manages.

ManeuverNodeEditorTabVectorInput InputFieldHandler.inputTab
protected

Maneuver node editor instance that owns this handler


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