From 3b79f44b543e04fb683e1a678424d85f167a7bbf Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 17 Mar 2026 14:44:15 -0700 Subject: [PATCH] feat: show item flavor/lore text in item tooltip Display item description (flavor text) from SMSG_ITEM_QUERY_SINGLE_RESPONSE at the bottom of item tooltips in gold color, matching WoW's standard tooltip layout where lore text appears below stats and effects. --- src/ui/game_screen.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/game_screen.cpp b/src/ui/game_screen.cpp index 629dba96..97cac5c2 100644 --- a/src/ui/game_screen.cpp +++ b/src/ui/game_screen.cpp @@ -1529,6 +1529,13 @@ void GameScreen::renderChatWindow(game::GameHandler& gameHandler) { // Required level if (info->requiredLevel > 1) ImGui::TextDisabled("Requires Level %u", info->requiredLevel); + // Flavor / lore text (shown in gold italic in WoW, use a yellow-ish dim color here) + if (!info->description.empty()) { + ImGui::Spacing(); + ImGui::PushTextWrapPos(300.0f); + ImGui::TextColored(ImVec4(1.0f, 0.82f, 0.0f, 0.85f), "\"%s\"", info->description.c_str()); + ImGui::PopTextWrapPos(); + } if (info->sellPrice > 0) { uint32_t g = info->sellPrice / 10000; uint32_t s = (info->sellPrice / 100) % 100;