Game Stats: apply red formatting to negative gold

This commit is contained in:
Charles Dang 2017-03-17 10:04:54 +11:00
parent 18a7e80243
commit cfc4c5c425

View file

@ -139,7 +139,7 @@ void game_stats::pre_show(window& window)
gold_str = utils::half_signed_value(data.gold);
}
column_stats["label"] = gold_str;
column_stats["label"] = data.gold < 0 ? "<span color='#ff0000'>" + gold_str + "</span>" : gold_str;;
row_data_stats.emplace("team_gold", column_stats);
std::string village_count = std::to_string(data.villages);