[PR] [Feature] Support drag dropping currencies to actor sheets (#1431)

* Support drag dropping currencies to actor sheets

* Adjust sizing and spacing

* Restore ItemTransferDialog subclass for module use

* Bigger is better
This commit is contained in:
Carlos Fernandez 2025-12-21 11:37:00 -05:00 committed by GitHub
parent f786ee5f06
commit 99d0eab5bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 128 additions and 70 deletions

View file

@ -14,10 +14,10 @@
{{#if this.inventory.hasCurrency}}
<div class="currency-section">
{{#each this.inventory.currencies as | currency |}}
{{#each this.inventory.currencies as |currency key|}}
{{#if currency.enabled}}
<div class="input">
<span>
<div class="input currency" data-currency="{{key}}">
<span class="drag-handle">
<i class="{{currency.icon}}" inert></i> {{localize currency.label}}
</span>
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />

View file

@ -17,10 +17,10 @@
{{#if inventory.hasCurrency}}
<div class="currency-section">
{{#each this.inventory.currencies as | currency |}}
{{#each this.inventory.currencies as |currency key|}}
{{#if currency.enabled}}
<div class="input">
<span>
<div class="input currency" data-currency="{{key}}">
<span class="drag-handle">
<i class="{{currency.icon}}" inert></i> {{localize currency.label}}
</span>
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />