1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 18:42:56 +08:00

Fix progress easing to 0 if aborting after confirmation

This commit is contained in:
smoogipoo 2018-05-22 18:06:40 +09:00
parent 39de807445
commit 0e122468db

View File

@ -151,6 +151,8 @@ namespace osu.Game.Screens.Play.HUD
// avoid starting a new confirm call until we finish animating.
pendingAnimation = true;
Progress.Value = 0;
overlayCircle.ScaleTo(0, 100)
.Then().FadeOut().ScaleTo(1).FadeIn(500)
.OnComplete(a =>
@ -158,8 +160,6 @@ namespace osu.Game.Screens.Play.HUD
icon.ScaleTo(1, 100);
circularProgress.FadeOut(100).OnComplete(_ =>
{
Progress.Value = 0;
bind();
circularProgress.FadeIn();