mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
developing experience setting page
This commit is contained in:
parent
0c9c37470a
commit
ca297b97b1
9 changed files with 55 additions and 15 deletions
|
|
@ -4,4 +4,7 @@
|
|||
data-group='{{tabs.features.group}}'
|
||||
>
|
||||
<h2>features</h2>
|
||||
{{#debug document}}
|
||||
|
||||
{{/debug}}
|
||||
</section>
|
||||
|
|
@ -8,11 +8,21 @@
|
|||
</div>
|
||||
<div class="tags">
|
||||
<div class="tag">
|
||||
{{localize (concat 'DAGGERHEART.Tiers.' source.system.tier)}}
|
||||
<span>
|
||||
{{localize (concat 'DAGGERHEART.Tiers.' source.system.tier)}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="tag">
|
||||
{{localize (concat 'DAGGERHEART.Adversary.Type.' source.system.type '.label')}}
|
||||
<span>
|
||||
{{localize (concat 'DAGGERHEART.Adversary.Type.' source.system.type '.label')}}
|
||||
</span>
|
||||
</div>
|
||||
{{#if (eq source.system.type 'horde')}}
|
||||
<div class="tag">
|
||||
<span>{{source.system.hordeHp}}</span>
|
||||
<span>/HP</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
<line-div></line-div>
|
||||
<div class="adversary-info">
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
data-tab='{{tabs.notes.id}}'
|
||||
data-group='{{tabs.notes.group}}'
|
||||
>
|
||||
<fieldset>
|
||||
<legend>{{tabs.notes.label}}</legend>
|
||||
<fieldset class="fit-height">
|
||||
<legend>{{localize tabs.notes.label}}</legend>
|
||||
{{formInput systemFields.notes value=document.system.notes enriched=source.document.notes localize=true toggled=true}}
|
||||
</fieldset>
|
||||
</section>
|
||||
|
|
@ -81,7 +81,7 @@
|
|||
<side-line-div></side-line-div>
|
||||
</div>
|
||||
<ul class="items-sidebar-list">
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=source.system.attack type=source.system.attack.type isSidebar=true}}
|
||||
{{> 'systems/daggerheart/templates/sheets/global/partials/inventory-item.hbs' item=source.system.attack type=source.system.attack.systemPath isSidebar=true}}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="experience-section">
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
<div class="experience-value">
|
||||
+{{experience.total}}
|
||||
</div>
|
||||
<input name="{{concat "system.experiences." id ".description"}}" data-experience={{id}} value="{{experience.description}}" type="text" />
|
||||
<span>{{experience.description}}</span>
|
||||
<div class="controls">
|
||||
<a data-action="toChat" data-type="experience" data-uuid="{{id}}"><i class="fa-regular fa-message"></i></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,15 +3,15 @@
|
|||
data-tab='{{tabs.experiences.id}}'
|
||||
data-group='{{tabs.experiences.group}}'
|
||||
>
|
||||
<button>
|
||||
<button data-action="addExperience">
|
||||
New Experience
|
||||
</button>
|
||||
{{#each document.system.experiences as |experience id|}}
|
||||
<div class="experience-row">
|
||||
<div class="experience-value">
|
||||
+{{experience.total}}
|
||||
</div>
|
||||
<input name="{{concat "system.experiences." id ".name"}}" data-experience={{id}} value="{{experience.name}}" type="text" />
|
||||
|
||||
{{#each document.system.experiences as |experience index|}}
|
||||
<div class="experience-chip">
|
||||
<input class="experience.value" type="text" name="system.experiences.{{index}}.name" value="{{experience.name}}" />
|
||||
<input class="experience-value" type="text" name="system.experiences.{{index}}.value" value="{{experience.value}}" data-dtype="Number" />
|
||||
<button class="experience-button" data-action="removeExperience" data-experience="{{experience.id}}"><i class="fa-solid fa-x"></i></button>
|
||||
</div>
|
||||
{{/each}}
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue