1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Rename operation start/end to be more encompassing

This commit is contained in:
Dean Herbert 2020-10-01 16:24:04 +09:00
parent b1f2bdd579
commit 02f14ab4b0
2 changed files with 6 additions and 6 deletions

View File

@ -27,9 +27,9 @@ namespace osu.Game.Rulesets.Osu.Edit
SelectionBox.CanScaleY = canOperate;
}
protected override void OnDragOperationEnded()
protected override void OnOperationEnded()
{
base.OnDragOperationEnded();
base.OnOperationEnded();
referenceOrigin = null;
}

View File

@ -97,8 +97,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
public ComposeSelectionBox CreateSelectionBox()
=> new ComposeSelectionBox
{
OperationStarted = OnDragOperationBegan,
OperationEnded = OnDragOperationEnded,
OperationStarted = OnOperationBegan,
OperationEnded = OnOperationEnded,
OnRotation = e => HandleRotation(e.Delta.X),
OnScale = (e, anchor) => HandleScale(e.Delta, anchor),
@ -107,7 +107,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// <summary>
/// Fired when a drag operation ends from the selection box.
/// </summary>
protected virtual void OnDragOperationBegan()
protected virtual void OnOperationBegan()
{
ChangeHandler.BeginChange();
}
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// <summary>
/// Fired when a drag operation begins from the selection box.
/// </summary>
protected virtual void OnDragOperationEnded()
protected virtual void OnOperationEnded()
{
ChangeHandler.EndChange();
}