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 @@ public DownloadButton(string title, string subtitle, BeatmapSetInfo set, bool no
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 @@ public DownloadButton(BeatmapSetInfo set, bool noVideo = false)
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)