mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 05:52:54 +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;
|
SelectionBox.CanScaleY = canOperate;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDragOperationEnded()
|
protected override void OnOperationEnded()
|
||||||
{
|
{
|
||||||
base.OnDragOperationEnded();
|
base.OnOperationEnded();
|
||||||
referenceOrigin = null;
|
referenceOrigin = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,8 +97,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
public ComposeSelectionBox CreateSelectionBox()
|
public ComposeSelectionBox CreateSelectionBox()
|
||||||
=> new ComposeSelectionBox
|
=> new ComposeSelectionBox
|
||||||
{
|
{
|
||||||
OperationStarted = OnDragOperationBegan,
|
OperationStarted = OnOperationBegan,
|
||||||
OperationEnded = OnDragOperationEnded,
|
OperationEnded = OnOperationEnded,
|
||||||
|
|
||||||
OnRotation = e => HandleRotation(e.Delta.X),
|
OnRotation = e => HandleRotation(e.Delta.X),
|
||||||
OnScale = (e, anchor) => HandleScale(e.Delta, anchor),
|
OnScale = (e, anchor) => HandleScale(e.Delta, anchor),
|
||||||
@ -107,7 +107,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired when a drag operation ends from the selection box.
|
/// Fired when a drag operation ends from the selection box.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnDragOperationBegan()
|
protected virtual void OnOperationBegan()
|
||||||
{
|
{
|
||||||
ChangeHandler.BeginChange();
|
ChangeHandler.BeginChange();
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired when a drag operation begins from the selection box.
|
/// Fired when a drag operation begins from the selection box.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnDragOperationEnded()
|
protected virtual void OnOperationEnded()
|
||||||
{
|
{
|
||||||
ChangeHandler.EndChange();
|
ChangeHandler.EndChange();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user