Total Price value is not updated on item transfer dialogs
When transferring from a loot actor to a regular actor, there is normally supposed to be a total purchase price value that updates on the button itself. It currently looks like this.
<img width="464" height="220" alt="Image" src="https://github.com/user-attachments/assets/a2fb1c8f-4855-4a9c-92f5-f366d29b0526" />
HOWEVER it is supposed to look this (I hacked it to work momentarily)
<img width="464" height="218" alt="Image" src="https://github.com/user-attachments/assets/1a3b8ef9-e74a-48a6-bd1e-db41da548d7f" />
It looks like there are two reasons this is failing. One of them is easy, the other I have no idea beyond rewriting it to no longer be a DialogV2.
1) The quantityInput in `#renderPurchasePrice()` no longer works. That can be changed to `range-picker[name=quantity]`. This will allow the price result to show up on the initial render.
2) The _onChangeForm() is no longer firing when the form updates. This prevents the price input from attempting to update when updating quantity.
This is currently giving me some difficulty with fixing https://github.com/foundryvtt/pf2e/issues/22518 entirely. While its easy enough to prevent credstick stacking, I want to add a toggle for transferring credits vs transferring credsticks, and I need to disable the quantity input when the checkbox changes, which requires me to add something to _onChangeForm().
0 条评论