1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 08:12:56 +08:00

Reduce children levels in RingPiece

This commit is contained in:
Dean Herbert 2020-09-22 17:34:14 +09:00
parent 77f9ba09a3
commit b1f7cfbd5b
2 changed files with 10 additions and 20 deletions

View File

@ -34,11 +34,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Spinners.Components
Alpha = 0.5f, Alpha = 0.5f,
Child = new Box { RelativeSizeAxes = Axes.Both } Child = new Box { RelativeSizeAxes = Axes.Both }
}, },
ring = new RingPiece ring = new RingPiece()
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre
}
}; };
} }

View File

@ -9,7 +9,7 @@ using osu.Framework.Graphics.Shapes;
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
{ {
public class RingPiece : Container public class RingPiece : CircularContainer
{ {
public RingPiece() public RingPiece()
{ {
@ -18,21 +18,15 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
Anchor = Anchor.Centre; Anchor = Anchor.Centre;
Origin = Anchor.Centre; Origin = Anchor.Centre;
InternalChild = new CircularContainer Masking = true;
{ BorderThickness = 10;
Masking = true, BorderColour = Color4.White;
BorderThickness = 10,
BorderColour = Color4.White, Child = new Box
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Box
{ {
AlwaysPresent = true, AlwaysPresent = true,
Alpha = 0, Alpha = 0,
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both
}
}
}; };
} }
} }