mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* Removed action fields on Adversary/Environment in favor of using Feature Items * Added drag/drop for features onto adversary/environment settings * Added Drag of features from Adversary/Environment settings to anywhere in Foundry * Updated all item types except Class/Subclass * Added for Class/Subclass * Items now copy over their features to Character * Corrected back to actions for right items * Fixed adversary/environment features display * PR Fixes
26 lines
No EOL
1.2 KiB
Handlebars
26 lines
No EOL
1.2 KiB
Handlebars
<section
|
|
class='tab {{tabs.features.cssClass}} {{tabs.features.id}}'
|
|
data-tab='{{tabs.features.id}}'
|
|
data-group='{{tabs.features.group}}'
|
|
>
|
|
<button class="add-feature-btn" data-action="addFeature">
|
|
{{localize "DOCUMENT.New" type=(localize "TYPES.Item.feature")}}
|
|
</button>
|
|
<fieldset>
|
|
<legend>{{localize tabs.features.label}}</legend>
|
|
<ul class="feature-list">
|
|
{{#each document.system.features as |feature|}}
|
|
<li class="feature-item" id="{{feature.id}}">
|
|
<img src="{{feature.img}}" alt="">
|
|
<div class="label">
|
|
<span>{{feature.name}}</span>
|
|
</div>
|
|
<div class="controls">
|
|
<a data-action="editFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.edit'}}"><i class="fa-solid fa-pen-to-square"></i></a>
|
|
<a data-action="removeFeature" id="{{feature.id}}" data-tooltip="{{localize 'DAGGERHEART.Tooltip.delete'}}"><i class="fa-solid fa-trash"></i></a>
|
|
</div>
|
|
</li>
|
|
{{/each}}
|
|
</ul>
|
|
</fieldset>
|
|
</section> |