Minor map chooser polish tweaks.
This commit is contained in:
@@ -114,11 +114,11 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
|
|
||||||
var detailsWidget = item.GetOrNull<LabelWidget>("DETAILS");
|
var detailsWidget = item.GetOrNull<LabelWidget>("DETAILS");
|
||||||
if (detailsWidget != null)
|
if (detailsWidget != null)
|
||||||
detailsWidget.GetText = () => "{0} ({1})".F(m.Type, m.PlayerCount);
|
detailsWidget.GetText = () => "{0} ({1} players)".F(m.Type, m.PlayerCount);
|
||||||
|
|
||||||
var authorWidget = item.GetOrNull<LabelWidget>("AUTHOR");
|
var authorWidget = item.GetOrNull<LabelWidget>("AUTHOR");
|
||||||
if (authorWidget != null)
|
if (authorWidget != null)
|
||||||
authorWidget.GetText = () => m.Author;
|
authorWidget.GetText = () => "Created by {0}".F(m.Author);
|
||||||
|
|
||||||
var sizeWidget = item.GetOrNull<LabelWidget>("SIZE");
|
var sizeWidget = item.GetOrNull<LabelWidget>("SIZE");
|
||||||
if (sizeWidget != null)
|
if (sizeWidget != null)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Container@MAPCHOOSER_PANEL:
|
|||||||
Children:
|
Children:
|
||||||
ScrollItem@MAP_TEMPLATE:
|
ScrollItem@MAP_TEMPLATE:
|
||||||
Width:168
|
Width:168
|
||||||
Height:215
|
Height:217
|
||||||
X:2
|
X:2
|
||||||
Y:0
|
Y:0
|
||||||
Visible:false
|
Visible:false
|
||||||
@@ -57,19 +57,19 @@ Container@MAPCHOOSER_PANEL:
|
|||||||
Height:158
|
Height:158
|
||||||
Label@TITLE:
|
Label@TITLE:
|
||||||
X:2
|
X:2
|
||||||
Y:PARENT_BOTTOM-45
|
Y:PARENT_BOTTOM-48
|
||||||
Width:PARENT_RIGHT-4
|
Width:PARENT_RIGHT-4
|
||||||
Align:Center
|
Align:Center
|
||||||
Label@DETAILS:
|
Label@DETAILS:
|
||||||
Width:PARENT_RIGHT-4
|
Width:PARENT_RIGHT-4
|
||||||
X:2
|
X:2
|
||||||
Y:PARENT_BOTTOM-30
|
Y:PARENT_BOTTOM-34
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Tiny
|
Font:Tiny
|
||||||
Label@AUTHOR:
|
Label@AUTHOR:
|
||||||
Width:PARENT_RIGHT-4
|
Width:PARENT_RIGHT-4
|
||||||
X:2
|
X:2
|
||||||
Y:PARENT_BOTTOM-20
|
Y:PARENT_BOTTOM-22
|
||||||
Align:Center
|
Align:Center
|
||||||
Font:Tiny
|
Font:Tiny
|
||||||
Label@SIZE:
|
Label@SIZE:
|
||||||
|
|||||||
Reference in New Issue
Block a user