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

OnOperation -> TriggerOperation

This commit is contained in:
Salman Ahmed 2021-05-05 21:50:11 +03:00
parent 12c1ded7a8
commit 2a67361dc0
3 changed files with 6 additions and 6 deletions

View File

@ -46,9 +46,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override bool OnClick(ClickEvent e)
{
OnOperationStarted();
TriggerOperationStarted();
Action?.Invoke();
OnOperationEnded();
TriggerOperatoinEnded();
return true;
}

View File

@ -90,8 +90,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
this.ScaleTo(IsHeld || IsHovered ? 1.5f : 1, TRANSFORM_DURATION, Easing.OutQuint);
}
protected void OnOperationStarted() => OperationStarted?.Invoke();
protected void TriggerOperationStarted() => OperationStarted?.Invoke();
protected void OnOperationEnded() => OperationEnded?.Invoke();
protected void TriggerOperatoinEnded() => OperationEnded?.Invoke();
}
}

View File

@ -12,7 +12,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override bool OnDragStart(DragStartEvent e)
{
OnOperationStarted();
TriggerOperationStarted();
return true;
}
@ -24,7 +24,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override void OnDragEnd(DragEndEvent e)
{
OnOperationEnded();
TriggerOperatoinEnded();
UpdateHoverState();
base.OnDragEnd(e);