Beispiel #1
0
 private void Awake()
 {
     FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve();
     FARAeroStress.LoadStressTemplates();
     FARAeroUtil.LoadAeroDataFromConfig();
     FARAnimOverrides.LoadAnimOverrides();
 }
        void Start()
        {
            if (!CompatibilityChecker.IsAllCompatible())
            {
                this.enabled = false;
                return;
            }

            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            //LoadConfigs();
            GameObject.DontDestroyOnLoad(this);

            debugMenu = false;

            if (FARDebugValues.useBlizzyToolbar && FARDebugButtonBlizzy != null)
            {
                FARDebugButtonBlizzy             = ToolbarManager.Instance.add("FerramAerospaceResearch", "FARDebugButtonBlizzy");
                FARDebugButtonBlizzy.TexturePath = "FerramAerospaceResearch/Textures/icon_button_blizzy";
                FARDebugButtonBlizzy.ToolTip     = "FAR Debug Options";
                FARDebugButtonBlizzy.OnClick    += (e) => debugMenu = !debugMenu;
            }
            else
            {
                GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady);
            }
        }
Beispiel #3
0
 private void Awake()
 {
     FARAeroStress.LoadStressTemplates();
     FARAeroUtil.LoadAeroDataFromConfig();
     //FARSettingsScenarioModule.LoadConfigs();
     this.enabled = false;
 }
        private void Awake()
        {
            VoxelizationThreadpool.RunInMainThread = Debug.isDebugBuild;

            FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            FARAnimOverrides.LoadAnimOverrides();
        }
        private void Start()
        {
            FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            //LoadConfigs();
            DontDestroyOnLoad(this);

            debugMenu = false;
        }
        private void Awake()
        {
            VoxelizationThreadpool.RunInMainThread = Debug.isDebugBuild;

            FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            FARAnimOverrides.LoadAnimOverrides();

            FARAeroForceDisplayScale             = PhysicsGlobals.AeroForceDisplayScale;
            PhysicsGlobals.AeroForceDisplayScale = 0;
        }
Beispiel #7
0
        public static void LoadConfigs(ConfigNode node)
        {
            config = KSP.IO.PluginConfiguration.CreateForType <FARSettingsScenarioModule>();
            config.load();

            bool tmp;

            if (node.HasValue("allowStructuralFailures") && bool.TryParse(node.GetValue("allowStructuralFailures"), out tmp))
            {
                FARDebugValues.allowStructuralFailures = tmp;
            }
            else
            {
                FARDebugValues.allowStructuralFailures = true;
            }

            if (node.HasValue("showMomentArrows") && bool.TryParse(node.GetValue("showMomentArrows"), out tmp))
            {
                FARDebugValues.showMomentArrows = tmp;
            }
            else
            {
                FARDebugValues.showMomentArrows = false;
            }

            if (node.HasValue("useBlizzyToolbar") && bool.TryParse(node.GetValue("useBlizzyToolbar"), out tmp))
            {
                FARDebugValues.useBlizzyToolbar = tmp;
            }
            else
            {
                FARDebugValues.useBlizzyToolbar = false;
            }

            if (node.HasValue("aeroFailureExplosions") && bool.TryParse(node.GetValue("aeroFailureExplosions"), out tmp))
            {
                FARDebugValues.aeroFailureExplosions = tmp;
            }
            else
            {
                FARDebugValues.aeroFailureExplosions = true;
            }

            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            FARActionGroupConfiguration.LoadConfiguration();
            FARAnimOverrides.LoadAnimOverrides();

            hasScenarioChanged = true;
        }
Beispiel #8
0
        void Start()
        {
            if (!CompatibilityChecker.IsAllCompatible())
            {
                this.enabled = false;
                return;
            }

            FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            //LoadConfigs();
            GameObject.DontDestroyOnLoad(this);

            debugMenu = false;
        }
        private void Start()
        {
            if (!CompatibilityChecker.IsAllCompatible())
            {
                enabled = false;
                return;
            }

            FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            //LoadConfigs();
            DontDestroyOnLoad(this);

            debugMenu = false;
        }
        public static void LoadConfigs(ConfigNode node)
        {
            config = KSP.IO.PluginConfiguration.CreateForType <FARSettingsScenarioModule>();
            config.load();

            bool tmp;

            if (node.HasValue("allowStructuralFailures") && bool.TryParse(node.GetValue("allowStructuralFailures"), out tmp))
            {
                FARDebugValues.allowStructuralFailures = tmp;
            }
            else
            {
                FARDebugValues.allowStructuralFailures = true;
            }

            if (node.HasValue("showMomentArrows") && bool.TryParse(node.GetValue("showMomentArrows"), out tmp))
            {
                FARDebugValues.showMomentArrows = tmp;
            }
            else
            {
                FARDebugValues.showMomentArrows = false;
            }

            if (node.HasValue("useBlizzyToolbar") && bool.TryParse(node.GetValue("useBlizzyToolbar"), out tmp))
            {
                FARDebugValues.useBlizzyToolbar = tmp;
            }
            else
            {
                FARDebugValues.useBlizzyToolbar = false;
            }

            if (node.HasValue("aeroFailureExplosions") && bool.TryParse(node.GetValue("aeroFailureExplosions"), out tmp))
            {
                FARDebugValues.aeroFailureExplosions = tmp;
            }
            else
            {
                FARDebugValues.aeroFailureExplosions = true;
            }

            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            FARActionGroupConfiguration.LoadConfiguration();
            FARAnimOverrides.LoadAnimOverrides();

            Color tmpColor = GUIColors.Instance[0];

            ReColorTexture(ref tmpColor, ref cLTexture);
            GUIColors.Instance[0] = tmpColor;

            tmpColor = GUIColors.Instance[1];
            ReColorTexture(ref tmpColor, ref cDTexture);
            GUIColors.Instance[1] = tmpColor;

            tmpColor = GUIColors.Instance[2];
            ReColorTexture(ref tmpColor, ref cMTexture);
            GUIColors.Instance[2] = tmpColor;

            tmpColor = GUIColors.Instance[3];
            ReColorTexture(ref tmpColor, ref l_DTexture);
            GUIColors.Instance[3] = tmpColor;
        }