mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +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);
|
||||
else
|
||||
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);
|
||||
else
|
||||
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