1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 01:45:35 +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) protected override bool OnClick(ClickEvent e)
{ {
OnOperationStarted(); TriggerOperationStarted();
Action?.Invoke(); Action?.Invoke();
OnOperationEnded(); TriggerOperatoinEnded();
return true; 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); 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) protected override bool OnDragStart(DragStartEvent e)
{ {
OnOperationStarted(); TriggerOperationStarted();
return true; return true;
} }
@ -24,7 +24,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected override void OnDragEnd(DragEndEvent e) protected override void OnDragEnd(DragEndEvent e)
{ {
OnOperationEnded(); TriggerOperatoinEnded();
UpdateHoverState(); UpdateHoverState();
base.OnDragEnd(e); base.OnDragEnd(e);