1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:02:58 +08:00

Extract constant for text transition duration

This commit is contained in:
Bartłomiej Dach 2020-12-19 15:17:31 +01:00
parent e2cc401c12
commit 315a957a0c

View File

@ -273,15 +273,17 @@ namespace osu.Game.Screens.Play.HUD
} }
} }
private const double text_transition_duration = 200;
private Color4 textColour private Color4 textColour
{ {
set set
{ {
scoreText.FadeColour(value, 200, Easing.OutQuint); scoreText.FadeColour(value, text_transition_duration, Easing.OutQuint);
accuracyText.FadeColour(value, 200, Easing.OutQuint); accuracyText.FadeColour(value, text_transition_duration, Easing.OutQuint);
comboText.FadeColour(value, 200, Easing.OutQuint); comboText.FadeColour(value, text_transition_duration, Easing.OutQuint);
usernameText.FadeColour(value, 200, Easing.OutQuint); usernameText.FadeColour(value, text_transition_duration, Easing.OutQuint);
positionText.FadeColour(value, 200, Easing.OutQuint); positionText.FadeColour(value, text_transition_duration, Easing.OutQuint);
} }
} }
} }