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.
This commit is contained in:
Kelsi 2026-03-17 14:44:15 -07:00
parent 020ba134cd
commit 3b79f44b54

View file

@ -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;