mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:42:56 +08:00
Move moveSelection into HandleMovement
This commit is contained in:
parent
33985d9e7c
commit
3491021f72
@ -37,9 +37,13 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
|
||||
public override bool HandleMovement(MoveSelectionEvent moveEvent)
|
||||
{
|
||||
bool result = moveSelection(moveEvent.InstantDelta);
|
||||
var hitObjects = selectedMovableObjects;
|
||||
|
||||
foreach (var h in hitObjects)
|
||||
h.Position += moveEvent.InstantDelta;
|
||||
|
||||
moveSelectionInBounds();
|
||||
return result;
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -246,16 +250,6 @@ namespace osu.Game.Rulesets.Osu.Edit
|
||||
return result;
|
||||
}
|
||||
|
||||
private bool moveSelection(Vector2 delta)
|
||||
{
|
||||
var hitObjects = selectedMovableObjects;
|
||||
|
||||
foreach (var h in hitObjects)
|
||||
h.Position += delta;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void moveSelectionInBounds()
|
||||
{
|
||||
var hitObjects = selectedMovableObjects;
|
||||
|
Loading…
Reference in New Issue
Block a user