Begin work on the custom editor for dice
This commit is contained in:
parent
36e3a551b8
commit
0deda3235a
6 changed files with 145 additions and 4 deletions
37
templates/dialogs/diceList.hbs
Normal file
37
templates/dialogs/diceList.hbs
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue