ui,game: show creature names in quest kill count tracker and progress messages

Quest kill count tracker in the HUD now resolves creature names from the
cached creature query results and displays them as "Name: x/y" instead
of bare "x/y". The system chat progress message on kill also includes
the creature name when available, matching retail client behavior.
This commit is contained in:
Kelsi 2026-03-10 07:45:53 -07:00
parent 03c4d59592
commit 846ba58d2e
2 changed files with 15 additions and 5 deletions

View file

@ -4687,8 +4687,15 @@ void GameScreen::renderQuestObjectiveTracker(game::GameHandler& gameHandler) {
} else {
// Kill counts
for (const auto& [entry, progress] : q.killCounts) {
ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f),
" %u/%u", progress.first, progress.second);
std::string creatureName = gameHandler.getCachedCreatureName(entry);
if (!creatureName.empty()) {
ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f),
" %s: %u/%u", creatureName.c_str(),
progress.first, progress.second);
} else {
ImGui::TextColored(ImVec4(0.75f, 0.75f, 0.75f, 1.0f),
" %u/%u", progress.first, progress.second);
}
}
// Item counts
for (const auto& [itemId, count] : q.itemCounts) {