From 677a1b0e56e47ef8a9b194689e25d7de632b65d5 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 2 Sep 2016 19:49:57 +0900 Subject: [PATCH] Add basic box background to OsuPlayfield. --- osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs index aa2fbe6881..de8137be6c 100644 --- a/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs +++ b/osu.Game/GameModes/Play/Osu/OsuHitRenderer.cs @@ -5,6 +5,7 @@ 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; @@ -72,5 +73,12 @@ namespace osu.Game.GameModes.Play.Osu Anchor = Anchor.Centre; Origin = Anchor.Centre; } + + public override void Load() + { + base.Load(); + + Add(new Box() { SizeMode = InheritMode.XY, Alpha = 0.5f }); + } } }