2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-11-19 17:59:05 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2020-08-18 16:56:48 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2024-11-12 21:26:13 +08:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Framework.Graphics.Shapes;
|
2018-11-19 17:59:05 +08:00
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Edit.Blueprints.Components
|
|
|
|
|
{
|
2024-11-12 21:26:13 +08:00
|
|
|
|
public partial class EditBodyPiece : CompositeDrawable
|
2018-11-19 17:59:05 +08:00
|
|
|
|
{
|
2024-11-12 21:26:13 +08:00
|
|
|
|
private readonly Container border;
|
|
|
|
|
|
|
|
|
|
public EditBodyPiece()
|
|
|
|
|
{
|
|
|
|
|
InternalChildren = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
border = new Container
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Masking = true,
|
|
|
|
|
BorderThickness = 3,
|
|
|
|
|
Child = new Box
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Alpha = 0,
|
|
|
|
|
AlwaysPresent = true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-19 17:59:05 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
|
{
|
2024-11-12 21:26:13 +08:00
|
|
|
|
border.BorderColour = colours.YellowDarker;
|
2018-11-19 17:59:05 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|