Fixes #2386 (Add map size to map list)
This commit is contained in:
@@ -98,6 +98,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
if (authorWidget != null)
|
if (authorWidget != null)
|
||||||
authorWidget.GetText = () => m.Author;
|
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);
|
scrollpanel.AddChild(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ Container@MAPCHOOSER_PANEL:
|
|||||||
Align:Center
|
Align:Center
|
||||||
Height:25
|
Height:25
|
||||||
Font:Tiny
|
Font:Tiny
|
||||||
|
Label@SIZE:
|
||||||
|
Width:PARENT_RIGHT-4
|
||||||
|
X:2
|
||||||
|
Y:PARENT_BOTTOM-17
|
||||||
|
Align:Center
|
||||||
|
Height:25
|
||||||
|
Font:Tiny
|
||||||
MapPreview@PREVIEW:
|
MapPreview@PREVIEW:
|
||||||
X:(PARENT_RIGHT - WIDTH)/2
|
X:(PARENT_RIGHT - WIDTH)/2
|
||||||
Y:4
|
Y:4
|
||||||
|
|||||||
@@ -46,6 +46,13 @@ Background@MAPCHOOSER_PANEL:
|
|||||||
Align:Center
|
Align:Center
|
||||||
Height:25
|
Height:25
|
||||||
Font:Tiny
|
Font:Tiny
|
||||||
|
Label@SIZE:
|
||||||
|
Width:PARENT_RIGHT-4
|
||||||
|
X:2
|
||||||
|
Y:PARENT_BOTTOM-17
|
||||||
|
Align:Center
|
||||||
|
Height:25
|
||||||
|
Font:Tiny
|
||||||
MapPreview@PREVIEW:
|
MapPreview@PREVIEW:
|
||||||
X:(PARENT_RIGHT - WIDTH)/2
|
X:(PARENT_RIGHT - WIDTH)/2
|
||||||
Y:4
|
Y:4
|
||||||
|
|||||||
Reference in New Issue
Block a user