mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add vendor purchase confirmation for expensive items
Shows a confirmation dialog before buying items costing 1 gold or more, preventing accidental purchases. Displays item name, quantity, and total cost in gold/silver/copper.
This commit is contained in:
parent
9b32a328c3
commit
d4c7157208
2 changed files with 49 additions and 2 deletions
|
|
@ -533,6 +533,15 @@ private:
|
|||
// Vendor search filter
|
||||
char vendorSearchFilter_[128] = "";
|
||||
|
||||
// Vendor purchase confirmation for expensive items
|
||||
bool vendorConfirmOpen_ = false;
|
||||
uint64_t vendorConfirmGuid_ = 0;
|
||||
uint32_t vendorConfirmItemId_ = 0;
|
||||
uint32_t vendorConfirmSlot_ = 0;
|
||||
uint32_t vendorConfirmQty_ = 1;
|
||||
uint32_t vendorConfirmPrice_ = 0;
|
||||
std::string vendorConfirmItemName_;
|
||||
|
||||
// Trainer search filter
|
||||
char trainerSearchFilter_[128] = "";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue