Fixes #2386 (Add map size to map list)

This commit is contained in:
Scott_NZ
2012-08-28 13:09:47 +12:00
committed by Chris Forbes
parent 6d3a932453
commit c33c9e9f69
3 changed files with 18 additions and 0 deletions

View File

@@ -98,6 +98,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (authorWidget != null)
authorWidget.GetText = () => m.Author;
var sizeWidget = item.Get<LabelWidget>("SIZE");
if (sizeWidget != null)
sizeWidget.GetText = () => m.Bounds.Width + "x" + m.Bounds.Height;
scrollpanel.AddChild(item);
}
}