splinedrew
Member
I was wondering how to approach a couple of things:
1. Say you open an inventory, start a drag, then hit a button that closes the panel without finishing the drag. I think because the drag handler is on that panel that was disabled, the dragged item just gets stuck on the screen for me. Is there any remedy to this? I was considering making a custom ItemViewSlotDragHandler that cancels the drag in an OnDisable function?
2. If you start a drag, then start using your keyboard to navigate the UI, it looks like the dragged item is going to be dropped into a slot selected by the keyboard. But because it was started with the mouse it will always drop onto the slot where the mouse is hovering over. Is there a way of making it so the drop handler drops it onto the selected slot if one has been chosen by keyboard inputs? I am using rewired if this changes the answer.
Thanks so much!
Andrew
1. Say you open an inventory, start a drag, then hit a button that closes the panel without finishing the drag. I think because the drag handler is on that panel that was disabled, the dragged item just gets stuck on the screen for me. Is there any remedy to this? I was considering making a custom ItemViewSlotDragHandler that cancels the drag in an OnDisable function?
2. If you start a drag, then start using your keyboard to navigate the UI, it looks like the dragged item is going to be dropped into a slot selected by the keyboard. But because it was started with the mouse it will always drop onto the slot where the mouse is hovering over. Is there a way of making it so the drop handler drops it onto the selected slot if one has been chosen by keyboard inputs? I am using rewired if this changes the answer.
Thanks so much!
Andrew