1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:27:29 +08:00

Add black background

This commit is contained in:
Andrei Zavatski 2019-09-14 06:32:00 +03:00
parent a36c808682
commit 9febeb1f3d

View File

@ -4,8 +4,10 @@
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Video;
using osu.Game.Graphics.Containers;
using osuTK.Graphics;
namespace osu.Game.Screens.Play
{
@ -64,7 +66,15 @@ namespace osu.Game.Screens.Play
video.Anchor = Anchor.Centre;
video.Origin = Anchor.Centre;
AddInternal(video);
AddRangeInternal(new Drawable[]
{
new Box
{
RelativeSizeAxes = Axes.Both,
Colour = Color4.Black,
},
video,
});
}
[BackgroundDependencyLoader]