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