From 71b06d7e61024503a7e983860ecfd07412d8585f Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Thu, 15 Apr 2021 15:53:21 +0300 Subject: [PATCH] Simplify ExtendableCircle even more --- .../Components/Timeline/TimelineHitObjectBlueprint.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/osu.Game/Screens/Edit/Compose/Components/Timeline/TimelineHitObjectBlueprint.cs b/osu.Game/Screens/Edit/Compose/Components/Timeline/TimelineHitObjectBlueprint.cs index 1c0d6e5ab6..23069f6079 100644 --- a/osu.Game/Screens/Edit/Compose/Components/Timeline/TimelineHitObjectBlueprint.cs +++ b/osu.Game/Screens/Edit/Compose/Components/Timeline/TimelineHitObjectBlueprint.cs @@ -345,7 +345,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline /// 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 } }; }