Beispiel #1
0
 private void Awake()
 {
     FARAeroStress.LoadStressTemplates();
     FARAeroUtil.LoadAeroDataFromConfig();
     FARAnimOverrides.LoadAnimOverrides();
     //FARSettingsScenarioModule.LoadConfigs();
     this.enabled = false;
 }
        private void Awake()
        {
            VoxelizationThreadpool.RunInMainThread = Debug.isDebugBuild;

            FerramAerospaceResearch.FARAeroComponents.FARAeroSection.GenerateCrossFlowDragCurve();
            FARAeroStress.LoadStressTemplates();
            FARAeroUtil.LoadAeroDataFromConfig();
            FARAnimOverrides.LoadAnimOverrides();
        }
        private void Awake()
        {
            VoxelizationThreadpool.RunInMainThread = Debug.isDebugBuild;

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

            FARAeroForceDisplayScale             = PhysicsGlobals.AeroForceDisplayScale;
            PhysicsGlobals.AeroForceDisplayScale = 0;
        }
Beispiel #4
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;
        }
        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;
        }