From 3184de0e7a714e8699eb2f25a102ae840f3ee763 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Tue, 29 Dec 2020 21:27:50 +0100 Subject: [PATCH] added trinket list to char sheet --- src/templates/actor/partials/items.hbs | 47 +++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/src/templates/actor/partials/items.hbs b/src/templates/actor/partials/items.hbs index 7fb3c5e3..ffa4ef14 100644 --- a/src/templates/actor/partials/items.hbs +++ b/src/templates/actor/partials/items.hbs @@ -1,5 +1,4 @@ {{!-- TODO: hover shows complete name of abbreviations --}} -{{!-- TODO: try to use alias for the item type via HBS with and lookup --}} {{!-- TODO: Where possible use icons with complete names as hovers instead of long names --}} {{!-- Tab with overview and quick-actions on owned items --}}
@@ -163,4 +162,50 @@ {{/with}} {{/each}} + + {{!-- TRINKET --}} +

{{localize "DS4.ItemTypeTrinket"}}

{{!-- SPECIFIC --}} +
    +
  1. +
    +
    {{!-- equipped --}} {{!-- SPECIFIC --}} +
    +
    #
    {{!-- amount --}} +
    +
    {{localize "DS4.ItemName"}}
    +
    {{localize "DS4.Description"}}
    + {{!-- add button --}} +
    {{!-- SPECIFIC --}} + + {{localize "DS4.ActionAddItem"}} {{!-- SPECIFIC --}} +
    +
  2. + {{#each itemsByType.trinket as |item id|}} {{!-- SPECIFIC --}} + {{#with item.data.data as |itemData|}} +
  3. +
    + {{!-- equipped? --}} + {{#if itemData.equipped}} + {{else}} + {{/if}} {{!--SPECIFIC --}} + {{!-- image --}} +
    + +
    + {{!-- amount --}} +
    {{itemData.quantity}}
    +
    + {{!-- name --}} +

    {{item.name}}

    + {{!-- description --}} +
    {{{itemData.description}}}
    + {{!-- edit & delete buttons --}} +
    + + +
    +
  4. + {{/with}} + {{/each}} +
\ No newline at end of file