Skip to content

Commit

Permalink
Game Stats: tweaked controller text display
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent e38ffb6 commit f923c15
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gui/dialogs/game_stats.cpp
Expand Up @@ -74,9 +74,10 @@ unit_const_ptr game_stats::get_leader(const int side)
return nullptr;
}

static std::string controller_name(const team& t) {
static const t_string names[3] {_("controller^Human"), _("controller^Computer"), _("controller^Idle")};
return " <span color='#808080'>(" + names[t.controller().v] + ")</span>";
static std::string controller_name(const team& t)
{
static const std::array<t_string, 3> names {_("controller^Human"), _("controller^AI"), _("controller^Idle")};
return "<span color='#808080'><small>" + names[t.controller().v] + "</small></span>";
}

void game_stats::pre_show(window& window)
Expand Down

0 comments on commit f923c15

Please sign in to comment.