void OnGUI()
 {
     if (HighLogic.LoadedSceneIsFlight && isLoaded)
     {
         if (!opened && !OrXHoloKron.instance.buildingMission && !this.vessel.isActiveVessel)
         {
             OrXLog.DrawRecticle(pos, OrXLog.instance.HoloTargetTexture, new Vector2(16, 16));
         }
     }
 }
Esempio n. 2
0
        private void Awake()
        {
            DontDestroyOnLoad(this);
            instance = this;

            Debug.Log("[OrX Log - The Awakening] === ADDING MODULES ===");
            ConfigNode EVA      = new ConfigNode("MODULE");
            ConfigNode OrXStage = new ConfigNode("MODULE");
            ConfigNode OrXWMI   = new ConfigNode("MODULE");
            ConfigNode OrXBFC   = new ConfigNode("MODULE");

            EVA.AddValue("name", "ModuleOrX");
            OrXStage.AddValue("name", "ModuleOrXStage");
            OrXWMI.AddValue("name", "ModuleOrXWMI");
            OrXBFC.AddValue("name", "ModuleOrXBFC");

            try
            {
                PartLoader.getPartInfoByName("kerbalEVA").partPrefab.AddModule(EVA);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX MODULE TO 'kerbalEVA' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("kerbalEVAfemale").partPrefab.AddModule(EVA);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX MODULE TO 'kerbalEVAfemale' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("MassiveBooster").partPrefab.AddModule(OrXStage);
                Debug.Log("[OrX Log - The Awakening] === ADDED STAGE MODULE TO 'MassiveBooster' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("missileController").partPrefab.AddModule(OrXWMI);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX WMI MODULE TO 'missileController' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("StandardCtrlSrf").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'StandardCtrlSrf' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("smallCtrlSrf").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'smallCtrlSrf' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("elevon2").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'elevon2' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("elevon3").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'elevon3' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("elevon5").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'elevon5' ===");
            }
            catch
            {
            }

            try
            {
                PartLoader.getPartInfoByName("largeFanBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'largeFanBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("largeHeliBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'largeHeliBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("largePropeller").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'largePropeller' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("mediumFanBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'mediumFanBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("mediumHeliBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'mediumHeliBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("mediumPropeller").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'mediumPropeller' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("smallFanBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'smallFanBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("smallHeliBlade").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'smallHeliBlade' ===");
            }
            catch
            {
            }
            try
            {
                PartLoader.getPartInfoByName("smallPropeller").partPrefab.AddModule(OrXBFC);
                Debug.Log("[OrX Log - The Awakening] === ADDED ORX BFC MODULE TO 'smallPropeller' ===");
            }
            catch
            {
            }
        }