mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41: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
15 lines
No EOL
1,017 B
Handlebars
15 lines
No EOL
1,017 B
Handlebars
<fieldset class="one-column" data-key="cost">
|
|
<legend>
|
|
Cost
|
|
<a><i class="fa-solid fa-plus icon-button" data-action="addElement"></i></a>
|
|
</legend>
|
|
{{#each source as |cost index|}}
|
|
<div class="nest-inputs">
|
|
{{formField ../fields.scalable label="Scalable" value=cost.scalable name=(concat "cost." index ".scalable") classes="checkbox"}}
|
|
{{formField ../fields.key choices=(@root.disableOption index @root.costOptions ../source) label="Resource" value=cost.key name=(concat "cost." index ".key") localize=true}}
|
|
{{formField ../fields.value label="Amount" value=cost.value name=(concat "cost." index ".value")}}
|
|
{{formField ../fields.step label="Step" value=cost.step name=(concat "cost." index ".step") disabled=(not cost.scalable)}}
|
|
<a class="btn" data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeElement" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
|
</div>
|
|
{{/each}}
|
|
</fieldset> |