[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:
WBHarry 2025-11-23 15:04:42 +01:00 committed by GitHub
parent 9f7554cdff
commit 2920ead81a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 228 additions and 47 deletions

View file

@ -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>

View file

@ -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>