mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 13:22:55 +08:00
Fix single-frame glitch in SS grade display animation
This commit is contained in:
parent
3ae7104bfe
commit
0125a7ef3b
@ -77,11 +77,10 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
BlurSigma = new Vector2(35),
|
BlurSigma = new Vector2(35),
|
||||||
BypassAutoSizeAxes = Axes.Both,
|
BypassAutoSizeAxes = Axes.Both,
|
||||||
RelativeSizeAxes = Axes.Both,
|
Size = new Vector2(200),
|
||||||
CacheDrawnFrameBuffer = true,
|
CacheDrawnFrameBuffer = true,
|
||||||
Blending = BlendingParameters.Additive,
|
Blending = BlendingParameters.Additive,
|
||||||
Alpha = 0,
|
Alpha = 0,
|
||||||
Size = new Vector2(2f), // increase buffer size to allow for scale
|
|
||||||
Scale = new Vector2(1.8f),
|
Scale = new Vector2(1.8f),
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
@ -122,15 +121,18 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
|
|||||||
}
|
}
|
||||||
|
|
||||||
flash.Colour = OsuColour.ForRank(rank);
|
flash.Colour = OsuColour.ForRank(rank);
|
||||||
flash.FadeIn().Then().FadeOut(1200, Easing.OutQuint);
|
|
||||||
|
|
||||||
if (rank >= ScoreRank.S)
|
if (rank >= ScoreRank.S)
|
||||||
rankText.ScaleTo(1.05f).ScaleTo(1, 3000, Easing.OutQuint);
|
rankText.ScaleTo(1.05f).ScaleTo(1, 3000, Easing.OutQuint);
|
||||||
|
|
||||||
if (rank >= ScoreRank.X)
|
if (rank >= ScoreRank.X)
|
||||||
{
|
{
|
||||||
flash.FadeIn().Then().FadeOut(3000);
|
flash.FadeOutFromOne(3000);
|
||||||
superFlash.FadeIn().Then().FadeOut(800, Easing.OutQuint);
|
superFlash.FadeOutFromOne(800, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
flash.FadeOutFromOne(1200, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user