#70-classes-as-items (#92)

Co-authored-by: LeFrique <lefrique@live.de>
Reviewed-on: #92
This commit was merged in pull request #92.
This commit is contained in:
2024-03-23 19:17:54 +01:00
co-authored by Le-Frique
parent af6fdbbf89
commit 12e6412a9f
11 changed files with 399 additions and 75 deletions
+8
View File
@@ -433,6 +433,14 @@ export default class M5CharacterSheet extends ActorSheet {
}
});
html.find(".class-item-edit").on("click", async (event) => {
this.actor.items.find((x) => x.type === "class").sheet.render(true);
});
html.find(".class-item-delete").on("click", async (event) => {
this.actor.items.find((x) => x.type === "class").delete();
});
// Drag & Drop
const dragDrop = new DragDrop({
dragSelector: ".items-list .item",
+7
View File
@@ -7,6 +7,13 @@ export class M5ItemSheet extends ItemSheet {
width: 640,
height: 480,
classes: ["midgard5", "sheet", "item"],
tabs: [
{
navSelector: ".sheet-navigation",
contentSelector: ".sheet-content",
initial: "base_values",
},
],
});
}