mirror of
https://github.com/ppy/osu
synced 2025-01-10 16:19:47 +00:00
Rework animation sequence for readability
This commit is contained in:
parent
2c7880e9d6
commit
73174961f0
@ -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(() =>
|
||||
|
Loading…
Reference in New Issue
Block a user