Exemple #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();
            }
Exemple #2
0
 public static void Postfix(BuildingComplete __instance)
 {
     if (__instance.name.Equals((TileTemperatureSensorConfig.ID + "Complete")))
     {
         var KAnim = __instance.GetComponent <KAnimControllerBase>();
         if (KAnim != null)
         {
             KAnim.TintColour = TileTemperatureSensorConfig.BuildingColor();
         }
     }
 }
Exemple #3
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();
            }