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:
parent
2961cccde0
commit
f9c969788a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user