mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Restructured all the files * Moved build/daggerheart.js to ./daggerheart.js. Changed rollup to use the css file instead of the less * Restored build/ folder * Mvoed config out form under application * Moved roll.mjs to module/dice and renamed to dhRolls.mjs * Update module/canvas/placeables/_module.mjs Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com> * Le massive export update * Removed unncessary import --------- Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>
16 lines
No EOL
910 B
Handlebars
16 lines
No EOL
910 B
Handlebars
<div>
|
|
<div id="resource-fear" class="{{#if isGM}}isGM{{/if}}">
|
|
{{#if (eq display 'token')}}
|
|
{{#times max}}
|
|
<i class="fas fa-skull {{#if (gte @this ../current)}} inactive{{/if}}" style="filter: hue-rotate(calc(({{this}}/{{../max}})*75deg))" data-index="{{this}}" data-action="setFear"></i>
|
|
{{/times}}
|
|
{{/if}}
|
|
{{#if (eq display 'bar')}}
|
|
{{#if isGM}}<div class="controls control-minus {{#if (lte current 0)}} disabled{{/if}}" data-increment="-1" data-action="increaseFear">-</div>{{/if}}
|
|
<div class="resource-bar fear-bar" style="--fear-percent: {{percent}}%">
|
|
<span>{{current}}/{{max}}</span>
|
|
</div>
|
|
{{#if isGM}}<div class="controls control-plus {{#if (gte current max)}} disabled{{/if}}" data-increment="+1" data-action="increaseFear">+</div>{{/if}}
|
|
{{/if}}
|
|
</div>
|
|
</div> |