private void SetDecouplerInfo() { protoModuleDecoupler = selectedPart.GetProtoModuleDecoupler(); if (protoModuleDecoupler != null) { infoItems.Add(PartInfoItem.Create("Ejection Force", protoModuleDecoupler.EjectionForce.ToForce())); if (protoModuleDecoupler.IsOmniDecoupler) { infoItems.Add(PartInfoItem.Create("Omni-directional")); } } }
private bool IsDecoupler(Part thePart) { PartExtensions.ProtoModuleDecoupler protoDecoupler = thePart.GetProtoModuleDecoupler(); if (protoDecoupler != null && protoDecoupler.IsStageEnabled) { return(true); } ModuleDockingNode modDock = thePart.GetModule <ModuleDockingNode>(); if (modDock != null && modDock.IsStageable()) { return(true); } return(false); }
private bool IsDecoupler(Part thePart) { PartExtensions.ProtoModuleDecoupler protoDecoupler = thePart.GetProtoModuleDecoupler(); return(protoDecoupler != null && protoDecoupler.IsStageEnabled); }