コード例 #1
0
ファイル: CraftingDevice.cs プロジェクト: Terallis/SWLOR_NWN
        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);
            }
        }