Rewrite how drawable-specific circle pieces are instantiated.

This commit is contained in:
smoogipooo
2017-03-29 14:01:01 +09:00
parent 1c503edad1
commit 74e12bd95e
10 changed files with 174 additions and 120 deletions

View File

@ -2,6 +2,8 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Graphics;
using OpenTK.Input;
using osu.Game.Modes.Taiko.Objects.Drawable.Pieces;
@ -11,10 +13,24 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
{
protected override List<Key> HitKeys { get; } = new List<Key>(new[] { Key.D, Key.K });
private readonly CirclePiece circlePiece;
public DrawableStrongRimHit(Hit hit)
: base(hit)
{
Add(new RimHitCirclePiece(new StrongCirclePiece()));
Add(circlePiece = new StrongCirclePiece
{
Children = new[]
{
new RimHitSymbolPiece()
}
});
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
circlePiece.AccentColour = colours.BlueDarker;
}
}
}