mirror of https://github.com/ppy/osu
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||
|
// See the LICENCE file in the repository root for full licence text.
|
||
|
|
||
|
using osu.Framework.Allocation;
|
||
|
using osu.Framework.Extensions.Color4Extensions;
|
||
|
using osu.Framework.Graphics;
|
||
|
using osu.Framework.Graphics.Containers;
|
||
|
using osu.Framework.Graphics.Shapes;
|
||
|
using osu.Game.Graphics;
|
||
|
using osuTK.Graphics;
|
||
|
|
||
|
namespace osu.Game.Rulesets.Taiko.UI
|
||
|
{
|
||
|
internal class PlayfieldBackgroundLeft : CompositeDrawable
|
||
|
{
|
||
|
[BackgroundDependencyLoader]
|
||
|
private void load(OsuColour colours)
|
||
|
{
|
||
|
RelativeSizeAxes = Axes.Both;
|
||
|
InternalChildren = new Drawable[]
|
||
|
{
|
||
|
new Box
|
||
|
{
|
||
|
Colour = colours.Gray1,
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
},
|
||
|
new Box
|
||
|
{
|
||
|
Anchor = Anchor.TopRight,
|
||
|
RelativeSizeAxes = Axes.Y,
|
||
|
Width = 10,
|
||
|
Colour = Framework.Graphics.Colour.ColourInfo.GradientHorizontal(Color4.Black.Opacity(0.6f), Color4.Black.Opacity(0)),
|
||
|
},
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|