diff --git a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs index de8137be6c..2850ca912a 100644 --- a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs +++ b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs @@ -4,12 +4,9 @@ using System.Collections.Generic; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics; -using osu.Framework.Graphics.Containers; -using osu.Framework.Graphics.Drawables; using osu.Framework.Graphics.Transformations; using osu.Game.Beatmaps.Objects; using osu.Game.Beatmaps.Objects.Osu; -using OpenTK; namespace osu.Game.GameModes.Play.Osu { @@ -64,21 +61,4 @@ namespace osu.Game.GameModes.Play.Osu } } } - - public class OsuPlayfield : Container - { - public OsuPlayfield() - { - Size = new Vector2(512, 384); - Anchor = Anchor.Centre; - Origin = Anchor.Centre; - } - - public override void Load() - { - base.Load(); - - Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.5f }); - } - } } diff --git a/osu.Game/GameModes/Play/Osu/OsuPlayfield.cs b/osu.Game/GameModes/Play/Osu/OsuPlayfield.cs new file mode 100644 index 0000000000..d8290c0ffa --- /dev/null +++ b/osu.Game/GameModes/Play/Osu/OsuPlayfield.cs @@ -0,0 +1,27 @@ +//Copyright (c) 2007-2016 ppy Pty Ltd . +//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Framework.Graphics; +using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Drawables; +using OpenTK; + +namespace osu.Game.GameModes.Play.Osu +{ + public class OsuPlayfield : Container + { + public OsuPlayfield() + { + Size = new Vector2(512, 384); + Anchor = Anchor.Centre; + Origin = Anchor.Centre; + } + + public override void Load() + { + base.Load(); + + Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.5f }); + } + } +} \ No newline at end of file diff --git a/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs b/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs index a12faf59b2..13b6004ff6 100644 --- a/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs +++ b/osu.Game/GameModes/Play/Taiko/TaikoHitRenderer.cs @@ -5,14 +5,11 @@ using System; using System.Collections.Generic; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics; -using osu.Framework.Graphics.Containers; -using osu.Framework.Graphics.Drawables; using osu.Framework.Graphics.Transformations; using osu.Game.Beatmaps.Objects; using osu.Game.Beatmaps.Objects.Osu; using osu.Game.Beatmaps.Objects.Taiko; using OpenTK; -using OpenTK.Graphics; namespace osu.Game.GameModes.Play.Taiko { @@ -86,31 +83,4 @@ namespace osu.Game.GameModes.Play.Taiko } } } - - public class TaikoPlayfield : Container - { - public TaikoPlayfield() - { - SizeMode = InheritMode.X; - Size = new Vector2(1, 100); - Anchor = Anchor.Centre; - Origin = Anchor.Centre; - } - - public override void Load() - { - base.Load(); - - Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.5f }); - - Add(new Sprite(Game.Textures.Get(@"menu-osu")) - { - Origin = Anchor.Centre, - Scale = 0.2f, - PositionMode = InheritMode.XY, - Position = new Vector2(0.1f, 0.5f), - Colour = Color4.Gray - }); - } - } } diff --git a/osu.Game/GameModes/Play/Taiko/TaikoPlayfield.cs b/osu.Game/GameModes/Play/Taiko/TaikoPlayfield.cs new file mode 100644 index 0000000000..09388249cf --- /dev/null +++ b/osu.Game/GameModes/Play/Taiko/TaikoPlayfield.cs @@ -0,0 +1,39 @@ +//Copyright (c) 2007-2016 ppy Pty Ltd . +//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Framework.Graphics; +using osu.Framework.Graphics.Containers; +using osu.Framework.Graphics.Drawables; +using osu.Framework.Graphics.Sprites; +using OpenTK; +using OpenTK.Graphics; + +namespace osu.Game.GameModes.Play.Taiko +{ + public class TaikoPlayfield : Container + { + public TaikoPlayfield() + { + SizeMode = InheritMode.X; + Size = new Vector2(1, 100); + Anchor = Anchor.Centre; + Origin = Anchor.Centre; + } + + public override void Load() + { + base.Load(); + + Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.5f }); + + Add(new Sprite(Game.Textures.Get(@"menu-osu")) + { + Origin = Anchor.Centre, + Scale = 0.2f, + PositionMode = InheritMode.XY, + Position = new Vector2(0.1f, 0.5f), + Colour = Color4.Gray + }); + } + } +} \ No newline at end of file diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index b4225dbfb4..1bd72749bb 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -75,8 +75,10 @@ + +