mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 17:33:22 +08:00
Fix counter initially rolling down from 100% to 0% in minimum achievable mode
This commit is contained in:
parent
7580ab78be
commit
6509d3538c
@ -41,6 +41,12 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}, true);
|
}, 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
|
public enum AccuracyDisplayMode
|
||||||
|
Loading…
Reference in New Issue
Block a user