1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-28 06:12:54 +08:00

Add OnAlreadyDownloading animations.

This commit is contained in:
DrabWeb 2018-06-04 21:07:17 -03:00
parent c524289b24
commit 61e1358410
2 changed files with 16 additions and 0 deletions

View File

@ -68,6 +68,14 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
else
this.FadeIn(200);
};
downloader.OnAlreadyDownloading += () =>
{
Content.MoveToX(-5, 50, Easing.OutSine).Then()
.MoveToX(5, 100, Easing.InOutSine).Then()
.MoveToX(-5, 100, Easing.InOutSine).Then()
.MoveToX(0, 50, Easing.InSine);
};
}
}
}

View File

@ -39,6 +39,14 @@ namespace osu.Game.Overlays.Direct
else
this.FadeIn(200);
};
downloader.OnAlreadyDownloading += () =>
{
Content.MoveToX(-5, 50, Easing.OutSine).Then()
.MoveToX(5, 100, Easing.InOutSine).Then()
.MoveToX(-5, 100, Easing.InOutSine).Then()
.MoveToX(0, 50, Easing.InSine);
};
}
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)