Hide tooltip and make unusable from setting sheet

This commit is contained in:
Carlos Fernandez 2026-06-21 17:34:41 -04:00
parent 02918074a8
commit 1c67930d94
4 changed files with 7 additions and 4 deletions

View file

@ -21,6 +21,7 @@
hideContextMenu=true
hideResources=true
showActions=false
hideTooltip=true
}}
{{/each}}
</ul>

View file

@ -21,6 +21,7 @@
hideContextMenu=true
hideResources=true
showActions=false
hideTooltip=true
}}
{{/each}}
</ul>

View file

@ -21,6 +21,7 @@
hideContextMenu=true
hideResources=true
showActions=false
hideTooltip=true
}}
{{/each}}
</ul>

View file

@ -27,11 +27,11 @@ Parameters:
>
<div class="inventory-item-header {{#if hideContextMenu}}padded{{/if}}" {{#unless noExtensible}}data-action="toggleExtended" {{/unless}}>
{{!-- Image --}}
<div class="img-portait" data-action='{{ifThen item.usable "useItem" (ifThen
(hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}}
data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}} draggable="true">
<div class="img-portait"
{{#unless (eq showActions false)}}data-action='{{ifThen item.usable "useItem" (ifThen (hasProperty item "toChat" ) "toChat" "editDoc" ) }}'{{/unless}}
{{#unless hideTooltip}} {{#if (eq type 'attack' )}} data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}} draggable="true">
<img src="{{item.img}}" class="item-img {{#if isActor}}actor-img{{/if}}" />
{{#if item.usable}}
{{#if (and item.usable (ne showActions false))}}
{{#if @root.isNPC}}
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
{{else}}