mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Add Shift+right-click destroy for inventory items with confirmation popup
Holding Shift while right-clicking any non-quest inventory item opens a destroy confirmation popup instead of performing the normal equip/use action. Item tooltips now show a 'Shift+RClick to destroy' hint at the bottom (highlighted in red when Shift is held).
This commit is contained in:
parent
88436fa400
commit
971ada6397
2 changed files with 65 additions and 2 deletions
|
|
@ -171,11 +171,18 @@ private:
|
|||
void renderHeldItem();
|
||||
bool bagHasAnyItems(const game::Inventory& inventory, int bagIndex) const;
|
||||
|
||||
// Drop confirmation
|
||||
// Drop confirmation (drag-outside-window destroy)
|
||||
bool dropConfirmOpen_ = false;
|
||||
int dropBackpackIndex_ = -1;
|
||||
std::string dropItemName_;
|
||||
|
||||
// Destroy confirmation (Shift+right-click destroy)
|
||||
bool destroyConfirmOpen_ = false;
|
||||
uint8_t destroyBag_ = 0xFF;
|
||||
uint8_t destroySlot_ = 0;
|
||||
uint8_t destroyCount_ = 1;
|
||||
std::string destroyItemName_;
|
||||
|
||||
// Pending chat item link from shift-click
|
||||
std::string pendingChatItemLink_;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue