1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 15:17:18 +08:00

24 lines
717 B
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;
2018-11-19 18:59:05 +09:00
using osu.Game.Graphics;
using osu.Game.Rulesets.Mania.Objects.Drawables.Pieces;
namespace osu.Game.Rulesets.Mania.Edit.Blueprints.Components
{
2020-03-31 16:42:35 +09:00
public class EditBodyPiece : DefaultBodyPiece
2018-11-19 18:59:05 +09:00
{
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
2020-03-31 16:42:35 +09:00
AccentColour.Value = colours.Yellow;
Background.Alpha = 0.5f;
2018-11-19 18:59:05 +09:00
}
protected override Drawable CreateForeground() => base.CreateForeground().With(d => d.Alpha = 0);
2018-11-19 18:59:05 +09:00
}
}