private void LoadCategoryResponses() { NWPlaceable device = (NWPlaceable)GetDialogTarget(); int deviceID = device.GetLocalInt("CRAFT_DEVICE_ID"); List <CraftBlueprintCategory> categories = CraftService.GetCategoriesAvailableToPCByDeviceID(GetPC().GlobalID, deviceID); ClearPageResponses("MainPage"); var lastBlueprintId = GetPC().GetLocalInt("LAST_CRAFTED_BLUEPRINT_ID_" + deviceID); var bp = CraftService.GetBlueprintByID(lastBlueprintId); if (bp != null) { AddResponseToPage("MainPage", bp.Quantity + "x " + bp.ItemName, bp.IsActive, new Tuple <int, Type>(bp.ID, typeof(CraftBlueprint))); } AddResponseToPage("MainPage", "Scrap Item"); foreach (CraftBlueprintCategory category in categories) { AddResponseToPage("MainPage", category.Name, category.IsActive, new Tuple <int, Type>(category.ID, typeof(CraftBlueprintCategory))); } }