private void LoadBlueprintListPage(int categoryID) { NWObject device = GetDialogTarget(); int deviceID = device.GetLocalInt("CRAFT_DEVICE_ID"); List <CraftBlueprint> blueprints = _craft.GetPCBlueprintsByDeviceAndCategoryID(GetPC().GlobalID, deviceID, categoryID); ClearPageResponses("BlueprintListPage"); foreach (CraftBlueprint bp in blueprints) { AddResponseToPage("BlueprintListPage", bp.Quantity + "x " + bp.ItemName, bp.IsActive, bp.ID); } }
private void LoadBlueprintListPage(int categoryID) { NWObject device = GetDialogTarget(); int deviceID = device.GetLocalInt("CRAFT_DEVICE_ID"); List <CraftBlueprint> blueprints = _craft.GetPCBlueprintsByDeviceAndCategoryID(GetPC().GlobalID, deviceID, categoryID); ClearPageResponses("BlueprintListPage"); foreach (CraftBlueprint bp in blueprints) { AddResponseToPage("BlueprintListPage", bp.ItemName, bp.IsActive, new Tuple <string, dynamic>(string.Empty, bp.CraftBlueprintID)); } AddResponseToPage("BlueprintListPage", "Back"); }