Skip to content

Commit

Permalink
Remove principia node execution button
Browse files Browse the repository at this point in the history
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Oct 28, 2023
1 parent 04245a9 commit c441e6b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
5 changes: 0 additions & 5 deletions MechJeb2/MechJebModuleManeuverPlanner.cs
Expand Up @@ -134,11 +134,6 @@ protected override void WindowGUI(int windowID)
Core.Node.ExecuteOneNode(this);
}

if (VesselState.isLoadedPrincipia && GUILayout.Button(Localizer.Format("#MechJeb_NodeEd_button7"))) //Execute next Principia node
{
Core.Node.ExecuteOnePNode(this);
}

if (Vessel.patchedConicSolver.maneuverNodes.Count > 1)
{
if (GUILayout.Button(Localizer.Format("#MechJeb_Maneu_button5"))) //Execute all nodes
Expand Down
5 changes: 0 additions & 5 deletions MechJeb2/MechJebModuleNodeEditor.cs
Expand Up @@ -259,11 +259,6 @@ protected override void WindowGUI(int windowID)
Core.Node.ExecuteOneNode(this);
}

if (VesselState.isLoadedPrincipia && GUILayout.Button(Localizer.Format("#MechJeb_NodeEd_button7"))) //Execute next Principia node
{
Core.Node.ExecuteOnePNode(this);
}

if (Vessel.patchedConicSolver.maneuverNodes.Count > 1)
{
if (GUILayout.Button(Localizer.Format("#MechJeb_NodeEd_button5"))) //"Execute all nodes"
Expand Down
11 changes: 1 addition & 10 deletions MechJeb2/MechJebModuleNodeExecutor.cs
Expand Up @@ -65,15 +65,6 @@ public void ExecuteOneNode(object controller)
_dvLeft = 0;
}

public void ExecuteOnePNode(object controller) //Principia Node
{
_mode = Mode.ONE_PNODE;
Users.Add(controller);
BurnTriggered = false;

_dvLeft = Vessel.patchedConicSolver.maneuverNodes[0].GetBurnVector(Orbit).magnitude;
}

public void ExecuteAllNodes(object controller)
{
_mode = Mode.ALL_NODES;
Expand Down Expand Up @@ -104,7 +95,7 @@ protected override void OnModuleDisabled()
_dvLeft = 0;
}

private enum Mode { ONE_NODE, ONE_PNODE, ALL_NODES }
private enum Mode { ONE_NODE, ALL_NODES }

private Mode _mode = Mode.ONE_NODE;

Expand Down

0 comments on commit c441e6b

Please sign in to comment.