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:
Kelsi 2026-03-17 12:12:11 -07:00
parent 1c3f2f4ae3
commit b80d88bded

View file

@ -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)