diff --git a/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs b/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs index 6a26231134..6de808870b 100644 --- a/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs +++ b/OpenRA.Mods.RA/Widgets/Logic/MapChooserLogic.cs @@ -98,6 +98,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic if (authorWidget != null) authorWidget.GetText = () => m.Author; + var sizeWidget = item.Get("SIZE"); + if (sizeWidget != null) + sizeWidget.GetText = () => m.Bounds.Width + "x" + m.Bounds.Height; + scrollpanel.AddChild(item); } } diff --git a/mods/cnc/chrome/mapchooser.yaml b/mods/cnc/chrome/mapchooser.yaml index 67ae8e0e91..e27de9ce1d 100644 --- a/mods/cnc/chrome/mapchooser.yaml +++ b/mods/cnc/chrome/mapchooser.yaml @@ -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 diff --git a/mods/ra/chrome/map-chooser.yaml b/mods/ra/chrome/map-chooser.yaml index c57b815a41..fd85906966 100644 --- a/mods/ra/chrome/map-chooser.yaml +++ b/mods/ra/chrome/map-chooser.yaml @@ -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