mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 02:32:55 +08:00
Recalculate path size when path radius changes
This commit is contained in:
parent
2d03c849bf
commit
c01461b951
@ -18,7 +18,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
|
|
||||||
protected Path Path => path;
|
protected Path Path => path;
|
||||||
|
|
||||||
public float PathRadius
|
public virtual float PathRadius
|
||||||
{
|
{
|
||||||
get => path.PathRadius;
|
get => path.PathRadius;
|
||||||
set => path.PathRadius = value;
|
set => path.PathRadius = value;
|
||||||
|
@ -24,6 +24,20 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
public double? SnakedStart { get; private set; }
|
public double? SnakedStart { get; private set; }
|
||||||
public double? SnakedEnd { 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;
|
public override Vector2 PathOffset => snakedPathOffset;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user