fix(ui): show guild name and zone name on character select screen

Load area names from AreaTable.dbc (canonical zone names) in addition
to WorldMapArea.dbc so zone IDs from SMSG_CHAR_ENUM resolve to names.
Use lookupGuildName() to query and display guild names instead of raw
guild IDs.
This commit is contained in:
Kelsi 2026-04-05 04:28:36 -07:00
parent 35be19e74c
commit 2e30490fc5
2 changed files with 39 additions and 18 deletions

View file

@ -351,7 +351,11 @@ void CharacterScreen::render(game::GameHandler& gameHandler) {
}
if (character.hasGuild()) {
ImGui::Text("Guild ID: %d", character.guildId);
const std::string& guildName = gameHandler.lookupGuildName(character.guildId);
if (!guildName.empty())
ImGui::Text("<%s>", guildName.c_str());
else
ImGui::TextDisabled("<Guild %u>", character.guildId);
} else {
ImGui::TextDisabled("No Guild");
}