General cleanup.

This commit is contained in:
smoogipooo 2017-04-10 11:54:01 +09:00
parent 05ac73edcb
commit 30b5b6f7e2
3 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public DrawableDrumRoll(DrumRoll drumRoll)
protected override TaikoPiece CreateMainPiece() => new ElongatedCirclePiece(HitObject.IsStrong)
{
Length = (float)(HitObject.Duration / HitObject.ScrollTime),
PlayfieldLengthReference = () => Parent.DrawSize.X / DrawScale.X
PlayfieldLengthReference = () => Parent.DrawSize.X
};
[BackgroundDependencyLoader]

View File

@ -22,7 +22,7 @@ public abstract class DrawableTaikoHitObject<TaikoHitType> : DrawableHitObject<T
/// </summary>
private readonly List<Key> validKeys = new List<Key>(new[] { Key.D, Key.F, Key.J, Key.K });
public override Vector2 OriginPosition => new Vector2(DrawHeight / 2f);
public override Vector2 OriginPosition => new Vector2(DrawHeight / 2);
protected override Container<Drawable> Content => bodyContainer;

View File

@ -215,6 +215,9 @@ public override void OnJudgement(DrawableHitObject<TaikoHitObject, TaikoJudgemen
hitExplosionContainer.Children.FirstOrDefault(e => e.Judgement == judgedObject.Judgement)?.VisualiseSecondHit();
}
/// <summary>
/// Container for hit objects. Locks width to parent width even through scale.
/// </summary>
private class HitObjectContainer : Container
{
public HitObjectContainer()