mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
020ba134cd
commit
3b79f44b54
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue