mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-15 05:01:08 +01:00
[PR] [Feature] Feature form labels + SRD Update (Adversaries & Environments) (#1429)
* New labels. Time to print them somewhere. * Action buttons have icons. Pretty Iconic * Features tweaked to support only on limited actors * Duplicate ActionTypes+references are removed. * Adversary and Environment SRD entries updated. * Updated name field workflow in character actor. * Adversary name fields are improved as well. * Revert "Updated name field workflow in character actor." This reverts commit66924c530f. * Revert "Adversary name fields are improved as well." This reverts commitf60e8cffda. * Fixed prototype token in Abandoned Grove * Label change --------- Co-authored-by: WBHarry <williambjrklund@gmail.com>
This commit is contained in:
parent
474cf28a53
commit
7d1e70f66f
152 changed files with 731 additions and 405 deletions
|
|
@ -49,6 +49,19 @@ Parameters:
|
|||
{{tag}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
{{!-- Feature Form Tag Start --}}
|
||||
{{#if (eq ../type 'feature')}}
|
||||
{{#if (or (eq @root.document.type 'adversary') (eq @root.document.type 'environment'))}}
|
||||
{{#if system.featureForm}}
|
||||
<div class="tag feature-form">
|
||||
<span class="recall-value">{{localize (concat "DAGGERHEART.CONFIG.FeatureForm." system.featureForm)}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{!-- Feature Form Tag End --}}
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/with}}
|
||||
|
|
@ -145,10 +158,12 @@ Parameters:
|
|||
<div class="item-button">
|
||||
{{#if (and (eq action.type 'beastform') @root.beastformActive)}}
|
||||
<button type="button" data-action="cancelBeastform" data-item-uuid="{{action.uuid}}">
|
||||
<i class="fa-solid {{action.typeIcon}} action-icon"></i>
|
||||
{{localize "DAGGERHEART.ACTORS.Character.cancelBeastform"}}
|
||||
</button>
|
||||
{{else}}
|
||||
<button type="button" data-action="useItem" data-item-uuid="{{action.uuid}}">
|
||||
<i class="fa-solid {{action.typeIcon}} action-icon"></i>
|
||||
{{action.name}}
|
||||
</button>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -67,6 +67,21 @@
|
|||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
<!-- Feature Form Tags for adversary/environment actors -->
|
||||
{{#if (eq type 'feature')}}
|
||||
{{#if (or (eq @root.document.type 'adversary') (eq @root.document.type 'environment'))}}
|
||||
{{#if item.system.featureForm}}
|
||||
<div class="item-tags">
|
||||
<div class="tag">
|
||||
<span class="recall-label">{{localize "DAGGERHEART.CONFIG.FeatureForm.label"}}: </span>
|
||||
<span class="recall-value">{{localize (concat "DAGGERHEART.CONFIG.FeatureForm." item.system.featureForm)}}</span>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq type 'domainCard')}}
|
||||
{{#if isSidebar}}
|
||||
<div class="item-labels">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<line-div></line-div>
|
||||
<h1 class='item-name'><input type='text' name='name' value='{{source.name}}' /></h1>
|
||||
<div class='item-description'>
|
||||
<h3>{{localize 'TYPES.Item.feature'}}</h3>
|
||||
<h3>{{localize (concat 'DAGGERHEART.CONFIG.FeatureForm.' source.system.featureForm)}} {{localize 'TYPES.Item.feature'}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
|
@ -3,5 +3,12 @@
|
|||
data-tab='{{tabs.settings.id}}'
|
||||
data-group='{{tabs.settings.group}}'
|
||||
>
|
||||
{{#if (or (eq document.parent.type "adversary") (eq document.parent.type "environment"))}}
|
||||
<fieldset class="two-columns">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.general"}}</legend>
|
||||
<span>{{localize "DAGGERHEART.CONFIG.FeatureForm.label"}}</span>
|
||||
{{formInput document.system.schema.fields.featureForm value=document.system.featureForm choices=featureFormChoices localize=true}}
|
||||
</fieldset>
|
||||
{{/if}}
|
||||
{{> "systems/daggerheart/templates/sheets/global/partials/resource-section/resource-section.hbs" }}
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue