mirror of https://github.com/ppy/osu
Add OnAlreadyDownloading animations.
This commit is contained in:
parent
c524289b24
commit
61e1358410
|
@ -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);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue