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:
parent
581ec765fb
commit
30bec0876d
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user