1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 05:22:54 +08:00

Fix keys not reaching full brightness as soon as they should

This commit is contained in:
Dean Herbert 2019-09-12 13:56:23 +09:00
parent 2961cccde0
commit f9c969788a

View File

@ -130,15 +130,17 @@ namespace osu.Game.Screens.Play
private void updateGlowSprite(bool show)
{
double remainingFadeTime = FadeTime * (1 - glowSprite.Alpha);
if (show)
{
glowSprite.FadeIn(FadeTime);
textLayer.FadeColour(KeyDownTextColor, FadeTime);
glowSprite.FadeIn(remainingFadeTime);
textLayer.FadeColour(KeyDownTextColor, remainingFadeTime);
}
else
{
glowSprite.FadeOut(FadeTime);
textLayer.FadeColour(KeyUpTextColor, FadeTime);
glowSprite.FadeOut(remainingFadeTime);
textLayer.FadeColour(KeyUpTextColor, remainingFadeTime);
}
}