Rework animation sequence for readability

This commit is contained in:
Bartłomiej Dach 2020-10-20 21:22:47 +02:00
parent 2c7880e9d6
commit 73174961f0

View File

@ -331,18 +331,11 @@ namespace osu.Game.Screens.Play
{
const double epilepsy_display_length = 3000;
pushSequence.Schedule(() =>
{
epilepsyWarning.State.Value = Visibility.Visible;
this.Delay(epilepsy_display_length).Schedule(() =>
{
epilepsyWarning.Hide();
epilepsyWarning.Expire();
});
});
pushSequence.Delay(epilepsy_display_length);
pushSequence
.Schedule(() => epilepsyWarning.State.Value = Visibility.Visible)
.Delay(epilepsy_display_length)
.Schedule(() => epilepsyWarning.Hide())
.Delay(EpilepsyWarning.FADE_DURATION);
}
pushSequence.Schedule(() =>