mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
feat: add item tooltips to quest reward items in quest log
This commit is contained in:
parent
3ea1b96681
commit
d7c4bdcd57
1 changed files with 10 additions and 0 deletions
|
|
@ -534,6 +534,11 @@ void QuestLogScreen::render(game::GameHandler& gameHandler, InventoryScreen& inv
|
||||||
ImGui::Text("%s x%u", name.c_str(), ri.count);
|
ImGui::Text("%s x%u", name.c_str(), ri.count);
|
||||||
else
|
else
|
||||||
ImGui::Text("%s", name.c_str());
|
ImGui::Text("%s", name.c_str());
|
||||||
|
if (info && info->valid && ImGui::IsItemHovered()) {
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
invScreen.renderItemTooltip(*info);
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -560,6 +565,11 @@ void QuestLogScreen::render(game::GameHandler& gameHandler, InventoryScreen& inv
|
||||||
ImGui::Text("%s x%u", name.c_str(), ri.count);
|
ImGui::Text("%s x%u", name.c_str(), ri.count);
|
||||||
else
|
else
|
||||||
ImGui::Text("%s", name.c_str());
|
ImGui::Text("%s", name.c_str());
|
||||||
|
if (info && info->valid && ImGui::IsItemHovered()) {
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
invScreen.renderItemTooltip(*info);
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue