Rename class to signify it is a drawable

This commit is contained in:
Dean Herbert 2019-12-11 20:11:48 +09:00
parent d027c982e4
commit 47b6b01739
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@
namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
{
public class PathControlPointConnection : CompositeDrawable
public class PathControlPointConnectionPiece : CompositeDrawable
{
public PathControlPoint ControlPoint;
@ -21,7 +21,7 @@ public class PathControlPointConnection : CompositeDrawable
private IBindable<Vector2> sliderPosition;
private IBindable<int> pathVersion;
public PathControlPointConnection(Slider slider, PathControlPoint controlPoint)
public PathControlPointConnectionPiece(Slider slider, PathControlPoint controlPoint)
{
this.slider = slider;
ControlPoint = controlPoint;

View File

@ -28,7 +28,7 @@ public class PathControlPointVisualiser : CompositeDrawable, IKeyBindingHandler<
{
internal readonly Container<PathControlPointPiece> Pieces;
private readonly Container<PathControlPointConnection> connections;
private readonly Container<PathControlPointConnectionPiece> connections;
private readonly Slider slider;
@ -50,7 +50,7 @@ public PathControlPointVisualiser(Slider slider, bool allowSelection)
InternalChildren = new Drawable[]
{
connections = new Container<PathControlPointConnection> { RelativeSizeAxes = Axes.Both },
connections = new Container<PathControlPointConnectionPiece> { RelativeSizeAxes = Axes.Both },
Pieces = new Container<PathControlPointPiece> { RelativeSizeAxes = Axes.Both }
};
}
@ -78,7 +78,7 @@ private void addControlPoints(IEnumerable<PathControlPoint> controlPoints)
d.RequestSelection = selectPiece;
}));
connections.Add(new PathControlPointConnection(slider, point));
connections.Add(new PathControlPointConnectionPiece(slider, point));
}
}