Allow creating custom embedded documents of any type from the sheet, and add functionality to the aspect create button

This commit is contained in:
Oliver-Akins 2024-01-12 23:26:55 -07:00
parent 134b13756a
commit 7d990fe64b
7 changed files with 52 additions and 48 deletions

View file

@ -67,16 +67,15 @@
{{/each}}
<div class="flex-row">
<button
class="confirm add-spell"
>
<div aria-hidden="true" class="icon icon--20">
{{{ icons.create }}}
</div>
<span>
{{localize "dotdungeon.actor.pc.spells.add.label"}}
</span>
</button>
</div>
<button
class="confirm"
data-embedded-create="Spell"
>
<div aria-hidden="true" class="icon icon--20">
{{{ icons.create }}}
</div>
<span>
{{localize "dotdungeon.actor.pc.spells.add.label"}}
</span>
</button>
{{/ dotdungeon.panel}}