mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +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::Text("%s", game::getGenderName(character.gender));
|
||||||
ImGui::Spacing();
|
ImGui::Spacing();
|
||||||
{
|
{
|
||||||
std::string mapName = gameHandler.getMapName(character.mapId);
|
|
||||||
std::string zoneName = gameHandler.getWhoAreaName(character.zoneId);
|
std::string zoneName = gameHandler.getWhoAreaName(character.zoneId);
|
||||||
if (!mapName.empty() && !zoneName.empty())
|
if (!zoneName.empty())
|
||||||
ImGui::Text("%s — %s", mapName.c_str(), zoneName.c_str());
|
ImGui::TextUnformatted(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());
|
|
||||||
else
|
else
|
||||||
ImGui::Text("Map %u, Zone %u", character.mapId, character.zoneId);
|
ImGui::Text("Zone %u", character.zoneId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (character.hasGuild()) {
|
if (character.hasGuild()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue