MP/Staging and Join: display game name (resolves #3508)

This commit is contained in:
Charles Dang 2020-12-24 13:11:19 +11:00
parent 514a4f7ff1
commit 63e161f78b
2 changed files with 3 additions and 2 deletions

View file

@ -238,7 +238,8 @@ void mp_join_game::pre_show(window& window)
// Set title
//
label& title = find_widget<label>(&window, "title", false);
title.set_label((formatter() << title.get_label() << " " << font::unicode_em_dash << " " << get_scenario()["name"].t_str()).str());
// FIXME: very hacky way to get the game name...
title.set_label((formatter() << level_.child("multiplayer")["scenario"] << " " << font::unicode_em_dash << " " << get_scenario()["name"].t_str()).str());
//
// Set up sides list

View file

@ -80,7 +80,7 @@ void mp_staging::pre_show(window& window)
// Set title and status widget states
//
label& title = find_widget<label>(&window, "title", false);
title.set_label((formatter() << title.get_label() << " " << font::unicode_em_dash << " " << connect_engine_.scenario()["name"].t_str()).str());
title.set_label((formatter() << connect_engine_.params().name << " " << font::unicode_em_dash << " " << connect_engine_.scenario()["name"].t_str()).str());
update_status_label_and_buttons();