diff --git a/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs index af663b5f01..a6e8573be3 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs @@ -91,8 +91,18 @@ namespace OpenRA.Mods.RA.Widgets.Logic { var m = kv.Value; var item = ScrollItemWidget.Setup(itemTemplate, () => m == map, () => map = m); - item.GetWidget("TITLE").GetText = () => m.Title; - item.GetWidget("PLAYERS").GetText = () => "{0}".F(m.PlayerCount); + + var titleLabel = item.GetWidget("TITLE"); + var playersLabel = item.GetWidget("PLAYERS"); + + if (playersLabel != null) + { + playersLabel.GetText = () => "{0}".F(m.PlayerCount); + titleLabel.GetText = () => m.Title; + } + else + titleLabel.GetText = () => "{0} ({1})".F(m.Title, m.PlayerCount); + item.GetWidget("TYPE").GetText = () => m.Type; scrollpanel.AddChild(item); } diff --git a/mods/ra/chrome/map-chooser.yaml b/mods/ra/chrome/map-chooser.yaml index 632427dc51..c6badcd798 100644 --- a/mods/ra/chrome/map-chooser.yaml +++ b/mods/ra/chrome/map-chooser.yaml @@ -34,11 +34,6 @@ Background@MAP_CHOOSER: Id:TITLE Width:PARENT_RIGHT-100 Height:25 - Label@PLAYERS: - Id:PLAYERS - X:PARENT_RIGHT-150 - Width:30 - Height:25 Label@TYPE: Id:TYPE Width:90