Begin work on the custom editor for dice

This commit is contained in:
Oliver-Akins 2024-02-03 00:12:08 -07:00
parent 36e3a551b8
commit 0deda3235a
6 changed files with 145 additions and 4 deletions

View file

@ -0,0 +1,37 @@
<form class="dialog--dice-list">
{{#each dice as | die |}}
<div class="die" data-die-id="{{die.id}}">
{{dd-stringify die}}
<label>
<input
type="number"
name="die.count"
>
</label>
<label>
<input
type="number"
name="die.sides"
>
</label>
<label>
<input
type="number"
name="die.repeat"
>
</label>
</div>
{{/each}}
<button type="button" data-action="addDie">
Add Die
</button>
{{#if settings.devMode}}
<div class="debug-data">
Dice:
{{dd-stringify dice}}
<hr>
Settings:
{{dd-stringify settings}}
</div>
{{/if}}
</form>