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:
parent
b1f2bdd579
commit
02f14ab4b0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user