mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-24 11:29:54 +02:00
Hide tooltip and make unusable from setting sheet
This commit is contained in:
parent
02918074a8
commit
1c67930d94
4 changed files with 7 additions and 4 deletions
|
|
@ -21,6 +21,7 @@
|
||||||
hideContextMenu=true
|
hideContextMenu=true
|
||||||
hideResources=true
|
hideResources=true
|
||||||
showActions=false
|
showActions=false
|
||||||
|
hideTooltip=true
|
||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
hideContextMenu=true
|
hideContextMenu=true
|
||||||
hideResources=true
|
hideResources=true
|
||||||
showActions=false
|
showActions=false
|
||||||
|
hideTooltip=true
|
||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
hideContextMenu=true
|
hideContextMenu=true
|
||||||
hideResources=true
|
hideResources=true
|
||||||
showActions=false
|
showActions=false
|
||||||
|
hideTooltip=true
|
||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,11 @@ Parameters:
|
||||||
>
|
>
|
||||||
<div class="inventory-item-header {{#if hideContextMenu}}padded{{/if}}" {{#unless noExtensible}}data-action="toggleExtended" {{/unless}}>
|
<div class="inventory-item-header {{#if hideContextMenu}}padded{{/if}}" {{#unless noExtensible}}data-action="toggleExtended" {{/unless}}>
|
||||||
{{!-- Image --}}
|
{{!-- Image --}}
|
||||||
<div class="img-portait" data-action='{{ifThen item.usable "useItem" (ifThen
|
<div class="img-portait"
|
||||||
(hasProperty item "toChat" ) "toChat" "editDoc" ) }}' {{#unless hideTooltip}} {{#if (eq type 'attack' )}}
|
{{#unless (eq showActions false)}}data-action='{{ifThen item.usable "useItem" (ifThen (hasProperty item "toChat" ) "toChat" "editDoc" ) }}'{{/unless}}
|
||||||
data-tooltip="#attack#{{item.actor.uuid}}" {{else}} data-tooltip="#item#{{item.uuid}}" {{/if}} {{/unless}} draggable="true">
|
{{#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}}" />
|
<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}}
|
{{#if @root.isNPC}}
|
||||||
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
|
<img class="roll-img d20" src="systems/daggerheart/assets/icons/dice/default/d20.svg" alt="d20">
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue