mirror of https://github.com/ppy/osu
Recalculate path size when path radius changes (#5509)
Recalculate path size when path radius changes
This commit is contained in:
commit
2401d6fcee
|
@ -18,7 +18,7 @@ public abstract class SliderBody : CompositeDrawable
|
|||
|
||||
protected Path Path => path;
|
||||
|
||||
public float PathRadius
|
||||
public virtual float PathRadius
|
||||
{
|
||||
get => path.PathRadius;
|
||||
set => path.PathRadius = value;
|
||||
|
|
|
@ -24,6 +24,20 @@ public class SnakingSliderBody : SliderBody, ISliderProgress
|
|||
public double? SnakedStart { get; private set; }
|
||||
public double? SnakedEnd { get; private set; }
|
||||
|
||||
public override float PathRadius
|
||||
{
|
||||
get => base.PathRadius;
|
||||
set
|
||||
{
|
||||
if (base.PathRadius == value)
|
||||
return;
|
||||
|
||||
base.PathRadius = value;
|
||||
|
||||
Refresh();
|
||||
}
|
||||
}
|
||||
|
||||
public override Vector2 PathOffset => snakedPathOffset;
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in New Issue