Fix slider ball colour affects follow circle

This commit is contained in:
Andrei Zavatski 2020-03-13 13:42:33 +03:00
parent 70427a19c1
commit 7e9d28b1b1
1 changed files with 8 additions and 1 deletions

View File

@ -23,9 +23,16 @@ public class SliderBall : CircularContainer, ISliderProgress, IRequireHighFreque
{
public Func<OsuAction?> GetInitialHitAction;
public new Color4 Colour
{
get => ball.Colour;
set => ball.Colour = value;
}
private readonly Slider slider;
private readonly Drawable followCircle;
private readonly DrawableSlider drawableSlider;
private readonly CircularContainer ball;
public SliderBall(Slider slider, DrawableSlider drawableSlider = null)
{
@ -47,7 +54,7 @@ public SliderBall(Slider slider, DrawableSlider drawableSlider = null)
Alpha = 0,
Child = new SkinnableDrawable(new OsuSkinComponent(OsuSkinComponents.SliderFollowCircle), _ => new DefaultFollowCircle()),
},
new CircularContainer
ball = new CircularContainer
{
Masking = true,
RelativeSizeAxes = Axes.Both,