mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 22:27:25 +08:00
OnOperation -> TriggerOperation
This commit is contained in:
parent
12c1ded7a8
commit
2a67361dc0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user