Esempio n. 1
0
 public static void majInfo(Part p, ModuleEngines me)
 {
     //update info
     for (int i = 0; i < p.partInfo.moduleInfos.Count; i++)
     {
         AvailablePart.ModuleInfo info = p.partInfo.moduleInfos[i];
         if (info.moduleName == "Engine" || info.moduleName == "EngineFX")
         {
             info.primaryInfo  = me.GetPrimaryField();
             info.info         = me.GetInfo();
             info.onDrawWidget = me.GetDrawModulePanelCallback();
             break;
         }
     }
 }