[Feature] NPC Actors (#1949)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run

This commit is contained in:
WBHarry 2026-05-31 03:11:43 +02:00 committed by GitHub
parent c23ac61ee5
commit 53f15a7fde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 548 additions and 29 deletions

View file

@ -44,10 +44,9 @@
</span>
</div>
<div class="adversary-navigation">
{{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
<i class="fa-solid fa-wrench"></i>
</button>
</div>
{{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
</header>

View file

@ -50,9 +50,10 @@
</div>
</div>
<div class="companion-navigation">
{{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
<i class="fa-solid fa-wrench"></i>
</button>
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
<i class="fa-solid fa-wrench"></i>
</button>
{{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
</div>
</header>

View file

@ -44,9 +44,10 @@
</span>
</div>
<div class="environment-navigation">
{{> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings">
<i class="fa-solid fa-wrench"></i>
</button>
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings">
<i class="fa-solid fa-wrench"></i>
</button>
{{/ 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
</div>
</header>

View file

@ -0,0 +1,14 @@
<section class='tab {{tabs.features.cssClass}} {{tabs.features.id}}' data-tab='{{tabs.features.id}}'
data-group='{{tabs.features.group}}'>
<div class="feature-section">
{{> 'daggerheart.inventory-items'
title=tabs.features.label
type='feature'
collection=@root.features
hideContextMenu=true
hideModifyControls=true
canCreate=@root.editable
showActions=@root.editable
}}
</div>
</section>

View file

@ -0,0 +1,40 @@
<header class='npc-header-sheet'>
<div class="portrait">
<img src="{{source.img}}" alt="{{source.name}}" data-action='editImage' data-edit="img">
</div>
<div class="info-section">
<line-div></line-div>
<div class="name-row">
<h1
class="input actor-name"
contenteditable="plaintext-only"
data-property="name"
placeholder="{{localize "DAGGERHEART.GENERAL.actorName"}}"
autocomplete="off"
spellcheck="false"
>{{source.name}}</h1>
</div>
{{#if source.system.difficulty}}
<div class="tags">
<div class="tag">
<span>{{localize "DAGGERHEART.GENERAL.difficulty"}}</span>
<span>{{source.system.difficulty}}</span>
</div>
</div>
{{/if}}
<line-div></line-div>
<div class="npc-info">
<span class="description">
<i>{{{description}}}</i>
</span>
<div class="motives-and-tactics">
<b>{{localize 'DAGGERHEART.ACTORS.NPC.FIELDS.motives.label'}}: </b>
{{source.system.motives}}
</div>
</div>
</div>
</header>

View file

@ -0,0 +1,7 @@
<div class="npc-navigation">
{{#> 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
<button type="button" data-action="openSettings" data-tooltip-text="{{localize "DAGGERHEART.UI.Tooltip.openSheetSettings"}}">
<i class="fa-solid fa-wrench"></i>
</button>
{{/'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs'}}
</div>

View file

@ -0,0 +1,11 @@
<section
class='tab {{tabs.notes.cssClass}} {{tabs.notes.id}}'
data-tab='{{tabs.notes.id}}'
data-group='{{tabs.notes.group}}'
>
{{formInput notes.field value=notes.value enriched=notes.enriched toggled=true}}
{{#if (and showAttribution document.system.attribution.artist)}}
<label class="artist-attribution">{{localize "DAGGERHEART.GENERAL.artistAttribution" artist=document.system.attribution.artist}}</label>
{{/if}}
</section>