mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-13 12:11:07 +01:00
Added countdown actions
This commit is contained in:
parent
a146132171
commit
dccb0bfa2d
16 changed files with 159 additions and 7 deletions
21
templates/actionTypes/countdown.hbs
Normal file
21
templates/actionTypes/countdown.hbs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<fieldset class="one-column" data-key="countdown">
|
||||
<legend>
|
||||
{{localize "DAGGERHEART.ACTIONS.TYPES.countdown.name"}}
|
||||
<a><i class="fa-solid fa-plus icon-button" data-action="addElement"></i></a>
|
||||
</legend>
|
||||
{{#each source as |countdown index|}}
|
||||
<div class="nest-inputs">
|
||||
{{formField ../fields.name value=countdown.name name=(concat "countdown." index ".name") localize=true}}
|
||||
<a class="btn" data-tooltip="{{localize "CONTROLS.CommonDelete"}}" data-action="removeElement" data-index="{{index}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
<div class="nest-inputs">
|
||||
{{formField ../fields.type value=countdown.type name=(concat "countdown." index ".type") localize=true}}
|
||||
{{formField ../fields.defaultOwnership value=countdown.defaultOwnership name=(concat "countdown." index ".defaultOwnership") localize=true}}
|
||||
</div>
|
||||
{{formField ../fields.img value=countdown.img name=(concat "countdown." index ".img") label="DAGGERHEART.GENERAL.imagePath" localize=true}}
|
||||
<div class="nest-inputs">
|
||||
{{formField ../fields.progress.fields.type value=countdown.progress.type name=(concat "countdown." index ".progress.type") localize=true}}
|
||||
{{formField ../fields.progress.fields.max value=countdown.progress.max name=(concat "countdown." index ".progress.max") localize=true}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<section
|
||||
<section
|
||||
class="tab {{this.tabs.effect.cssClass}}"
|
||||
data-group="primary"
|
||||
data-tab="effect"
|
||||
|
|
@ -9,4 +9,5 @@
|
|||
{{#if fields.macro}}{{> 'systems/daggerheart/templates/actionTypes/macro.hbs' fields=fields.macro source=source.macro}}{{/if}}
|
||||
{{#if fields.effects}}{{> 'systems/daggerheart/templates/actionTypes/effect.hbs' fields=fields.effects.element.fields source=source.effects}}{{/if}}
|
||||
{{#if fields.beastform}}{{> 'systems/daggerheart/templates/actionTypes/beastform.hbs' fields=fields.beastform.fields source=source.beastform}}{{/if}}
|
||||
{{#if fields.countdown}}{{> 'systems/daggerheart/templates/actionTypes/countdown.hbs' fields=fields.countdown.element.fields source=source.countdown}}{{/if}}
|
||||
</section>
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
<div class="countdown-edit-input">
|
||||
<label>{{localize "DAGGERHEART.APPLICATIONS.CountdownEdit.category"}}</label>
|
||||
<select name="{{concat "countdowns." id ".type"}}">
|
||||
{{selectOptions ../countdownBaseTypes selected=countdown.type valueAttr="id" labelAttr="name" localize=true}}
|
||||
{{selectOptions ../countdownBaseTypes selected=countdown.type localize=true}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="countdown-edit-input">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue