mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Merge remote-tracking branch 'origin/master' into fix-mask-disposal
# Conflicts: # osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/PathControlPointVisualiser.cs # osu.Game.Rulesets.Osu/Edit/Blueprints/Sliders/Components/SliderCirclePiece.cs # osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSlider.cs # osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSliderHead.cs # osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSliderTail.cs # osu.Game.Rulesets.Osu/Objects/Slider.cs
This commit is contained in:
@ -51,34 +51,22 @@ namespace osu.Game.Rulesets.Osu.Objects
|
||||
}
|
||||
}
|
||||
|
||||
public SliderPath Path { get; } = new SliderPath();
|
||||
private SliderPath path;
|
||||
|
||||
public readonly Bindable<Vector2[]> ControlPointsBindable = new Bindable<Vector2[]>(Array.Empty<Vector2>());
|
||||
|
||||
public Vector2[] ControlPoints
|
||||
public SliderPath Path
|
||||
{
|
||||
get => ControlPointsBindable;
|
||||
get => path;
|
||||
set
|
||||
{
|
||||
ControlPointsBindable.Value = value;
|
||||
Path.ControlPoints = value;
|
||||
path = value;
|
||||
|
||||
PathChanged?.Invoke(value);
|
||||
if (TailCircle != null)
|
||||
TailCircle.Position = EndPosition;
|
||||
}
|
||||
}
|
||||
|
||||
public PathType PathType
|
||||
{
|
||||
get { return Path.PathType; }
|
||||
set { Path.PathType = value; }
|
||||
}
|
||||
|
||||
public double Distance
|
||||
{
|
||||
get { return Path.Distance; }
|
||||
set { Path.Distance = value; }
|
||||
}
|
||||
public double Distance => Path.Distance;
|
||||
|
||||
public override Vector2 Position
|
||||
{
|
||||
|
Reference in New Issue
Block a user