How to trigger "hotbarDrop" with element that are not "Item" ?

Hello, I would like to know if it is possible to trigger "hotbarDrop" with element that are not "Item". The system I create does have some mandatory skills for each "character" (type of "Actor") that are define inside the template.json. I would like to give the possibility to player to drag and drop these skill into the Macro bar so they would be able to launch them from it. For items, I found a way to make it work with "item-list" and "item" class. But i don't know how to make it work with thing that are not "Item". Can someone help me by telling me if it is possible, and if possible, point me to the documentation I need to read ?
2 Replies
Zhell
Zhell12mo ago
You will want to implement drag handlers on the sheet (so the sheet knows that some element is draggable and what to "transfer" with the drag) and you will want to implement a hotbar drop hook specifically for this. The sheet's defaultOptions has a dragDrop property.
Wildos
Wildos12mo ago
Thank you for the information
Want results from more Discord servers?
Add your server