inventory-slots #49

Merged
sebastian merged 13 commits from inventory-slots into main 2024-05-11 15:36:10 +02:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 19057fee93 - Show all commits

View File

@ -5,7 +5,7 @@
</mat-expansion-panel-header>
<div class="panel-actions">
<button mat-raised-button color="primary" (click)="renameInventorySlot(slot)">Rename</button>
<button mat-raised-button color="warn">Delete</button>
<button mat-raised-button color="warn" (click)="deleteInventorySlot(slot)">Delete</button>
</div>
</mat-expansion-panel>
<button mat-stroked-button class="add-btn" (click)="addInventorySlot()">Add Inventory-Slot</button>

View File

@ -37,5 +37,7 @@ export class InventorySlotEditorComponent {
})
}
protected readonly indexedDB = indexedDB;
deleteInventorySlot(inventorySlot: InventorySlot) {
this.character!.removeInventorySlot(inventorySlot)
}
}