From 2d7e23a3118fff6395c5aaa58e421bc3e8d6f93e Mon Sep 17 00:00:00 2001 From: annabunches Date: Sun, 1 Aug 2021 21:37:42 -0400 Subject: [PATCH] Bug fixes. --- init/rocket.ks | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init/rocket.ks b/init/rocket.ks index b419996..4438078 100644 --- a/init/rocket.ks +++ b/init/rocket.ks @@ -56,8 +56,10 @@ set row to makeRow(top). makeButton(row, "LNCH", { stk:ShowOnly(panes["launch"]). }). makeButton(row, "NODE", { - set nodeDV:TEXT to NEXTNODE:DELTAV:MAG:ToString. - set nodeBT:TEXT to BurnTime(NEXTNODE:DELTAV:MAG):ToString. + if HASNODE { + set nodeDV:TEXT to NEXTNODE:DELTAV:MAG:ToString. + set nodeBT:TEXT to BurnTime(NEXTNODE:DELTAV:MAG):ToString. + } stk:ShowOnly(panes["node"]). }). @@ -70,7 +72,7 @@ local panes is Lex(). local top is stk:AddVLayout(). panes:Add("launch", top). -local box is launchMenu:AddScrollBox(). +local box is top:AddScrollBox(). set row to makeRow(box). row:AddLabel("Target Apoapsis"). @@ -144,7 +146,7 @@ set top:AddButton("Lock TWR"):onClick to { // node menu local top is stk:AddVLayout(). panes:Add("node", top). -local box is nodeMenu:AddScrollBox(). +local box is top:AddScrollBox(). set row to makeRow(top). row:AddLabel("Node dV").