Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ private void UpdateNodeDeltaV()
{
Vector3d dv = new Vector3d(RadOut, Norm, Pro);
nodeRef.DeltaV = dv;
nodeRef.UT = UT;
}
}

Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions TermWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand All @@ -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");
}
}

Expand Down