mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
General cleanup.
This commit is contained in:
parent
05ac73edcb
commit
30b5b6f7e2
@ -49,7 +49,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
|
||||
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 @@ namespace osu.Game.Modes.Taiko.Objects.Drawables
|
||||
/// </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 @@ namespace osu.Game.Modes.Taiko.UI
|
||||
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
Block a user