mirror of
https://github.com/ppy/osu
synced 2025-03-06 11:28:12 +00:00
Move override methods to bottom
This commit is contained in:
parent
16d32f5246
commit
368aca015a
@ -27,33 +27,6 @@ namespace osu.Game.Screens.Select.Options
|
|||||||
|
|
||||||
public override bool BlockScreenWideMouse => false;
|
public override bool BlockScreenWideMouse => false;
|
||||||
|
|
||||||
protected override void PopIn()
|
|
||||||
{
|
|
||||||
base.PopIn();
|
|
||||||
|
|
||||||
this.FadeIn(transition_duration, Easing.OutQuint);
|
|
||||||
|
|
||||||
if (buttonsContainer.Position.X == 1 || Alpha == 0)
|
|
||||||
buttonsContainer.MoveToX(x_position - x_movement);
|
|
||||||
|
|
||||||
holder.ScaleTo(new Vector2(1, 1), transition_duration / 2, Easing.OutQuint);
|
|
||||||
|
|
||||||
buttonsContainer.MoveToX(x_position, transition_duration, Easing.OutQuint);
|
|
||||||
buttonsContainer.TransformSpacingTo(Vector2.Zero, transition_duration, Easing.OutQuint);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void PopOut()
|
|
||||||
{
|
|
||||||
base.PopOut();
|
|
||||||
|
|
||||||
holder.ScaleTo(new Vector2(1, 0), transition_duration / 2, Easing.InSine);
|
|
||||||
|
|
||||||
buttonsContainer.MoveToX(x_position + x_movement, transition_duration, Easing.InSine);
|
|
||||||
buttonsContainer.TransformSpacingTo(new Vector2(200f, 0f), transition_duration, Easing.InSine);
|
|
||||||
|
|
||||||
this.FadeOut(transition_duration, Easing.InQuint);
|
|
||||||
}
|
|
||||||
|
|
||||||
public BeatmapOptionsOverlay()
|
public BeatmapOptionsOverlay()
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
@ -107,5 +80,32 @@ namespace osu.Game.Screens.Select.Options
|
|||||||
|
|
||||||
buttonsContainer.Add(button);
|
buttonsContainer.Add(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void PopIn()
|
||||||
|
{
|
||||||
|
base.PopIn();
|
||||||
|
|
||||||
|
this.FadeIn(transition_duration, Easing.OutQuint);
|
||||||
|
|
||||||
|
if (buttonsContainer.Position.X == 1 || Alpha == 0)
|
||||||
|
buttonsContainer.MoveToX(x_position - x_movement);
|
||||||
|
|
||||||
|
holder.ScaleTo(new Vector2(1, 1), transition_duration / 2, Easing.OutQuint);
|
||||||
|
|
||||||
|
buttonsContainer.MoveToX(x_position, transition_duration, Easing.OutQuint);
|
||||||
|
buttonsContainer.TransformSpacingTo(Vector2.Zero, transition_duration, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void PopOut()
|
||||||
|
{
|
||||||
|
base.PopOut();
|
||||||
|
|
||||||
|
holder.ScaleTo(new Vector2(1, 0), transition_duration / 2, Easing.InSine);
|
||||||
|
|
||||||
|
buttonsContainer.MoveToX(x_position + x_movement, transition_duration, Easing.InSine);
|
||||||
|
buttonsContainer.TransformSpacingTo(new Vector2(200f, 0f), transition_duration, Easing.InSine);
|
||||||
|
|
||||||
|
this.FadeOut(transition_duration, Easing.InQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user