mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add 'Hold Shift to compare' hint to ItemDef tooltip
The ItemQueryResponseData tooltip overload had this hint but the primary ItemDef overload did not. Players hovering gear in their inventory now see the comparison prompt when an equipped equivalent exists.
This commit is contained in:
parent
1c3f2f4ae3
commit
b80d88bded
1 changed files with 4 additions and 0 deletions
|
|
@ -2988,6 +2988,10 @@ void InventoryScreen::renderItemTooltip(const game::ItemDef& item, const game::I
|
|||
showDiff(lbl, static_cast<float>(nv), static_cast<float>(ev));
|
||||
}
|
||||
}
|
||||
} else if (inventory && !ImGui::GetIO().KeyShift && item.inventoryType > 0) {
|
||||
if (findComparableEquipped(*inventory, item.inventoryType)) {
|
||||
ImGui::TextDisabled("Hold Shift to compare");
|
||||
}
|
||||
}
|
||||
|
||||
// Destroy hint (not shown for quest items)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue