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

@ -4,6 +4,8 @@
using System.Collections.Generic;
using OpenTK.Input;
using osu.Game.Modes.Taiko.Objects.Drawable.Pieces;
using osu.Framework.Allocation;
using osu.Game.Graphics;
namespace osu.Game.Modes.Taiko.Objects.Drawable
{
@ -11,10 +13,24 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable
{
protected override List<Key> HitKeys { get; } = new List<Key>(new[] { Key.F, Key.J });
private readonly CirclePiece circlePiece;
public DrawableStrongCentreHit(Hit hit)
: base(hit)
{
Add(new CentreHitCirclePiece(new StrongCirclePiece()));
Add(circlePiece = new StrongCirclePiece
{
Children = new []
{
new CentreHitSymbolPiece()
}
});
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
circlePiece.AccentColour = colours.PinkDarker;
}
}
}