diff --git a/Node.cs b/Node.cs index 72398b0..9f7f44d 100644 --- a/Node.cs +++ b/Node.cs @@ -66,6 +66,7 @@ private void UpdateNodeDeltaV() { Vector3d dv = new Vector3d(RadOut, Norm, Pro); nodeRef.DeltaV = dv; + nodeRef.UT = UT; } } @@ -100,9 +101,10 @@ private void updateValues() public override object GetSuffix(string suffixName) { updateValues(); - + if (suffixName == "BURNVECTOR") return GetBurnVector(); else if (suffixName == "ETA") return UT - Planetarium.GetUniversalTime(); + else if (suffixName == "TIME") return UT; else if (suffixName == "DELTAV") return GetBurnVector(); else if (suffixName == "PROGRADE") return Pro; else if (suffixName == "RADIALOUT") return RadOut; @@ -128,6 +130,7 @@ public override bool SetSuffix(string suffixName, object value) else if (suffixName == "PROGRADE") { Pro = (double)value; UpdateAll(); return true; } else if (suffixName == "RADIALOUT") { RadOut = (double)value; UpdateAll(); return true; } else if (suffixName == "NORMAL") { Norm = (double)value; UpdateAll(); return true; } + else if (suffixName == "TIME") { UT = (double)value; UpdateAll(); return true; } return false; } diff --git a/TermWindow.cs b/TermWindow.cs index f32c6b6..26f4eb6 100644 --- a/TermWindow.cs +++ b/TermWindow.cs @@ -88,7 +88,7 @@ private void Lock() // Prevent editor keys from being pressed while typing EditorLogic editor = EditorLogic.fetch; - if (editor != null && !EditorLogic.softLock) editor.Lock(true, true, true); + if (editor != null && !EditorLogic.softLock) editor.Lock(true, true, true, "kOSTerminal"); } } @@ -103,7 +103,7 @@ private void Unlock() cameraManager.enabled = true; EditorLogic editor = EditorLogic.fetch; - if (editor != null) editor.Unlock(); + if (editor != null) editor.Unlock("kOSTerminal"); } }