mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[Fix] Inventory Item Transfer (#1316)
* Fixed so items from the inventory tab of the Party sheet can be dragged out * Added transfer logic * Added translation * Improved item transfer dialog title * Simplified title * Updated image * Simplified the handlebars templates for itemTransfer * Improved item-identicial check * Slight improved rendering * .
This commit is contained in:
parent
9f7554cdff
commit
2920ead81a
15 changed files with 228 additions and 47 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<li class='feature-item' data-item-uuid='{{feature.uuid}}' data-type="{{type}}">
|
||||
<li class='feature-item' data-item-uuid='{{feature.uuid}}' id="{{feature._id}}" data-type="{{type}}">
|
||||
<div class='feature-line'>
|
||||
<img class='image' src='{{feature.img}}' />
|
||||
<h4>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
data-action="editDoc"
|
||||
data-item-uuid="{{document.system.primaryFeature.uuid}}"
|
||||
data-type="primary"
|
||||
id="{{document.system.primaryFeature._id}}"
|
||||
>
|
||||
<img class="image" src="{{document.system.primaryFeature.img}}" />
|
||||
<span>{{document.system.primaryFeature.name}}</span>
|
||||
|
|
@ -36,6 +37,7 @@
|
|||
data-action="editDoc"
|
||||
data-item-uuid="{{document.system.secondaryFeature.uuid}}"
|
||||
data-type="secondary"
|
||||
id="{{document.system.secondaryFeature._id}}"
|
||||
>
|
||||
<img class="image" src="{{document.system.secondaryFeature.img}}" />
|
||||
<span>{{document.system.secondaryFeature.name}}</span>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
<input type="text" name="system.characterGuide.suggestedTraits.knowledge" value="{{source.system.characterGuide.suggestedTraits.knowledge}}" />
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<fieldset class="one-column {{#if (eq document.parent.type 'character')}}disabled{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedEquipment"}}</legend>
|
||||
<fieldset class="one-column drop-section primary-weapon-section {{#if (eq document.parent.type 'character')}}inactive{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.ITEMS.Class.guide.suggestedPrimaryWeaponTitle"}}</legend>
|
||||
|
|
@ -86,7 +86,7 @@
|
|||
</fieldset>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="one-column">
|
||||
<fieldset class="one-column {{#if (eq document.parent.type 'character')}}disabled{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.inventory"}}</legend>
|
||||
<fieldset class="one-column drop-section take-section {{#if (eq document.parent.type 'character')}}inactive{{/if}}">
|
||||
<legend>{{localize "DAGGERHEART.GENERAL.take"}}</legend>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue