Beispiel #1
0
        public static void Run()
        {
            ModConfiguration config = Configuration <ModConfiguration> .Load();

            ReplaceTracks tracks = new ReplaceTracks();

            tracks.GetItems(config.BVUGauntletTracksRemove);
            if (config.ShnGSleeperReplace)
            {
                Debug.Log("shn sleepers replaced");
                tracks.ReplaceToShnGSleepers();
            }
        }
        public void OnSettingsUI(UIHelperBase helper)
        {
            // Load the configuration
            ModConfiguration config = Configuration <ModConfiguration> .Load();

            ModConfiguration loadinginstuc = new ModConfiguration();

            helper.AddCheckbox("Use shinkansen sleepers on concrete RWY based tracks", config.ShnGSleeperReplace, sel =>
            {
                config.ShnGSleeperReplace = sel;
                Configuration <ModConfiguration> .Save();
            });

            helper.AddCheckbox("Removes inner gauntlet tracks from bridge elevation BVU tracks", config.BVUGauntletTracksRemove, sel =>
            {
                config.BVUGauntletTracksRemove = sel;
                Configuration <ModConfiguration> .Save();
            });

            helper.AddGroup("\nChanges require a game restart to apply");
        }