mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-15 08:53:51 +00:00
fix(ui): show only zone name on character select, drop map/continent
This commit is contained in:
parent
e4c4b6f429
commit
09c1469956
1 changed files with 3 additions and 8 deletions
|
|
@ -338,16 +338,11 @@ void CharacterScreen::render(game::GameHandler& gameHandler) {
|
|||
ImGui::Text("%s", game::getGenderName(character.gender));
|
||||
ImGui::Spacing();
|
||||
{
|
||||
std::string mapName = gameHandler.getMapName(character.mapId);
|
||||
std::string zoneName = gameHandler.getWhoAreaName(character.zoneId);
|
||||
if (!mapName.empty() && !zoneName.empty())
|
||||
ImGui::Text("%s — %s", mapName.c_str(), zoneName.c_str());
|
||||
else if (!mapName.empty())
|
||||
ImGui::Text("%s (Zone %u)", mapName.c_str(), character.zoneId);
|
||||
else if (!zoneName.empty())
|
||||
ImGui::Text("Map %u — %s", character.mapId, zoneName.c_str());
|
||||
if (!zoneName.empty())
|
||||
ImGui::TextUnformatted(zoneName.c_str());
|
||||
else
|
||||
ImGui::Text("Map %u, Zone %u", character.mapId, character.zoneId);
|
||||
ImGui::Text("Zone %u", character.zoneId);
|
||||
}
|
||||
|
||||
if (character.hasGuild()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue