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>
161 lines
No EOL
7.8 KiB
Handlebars
161 lines
No EOL
7.8 KiB
Handlebars
<aside class="character-sidebar-sheet">
|
|
<div class="portrait {{#if isDeath}}death-roll{{/if}}">
|
|
<img src="{{document.img}}" alt="{{document.name}}" data-action='editImage' data-edit="img">
|
|
{{#if document.system.class.subclass.system.spellcastingTrait}}
|
|
<div class="icons-list">
|
|
<span class="spellcast-icon {{#if isDeath}}no-label{{/if}}">
|
|
<span class="spellcast-label">
|
|
{{localize "DAGGERHEART.ITEMS.Subclass.spellcastingTrait"}}:
|
|
{{localize (concat 'DAGGERHEART.CONFIG.Traits.' document.system.class.subclass.system.spellcastingTrait '.short')}}
|
|
</span>
|
|
<i class="fa-solid fa-wand-sparkles"></i>
|
|
</span>
|
|
</div>
|
|
{{/if}}
|
|
<a class="death-roll-btn" data-tooltip="DAGGERHEART.UI.Tooltip.makeDeathMove" {{#if
|
|
isDeath}}data-action="makeDeathMove" {{/if}}><i class="fa-solid fa-skull death-save"></i></a>
|
|
</div>
|
|
<div class="info-section {{#if useResourcePips}}pip-display{{/if}}">
|
|
<div class="resources-section">
|
|
{{> "systems/daggerheart/templates/sheets/global/partials/resource-bar.hbs" resource=resources.hitPoints label="DAGGERHEART.GENERAL.HitPoints.short" key="system.resources.hitPoints.value" action="toggleHitPoints" }}
|
|
{{> "systems/daggerheart/templates/sheets/global/partials/resource-bar.hbs" resource=resources.stress label="DAGGERHEART.GENERAL.stress" key="system.resources.stress.value" action="toggleStress" }}
|
|
</div>
|
|
<div class="status-section {{#if useResourcePips}}pip-display{{/if}}">
|
|
<div class="status-number">
|
|
<div class='status-value'>
|
|
<p>{{document.system.evasion}}</p>
|
|
</div>
|
|
<div class="status-label">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.evasion"}}</h4>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if document.system.armor.system.marks}}
|
|
<div class="status-bar armor-slots">
|
|
{{#if useResourcePips}}
|
|
<div class='slot-value'>
|
|
<div class="slot-bar">
|
|
{{#times document.system.armorScore}}
|
|
<a class='armor-slot' data-action='toggleArmor' data-value="{{add this 1}}">
|
|
{{#if (gte ../document.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">{{document.system.armor.system.marks.value}} / {{document.system.armorScore}}</span>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div class='status-value'>
|
|
<input class="bar-input armor-marks-input" value="{{document.system.armor.system.marks.value}}" type="number">
|
|
<span>/</span>
|
|
<span class="bar-label">{{document.system.armorScore}}</span>
|
|
</div>
|
|
<progress
|
|
class='progress-bar stress-color'
|
|
value='{{document.system.armor.system.marks.value}}'
|
|
max='{{document.system.armorScore}}'
|
|
></progress>
|
|
<div class="status-label">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
{{else}}
|
|
<div class="status-number armor-slots">
|
|
<div class='status-value'>
|
|
<p>-</p>
|
|
</div>
|
|
<div class="status-label">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.armorSlots"}}</h4>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="status-number">
|
|
<div class='status-value'>
|
|
<p>{{document.system.proficiency}}</p>
|
|
</div>
|
|
<div class="status-label">
|
|
<h4>{{localize "DAGGERHEART.GENERAL.proficiency"}}</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="threshold-section">
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.minor"}}</h4>
|
|
<h4 class="threshold-value">{{document.system.damageThresholds.major}}</h4>
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.major"}}</h4>
|
|
<h4 class="threshold-value">{{document.system.damageThresholds.severe}}</h4>
|
|
<h4 class="threshold-label">{{localize "DAGGERHEART.GENERAL.DamageThresholds.severe"}}</h4>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="shortcut-items-section">
|
|
<div class="equipment-section">
|
|
<div class="title">
|
|
<side-line-div class="invert"></side-line-div>
|
|
<h3>{{localize "DAGGERHEART.GENERAL.equipment"}}</h3>
|
|
<side-line-div></side-line-div>
|
|
</div>
|
|
<ul class="items-sidebar-list">
|
|
{{#if document.system.usedUnarmed}}
|
|
{{> 'daggerheart.inventory-item-compact'
|
|
item=document.system.usedUnarmed
|
|
type='action'
|
|
}}
|
|
{{/if}}
|
|
{{#each document.items as |item|}}
|
|
{{#if item.system.equipped}}
|
|
{{> 'daggerheart.inventory-item-compact'
|
|
item=item
|
|
type=item.type
|
|
}}
|
|
{{/if}}
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<div class="loadout-section">
|
|
<div class="title">
|
|
<side-line-div class="invert"></side-line-div>
|
|
<h3>{{localize "DAGGERHEART.GENERAL.loadout"}}</h3>
|
|
<side-line-div></side-line-div>
|
|
</div>
|
|
<ul class="items-sidebar-list">
|
|
{{#each document.system.domainCards.loadout as |card|}}
|
|
{{> 'daggerheart.inventory-item-compact'
|
|
item=card
|
|
type='domainCard'
|
|
}}
|
|
|
|
{{/each}}
|
|
</ul>
|
|
</div>
|
|
<div class="experience-section">
|
|
<div class="title">
|
|
<side-line-div class="invert"></side-line-div>
|
|
<h3>{{localize "DAGGERHEART.GENERAL.experience.single"}}</h3>
|
|
<side-line-div></side-line-div>
|
|
</div>
|
|
<div class="experience-list">
|
|
{{#each document.system.experiences as |experience id|}}
|
|
<div class="experience-row" data-tooltip-text="{{experience.description}}">
|
|
<span class="experience-value">
|
|
+{{experience.value}}
|
|
</span>
|
|
<span>{{experience.name}}</span>
|
|
<div class="controls">
|
|
<a data-action="sendExpToChat" data-type="experience" data-id="{{id}}">
|
|
<i class="fa-regular fa-message"></i>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</aside> |