From e53d718c1762e85d04e2c1081b18ac1a658469be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Sat, 11 May 2024 10:56:17 +0200 Subject: [PATCH] Edit ItemSlotCharacteristics --- .../characteristic-selector.component.html | 2 +- .../inventory-slot-characteristic-editor.component.html | 3 ++- .../inventory-slot-characteristic-editor.component.ts | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/characteristic-selector/characteristic-selector.component.html b/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/characteristic-selector/characteristic-selector.component.html index b0f99f4..dc87110 100644 --- a/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/characteristic-selector/characteristic-selector.component.html +++ b/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/characteristic-selector/characteristic-selector.component.html @@ -1,5 +1,5 @@ - Number + Item Characteristic - + diff --git a/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/inventory-slot-characteristic-editor.component.ts b/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/inventory-slot-characteristic-editor.component.ts index 93332da..12ed5b4 100644 --- a/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/inventory-slot-characteristic-editor.component.ts +++ b/src/app/editor/character-editor/inventory-slot-editor/inventory-slot-characteristic-editor/inventory-slot-characteristic-editor.component.ts @@ -48,4 +48,8 @@ export class InventorySlotCharacteristicEditorComponent implements OnInit{ onSelectDecreasingCharacteristic(selectedCharacteristic: ItemGroupCharacteristic, slotCharacteristic: InventoryCharacteristic) { slotCharacteristic.decreasingCharacteristic = selectedCharacteristic; } + + editSlotCharacteristic(slotCharacteristic: InventoryCharacteristic) { + this.editedCharacteristic = slotCharacteristic; + } }