1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Use absolute sequence for flashlight breaks

This commit is contained in:
David Zhao 2019-04-12 17:39:25 +09:00
parent d9ed68b189
commit e25c7fdb9b

View File

@ -95,14 +95,17 @@ namespace osu.Game.Rulesets.Mods
Combo.ValueChanged += OnComboChange; Combo.ValueChanged += OnComboChange;
this.FadeInFromZero(FLASHLIGHT_FADE_DURATION); using (BeginAbsoluteSequence(0))
foreach (var breakPeriod in Breaks)
{ {
if (breakPeriod.Duration < FLASHLIGHT_FADE_DURATION * 2) continue; this.FadeInFromZero(FLASHLIGHT_FADE_DURATION);
this.Delay(breakPeriod.StartTime + FLASHLIGHT_FADE_DURATION).FadeOutFromOne(FLASHLIGHT_FADE_DURATION); foreach (var breakPeriod in Breaks)
this.Delay(breakPeriod.EndTime - FLASHLIGHT_FADE_DURATION).FadeInFromZero(FLASHLIGHT_FADE_DURATION); {
if (breakPeriod.Duration < FLASHLIGHT_FADE_DURATION * 2) continue;
this.Delay(breakPeriod.StartTime + FLASHLIGHT_FADE_DURATION).FadeOutFromOne(FLASHLIGHT_FADE_DURATION);
this.Delay(breakPeriod.EndTime - FLASHLIGHT_FADE_DURATION).FadeInFromZero(FLASHLIGHT_FADE_DURATION);
}
} }
} }