1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00

Rename and xmldoc selection completed method

This commit is contained in:
Dean Herbert 2021-04-27 18:57:51 +09:00
parent 7ec5ea1eb5
commit 42255f8d33
2 changed files with 7 additions and 4 deletions

View File

@ -173,7 +173,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (isDraggingBlueprint)
{
UpdateSelection();
DragOperationCompleted();
changeHandler?.EndChange();
}
@ -182,7 +182,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
DragBox.Hide();
}
protected virtual void UpdateSelection()
/// <summary>
/// Called whenever a drag operation completes, before any change transaction is committed.
/// </summary>
protected virtual void DragOperationCompleted()
{
}

View File

@ -108,9 +108,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
base.AddBlueprintFor(item);
}
protected override void UpdateSelection()
protected override void DragOperationCompleted()
{
base.UpdateSelection();
base.DragOperationCompleted();
// handle positional change etc.
foreach (var blueprint in SelectionBlueprints)