1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 19:02:57 +08:00

Make MusicController a focused overlay.

This commit is contained in:
Dean Herbert 2017-02-09 13:53:55 +09:00
parent 581ec765fb
commit 30bec0876d
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -27,7 +27,7 @@ using osu.Game.Graphics.Sprites;
namespace osu.Game.Overlays namespace osu.Game.Overlays
{ {
public class MusicController : OverlayContainer public class MusicController : FocusedOverlayContainer
{ {
private MusicControllerBackground backgroundSprite; private MusicControllerBackground backgroundSprite;
private DragBar progress; private DragBar progress;
@ -380,12 +380,16 @@ namespace osu.Game.Overlays
protected override void PopIn() protected override void PopIn()
{ {
base.PopIn();
FadeIn(transition_length, EasingTypes.OutQuint); FadeIn(transition_length, EasingTypes.OutQuint);
dragContainer.ScaleTo(1, transition_length, EasingTypes.OutElastic); dragContainer.ScaleTo(1, transition_length, EasingTypes.OutElastic);
} }
protected override void PopOut() protected override void PopOut()
{ {
base.PopOut();
FadeOut(transition_length, EasingTypes.OutQuint); FadeOut(transition_length, EasingTypes.OutQuint);
dragContainer.ScaleTo(0.9f, transition_length, EasingTypes.OutQuint); dragContainer.ScaleTo(0.9f, transition_length, EasingTypes.OutQuint);
} }