mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 15:02:55 +08:00
Don't force the size.
This commit is contained in:
parent
df46d0f446
commit
feecf23d9f
@ -67,7 +67,6 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|||||||
set { throw new InvalidOperationException($"{nameof(CirclePiece)} must always use CentreLeft origin."); }
|
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 innerLayer;
|
||||||
private readonly Container innerCircleContainer;
|
private readonly Container innerCircleContainer;
|
||||||
@ -82,6 +81,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|||||||
this.symbolName = symbolName;
|
this.symbolName = symbolName;
|
||||||
|
|
||||||
// The "inner layer" overshoots the the CirclePiece by Height/2 px on both sides
|
// The "inner layer" overshoots the the CirclePiece by Height/2 px on both sides
|
||||||
|
Height = TaikoHitObject.CIRCLE_RADIUS * 2;
|
||||||
AddInternal(innerLayer = new Container
|
AddInternal(innerLayer = new Container
|
||||||
{
|
{
|
||||||
Name = "Inner Layer",
|
Name = "Inner Layer",
|
||||||
|
Loading…
Reference in New Issue
Block a user