mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-19 16:24:06 +01:00
Merged with main
This commit is contained in:
commit
130b2bf100
65 changed files with 1085 additions and 860 deletions
|
|
@ -5,25 +5,29 @@
|
|||
<li class="scalable-input">
|
||||
<div class="form-group span-2">
|
||||
<div class="form-fields nest-inputs">
|
||||
<input name="uses.enabled" type="checkbox"{{#if uses.enabled}} checked{{/if}}>
|
||||
<label for="uses.enabled">Uses{{#if uses.consumeOnSuccess}}<span class="hint">{{localize "DAGGERHEART.ACTIONS.Settings.consumeOnSuccess.short"}}{{/if}}</span></label>
|
||||
<input id="action-uses" name="uses.enabled" type="checkbox"{{#if uses.enabled}} checked{{/if}}>
|
||||
<label for="action-uses">Uses{{#if uses.consumeOnSuccess}}<span class="hint">{{localize "DAGGERHEART.ACTIONS.Settings.consumeOnSuccess.short"}}{{/if}}</span></label>
|
||||
</div>
|
||||
</div>
|
||||
<label class="modifier-label">1/{{uses.remaining}}</label>
|
||||
<label class="modifier-label" for="action-uses">1/{{uses.remaining}}</label>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#each costs as | cost index |}}
|
||||
<li class="scalable-input">
|
||||
<div class="form-group{{#unless (and scalable maxStep)}} span-2{{/unless}}">
|
||||
<div class="form-fields nest-inputs">
|
||||
<input name="costs.{{index}}.enabled" type="checkbox"{{#if enabled}} checked{{/if}}>
|
||||
<label>{{label}}{{#if cost.consumeOnSuccess}}<span class="hint">{{localize "DAGGERHEART.ACTIONS.Settings.consumeOnSuccess.short"}}</span>{{/if}}</label>
|
||||
<input id="action-costs-{{index}}" name="costs.{{index}}.enabled" type="checkbox"{{#if enabled}} checked{{/if}}>
|
||||
<label for="action-costs-{{index}}">
|
||||
{{label}}
|
||||
{{#if cost.consumeOnSuccess}}<span class="hint">{{localize "DAGGERHEART.ACTIONS.Settings.consumeOnSuccess.short"}}</span>{{/if}}
|
||||
{{#if cost.extKey}}<span class="hint">{{name}}</span>{{/if}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{#if (and scalable maxStep)}}
|
||||
<input type="range" value="{{scale}}" min="0" max="{{maxStep}}" step="1" name="costs.{{index}}.scale" data-tooltip="{{localize "DAGGERHEART.ACTIONS.Settings.cost.stepTooltip" step=step}}" data-tooltip-direction="UP">
|
||||
{{/if}}
|
||||
<label class="modifier-label">{{total}}/{{max}}</label>
|
||||
<label class="modifier-label" for="action-costs-{{index}}">{{total}}/{{max}}</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,22 @@
|
|||
<input type="text" value="{{extraFormula}}" name="roll.{{ @index }}.extraFormula" placeholder="Situational Bonus">
|
||||
</div>
|
||||
{{/each}}
|
||||
{{#if @root.modifiers}}
|
||||
<fieldset class="modifier-container two-columns">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.Modifier.plural"}}</legend>
|
||||
{{#each @root.modifiers}}
|
||||
<span class="formula-label">{{ localize label }}</span>
|
||||
{{#if (hasProperty this "values")}}
|
||||
<select name="modifiers.{{@key}}.value">
|
||||
{{selectOptions values blank="" selected=value}}
|
||||
</select>
|
||||
{{/if}}
|
||||
{{#if (hasProperty this "enabled")}}
|
||||
<input type="checkbox" name="modifiers.{{@key}}.enabled" {{ checked enabled }}>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
<div class="damage-section-controls">
|
||||
{{#if directDamage}}
|
||||
<select class="roll-mode-select" name="selectedRollMode">
|
||||
|
|
|
|||
35
templates/dialogs/rerollDialog/damage/main.hbs
Normal file
35
templates/dialogs/rerollDialog/damage/main.hbs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<div class="reroll-outer-container">
|
||||
{{#each damage}}
|
||||
<h2>{{localize (concat 'DAGGERHEART.CONFIG.HealingType.' @key '.name')}}</h2>
|
||||
{{#each this}}
|
||||
<div class="dices-container">
|
||||
{{#each this}}
|
||||
<fieldset class="dice-outer-container">
|
||||
<legend>
|
||||
<input class="to-reroll-input" type="checkbox" data-type="{{@../../key}}" data-part="{{@../key}}" data-dice="{{@key}}" {{checked this.toReroll}} />
|
||||
<i class="fa-solid fa-dice"></i>
|
||||
<span>{{this.selectedResults}}/{{this.maxSelected}} Selected</span>
|
||||
</legend>
|
||||
|
||||
<div class="dice-container">
|
||||
{{#each this.results}}
|
||||
<div
|
||||
class="result-container {{../dice}} {{#if this.active}}selected{{/if}}"
|
||||
data-action="selectRoll" data-type="{{@../../../key}}" data-part="{{@../../key}}" data-dice="{{@../key}}" data-result="{{@key}}"
|
||||
>
|
||||
{{this.result}}
|
||||
{{#if this.active}}
|
||||
<a class="to-reroll-result" data-action="toggleResult" data-type="{{@../../../key}}" data-part="{{@../../key}}" data-dice="{{@../key}}" data-result="{{@key}}">
|
||||
<input class="to-reroll-result-input" type="checkbox" {{checked this.toReroll}} />
|
||||
<i class="fa-solid fa-dice"></i>
|
||||
</a>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue