Esempio n. 1
0
        public void DoWindowContents(Rect rect)
        {
            var options = new Listing_Standard();

            options.Begin(rect);
            options.Label("All changes (except maint. station fuel consumption) require a restart to take effect.");
            options.Gap(24f);
            options.CheckboxLabeled("Hide peacekeeper robots from colonist bar", ref hidePeacekeepersFromColonistBar);
            options.CheckboxLabeled("Count peacekeeper robots towards colonist population", ref countPeacekeepersTowardsPopulation);
            options.CheckboxLabeled("Allow robots to wear clothes? (clothes may not completely fit but that won't be addressed)", ref allowClothing);
            options.Gap(24f);
            options.Label($"Maintenance station: Component fuel consumption rate per day: {Math.Round(fuelConsumptionRate, 2)}");
            fuelConsumptionRate = options.Slider(fuelConsumptionRate, 0.01f, 2f);
            options.Label($"Interval of days between SRS trade ships (+2 days on which the event can happen): {Math.Round(daysPauseBetweenTradeShips, 1)}");
            daysPauseBetweenTradeShips = options.Slider(daysPauseBetweenTradeShips, 1f, 60f);
            options.CheckboxLabeled("Remove ideology diversity impact", ref ModSettings.removeIdeologyImpact);

            options.Gap(24f);
            if (options.ButtonTextLabeled("Spawn random test robot at random colonist location", "Spawn"))
            {
                PeacekeeperUtility.SpawnRandomRobot();
            }

            options.End();
        }