mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-08 01:53:52 +00:00
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:
parent
35be19e74c
commit
2e30490fc5
2 changed files with 39 additions and 18 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue