1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Merge pull request #12429 from EVAST9919/editor-fix

Simplify ExtendableCircle even more
This commit is contained in:
Dean Herbert 2021-04-15 22:36:32 +09:00 committed by GitHub
commit 6bfde9c1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,7 +345,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
/// </summary>
public class ExtendableCircle : CompositeDrawable
{
private readonly CircularContainer content;
private readonly Circle content;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => content.ReceivePositionalInputAt(screenSpacePos);
@ -354,19 +354,14 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
public ExtendableCircle()
{
Padding = new MarginPadding { Horizontal = -circle_size / 2f };
InternalChild = content = new CircularContainer
InternalChild = content = new Circle
{
RelativeSizeAxes = Axes.Both,
Masking = true,
EdgeEffect = new EdgeEffectParameters
{
Type = EdgeEffectType.Shadow,
Radius = 5,
Colour = Color4.Black.Opacity(0.4f)
},
Child = new Box
{
RelativeSizeAxes = Axes.Both
}
};
}