mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 12:42:54 +08:00
Inherit VisibilityContainer
and make duration constant protected
This commit is contained in:
parent
7490511ebf
commit
c58ef4230d
@ -15,9 +15,9 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
/// Represents the base appearance for UI controls of the <see cref="SelectionBox"/>,
|
||||
/// such as scale handles, rotation handles, buttons, etc...
|
||||
/// </summary>
|
||||
public abstract class SelectionBoxControl : CompositeDrawable
|
||||
public abstract class SelectionBoxControl : VisibilityContainer
|
||||
{
|
||||
public const double TRANSFORM_DURATION = 100;
|
||||
protected const double TRANSFORM_DURATION = 100;
|
||||
|
||||
public event Action OperationStarted;
|
||||
public event Action OperationEnded;
|
||||
@ -90,6 +90,10 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
base.OnMouseUp(e);
|
||||
}
|
||||
|
||||
protected override void PopIn() => this.FadeIn(TRANSFORM_DURATION, Easing.OutQuint);
|
||||
|
||||
protected override void PopOut() => this.FadeOut(TRANSFORM_DURATION, Easing.OutQuint);
|
||||
|
||||
protected virtual void UpdateHoverState()
|
||||
{
|
||||
if (HandlingMouse)
|
||||
|
Loading…
Reference in New Issue
Block a user