make drier

This commit is contained in:
psitacus 2025-07-09 00:39:40 -06:00
parent 1c6188cda8
commit 7e8dc9121e
4 changed files with 2 additions and 32 deletions

View file

@ -33,7 +33,7 @@ export default class ArmorSheet extends DHBaseItemSheet {
scrollable: ['.settings']
},
attachments: {
template: 'systems/daggerheart/templates/sheets/items/armor/attachments.hbs',
template: 'systems/daggerheart/templates/sheets/global/tabs/tab-attachments.hbs',
scrollable: ['.attachments']
}
};

View file

@ -34,7 +34,7 @@ export default class WeaponSheet extends DHBaseItemSheet {
scrollable: ['.settings']
},
attachments: {
template: 'systems/daggerheart/templates/sheets/items/weapon/attachments.hbs',
template: 'systems/daggerheart/templates/sheets/global/tabs/tab-attachments.hbs',
scrollable: ['.attachments']
}
};

View file

@ -1,30 +0,0 @@
<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>