mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add Shift+hover item comparison in vendor window
Extend renderItemTooltip(ItemQueryResponseData) to accept an optional Inventory* parameter. When Shift is held and an equipped item in the same slot exists, show: equipped item name, item level diff (▲/▼/=), and stat diffs for Armor/Str/Agi/Sta/Int/Spi. Pass the player's inventory from the vendor window hover handler to enable this.
This commit is contained in:
parent
5827a8fcdd
commit
f5d67c3c7f
3 changed files with 45 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ private:
|
|||
std::unordered_map<uint32_t, VkDescriptorSet> iconCache_;
|
||||
public:
|
||||
VkDescriptorSet getItemIcon(uint32_t displayInfoId);
|
||||
void renderItemTooltip(const game::ItemQueryResponseData& info);
|
||||
void renderItemTooltip(const game::ItemQueryResponseData& info, const game::Inventory* inventory = nullptr);
|
||||
private:
|
||||
|
||||
// Character model preview
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue