1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 01:32:55 +08:00

Don't force the size.

This commit is contained in:
smoogipooo 2017-03-24 19:04:32 +09:00
parent df46d0f446
commit feecf23d9f

View File

@ -67,7 +67,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
set { throw new InvalidOperationException($"{nameof(CirclePiece)} must always use CentreLeft origin."); }
}
public override Vector2 Size => new Vector2(base.Size.X, TaikoHitObject.CIRCLE_RADIUS * 2);
private readonly Container innerLayer;
private readonly Container innerCircleContainer;
@ -82,6 +81,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
this.symbolName = symbolName;
// The "inner layer" overshoots the the CirclePiece by Height/2 px on both sides
Height = TaikoHitObject.CIRCLE_RADIUS * 2;
AddInternal(innerLayer = new Container
{
Name = "Inner Layer",