mirror of
https://github.com/ppy/osu.git
synced 2024-11-07 20:47:26 +08:00
36 lines
994 B
C#
36 lines
994 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using OpenTK.Input;
|
|
using osu.Game.Modes.Taiko.Objects.Drawable.Pieces;
|
|
using osu.Game.Graphics;
|
|
using osu.Framework.Allocation;
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|
{
|
|
public class DrawableCentreHit : DrawableHit
|
|
{
|
|
protected override Key[] HitKeys { get; } = { Key.F, Key.J };
|
|
|
|
private readonly CirclePiece circlePiece;
|
|
|
|
public DrawableCentreHit(Hit hit)
|
|
: base(hit)
|
|
{
|
|
Add(circlePiece = new CirclePiece
|
|
{
|
|
Children = new[]
|
|
{
|
|
new CentreHitSymbolPiece()
|
|
}
|
|
});
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
circlePiece.AccentColour = colours.PinkDarker;
|
|
}
|
|
}
|
|
}
|