Use rich item tooltips in bank window slots

This commit is contained in:
Kelsi 2026-03-11 21:15:41 -07:00
parent e34357a0a4
commit 95ac97a41c

View file

@ -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();
}
}
}
};