Follow appveyor's code style check.

This commit is contained in:
Huo Yaoyuan
2017-03-09 16:44:45 +08:00
parent 115ebd4773
commit 9007409072
5 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Mods
{ {
public class AssistedSection : ModSection public class AssistedSection : ModSection
{ {
protected override Key[] ToggleKeys => new Key[] { Key.Z, Key.X, Key.C, Key.V, Key.B, Key.N, Key.M }; protected override Key[] ToggleKeys => new[] { Key.Z, Key.X, Key.C, Key.V, Key.B, Key.N, Key.M };
public override ModType ModType => ModType.Special; public override ModType ModType => ModType.Special;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Mods
{ {
public class DifficultyIncreaseSection : ModSection public class DifficultyIncreaseSection : ModSection
{ {
protected override Key[] ToggleKeys => new Key[] { Key.A, Key.S, Key.D, Key.F, Key.G, Key.H, Key.J, Key.K, Key.L }; protected override Key[] ToggleKeys => new[] { Key.A, Key.S, Key.D, Key.F, Key.G, Key.H, Key.J, Key.K, Key.L };
public override ModType ModType => ModType.DifficultyIncrease; public override ModType ModType => ModType.DifficultyIncrease;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Mods
{ {
public class DifficultyReductionSection : ModSection public class DifficultyReductionSection : ModSection
{ {
protected override Key[] ToggleKeys => new Key[] { Key.Q, Key.W, Key.E, Key.R, Key.T, Key.Y, Key.U, Key.I, Key.O, Key.P }; protected override Key[] ToggleKeys => new[] { Key.Q, Key.W, Key.E, Key.R, Key.T, Key.Y, Key.U, Key.I, Key.O, Key.P };
public override ModType ModType => ModType.DifficultyReduction; public override ModType ModType => ModType.DifficultyReduction;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]

View File

@ -179,7 +179,7 @@ namespace osu.Game.Overlays.Mods
iconsContainer.Clear(); iconsContainer.Clear();
if (Mods.Length > 1) if (Mods.Length > 1)
{ {
iconsContainer.Add(new ModIcon[] iconsContainer.Add(new[]
{ {
new ModIcon new ModIcon
{ {
@ -187,7 +187,7 @@ namespace osu.Game.Overlays.Mods
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Position = new Vector2(1.5f), Position = new Vector2(1.5f),
Colour = this.ButtonColour Colour = ButtonColour
}, },
foregroundIcon = new ModIcon foregroundIcon = new ModIcon
{ {
@ -195,7 +195,7 @@ namespace osu.Game.Overlays.Mods
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Position = new Vector2(-1.5f), Position = new Vector2(-1.5f),
Colour = this.ButtonColour Colour = ButtonColour
}, },
}); });
} }
@ -206,7 +206,7 @@ namespace osu.Game.Overlays.Mods
Origin = Anchor.Centre, Origin = Anchor.Centre,
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Colour = this.ButtonColour Colour = ButtonColour
}); });
} }
} }

View File

@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Mods
{ {
button.ButtonColour = ButtonColour; button.ButtonColour = ButtonColour;
button.SelectedColour = selectedColour; button.SelectedColour = selectedColour;
button.Action = this.Action; button.Action = Action;
} }
ButtonsContainer.Children = value; ButtonsContainer.Children = value;
@ -114,7 +114,7 @@ namespace osu.Game.Overlays.Mods
} }
} }
public ModSection() protected ModSection()
{ {
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;