FEAT: add template to items sheet

This commit is contained in:
Joaquin Pereyra 2025-07-12 19:49:09 -03:00
parent 542742447d
commit 2e02d95afa
24 changed files with 283 additions and 457 deletions

View file

@ -6,6 +6,7 @@
type='effect'
isGlassy=true
collection=effects.actives
canCreate=true
}}
{{> 'daggerheart.inventory-items'
@ -13,5 +14,6 @@
type='effect'
isGlassy=true
collection=effects.inactives
canCreate=true
}}
</section>

View file

@ -8,6 +8,7 @@
title=category.title
type='feature'
collection=category.values
canCreate=true
}}
{{/if}}

View file

@ -1,8 +1,5 @@
<section
class='tab {{tabs.inventory.cssClass}} {{tabs.inventory.id}}'
data-tab='{{tabs.inventory.id}}'
data-group='{{tabs.inventory.group}}'
>
<section class='tab {{tabs.inventory.cssClass}} {{tabs.inventory.id}}' data-tab='{{tabs.inventory.id}}'
data-group='{{tabs.inventory.group}}'>
<div class="search-section">
<div class="search-bar">
<div class="icon">
@ -16,22 +13,34 @@
</div>
<div class="items-section">
{{> 'daggerheart.inventory-items' title='TYPES.Item.weapon'
{{> 'daggerheart.inventory-items'
title='TYPES.Item.weapon'
type='weapon'
collection=document.itemTypes.weapon
isGlassy=true}}
{{> 'daggerheart.inventory-items' title='TYPES.Item.armor'
isGlassy=true
canCreate=true
}}
{{> 'daggerheart.inventory-items'
title='TYPES.Item.armor'
type='armor'
collection=document.itemTypes.armor
isGlassy=true}}
{{> 'daggerheart.inventory-items' title='TYPES.Item.consumable'
isGlassy=true
canCreate=true
}}
{{> 'daggerheart.inventory-items'
title='TYPES.Item.consumable'
type='consumable'
collection=document.itemTypes.consumable
isGlassy=true}}
{{> 'daggerheart.inventory-items' title='TYPES.Item.miscellaneous'
isGlassy=true
canCreate=true
}}
{{> 'daggerheart.inventory-items'
title='TYPES.Item.miscellaneous'
type='miscellaneous'
collection=document.itemTypes.miscellaneous
isGlassy=true}}
isGlassy=true
canCreate=true
}}
</div>
<div class="currency-section">

View file

@ -27,14 +27,16 @@
isGlassy=true
cardView=cardView
collection=document.system.domainCards.loadout
canCreate=true
}}
{{> 'daggerheart.inventory-items'
title='DAGGERHEART.GENERAL.Tabs.vault'
type='domainCard'
isGlassy=true
cardView=cardView
collection=document.system.domainCards.vault
canCreate=true
inVault=true
}}
</div>
</section>