public static void Before_DoWindowContents(Rect inRect)
        {
            if (!Settings.EnableCraftingFilter)
            {
                return;
            }

            ThingFilterUtil.QueueNextInvocationSearch(SearchCategories.Bill);
        }
Example #2
0
        public static void Before_ITab_Storage_FillTab(ITab_Storage __instance)
        {
            ThingFilterUtil.QueueNextInvocationSearch(SearchCategories.Storage);

            if (ReferenceEquals(__instance.GetType().Assembly, typeof(ITab_Storage).Assembly))
            {
                // only show hysteresis option for non derived (non-custom) storage(s)
                HaulingHysteresis_InjectControls.showHysteresisCount++;

                IStoreSettingsParent selStoreSettingsParent = GetSelStoreSettingsParent(__instance);
                HaulingHysteresis_InjectControls.SettingsQueue.Enqueue(selStoreSettingsParent.GetStoreSettings());
            }
        }
Example #3
0
        public static void Before_DoWindowContents(Rect inRect, Dialog_ManageOutfits __instance)
        {
            if (GetSelectedOutfit(__instance) == null)
            {
                return;
            }

            if (!Settings.EnableOutfitFilter)
            {
                return;
            }

            ThingFilterUtil.QueueNextInvocationSearch(SearchCategories.Outfit);
        }