mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 19:51:08 +01:00
* Initial * Resource setup finished * Fixed so that costs can be used * Corrected standard resources * Actions can only use item resources from their parent item * Fixed up dice * Fixed resource dice positioning * Fixed parsing of resource.max * Fixed styling on settings tab * Added manual input for Dice Resources * Lightmode fixes * Fixed Feature spellcasting modifier * Bugfix for item input to resourceDiceDialog * Item fix for TokenInput * PR Fixes
24 lines
No EOL
944 B
Handlebars
24 lines
No EOL
944 B
Handlebars
<div>
|
|
{{#if uses}}
|
|
<div class="form-group">
|
|
<div class="form-fields">
|
|
<label for="uses.enabled">Uses: {{uses.value}}/{{uses.max}}</label>
|
|
<input name="uses.enabled" type="checkbox"{{#if uses.enabled}} checked{{/if}}>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
{{#each costs as | cost index |}}
|
|
<div class="form-group">
|
|
<div class="form-fields">
|
|
<label>{{label}}: {{total}}</label>
|
|
<input name="costs.{{index}}.enabled" type="checkbox"{{#if enabled}} checked{{/if}}>
|
|
{{#if scalable}}
|
|
<input type="range" value="{{scale}}" min="1" max="10" step="{{step}}" name="costs.{{index}}.scale">
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
{{!-- <footer>
|
|
<button data-action="sendCost"{{#unless canUse}} disabled{{/unless}}>Accept</button>
|
|
</footer> --}}
|
|
</div> |