Show map title in the lobby

This commit is contained in:
Paul Chote
2011-07-01 23:37:53 +12:00
parent 0224b3b745
commit 9b3cedd37f
2 changed files with 13 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
NewSpectatorTemplate = Players.GetWidget("TEMPLATE_NEW_SPECTATOR");
var mapPreview = lobby.GetWidget<MapPreviewWidget>("MAP_PREVIEW");
mapPreview.IsVisible = () => Map != null;
mapPreview.Map = () => Map;
mapPreview.OnMouseDown = mi =>
{
@@ -134,6 +135,10 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
return true;
};
var mapTitle = lobby.GetWidget<LabelWidget>("MAP_TITLE");
mapTitle.IsVisible = () => Map != null;
mapTitle.GetText = () => Map.Title;
mapPreview.SpawnColors = () =>
{
var spawns = Map.SpawnPoints;