Fix counter initially rolling down from 100% to 0% in minimum achievable mode

This commit is contained in:
Bartłomiej Dach
2022-12-30 21:12:29 +01:00
parent 7580ab78be
commit 6509d3538c

View File

@ -41,6 +41,12 @@ namespace osu.Game.Screens.Play.HUD
break;
}
}, true);
// if the accuracy counter is using the "minimum achievable" mode,
// then its initial value is 0%, rather than the 100% that the base PercentageCounter assumes.
// to counteract this, manually finish transforms on DisplayedCount once after the initial callback above
// to stop it from rolling down from 100% to 0%.
FinishTransforms(targetMember: nameof(DisplayedCount));
}
public enum AccuracyDisplayMode