1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 02:37:19 +08:00

36 lines
994 B
C#
Raw Normal View History

2017-03-28 10:51:22 +09:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-03-28 10:33:23 +09:00
using OpenTK.Input;
using osu.Game.Modes.Taiko.Objects.Drawable.Pieces;
using osu.Game.Graphics;
using osu.Framework.Allocation;
2017-03-28 10:33:23 +09:00
namespace osu.Game.Modes.Taiko.Objects.Drawable
{
public class DrawableCentreHit : DrawableHit
{
2017-03-29 15:35:22 +09:00
protected override Key[] HitKeys { get; } = { Key.F, Key.J };
2017-03-28 10:33:23 +09:00
private readonly CirclePiece circlePiece;
2017-03-28 10:33:23 +09:00
public DrawableCentreHit(Hit hit)
: base(hit)
{
Add(circlePiece = new CirclePiece
{
Children = new[]
{
new CentreHitSymbolPiece()
}
});
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
circlePiece.AccentColour = colours.PinkDarker;
2017-03-28 10:33:23 +09:00
}
}
}