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:
parent
d9ed68b189
commit
e25c7fdb9b
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user