Fix StyleCop warnings in OpenRA.Mods.RA

This commit is contained in:
Hellhake
2015-01-01 23:03:55 +01:00
parent e9989496c4
commit b6410bc1e0
134 changed files with 261 additions and 267 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
{
public class ServerBrowserLogic
{
readonly static Action DoNothing = () => { };
static readonly Action DoNothing = () => { };
GameServer currentServer;
ScrollItemWidget serverTemplate;
@@ -159,7 +159,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
Game.RunAfterTick(() => RefreshServerListInner(games));
};
currentQuery = new Download(Game.Settings.Server.MasterServer + "games", _ => {}, onComplete);
currentQuery = new Download(Game.Settings.Server.MasterServer + "games", _ => { }, onComplete);
}
int GroupSortOrder(GameServer testEntry)
@@ -191,7 +191,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (modGames.All(Filtered))
continue;
var header = ScrollItemWidget.Setup(headerTemplate, () => true, () => {});
var header = ScrollItemWidget.Setup(headerTemplate, () => true, () => { });
var headerTitle = modGames.First().ModLabel;
header.Get<LabelWidget>("LABEL").GetText = () => headerTitle;
@@ -246,7 +246,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
if (ip != null)
{
ip.GetText = () => game.Address;
ip.GetColor = () => !compatible ? Color.DarkGray : !canJoin ? Color.LightGray : ip.TextColor;
ip.GetColor = () => !compatible ? Color.DarkGray : !canJoin ? Color.LightGray : ip.TextColor;
}
var location = item.GetOrNull<LabelWidget>("LOCATION");