fix trailing whitespace everywhere
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
Map Map = null;
|
||||
Widget scrollpanel;
|
||||
ScrollItemWidget itemTemplate;
|
||||
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
internal MapChooserLogic(
|
||||
[ObjectCreator.Param( "widget" )] Widget bg,
|
||||
@@ -50,12 +50,12 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
};
|
||||
|
||||
bg.GetWidget<ButtonWidget>("BUTTON_CANCEL").OnClick = () => Widget.CloseWindow();
|
||||
|
||||
|
||||
scrollpanel = bg.GetWidget<ScrollPanelWidget>("MAP_LIST");
|
||||
itemTemplate = scrollpanel.GetWidget<ScrollItemWidget>("MAP_TEMPLATE");
|
||||
EnumerateMaps();
|
||||
}
|
||||
|
||||
|
||||
void EnumerateMaps()
|
||||
{
|
||||
scrollpanel.RemoveChildren();
|
||||
@@ -64,7 +64,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
var map = kv.Value;
|
||||
if (!map.Selectable)
|
||||
continue;
|
||||
|
||||
|
||||
var item = ScrollItemWidget.Setup(itemTemplate, () => Map == map, () => Map = map);
|
||||
item.GetWidget<LabelWidget>("TITLE").GetText = () => map.Title;
|
||||
item.GetWidget<LabelWidget>("PLAYERS").GetText = () => "{0}".F(map.PlayerCount);
|
||||
|
||||
Reference in New Issue
Block a user