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>
100 lines
4.3 KiB
Handlebars
100 lines
4.3 KiB
Handlebars
<div class="col left">
|
|
<div class="attribute elevation" data-tooltip="HUD.Elevation">
|
|
<i class="fas fa-angle-up"></i>
|
|
<input type="text" name="elevation" value="{{elevation}}" {{disabled (or locked (and isGamePaused (not isGM)))}}>
|
|
</div>
|
|
|
|
<button type="button" class="control-icon" data-action="sort" data-direction="up" data-tooltip="HUD.ToFront">
|
|
<img src="{{icons.up}}">
|
|
</button>
|
|
|
|
<button type="button" class="control-icon" data-action="sort" data-direction="down" data-tooltip="HUD.ToBack">
|
|
<img src="{{icons.down}}">
|
|
</button>
|
|
|
|
{{#if canConfigure}}
|
|
<button type="button" class="control-icon" data-action="config" data-tooltip="HUD.OpenConfig">
|
|
<i class="fa-solid fa-gear" inert></i>
|
|
</button>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="col middle">
|
|
<div class="attribute bar2">
|
|
{{#if displayBar2}}
|
|
<input type="text" name="bar2" value="{{bar2Data.value}}" {{#unless bar2Data.editable}}disabled{{/unless}}>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="attribute bar1">
|
|
{{#if displayBar1}}
|
|
<input type="text" name="bar1" value="{{bar1Data.value}}" {{#unless bar1Data.editable}}disabled{{/unless}}>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col right">
|
|
{{#if isGM}}
|
|
<button type="button" class="control-icon {{visibilityClass}}" data-action="visibility" data-tooltip="HUD.ToggleVis">
|
|
<img src="{{icons.visibility}}">
|
|
</button>
|
|
{{/if}}
|
|
|
|
{{#if usesEffects}}
|
|
<button type="button" class="control-icon" data-action="togglePalette" data-palette="effects" data-tooltip="HUD.AssignStatusEffects">
|
|
<img src="{{icons.effects}}">
|
|
</button>
|
|
<div class="palette status-effects" data-palette="effects">
|
|
{{#each systemStatusEffects as |status|}}
|
|
<img class="effect-control {{status.cssClass}}" src="{{status.src}}" data-action="effect" data-status-id="{{status.id}}" {{#if status.title}}data-tooltip-text="{{status.title}}"{{/if}}>
|
|
{{/each}}
|
|
{{#if genericStatusEffects}}
|
|
<label class="palette-category-title">{{localize "DAGGERHEART.APPLICATIONS.HUD.tokenHUD.genericEffects"}}</label>
|
|
{{#each genericStatusEffects as |status|}}
|
|
<img class="effect-control {{status.cssClass}}" src="{{status.src}}" data-action="effect" data-status-id="{{status.id}}" {{#if status.title}}data-tooltip-text="{{status.title}}"{{/if}}>
|
|
{{/each}}
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if (eq actorType 'party')}}
|
|
<button type="button" class="control-icon clown-car" data-action="togglePartyTokens" data-tooltip="{{#if partyOnCanvas}}{{localize "DAGGERHEART.APPLICATIONS.HUD.tokenHUD.retrievePartyTokens"}}{{else}}{{localize "DAGGERHEART.APPLICATIONS.HUD.tokenHUD.depositPartyTokens"}}{{/if}}">
|
|
<img {{#if partyOnCanvas}}class="flipped"{{/if}} src="{{icons.toggleParty}}">
|
|
</button>
|
|
{{/if}}
|
|
|
|
<button type="button" class="control-icon" data-action="togglePalette" data-palette="movementActions"
|
|
aria-label="{{ localize "HUD.SelectMovementAction" }}" data-tooltip>
|
|
{{#with movementActionsConfig}}
|
|
{{#if img}}
|
|
<img src="{{ img }}" alt="{{ localize "HUD.SelectMovementAction" }}">
|
|
{{else}}
|
|
<i class="{{ icon }}" inert></i>
|
|
{{/if}}
|
|
{{/with}}
|
|
</button>
|
|
<div class="palette movement-actions" data-palette="movementActions">
|
|
{{#each movementActions as |action|}}
|
|
<a class="movement-action-control {{action.cssClass}}" data-action="movementAction" data-movement-action="{{action.id}}">
|
|
<span>
|
|
{{#if action.img}}
|
|
<img src="{{ action.img }}" alt="{{ action.label }}">
|
|
{{else}}
|
|
<i class="{{ action.icon }} fa-fw" inert></i>
|
|
{{/if}}
|
|
{{action.label}}
|
|
</span>
|
|
</a>
|
|
{{/each}}
|
|
</div>
|
|
|
|
<button type="button" class="control-icon {{targetClass}}" data-action="target" data-tooltip="HUD.ToggleTargetState">
|
|
<i class="fa-solid fa-bullseye" inert></i>
|
|
</button>
|
|
|
|
{{#if canToggleCombat}}
|
|
<button type="button" class="control-icon {{combatClass}}" data-action="combat" data-tooltip="HUD.ToggleCombatState">
|
|
<img src="{{icons.combat}}">
|
|
</button>
|
|
{{/if}}
|
|
</div>
|