private UIListItemContainer CreateBodyStage(int stageIndex, QStage qStage) { if (QSettings.Instance.VesselEngineer_hideEmptyStages && (qStage.deltaV == 0 || qStage.maxThrustToWeight == 0)) { return(null); } UIListItemContainer _item = GCascadingList.CreateBody(textEditorStage(stageIndex, qStage.Body, qStage.Atmosphere), textEngineer(stageIndex, qStage), true); _item.AddInputDelegate(new EZInputDelegate(SetConfig)); Log("Create body Stage: " + stageIndex, "QEditor"); return(_item); }
private UIListItemContainer CreateBodyStage(int stageIndex, Stage stage, CelestialBody body = null, bool atmosphere = false) { if (QSettings.Instance.VesselEngineer_hideEmptyStages && (stage.deltaV == 0 || stage.maxThrustToWeight == 0)) { return(null); } if (body == null) { body = QTools.Home; } UIListItemContainer _item = GCascadingList.CreateBody(textEditorStage(stageIndex, body, atmosphere), textEngineer(stageIndex, stage), true); _item.AddInputDelegate(new EZInputDelegate(SetConfig)); Log("Create body Stage: " + stageIndex, "QEditor"); return(_item); }