Beispiel #1
0
 public static void InitAndClearTechList()
 {
     TechList = new KCTObservableList <TechItem>();
     if (KerbalConstructionTime.Instance != null)    // Can be null/destroyed in the main menu scene
     {
         TechList.Updated += KerbalConstructionTime.Instance.ForceUpdateRndScreen;
     }
 }
Beispiel #2
0
 public static void InitAndClearTechList()
 {
     if (TechList != null)
     {
         TechList.Clear();
     }
     else
     {
         TechList = new KCTObservableList <TechItem>();
     }
     TechList.Updated += KerbalConstructionTime.Instance.UpdateTechlistIconColor;
 }
Beispiel #3
0
        public string GetBlockingTech(KCTObservableList <TechItem> techList)
        {
            string        blockingTech = null;
            List <string> parentList   = KerbalConstructionTimeData.techNameToParents[TechID];

            foreach (var t in techList)
            {
                if (parentList != null && parentList.Contains(t.TechID))
                {
                    blockingTech = t.TechName;
                    break;
                }
            }

            return(blockingTech);
        }
Beispiel #4
0
 public static void InitAndClearTechList()
 {
     TechList          = new KCTObservableList <TechItem>();
     TechList.Updated += KerbalConstructionTime.Instance.ForceUpdateRndScreen;
 }