mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +01:00
Initial downtime layout rework
This commit is contained in:
parent
475a63f120
commit
15ca55bacf
5 changed files with 46 additions and 72 deletions
|
|
@ -1,19 +1,18 @@
|
|||
<fieldset class="one-column">
|
||||
<legend>{{localize (concat "DAGGERHEART.APPLICATIONS.Downtime." category ".moves") max=nrChoices.max current=nrChoices.current}}</legend>
|
||||
|
||||
{{#each moves as |move key|}}
|
||||
<div class="activity-container">
|
||||
<div class="activity-title">
|
||||
<div class="activity-image {{#if move.selected}}selected{{/if}}" data-action="selectMove" data-category="{{../category}}" data-move="{{key}}">
|
||||
{{#if move.selected}}<div class="activity-select-label">{{move.selected}}</div>{{/if}}
|
||||
<img src="{{move.img}}" />
|
||||
</div>
|
||||
|
||||
<span class="activity-title-text">{{localize move.name}}</span>
|
||||
<div class="activities-container">
|
||||
{{#each moves as |move key|}}
|
||||
<div class="activity-container">
|
||||
<div class="activity-inner-container">
|
||||
<i class="fa-solid fa-circle activity-marker"></i>
|
||||
<a class="activity-select-section" data-action="selectMove" data-category="{{../category}}" data-move="{{key}}">
|
||||
<i class="fa-solid fa-hammer activtiy-icon"></i>
|
||||
<div>{{move.name}}{{#if move.selected}} ({{move.selected}}){{/if}}</div>
|
||||
</a>
|
||||
</div>
|
||||
<a><i class="fa-solid fa-chevron-up expand-icon"></i></a>
|
||||
</div>
|
||||
<div class="activity-body">
|
||||
{{localize move.description}}
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
{{/each}}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
@ -1,7 +1,8 @@
|
|||
<div>
|
||||
<div class="downtime-container">
|
||||
<h2 class="downtime-header">{{localize "DAGGERHEART.APPLICATIONS.Downtime.downtimeHeader"}}</h2>
|
||||
<div class="downtime-container two-columns even">
|
||||
{{#if shortRestMoves.moves}}{{> "systems/daggerheart/templates/dialogs/downtime/activities.hbs" moves=shortRestMoves.moves category='shortRest' nrChoices=nrChoices.shortRest}}{{/if}}
|
||||
{{#if longRestMoves.moves}}{{> "systems/daggerheart/templates/dialogs/downtime/activities.hbs" moves=longRestMoves.moves category='longRest' nrChoices=nrChoices.longRest}}{{/if}}
|
||||
{{#if longRestMoves.moves}}{{> "systems/daggerheart/templates/dialogs/downtime/activities.hbs" moves=longRestMoves.moves category='longRest' nrChoices=nrChoices.longRest}}{{/if}}
|
||||
</div>
|
||||
<footer class="flexrow">
|
||||
<button type="button" data-action="close">{{localize "Cancel"}}</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue