From b80d88bded483045f0f46f07f3d024926a4e539d Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 17 Mar 2026 12:12:11 -0700 Subject: [PATCH] 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. --- src/ui/inventory_screen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/inventory_screen.cpp b/src/ui/inventory_screen.cpp index 18175be8..09022ec5 100644 --- a/src/ui/inventory_screen.cpp +++ b/src/ui/inventory_screen.cpp @@ -2988,6 +2988,10 @@ void InventoryScreen::renderItemTooltip(const game::ItemDef& item, const game::I showDiff(lbl, static_cast(nv), static_cast(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)