mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 15:05:34 +08:00
Remove unused ScreenSpaceStartPosition field
This commit is contained in:
parent
53bdf72592
commit
aa1a226ab7
@ -391,7 +391,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
(Vector2 snappedPosition, double snappedTime) = snapProvider.GetSnappedPosition(ToLocalSpace(movePosition), draggedObject.StartTime);
|
(Vector2 snappedPosition, double snappedTime) = snapProvider.GetSnappedPosition(ToLocalSpace(movePosition), draggedObject.StartTime);
|
||||||
|
|
||||||
// Move the hitobjects
|
// Move the hitobjects
|
||||||
if (!selectionHandler.HandleMovement(new MoveSelectionEvent(movementBlueprint, startPosition, ToScreenSpace(snappedPosition))))
|
if (!selectionHandler.HandleMovement(new MoveSelectionEvent(movementBlueprint, ToScreenSpace(snappedPosition))))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Apply the start time at the newly snapped-to position
|
// Apply the start time at the newly snapped-to position
|
||||||
|
@ -16,11 +16,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly SelectionBlueprint Blueprint;
|
public readonly SelectionBlueprint Blueprint;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The starting screen-space position of the hitobject.
|
|
||||||
/// </summary>
|
|
||||||
public readonly Vector2 ScreenSpaceStartPosition;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The expected screen-space position of the hitobject at the current cursor position.
|
/// The expected screen-space position of the hitobject at the current cursor position.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -29,15 +24,11 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The distance between <see cref="ScreenSpacePosition"/> and the hitobject's current position, in the coordinate-space of the hitobject's parent.
|
/// The distance between <see cref="ScreenSpacePosition"/> and the hitobject's current position, in the coordinate-space of the hitobject's parent.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
|
||||||
/// This does not use <see cref="ScreenSpaceStartPosition"/> and does not represent the cumulative movement distance.
|
|
||||||
/// </remarks>
|
|
||||||
public readonly Vector2 InstantDelta;
|
public readonly Vector2 InstantDelta;
|
||||||
|
|
||||||
public MoveSelectionEvent(SelectionBlueprint blueprint, Vector2 screenSpaceStartPosition, Vector2 screenSpacePosition)
|
public MoveSelectionEvent(SelectionBlueprint blueprint, Vector2 screenSpacePosition)
|
||||||
{
|
{
|
||||||
Blueprint = blueprint;
|
Blueprint = blueprint;
|
||||||
ScreenSpaceStartPosition = screenSpaceStartPosition;
|
|
||||||
ScreenSpacePosition = screenSpacePosition;
|
ScreenSpacePosition = screenSpacePosition;
|
||||||
|
|
||||||
InstantDelta = Blueprint.GetInstantDelta(ScreenSpacePosition);
|
InstantDelta = Blueprint.GetInstantDelta(ScreenSpacePosition);
|
||||||
|
Loading…
Reference in New Issue
Block a user