mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add drag-and-drop support for inventory to bank slots
Bank window slots now act as drop targets when holding an item from inventory. Empty bank slots highlight green, and clicking drops the held item via CMSG_SWAP_ITEM. Occupied bank slots accept swaps too. Works for both main bank slots (39-66) and bank bag slots (67+).
This commit is contained in:
parent
2ab5cf5eb6
commit
af7fb4242c
3 changed files with 58 additions and 10 deletions
|
|
@ -173,6 +173,8 @@ public:
|
|||
/// Drop the currently held item into a specific equipment slot.
|
||||
/// Returns true if the drop was accepted and consumed.
|
||||
bool dropHeldItemToEquipSlot(game::Inventory& inv, game::EquipSlot slot);
|
||||
/// Drop the currently held item into a bank slot via CMSG_SWAP_ITEM.
|
||||
void dropIntoBankSlot(game::GameHandler& gh, uint8_t dstBag, uint8_t dstSlot);
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue