mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Rename startPosition to centrePosition
This commit is contained in:
parent
8fb2628f9e
commit
5f0cd356d7
@ -133,8 +133,8 @@ namespace osu.Game.Tests.Visual.Editor
|
||||
|
||||
public new float DistanceSpacing => base.DistanceSpacing;
|
||||
|
||||
public TestBeatSnapGrid(HitObject hitObject, Vector2 startPosition)
|
||||
: base(hitObject, startPosition)
|
||||
public TestBeatSnapGrid(HitObject hitObject, Vector2 centrePosition)
|
||||
: base(hitObject, centrePosition)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// </summary>
|
||||
protected float DistanceSpacing { get; private set; }
|
||||
|
||||
protected readonly Vector2 StartPosition;
|
||||
/// <summary>
|
||||
/// The position which the grid is centred on.
|
||||
/// The first beat snapping tick is located at <see cref="CentrePosition"/> + <see cref="DistanceSpacing"/> in the desired direction.
|
||||
/// </summary>
|
||||
protected readonly Vector2 CentrePosition;
|
||||
|
||||
[Resolved]
|
||||
private IEditorBeatmap beatmap { get; set; }
|
||||
@ -44,10 +48,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
private double startTime;
|
||||
private double beatLength;
|
||||
|
||||
protected BeatSnapGrid(HitObject hitObject, Vector2 startPosition)
|
||||
protected BeatSnapGrid(HitObject hitObject, Vector2 centrePosition)
|
||||
{
|
||||
this.hitObject = hitObject;
|
||||
this.StartPosition = startPosition;
|
||||
this.CentrePosition = centrePosition;
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user