Fix icon scale not resetting due to no implicit triggering

This commit is contained in:
Dean Herbert 2018-05-22 15:58:17 +09:00
parent 2ce2bd9788
commit ef55c3c197

View File

@ -133,7 +133,9 @@ namespace osu.Game.Screens.Play.HUD
private void bind() private void bind()
{ {
circularProgress.Current.BindTo(Progress); circularProgress.Current.BindTo(Progress);
Progress.ValueChanged += v => icon.Scale = new Vector2(1 + (float)v * 0.4f); Progress.ValueChanged += v => icon.Scale = new Vector2(1 + (float)v * 0.4f);
Progress.TriggerChange();
} }
private bool pendingAnimation; private bool pendingAnimation;