2017-03-28 10:18:12 +08: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-29 13:01:01 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Game.Graphics;
|
2017-03-28 10:18:12 +08:00
|
|
|
|
using OpenTK.Input;
|
|
|
|
|
using osu.Game.Modes.Taiko.Objects.Drawable.Pieces;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable
|
|
|
|
|
{
|
|
|
|
|
public class DrawableRimHit : DrawableHit
|
|
|
|
|
{
|
2017-03-29 14:35:22 +08:00
|
|
|
|
protected override Key[] HitKeys { get; } = { Key.D, Key.K };
|
2017-03-28 10:18:12 +08:00
|
|
|
|
|
2017-03-29 13:01:01 +08:00
|
|
|
|
private readonly CirclePiece circlePiece;
|
|
|
|
|
|
2017-03-28 10:18:12 +08:00
|
|
|
|
public DrawableRimHit(Hit hit)
|
|
|
|
|
: base(hit)
|
|
|
|
|
{
|
2017-03-29 13:01:01 +08:00
|
|
|
|
Add(circlePiece = new CirclePiece
|
|
|
|
|
{
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
|
|
|
|
new RimHitSymbolPiece()
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
|
{
|
|
|
|
|
circlePiece.AccentColour = colours.BlueDarker;
|
2017-03-28 10:18:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|