mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +01:00
add weapons to attachables
This commit is contained in:
parent
4e304adde7
commit
f78cf12f6e
3 changed files with 248 additions and 1 deletions
30
templates/sheets/items/weapon/attachments.hbs
Normal file
30
templates/sheets/items/weapon/attachments.hbs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<section
|
||||
class='tab {{tabs.attachments.cssClass}} {{tabs.attachments.id}}'
|
||||
data-tab='{{tabs.attachments.id}}'
|
||||
data-group='{{tabs.attachments.group}}'
|
||||
>
|
||||
<fieldset class="one-column drop-section attachments-section">
|
||||
<legend>{{localize tabs.attachments.label}}</legend>
|
||||
|
||||
{{#if attachedItems}}
|
||||
<div class="attached-items">
|
||||
{{#each attachedItems as |item|}}
|
||||
<div class="inventory-item attached-item" data-uuid="{{item.uuid}}">
|
||||
<img src="{{item.img}}" alt="{{item.name}}" class="item-img">
|
||||
<div class="item-label">
|
||||
<div class="item-name">{{item.name}}</div>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<i class="fa-solid fa-trash remove-attachment" data-action="removeAttachment" data-uuid="{{item.uuid}}"></i>
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="drop-area" data-drop-type="Item">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
<span>Drop items here to attach them</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue