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);
}
}

View File

@@ -50,6 +50,13 @@ Container@MAPCHOOSER_PANEL:
Align:Center
Height:25
Font:Tiny
Label@SIZE:
Width:PARENT_RIGHT-4
X:2
Y:PARENT_BOTTOM-17
Align:Center
Height:25
Font:Tiny
MapPreview@PREVIEW:
X:(PARENT_RIGHT - WIDTH)/2
Y:4

View File

@@ -46,6 +46,13 @@ Background@MAPCHOOSER_PANEL:
Align:Center
Height:25
Font:Tiny
Label@SIZE:
Width:PARENT_RIGHT-4
X:2
Y:PARENT_BOTTOM-17
Align:Center
Height:25
Font:Tiny
MapPreview@PREVIEW:
X:(PARENT_RIGHT - WIDTH)/2
Y:4