private static bool Prefix(uGUI_BuilderMenu __instance) { __instance.iconGrid.Clear(); __instance.items.Clear(); List <TechType> techTypesForGroup = __instance.GetTechTypesForGroup(__instance.selected); int num = 0; for (int i = 0; i < techTypesForGroup.Count; i++) { TechType techType = techTypesForGroup[i]; if (!Core.RecipeBlacklist.Contains(techType.AsString())) { TechUnlockState techUnlockState = KnownTech.GetTechUnlockState(techType); if (techUnlockState == TechUnlockState.Available || techUnlockState == TechUnlockState.Locked) { string stringForInt = IntStringCache.GetStringForInt(num); __instance.items.Add(stringForInt, techType); __instance.iconGrid.AddItem(stringForInt, SpriteManager.Get(techType), SpriteManager.GetBackground(techType), techUnlockState == TechUnlockState.Locked, num); __instance.iconGrid.RegisterNotificationTarget(stringForInt, NotificationManager.Group.Builder, techType.EncodeKey()); num++; } } } return(false); }