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").