From 243923836ef2338833b0f016f7412110c19d4c62 Mon Sep 17 00:00:00 2001 From: MaHuJa Date: Wed, 18 Dec 2013 21:34:51 +0100 Subject: [PATCH 1/2] .23 hotfix --- TermWindow.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } } From d8a0577ed80534afb22843ee3fec3d41fd030c51 Mon Sep 17 00:00:00 2001 From: MaHuJa Date: Wed, 18 Dec 2013 22:09:53 +0100 Subject: [PATCH 2/2] Enable node :TIME read/write https://github.com/Nivekk/KOS/issues/266 --- Node.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }