Game Stats: apply red formatting to negative gold
This commit is contained in:
parent
18a7e80243
commit
cfc4c5c425
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue