mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 01:45:35 +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)
|
protected override bool OnClick(ClickEvent e)
|
||||||
{
|
{
|
||||||
OnOperationStarted();
|
TriggerOperationStarted();
|
||||||
Action?.Invoke();
|
Action?.Invoke();
|
||||||
OnOperationEnded();
|
TriggerOperatoinEnded();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user