1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

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 @@ 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]

View File

@ -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;

View File

@ -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()