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:
Kelsi 2026-03-11 23:32:43 -07:00
parent 88436fa400
commit 971ada6397
2 changed files with 65 additions and 2 deletions

View file

@ -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_;