Esempio n. 1
0
        private void LoadBlueprintListPage(int categoryID)
        {
            NWObject device   = GetDialogTarget();
            int      deviceID = device.GetLocalInt("CRAFT_DEVICE_ID");

            List <CraftBlueprint> blueprints = CraftService.GetPCBlueprintsByDeviceAndCategoryID(GetPC().GlobalID, deviceID, categoryID);

            ClearPageResponses("BlueprintListPage");
            foreach (CraftBlueprint bp in blueprints)
            {
                AddResponseToPage("BlueprintListPage", bp.Quantity + "x " + bp.ItemName, bp.IsActive, bp.ID);
            }
        }