Add rich item tooltip to buyback item row in vendor window

This commit is contained in:
Kelsi 2026-03-11 21:17:29 -07:00
parent 95ac97a41c
commit 7ab0b036c7

View file

@ -7841,6 +7841,8 @@ void GameScreen::renderVendorWindow(game::GameHandler& gameHandler) {
} else {
ImGui::TextColored(bbQc, "%s", name);
}
if (ImGui::IsItemHovered() && bbInfo && bbInfo->valid)
inventoryScreen.renderItemTooltip(*bbInfo);
ImGui::TableSetColumnIndex(2);
if (!canAfford) ImGui::PushStyleColor(ImGuiCol_Text, ImVec4(1.0f, 0.3f, 0.3f, 1.0f));
ImGui::Text("%ug %us %uc", g, s, c);