public static bool Display() { currentCost = 0; bool ready = DisplayInner(); bool launch = DisplayFooter(currentCost, ready); if (launch) { if (!GUIOrbitEditor.CheckOrbitClear(orbitEditor.GetOrbit())) { // The selected orbit is used by another vessel, abort: ScreenMessages.PostScreenMessage("Selected orbit already in use by another vessel, aborting mission!"); } else { // The orbit is clear, start the mission: MissionController.StartMission(Mission.CreateDeployment(shipName, payloadShipSelector.payload.template, orbitEditor.GetOrbit(), missionProfileSelector.selectedProfile, crewTransferSelector.crewToDeliver, flagSelector.flagURL)); KSTS.AddFunds(-currentCost); Reset(); return(true); } } return(false); }
public static bool Display() { currentCost = 0; var ready = DisplayInner(); var launch = DisplayFooter(currentCost, ready); if (launch) { // Start the mission: MissionController.StartMission(Mission.CreateDeployment(shipName, payloadShipSelector.payload.template, orbitEditor.GetOrbit(), missionProfileSelector.selectedProfile, crewTransferSelector.crewToDeliver, flagSelector.flagURL)); KSTS.AddFunds(-currentCost); Reset(); return(true); } return(false); }