Something experimenting

This commit is contained in:
Nikhil Nagarajan 2025-11-08 16:02:12 -05:00
parent a23061a8be
commit eaf4e3b78f
3 changed files with 62 additions and 11 deletions

View file

@ -19,18 +19,23 @@
<div class="resources-section">
<div class="status-bar">
<div class='status-value'>
<div class="slot-bar">
{{#times document.system.resources.hitPoints.max}}
<span class='slot {{#if (gte ../document.system.resources.hitPoints.value (add this 1))}}filled{{/if}}' data-action='toggleHitPoints' data-value="{{add this 1}}">
</span>
{{/times}}
</div> {{!--
<p><input class="bar-input" name="system.resources.hitPoints.value" min="0" max='{{document.system.resources.hitPoints.max}}'
value="{{document.system.resources.hitPoints.value}}" type="number"></p>
<p>/</p>
<p class="bar-label">{{document.system.resources.hitPoints.max}}</p>
<p class="bar-label">{{document.system.resources.hitPoints.max}}</p> --}}
</div>
<progress
<div
class='progress-bar'
max='{{document.system.resources.hitPoints.max}}'
value='{{document.system.resources.hitPoints.value}}'
></progress>
></div>
<div class="status-label">
<h4>{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</h4>
<h4><span>{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</span><span>|</span>
<span>{{document.system.resources.hitPoints.value}} / {{document.system.resources.hitPoints.max}}</span></h4>
</div>
</div>