Working on the spells panel, which resulted in a lot of weird structural changes that aren't *really* functional yet

This commit is contained in:
Oliver-Akins 2024-01-07 22:27:26 -07:00
parent 227029ffcd
commit dfc51a5899
31 changed files with 499 additions and 84 deletions

View file

@ -15,7 +15,6 @@
name="system.deactivateAfter"
value="{{system.deactivateAfter}}"
>
{{dd-toFriendlyDuration system.deactivateAfter}}
</label>
<label>
{{localize "dotdungeon.item.aspect.description"}}:

27
templates/items/spell.hbs Normal file
View file

@ -0,0 +1,27 @@
<form autocomplete="off" class="item--spell">
<h2>
<input
type="text"
placeholder="{{localize "dotdungeon.item.spell.name.placeholder"}}"
name="name"
value="{{item.name}}"
aria-label="{{localize "dotdungeon.item.spell.aria.name"}}"
>
</h2>
<label>
{{localize "dotdungeon.item.spell.cost.label"}}
<input
type="number"
name="system.cost"
value="{{system.cost}}"
aria-label="{{localize "dotdungeon.item.spell.aria.cost"}}"
>
</label>
<label>
{{localize "dotdungeon.item.spell.description.label"}}:
<textarea
name="system.description"
aria-description="{{localize "dotdungeon.item.spell.aria.description"}}"
>{{system.description}}</textarea>
</label>
</form>