mirror of https://github.com/ppy/osu
General cleanup.
This commit is contained in:
parent
05ac73edcb
commit
30b5b6f7e2
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue