Exemplo n.º 1
0
            public static void Prefix()
            {
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.MASS", "Mass");
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.FLOW.THRESHOLD", "Flow Threshold");
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.FLOW.NAME", "Flow");
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.FLOW.ABOVETOOLTIP", string.Concat(new string[] { "Will send a ", UI.FormatAsAutomationState("Green Signal", UI.AutomationState.Active), " if the ", UI.FormatAsKeyWord("Flow"), " is above <b>{0}</b> " }));
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.FLOW.BELOWTOOLTIP", string.Concat(new string[] { "Will send a ", UI.FormatAsAutomationState("Green Signal", UI.AutomationState.Active), " if the ", UI.FormatAsKeyWord("Flow"), " is below <b>{0}</b> " }));

                TileTemperatureSensorConfig.Setup();
                ItemTemperatureSensorConfig.Setup();
                ItemGermSensorConfig.Setup();
                BuildingTemperatureSensorConfig.Setup();
                ModdedLogicElementSensorLiquidConfig.Setup();
                ConduitPressureSensorGas.Setup();
                ConduitPressureSensorLiquid.Setup();
                ConduitFlowSensorGas.Setup();
                ConduitFlowSensorLiquid.Setup();

                SolidConduitElementSensorConfig.Setup();
                SolidConduitGermsSensorConfig.Setup();
                SolidConduitTemperatureSensorConfig.Setup();
                SolidConduitPressureSensorConfig.Setup();
                SolidConduitFlowSensorConfig.Setup();

                BatterySensorConfig.Setup();
            }
Exemplo n.º 2
0
            public static void Prefix()
            {
                Strings.Add($"NIGHTINGGALE.SENSORY.OVERLOADED.MASS", "Mass");

                TileTemperatureSensorConfig.Setup();
                ItemTemperatureSensorConfig.Setup();
                ItemGermSensorConfig.Setup();
                BuildingTemperatureSensorConfig.Setup();
                ModdedLogicElementSensorLiquidConfig.Setup();
                ConduitPressureSensorGas.Setup();
                ConduitPressureSensorLiquid.Setup();

                SolidConduitElementSensorConfig.Setup();
                SolidConduitGermsSensorConfig.Setup();
                SolidConduitTemperatureSensorConfig.Setup();
                SolidConduitPressureSensorConfig.Setup();

                BatterySensorConfig.Setup();
            }
        public void OnOverlayChange(HashedString mode)
        {
            KBatchedAnimController component = base.GetComponent <KBatchedAnimController>();

            component.TintColour = ItemGermSensorConfig.BuildingColor();
        }