Пример #1
0
        public override void ExposeData()
        {
            Utils.Warn(Utils.DBF.Settings, "Expose Data called: Mode: " + Scribe.mode);
            //Log.Error("LWM.DeepStorage: Settings ExposeData() called");
            base.ExposeData();

            Scribe_Values.Look(ref storingTakesTime, "storing_takes_time", true);
            Scribe_Values.Look(ref storingGlobalScale, "storing_global_scale", 1f);
            Scribe_Values.Look(ref storingTimeConsidersStackSize, "storing_time_CSS", true);
            Scribe_Values.Look(ref robotsCanUse, "robotsCanUse", true);
            Scribe_Values.Look(ref Patch_IsGoodStoreCell.NecessaryIntelligenceToUseDeepStorage, "int_to_use_DS", Intelligence.Humanlike);
            Scribe_Values.Look(ref defaultStoragePriority, "default_s_priority", StoragePriority.Important);
            Scribe_Values.Look(ref checkOverCapacity, "check_over_capacity", true);
            Scribe_Values.Look(ref useEjectButton, "useEjectButton", true);
            Scribe_Values.Look(ref useDeepStorageRightClickLogic, "useRightClickLogic", true); //turn on for everyone :p
            // Architect Menu:
            Scribe_Values.Look(ref architectMenuDesigCatDef, "architect_desig", architectMenuDefaultDesigCatDef);
            Scribe_Values.Look(ref architectMenuAlwaysShowCategory, "architect_show", false);
            Scribe_Values.Look(ref architectMenuMoveALLStorageItems, "architect_moveall", true);
            // Per DSU Building storage settings:
            Scribe_Values.Look(ref allowPerDSUSettings, "allowPerDSUSettings", false);
            // Only load settigs if defs are loaded (there is separate mechanism to
            //   check settings after defs loaded)
            if (allowPerDSUSettings && Verse.StaticConstructorOnStartupUtility.coreStaticAssetsLoaded)
            {
                Dialog_DS_Settings.ExposeDSUSettings(AllDeepStorageUnits);
            }
        } // end ExposeData()
Пример #2
0
        public override void ExposeData()
        {
            Utils.Warn(Utils.DBF.Settings, "Expose Data called: Mode: " + Scribe.mode);
            //Log.Error("LWM.DeepStorage: Settings ExposeData() called");
            base.ExposeData();

            Scribe_Values.Look(ref storingTakesTime, "storing_takes_time", true);
            Scribe_Values.Look(ref storingGlobalScale, "storing_global_scale", 1f);
            Scribe_Values.Look(ref storingTimeConsidersStackSize, "storing_time_CSS", true);
            Scribe_Values.Look(ref robotsCanUse, "robotsCanUse", true);
            Scribe_Values.Look(ref Patch_IsGoodStoreCell.NecessaryIntelligenceToUseDeepStorage, "int_to_use_DS", Intelligence.Humanlike);
            Scribe_Values.Look(ref defaultStoragePriority, "default_s_priority", StoragePriority.Important);
            Scribe_Values.Look(ref checkOverCapacity, "check_over_capacity", true);
            Scribe_Values.Look(ref useDeepStorageRightClickLogic, "DS_AHlO");
            Scribe_Values.Look(ref useDeepStorageNewRightClick, "DS_NRC");
            Scribe_Values.Look(ref newNRC_BoxHeight, "DS_NRCBH");
            Scribe_Values.Look(ref newNRC_IconScaling, "DS_NRCIS");
            // Architect Menu:
            Scribe_Values.Look(ref architectMenuDesigCatDef, "architect_desig", architectMenuDefaultDesigCatDef);
            Scribe_Values.Look(ref architectMenuAlwaysShowCategory, "architect_show");
            Scribe_Values.Look(ref architectMenuMoveALLStorageItems, "architect_moveall", true);
            // Per DSU Building storage settings:
            Scribe_Values.Look(ref allowPerDSUSettings, "allowPerDSUSettings");
            if (allowPerDSUSettings && !allDeepStorageUnits.NullOrEmpty())
            {
                Dialog_DS_Settings.ExposeDSUSettings(allDeepStorageUnits);
            }
        } // end ExposeData()