public override void OnStart(PartModule.StartState state)
        {
            if (UseStagingIcon)
            {
                this.part.stagingIcon = "FUEL_TANK";
            }
            else
            {
                Debug.Log("NFPP:Reactor Staging Icon Disabled");
            }

            PressureCurve = new FloatCurve();
            PressureCurve.Add(0f, 0f);
            PressureCurve.Add(1f, 2f);



            if (state != StartState.Editor)
            {
                if (UseStagingIcon)
                {
                    infoBox = this.part.stackIcon.DisplayInfo();

                    infoBox.SetMsgBgColor(XKCDColors.RedOrange);
                    infoBox.SetMsgTextColor(XKCDColors.Orange);
                    infoBox.SetLength(1.0f);
                    infoBox.SetMessage("CoreHeat");
                    infoBox.SetProgressBarBgColor(XKCDColors.RedOrange);
                    infoBox.SetProgressBarColor(XKCDColors.Orange);
                }
                generatorAnimation = part.Modules.OfType <FissionGeneratorAnimator>().First();
                SetupRadiators();

                if (UseForcedActivation)
                {
                    this.part.force_activate();
                }
                RenderingManager.AddToPostDrawQueue(0, DrawGUI);

                FuelUpdate();
            }

            // LogItAll();
        }
Пример #2
0
        public override void OnStart(PartModule.StartState state)
        {
            if (UseStagingIcon)
                this.part.stagingIcon = "FUEL_TANK";
            else
                Debug.Log("NFPP:Reactor Staging Icon Disabled");

            PressureCurve = new FloatCurve();
            PressureCurve.Add(0f, 0f);
            PressureCurve.Add(1f, 2f);

            if (state != StartState.Editor)
            {
                if (UseStagingIcon)
                {
                    infoBox = this.part.stackIcon.DisplayInfo();

                    infoBox.SetMsgBgColor(XKCDColors.RedOrange);
                    infoBox.SetMsgTextColor(XKCDColors.Orange);
                    infoBox.SetLength(1.0f);
                    infoBox.SetMessage("CoreHeat");
                    infoBox.SetProgressBarBgColor(XKCDColors.RedOrange);
                    infoBox.SetProgressBarColor(XKCDColors.Orange);
                }
                generatorAnimation = part.Modules.OfType<FissionGeneratorAnimator>().First();
                SetupRadiators();

                if (UseForcedActivation)
                    this.part.force_activate();
                RenderingManager.AddToPostDrawQueue(0, DrawGUI);

                FuelUpdate();
            }

            // LogItAll();
        }