From 5fa0d9f6f1bd70754c5196e45047c92e93936141 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 6 Apr 2017 13:58:32 +0900 Subject: [PATCH 1/4] Update CodeFileSanity. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 0d5878aa77..cc6dfb9c88 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,7 @@ install: - cmd: git submodule update --init --recursive - cmd: choco install resharper-clt -y - cmd: choco install nvika -y - - cmd: appveyor DownloadFile https://github.com/peppy/CodeFileSanity/releases/download/v0.1/CodeFileSanity.exe + - cmd: appveyor DownloadFile https://github.com/peppy/CodeFileSanity/releases/download/v0.2.2/CodeFileSanity.exe before_build: - cmd: CodeFileSanity.exe - cmd: nuget restore From 9b1e010dcc0e33c5dad70d009b4643d08151e653 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 6 Apr 2017 16:05:41 +0800 Subject: [PATCH 2/4] Fix filename mismatch. --- .../{IBeatmapCoverter.cs => IBeatmapConverter.cs} | 0 .../{BaseDifficulty.cs => BeatmapDifficulty.cs} | 0 ...abControlCheckBox.cs => OsuTabControlCheckbox.cs} | 0 ...PopupDialogOKButton.cs => PopupDialogOkButton.cs} | 0 osu.Game/Screens/{OsuGameScreen.cs => OsuScreen.cs} | 0 .../{GameScreenWhiteBox.cs => ScreenWhiteBox.cs} | 0 osu.Game/osu.Game.csproj | 12 ++++++------ 7 files changed, 6 insertions(+), 6 deletions(-) rename osu.Game/Beatmaps/{IBeatmapCoverter.cs => IBeatmapConverter.cs} (100%) rename osu.Game/Database/{BaseDifficulty.cs => BeatmapDifficulty.cs} (100%) rename osu.Game/Graphics/UserInterface/{OsuTabControlCheckBox.cs => OsuTabControlCheckbox.cs} (100%) rename osu.Game/Overlays/Dialog/{PopupDialogOKButton.cs => PopupDialogOkButton.cs} (100%) rename osu.Game/Screens/{OsuGameScreen.cs => OsuScreen.cs} (100%) rename osu.Game/Screens/{GameScreenWhiteBox.cs => ScreenWhiteBox.cs} (100%) diff --git a/osu.Game/Beatmaps/IBeatmapCoverter.cs b/osu.Game/Beatmaps/IBeatmapConverter.cs similarity index 100% rename from osu.Game/Beatmaps/IBeatmapCoverter.cs rename to osu.Game/Beatmaps/IBeatmapConverter.cs diff --git a/osu.Game/Database/BaseDifficulty.cs b/osu.Game/Database/BeatmapDifficulty.cs similarity index 100% rename from osu.Game/Database/BaseDifficulty.cs rename to osu.Game/Database/BeatmapDifficulty.cs diff --git a/osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs b/osu.Game/Graphics/UserInterface/OsuTabControlCheckbox.cs similarity index 100% rename from osu.Game/Graphics/UserInterface/OsuTabControlCheckBox.cs rename to osu.Game/Graphics/UserInterface/OsuTabControlCheckbox.cs diff --git a/osu.Game/Overlays/Dialog/PopupDialogOKButton.cs b/osu.Game/Overlays/Dialog/PopupDialogOkButton.cs similarity index 100% rename from osu.Game/Overlays/Dialog/PopupDialogOKButton.cs rename to osu.Game/Overlays/Dialog/PopupDialogOkButton.cs diff --git a/osu.Game/Screens/OsuGameScreen.cs b/osu.Game/Screens/OsuScreen.cs similarity index 100% rename from osu.Game/Screens/OsuGameScreen.cs rename to osu.Game/Screens/OsuScreen.cs diff --git a/osu.Game/Screens/GameScreenWhiteBox.cs b/osu.Game/Screens/ScreenWhiteBox.cs similarity index 100% rename from osu.Game/Screens/GameScreenWhiteBox.cs rename to osu.Game/Screens/ScreenWhiteBox.cs diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 1577ed2229..6dd5ec3088 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -74,7 +74,7 @@ - + @@ -180,7 +180,7 @@ - + @@ -208,7 +208,7 @@ - + @@ -282,7 +282,7 @@ - + @@ -346,7 +346,7 @@ - + @@ -363,7 +363,7 @@ - + From 411988f038b63a3c8fa42971f26f8e04a7470fa2 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 6 Apr 2017 16:21:18 +0800 Subject: [PATCH 3/4] Remove all trailing whitespaces in this repo. --- osu.Desktop.Deploy/Properties/AssemblyInfo.cs | 10 +++++----- osu.Desktop.VisualTests/Beatmaps/TestWorkingBeatmap.cs | 2 +- osu.Desktop.VisualTests/Platform/TestStorage.cs | 2 +- .../Tests/TestCaseTaikoPlayfield.cs | 2 +- osu.Desktop/Properties/AssemblyInfo.cs | 6 +++--- osu.Game.Modes.Catch/Properties/AssemblyInfo.cs | 10 +++++----- osu.Game.Modes.Mania/Properties/AssemblyInfo.cs | 10 +++++----- .../Objects/Drawables/Connections/FollowPoint.cs | 2 +- .../Objects/Drawables/DrawableSliderTick.cs | 2 +- osu.Game.Modes.Osu/Properties/AssemblyInfo.cs | 10 +++++----- osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs | 2 +- osu.Game.Modes.Taiko/Properties/AssemblyInfo.cs | 10 +++++----- osu.Game.Modes.Taiko/UI/HitTarget.cs | 2 +- osu.Game.Modes.Taiko/UI/InputDrum.cs | 2 +- osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs | 2 +- osu.Game/Beatmaps/Drawables/BeatmapGroup.cs | 2 +- osu.Game/Beatmaps/WorkingBeatmap.cs | 6 +++--- osu.Game/Configuration/OsuConfigManager.cs | 2 +- osu.Game/Database/ScoreDatabase.cs | 2 +- osu.Game/Graphics/Containers/ParallaxContainer.cs | 4 ++-- osu.Game/Modes/Objects/BezierApproximator.cs | 2 +- osu.Game/Modes/Objects/CircularArcApproximator.cs | 2 +- osu.Game/Modes/UI/ModIcon.cs | 4 ++-- osu.Game/Overlays/Options/OptionsSection.cs | 2 +- .../Options/Sections/General/LanguageOptions.cs | 2 +- .../Sections/Graphics/SongSelectGraphicsOptions.cs | 2 +- .../Options/Sections/Online/NotificationsOptions.cs | 2 +- .../Overlays/Options/Sections/Online/PrivacyOptions.cs | 2 +- osu.Game/Overlays/Options/Sections/SkinSection.cs | 2 +- osu.Game/Overlays/Options/Sidebar.cs | 4 ++-- osu.Game/Overlays/OptionsOverlay.cs | 4 ++-- osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs | 2 +- osu.Game/Properties/AssemblyInfo.cs | 10 +++++----- osu.Game/Screens/Select/BeatmapDetailArea.cs | 2 +- 34 files changed, 66 insertions(+), 66 deletions(-) diff --git a/osu.Desktop.Deploy/Properties/AssemblyInfo.cs b/osu.Desktop.Deploy/Properties/AssemblyInfo.cs index 8df81400c1..5841c1b082 100644 --- a/osu.Desktop.Deploy/Properties/AssemblyInfo.cs +++ b/osu.Desktop.Deploy/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu.Desktop.Deploy")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Desktop.VisualTests/Beatmaps/TestWorkingBeatmap.cs b/osu.Desktop.VisualTests/Beatmaps/TestWorkingBeatmap.cs index f135a6affa..5e3f5b5133 100644 --- a/osu.Desktop.VisualTests/Beatmaps/TestWorkingBeatmap.cs +++ b/osu.Desktop.VisualTests/Beatmaps/TestWorkingBeatmap.cs @@ -16,7 +16,7 @@ public TestWorkingBeatmap(Beatmap beatmap) } private readonly Beatmap beatmap; - + protected override Beatmap GetBeatmap() => beatmap; protected override Texture GetBackground() => null; protected override Track GetTrack() => null; diff --git a/osu.Desktop.VisualTests/Platform/TestStorage.cs b/osu.Desktop.VisualTests/Platform/TestStorage.cs index c5502d5d5d..f711ddac24 100644 --- a/osu.Desktop.VisualTests/Platform/TestStorage.cs +++ b/osu.Desktop.VisualTests/Platform/TestStorage.cs @@ -15,7 +15,7 @@ public class TestStorage : DesktopStorage public TestStorage(string baseName) : base(baseName) { } - + public override SQLiteConnection GetDatabase(string name) { ISQLitePlatform platform; diff --git a/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs b/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs index d0a35b7b3e..88a037afee 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs @@ -106,7 +106,7 @@ private void addSwell(double duration = default_duration) ScrollTime = scroll_time })); } - + private void addDrumRoll(bool strong, double duration = default_duration) { addBarLine(true); diff --git a/osu.Desktop/Properties/AssemblyInfo.cs b/osu.Desktop/Properties/AssemblyInfo.cs index eacfc996d5..fe7ad20124 100644 --- a/osu.Desktop/Properties/AssemblyInfo.cs +++ b/osu.Desktop/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu!lazer")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] diff --git a/osu.Game.Modes.Catch/Properties/AssemblyInfo.cs b/osu.Game.Modes.Catch/Properties/AssemblyInfo.cs index 07a088e1e9..1d25411e73 100644 --- a/osu.Game.Modes.Catch/Properties/AssemblyInfo.cs +++ b/osu.Game.Modes.Catch/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu.Game.Modes.Catch")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Game.Modes.Mania/Properties/AssemblyInfo.cs b/osu.Game.Modes.Mania/Properties/AssemblyInfo.cs index 6cfa3c42b3..11c8290f1b 100644 --- a/osu.Game.Modes.Mania/Properties/AssemblyInfo.cs +++ b/osu.Game.Modes.Mania/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu.Game.Modes.Mania")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPoint.cs b/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPoint.cs index efbd5b291a..7815e3ba41 100644 --- a/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPoint.cs +++ b/osu.Game.Modes.Osu/Objects/Drawables/Connections/FollowPoint.cs @@ -32,7 +32,7 @@ public FollowPoint() Colour = Color4.White.Opacity(0.2f), Radius = 4, }; - + Children = new Drawable[] { new Box diff --git a/osu.Game.Modes.Osu/Objects/Drawables/DrawableSliderTick.cs b/osu.Game.Modes.Osu/Objects/Drawables/DrawableSliderTick.cs index 245809c584..188306c857 100644 --- a/osu.Game.Modes.Osu/Objects/Drawables/DrawableSliderTick.cs +++ b/osu.Game.Modes.Osu/Objects/Drawables/DrawableSliderTick.cs @@ -57,7 +57,7 @@ protected override void CheckJudgement(bool userTriggered) Judgement.Score = Tracking ? OsuScoreResult.SliderTick : OsuScoreResult.Miss; } } - + protected override void UpdatePreemptState() { var animIn = Math.Min(150, sliderTick.StartTime - FadeInTime); diff --git a/osu.Game.Modes.Osu/Properties/AssemblyInfo.cs b/osu.Game.Modes.Osu/Properties/AssemblyInfo.cs index 61e6ae6f7a..791c9b594d 100644 --- a/osu.Game.Modes.Osu/Properties/AssemblyInfo.cs +++ b/osu.Game.Modes.Osu/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu.Game.Mode.Osu")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs index 898ace935e..aee06ad796 100644 --- a/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs +++ b/osu.Game.Modes.Taiko/Beatmaps/TaikoBeatmapConverter.cs @@ -72,7 +72,7 @@ private IEnumerable convertHitObject(HitObject obj, Beatmap beat double speedAdjustment = beatmap.TimingInfo.SpeedMultiplierAt(obj.StartTime); double speedAdjustedBeatLength = beatmap.TimingInfo.BeatLengthAt(obj.StartTime) * speedAdjustment; - + // The true distance, accounting for any repeats. This ends up being the drum roll distance later double distance = distanceData.Distance * repeats * legacy_velocity_multiplier; diff --git a/osu.Game.Modes.Taiko/Properties/AssemblyInfo.cs b/osu.Game.Modes.Taiko/Properties/AssemblyInfo.cs index 61eca30b5f..94ec895707 100644 --- a/osu.Game.Modes.Taiko/Properties/AssemblyInfo.cs +++ b/osu.Game.Modes.Taiko/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu.Game.Modes.Taiko")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Game.Modes.Taiko/UI/HitTarget.cs b/osu.Game.Modes.Taiko/UI/HitTarget.cs index 27562cd916..a17480628d 100644 --- a/osu.Game.Modes.Taiko/UI/HitTarget.cs +++ b/osu.Game.Modes.Taiko/UI/HitTarget.cs @@ -19,7 +19,7 @@ internal class HitTarget : Container /// Diameter of normal hit object circles. /// private const float normal_diameter = TaikoHitObject.CIRCLE_RADIUS * 2; - + /// /// Diameter of strong hit object circles. /// diff --git a/osu.Game.Modes.Taiko/UI/InputDrum.cs b/osu.Game.Modes.Taiko/UI/InputDrum.cs index 5eea08ad8b..0c1e1105cb 100644 --- a/osu.Game.Modes.Taiko/UI/InputDrum.cs +++ b/osu.Game.Modes.Taiko/UI/InputDrum.cs @@ -60,7 +60,7 @@ private class TaikoHalfDrum : Container /// The key to be used for the rim of the half-drum. /// public Key RimKey; - + /// /// The key to be used for the centre of the half-drum. /// diff --git a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs index 39fb1bfa8a..5d15b43761 100644 --- a/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs +++ b/osu.Game.Tests/Beatmaps/IO/ImportBeatmapTest.cs @@ -97,7 +97,7 @@ public void TestImportWhenFileOpen() ensureLoaded(osu); Assert.IsTrue(File.Exists(temp)); - + File.Delete(temp); Assert.IsFalse(File.Exists(temp)); diff --git a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs index ac0ab9966f..8c1378cae4 100644 --- a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs +++ b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs @@ -69,7 +69,7 @@ public BeatmapGroup(BeatmapSetInfo beatmapSet, BeatmapDatabase database) GainedSelection = headerGainedSelection, RelativeSizeAxes = Axes.X, }; - + BeatmapSet.Beatmaps = BeatmapSet.Beatmaps.OrderBy(b => b.StarDifficulty).ToList(); BeatmapPanels = BeatmapSet.Beatmaps.Select(b => new BeatmapPanel(b) { diff --git a/osu.Game/Beatmaps/WorkingBeatmap.cs b/osu.Game/Beatmaps/WorkingBeatmap.cs index 74c8866596..5bea1d0986 100644 --- a/osu.Game/Beatmaps/WorkingBeatmap.cs +++ b/osu.Game/Beatmaps/WorkingBeatmap.cs @@ -40,7 +40,7 @@ protected WorkingBeatmap(BeatmapInfo beatmapInfo, BeatmapSetInfo beatmapSetInfo, protected abstract Beatmap GetBeatmap(); protected abstract Texture GetBackground(); protected abstract Track GetTrack(); - + private Beatmap beatmap; private readonly object beatmapLock = new object(); public Beatmap Beatmap @@ -53,7 +53,7 @@ public Beatmap Beatmap } } } - + private readonly object backgroundLock = new object(); private Texture background; public Texture Background @@ -87,7 +87,7 @@ public void TransferTo(WorkingBeatmap other) if (track != null && BeatmapInfo.AudioEquals(other.BeatmapInfo)) other.track = track; } - + public virtual void Dispose() { track?.Dispose(); diff --git a/osu.Game/Configuration/OsuConfigManager.cs b/osu.Game/Configuration/OsuConfigManager.cs index 9a2cda2d80..377fc8c0ee 100644 --- a/osu.Game/Configuration/OsuConfigManager.cs +++ b/osu.Game/Configuration/OsuConfigManager.cs @@ -13,7 +13,7 @@ public class OsuConfigManager : ConfigManager protected override void InitialiseDefaults() { #pragma warning disable CS0612 // Type or member is obsolete - + Set(OsuConfig.Username, string.Empty); Set(OsuConfig.Token, string.Empty); diff --git a/osu.Game/Database/ScoreDatabase.cs b/osu.Game/Database/ScoreDatabase.cs index 5ce3ff273e..642bb4aff6 100644 --- a/osu.Game/Database/ScoreDatabase.cs +++ b/osu.Game/Database/ScoreDatabase.cs @@ -104,7 +104,7 @@ public Score ReadReplayFile(string replayFilename) score.Replay = score.CreateReplay(reader); } } - + return score; } } diff --git a/osu.Game/Graphics/Containers/ParallaxContainer.cs b/osu.Game/Graphics/Containers/ParallaxContainer.cs index a143618807..8352656f8e 100644 --- a/osu.Game/Graphics/Containers/ParallaxContainer.cs +++ b/osu.Game/Graphics/Containers/ParallaxContainer.cs @@ -56,8 +56,8 @@ protected override void Update() { base.Update(); - if (parallaxEnabled) - { + if (parallaxEnabled) + { Vector2 offset = input.CurrentState.Mouse == null ? Vector2.Zero : ToLocalSpace(input.CurrentState.Mouse.NativeState.Position) - DrawSize / 2; content.MoveTo(offset * ParallaxAmount, firstUpdate ? 0 : 1000, EasingTypes.OutQuint); content.Scale = new Vector2(1 + ParallaxAmount); diff --git a/osu.Game/Modes/Objects/BezierApproximator.cs b/osu.Game/Modes/Objects/BezierApproximator.cs index ee8e9b0e06..6688e6b2ce 100644 --- a/osu.Game/Modes/Objects/BezierApproximator.cs +++ b/osu.Game/Modes/Objects/BezierApproximator.cs @@ -109,7 +109,7 @@ public List CreateBezier() // "toFlatten" contains all the curves which are not yet approximated well enough. // We use a stack to emulate recursion without the risk of running into a stack overflow. - // (More specifically, we iteratively and adaptively refine our curve with a + // (More specifically, we iteratively and adaptively refine our curve with a // Depth-first search // over the tree resulting from the subdivisions we make.) toFlatten.Push(controlPoints.ToArray()); diff --git a/osu.Game/Modes/Objects/CircularArcApproximator.cs b/osu.Game/Modes/Objects/CircularArcApproximator.cs index 310b923b0b..73db5fab29 100644 --- a/osu.Game/Modes/Objects/CircularArcApproximator.cs +++ b/osu.Game/Modes/Objects/CircularArcApproximator.cs @@ -66,7 +66,7 @@ public List CreateArc() double dir = 1; double thetaRange = thetaEnd - thetaStart; - // Decide in which direction to draw the circle, depending on which side of + // Decide in which direction to draw the circle, depending on which side of // AC B lies. Vector2 orthoAtoC = c - a; orthoAtoC = new Vector2(orthoAtoC.Y, -orthoAtoC.X); diff --git a/osu.Game/Modes/UI/ModIcon.cs b/osu.Game/Modes/UI/ModIcon.cs index 35459985c9..1e0aa89a41 100644 --- a/osu.Game/Modes/UI/ModIcon.cs +++ b/osu.Game/Modes/UI/ModIcon.cs @@ -26,7 +26,7 @@ public float IconSize reapplySize(); } } - + public new Color4 Colour { get @@ -38,7 +38,7 @@ public float IconSize background.Colour = value; } } - + public FontAwesome Icon { get diff --git a/osu.Game/Overlays/Options/OptionsSection.cs b/osu.Game/Overlays/Options/OptionsSection.cs index 777a4fe703..d5dafad9ba 100644 --- a/osu.Game/Overlays/Options/OptionsSection.cs +++ b/osu.Game/Overlays/Options/OptionsSection.cs @@ -70,7 +70,7 @@ protected OptionsSection() }, }); } - + [BackgroundDependencyLoader] private void load(OsuColour colours) { diff --git a/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs b/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs index dc29b56f44..98b67342cb 100644 --- a/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs +++ b/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs @@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Options.Sections.General public class LanguageOptions : OptionsSubsection { protected override string Header => "Language"; - + [BackgroundDependencyLoader] private void load(OsuConfigManager config) { diff --git a/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs index d4855a1619..cbaeebcee3 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs @@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Options.Sections.Graphics public class SongSelectGraphicsOptions : OptionsSubsection { protected override string Header => "Song Select"; - + [BackgroundDependencyLoader] private void load(OsuConfigManager config) { diff --git a/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs b/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs index 4614210e9f..350121db16 100644 --- a/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs @@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Options.Sections.Online public class NotificationsOptions : OptionsSubsection { protected override string Header => "Notifications"; - + [BackgroundDependencyLoader] private void load(OsuConfigManager config) { diff --git a/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs b/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs index fb2adbb2ac..5c4d4c3502 100644 --- a/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs @@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Options.Sections.Online public class PrivacyOptions : OptionsSubsection { protected override string Header => "Privacy"; - + [BackgroundDependencyLoader] private void load(OsuConfigManager config) { diff --git a/osu.Game/Overlays/Options/Sections/SkinSection.cs b/osu.Game/Overlays/Options/Sections/SkinSection.cs index 0ee561c1ad..78f4f1e380 100644 --- a/osu.Game/Overlays/Options/Sections/SkinSection.cs +++ b/osu.Game/Overlays/Options/Sections/SkinSection.cs @@ -15,7 +15,7 @@ public class SkinSection : OptionsSection { public override string Header => "Skin"; public override FontAwesome Icon => FontAwesome.fa_paint_brush; - + [BackgroundDependencyLoader] private void load(OsuConfigManager config) { diff --git a/osu.Game/Overlays/Options/Sidebar.cs b/osu.Game/Overlays/Options/Sidebar.cs index 5d0eac1cc1..eb489810ad 100644 --- a/osu.Game/Overlays/Options/Sidebar.cs +++ b/osu.Game/Overlays/Options/Sidebar.cs @@ -47,7 +47,7 @@ public Sidebar() } private ScheduledDelegate expandEvent; - + protected override bool OnHover(InputState state) { expandEvent = Scheduler.AddDelayed(() => @@ -57,7 +57,7 @@ protected override bool OnHover(InputState state) }, 750); return true; } - + protected override void OnHoverLost(InputState state) { expandEvent?.Cancel(); diff --git a/osu.Game/Overlays/OptionsOverlay.cs b/osu.Game/Overlays/OptionsOverlay.cs index ee20cea969..0c66cb5881 100644 --- a/osu.Game/Overlays/OptionsOverlay.cs +++ b/osu.Game/Overlays/OptionsOverlay.cs @@ -25,7 +25,7 @@ public class OptionsOverlay : FocusedOverlayContainer public const float SIDEBAR_WIDTH = Sidebar.DEFAULT_WIDTH; private const float width = 400; - + private const float sidebar_padding = 10; private ScrollContainer scrollContainer; @@ -118,7 +118,7 @@ private void load(OsuGame game, OsuColour colours) ).ToArray() } }; - + scrollContainer.Padding = new MarginPadding { Top = game?.Toolbar.DrawHeight ?? 0 }; } diff --git a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs index d20564bd03..e117089166 100644 --- a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs +++ b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs @@ -23,7 +23,7 @@ internal class ToolbarModeSelector : Container private ToolbarModeButton activeButton; public Action OnPlayModeChange; - + public ToolbarModeSelector() { RelativeSizeAxes = Axes.Y; diff --git a/osu.Game/Properties/AssemblyInfo.cs b/osu.Game/Properties/AssemblyInfo.cs index f6bbc91854..4cc9549567 100644 --- a/osu.Game/Properties/AssemblyInfo.cs +++ b/osu.Game/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following +// General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("osu!main")] @@ -16,8 +16,8 @@ [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] @@ -27,11 +27,11 @@ // Version information for an assembly consists of the following four values: // // Major Version -// Minor Version +// Minor Version // Build Number // Revision // -// You can specify all the values or you can default the Build and Revision Numbers +// You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] diff --git a/osu.Game/Screens/Select/BeatmapDetailArea.cs b/osu.Game/Screens/Select/BeatmapDetailArea.cs index 21e4d643f2..dae909f2b7 100644 --- a/osu.Game/Screens/Select/BeatmapDetailArea.cs +++ b/osu.Game/Screens/Select/BeatmapDetailArea.cs @@ -43,7 +43,7 @@ public BeatmapDetailArea() new BeatmapDetailAreaTabControl { RelativeSizeAxes = Axes.X, - OnFilter = (tab, mods) => + OnFilter = (tab, mods) => { switch (tab) { From ff469ee5f657c6f04400851c2965a0b31b1dc4bf Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 6 Apr 2017 16:56:27 +0800 Subject: [PATCH 4/4] Update resources for CodeFileSanity. --- osu-resources | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu-resources b/osu-resources index 0d6dc29473..0cba3cbc16 160000 --- a/osu-resources +++ b/osu-resources @@ -1 +1 @@ -Subproject commit 0d6dc294738d433999c6c68ff61169d3a8e6ce5f +Subproject commit 0cba3cbc167cfe94e07fe5b629c925e190be939e