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

Public Member Functions

void ChangeInputMode (bool formattedTime)
 Adjust and update input field for time format: formatted (HH:mm:ss) vs raw (simple numeric seconds). More...
 
 TimeInputFieldHandler (ManeuverNodeEditorTabVectorInput owner, TMPro.TMP_InputField field, GetValueDelegate getValue, SetValueDelegate setValue)
 Constructor, simply passes the batton to InputFieldHandler More...
 
- Public Member Functions inherited from InputFieldHandler
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

override string GetFormattedValue (double timeValue, bool fullPrecision)
 Format time value as either raw numeric seconds or compact HH:mm:ss form. For partial precision, raw has 3 decimal places and compact has none, but full precision has up to 17 significant digits for raw and an appripriate number of decimal places for compact. More...
 
override bool ParseText (string text, out double timeValue)
 Parse time string based on UT mode. More...
 

Additional Inherited Members

- Protected Attributes inherited from InputFieldHandler
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

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

Constructor, simply passes the batton to InputFieldHandler

Member Function Documentation

void TimeInputFieldHandler.ChangeInputMode ( bool  formattedTime)
inline

Adjust and update input field for time format: formatted (HH:mm:ss) vs raw (simple numeric seconds).

override string TimeInputFieldHandler.GetFormattedValue ( double  timeValue,
bool  fullPrecision 
)
inlineprotectedvirtual

Format time value as either raw numeric seconds or compact HH:mm:ss form. For partial precision, raw has 3 decimal places and compact has none, but full precision has up to 17 significant digits for raw and an appripriate number of decimal places for compact.

Reimplemented from InputFieldHandler.

override bool TimeInputFieldHandler.ParseText ( string  text,
out double  timeValue 
)
inlineprotectedvirtual

Parse time string based on UT mode.

Reimplemented from InputFieldHandler.


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