mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* start development * finish party members tab * start resources tab * finish resources tab * finish inventory tab and add inital template to projects tab * add resource buttons actions methods * add group roll dialog * Main implementation * Fixed costs * Minor fixes and tweaks for the party sheet (#1239) * Minor fixes and tweaks for the party sheet * Fix scroll restoration for party sheet tabs * Finished GroupRoll * Removed/commented-out not yet implemented things * Commented out Difficulty since it's not used yet * Re-render party when members update (#1242) * Fixed so style applies in preview chat message * Added the clown car * Fixed so items can be dropped into the Party sheet * Added delete icon to inventory * Fixed TokenHUD token property useage. Fixed skipping roll message * Added visible modifier to GroupRoll leader result * Leader roll displays the large result display right away after rolling * Corrected tokenHUD for non-player-tokens * Fixed clowncar tokenData * Fixed TagTeam roll message and sound * Removed final TagTeamRoll roll sound * [PR] [Party Sheets] Sidebar character sheet changes (#1249) * Something experimenting * I am silly (wearning Dunce hat) * Stressful task * Armor functional to be hit * CSS Changes to accomadate pip boy * last minute change to resource section for better visual feeling * restoring old css for toggle * Added setting to toggle pip/number display * toggle functionality added * Fixed light-mode in characterSheet * Fixed multi-row resource pips display for character * Fixed separators * Added pip-display to Adversary and Companion. Some fixing on armor display --------- Co-authored-by: WBHarry <williambjrklund@gmail.com> * Fixed party height and resource armor update * Fixed deletebutton padding * Only showing expand-me icon on InventoryItem if there is a description to show * . * Fixed menu icon to be beige instead of white in dark mode --------- Co-authored-by: moliloo <dev.murilobrito@gmail.com> Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
99 lines
No EOL
5.7 KiB
Handlebars
99 lines
No EOL
5.7 KiB
Handlebars
<section
|
|
class='tab {{tabs.resources.cssClass}} {{tabs.resources.id}}'
|
|
data-tab='{{tabs.resources.id}}'
|
|
data-group='{{tabs.resources.group}}'
|
|
>
|
|
<div data-action="triggerRest" data-type="longRest" class="actions-section">
|
|
<button data-type="longRest">
|
|
<i class="fa-solid fa-bed"></i>
|
|
<span>{{localize "DAGGERHEART.APPLICATIONS.Downtime.longRest.title"}}</span>
|
|
</button>
|
|
<button data-action="triggerRest" data-type="shortRest">
|
|
<i class="fa-solid fa-utensils"></i>
|
|
<span>{{localize "DAGGERHEART.APPLICATIONS.Downtime.shortRest.title"}}</span>
|
|
</button>
|
|
</div>
|
|
|
|
<fieldset class="resource-section glassy">
|
|
<legend>{{localize tabs.resources.label}}</legend>
|
|
<ul class="actors-list">
|
|
{{#each document.system.partyMembers as |actor id|}}
|
|
<li class="actor-resources">
|
|
<h2 class="actor-name">{{actor.name}}</h2>
|
|
<img class="actor-img" src="{{actor.img}}">
|
|
<div class="resources">
|
|
<div class="slot-section">
|
|
<div class="slot-bar">
|
|
{{#times actor.system.resources.hitPoints.max}}
|
|
<span class='slot {{#if (gte actor.system.resources.hitPoints.value (add this 1))}}filled{{/if}}'
|
|
data-action='toggleHitPoints' data-actor-id="{{actor.uuid}}" data-value="{{add this 1}}">
|
|
</span>
|
|
{{/times}}
|
|
</div>
|
|
<div class="slot-label">
|
|
<span class="label">{{localize "DAGGERHEART.GENERAL.HitPoints.short"}}</span>
|
|
<span class="value">{{actor.system.resources.hitPoints.value}} / {{actor.system.resources.hitPoints.max}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="slot-section">
|
|
<div class="slot-bar">
|
|
{{#times actor.system.resources.stress.max}}
|
|
<span class='slot {{#if (gte actor.system.resources.stress.value (add this 1))}}filled{{/if}}'
|
|
data-action='toggleStress' data-actor-id="{{actor.uuid}}" data-value="{{add this 1}}">
|
|
</span>
|
|
{{/times}}
|
|
</div>
|
|
<div class="slot-label">
|
|
<span class="label">{{localize "DAGGERHEART.GENERAL.stress"}}</span>
|
|
<span class="value">{{actor.system.resources.stress.value}} / {{actor.system.resources.stress.max}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if actor.system.armor.system.marks}}
|
|
<div class="slot-section">
|
|
<div class="slot-bar">
|
|
{{#times actor.system.armorScore}}
|
|
<a class='armor-slot'
|
|
data-action='toggleArmorSlot' data-actor-id="{{actor.uuid}}" data-item-uuid="{{actor.system.armor.uuid}}" data-value="{{add this 1}}">
|
|
{{#if (gte actor.system.armor.system.marks.value (add this 1))}}
|
|
<i class="fa-solid fa-shield"></i>
|
|
{{else}}
|
|
<i class="fa-solid fa-shield-halved"></i>
|
|
{{/if}}
|
|
</a>
|
|
{{/times}}
|
|
</div>
|
|
<div class="slot-label">
|
|
<span class="label">{{localize "DAGGERHEART.GENERAL.armorSlots"}}</span>
|
|
<span class="value">{{actor.system.armor.system.marks.value}} / {{actor.system.armorScore}}</span>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
|
|
<div class="hope-section">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.hope"}}</h4>
|
|
{{#times actor.system.resources.hope.max}}
|
|
<span class='hope-value' data-action='toggleHope' data-actor-id="{{actor.uuid}}" data-value="{{add this 1}}">
|
|
{{#if (gte actor.system.resources.hope.value (add this 1))}}
|
|
<i class='fa-solid fa-diamond'></i>
|
|
{{else}}
|
|
<i class='fa-regular fa-circle'></i>
|
|
{{/if}}
|
|
</span>
|
|
{{/times}}
|
|
</div>
|
|
<div class="threshold-section">
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.minor"}}</h4>
|
|
<h4 class="threshold-value">{{actor.system.damageThresholds.major}}</h4>
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.major"}}</h4>
|
|
<h4 class="threshold-value">{{actor.system.damageThresholds.severe}}</h4>
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.severe"}}</h4>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</fieldset>
|
|
</section> |