1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-12 17:57:21 +08:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
C#
Raw Normal View History

// 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 18:59:05 +09:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2024-11-12 14:26:13 +01:00
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
2018-11-19 18:59:05 +09:00
using osu.Game.Graphics;
namespace osu.Game.Rulesets.Mania.Edit.Blueprints.Components
{
2024-11-12 14:26:13 +01:00
public partial class EditBodyPiece : CompositeDrawable
2018-11-19 18:59:05 +09:00
{
2024-11-12 14:26:13 +01: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 18:59:05 +09:00
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
2024-11-12 14:26:13 +01:00
border.BorderColour = colours.YellowDarker;
2018-11-19 18:59:05 +09:00
}
}
}