1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-11 04:55:09 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Edit/Blueprints/Components/EditNotePiece.cs
2024-11-07 08:41:38 +01:00

39 lines
1.1 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.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Rulesets.Mania.Skinning.Default;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Mania.Edit.Blueprints.Components
{
public partial class EditNotePiece : CompositeDrawable
{
public EditNotePiece()
{
Masking = true;
CornerRadius = 5;
BorderThickness = 9; // organoleptically chosen to look good enough for all default skins
BorderColour = Color4.White;
Height = DefaultNotePiece.NOTE_HEIGHT;
InternalChild = new Box
{
RelativeSizeAxes = Axes.Both,
Alpha = 0,
AlwaysPresent = true,
};
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Colour = colours.Yellow;
}
}
}