mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
[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:
parent
f786ee5f06
commit
99d0eab5bd
6 changed files with 128 additions and 70 deletions
|
|
@ -1,9 +1,26 @@
|
|||
<div>
|
||||
<div class="item-transfer-container">
|
||||
<input type="range" step="1" min="0" max="{{item.system.quantity}}" name="quantity" value="{{quantity}}" />
|
||||
<input type="text" value="{{quantity}}" class="number-display" />
|
||||
<div class="dialog-content standard-form">
|
||||
<div class="summary">
|
||||
<img class="actor-img" src="{{originActor.img}}" />
|
||||
<div class="granted-item">
|
||||
{{#if itemImage}}
|
||||
<img src="{{itemImage}}" />
|
||||
{{else}}
|
||||
<i inert class="currency-icon {{currencyIcon}}"></i>
|
||||
{{/if}}
|
||||
<i inert class="fa-solid fa-hand-holding"></i>
|
||||
</div>
|
||||
<img class="actor-img" src="{{targetActor.img}}" />
|
||||
</div>
|
||||
<footer class="item-sheet-footer">
|
||||
<button type="button" data-action="finish">{{localize "DAGGERHEART.APPLICATIONS.ItemTransfer.transfer"}}</button>
|
||||
</footer>
|
||||
<div class="form-group">
|
||||
<label>{{localize "DAGGERHEART.GENERAL.quantity"}}</label>
|
||||
<div class="form-fields">
|
||||
<range-picker step="1" min="1" max="{{max}}" name="quantity" value="{{max}}"></range-picker>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog-buttons">
|
||||
<button type="button" data-action="finish">
|
||||
<i inert class="fa-solid fa-gift"></i>
|
||||
{{localize "DAGGERHEART.APPLICATIONS.ItemTransfer.transfer"}}
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue