From 95ac97a41cdb616caebc9137a5394dfa5af87332 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 11 Mar 2026 21:15:41 -0700 Subject: [PATCH] Use rich item tooltips in bank window slots --- src/ui/game_screen.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 19219f28..1f762719 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -11094,10 +11094,14 @@ void GameScreen::renderBankWindow(game::GameHandler& gameHandler) { // Tooltip if (ImGui::IsItemHovered() && !isHolding) { - ImGui::BeginTooltip(); - ImGui::TextColored(qc, "%s", item.name.c_str()); - if (item.stackCount > 1) ImGui::Text("Count: %u", item.stackCount); - ImGui::EndTooltip(); + auto* info = gameHandler.getItemInfo(item.itemId); + if (info && info->valid) + inventoryScreen.renderItemTooltip(*info); + else { + ImGui::BeginTooltip(); + ImGui::TextColored(qc, "%s", item.name.c_str()); + ImGui::EndTooltip(); + } } } };