mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Use scheduling rather than raw transform delays
This commit is contained in:
parent
22a59d753b
commit
20bf0502ab
@ -93,12 +93,11 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
if (!b.HasEffect)
|
if (!b.HasEffect)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
using (BeginAbsoluteSequence(b.StartTime, true))
|
using (BeginAbsoluteSequence(b.StartTime))
|
||||||
{
|
{
|
||||||
onBreakIn(b);
|
Schedule(() => onBreakIn(b));
|
||||||
|
using (BeginDelayedSequence(b.Duration - fade_duration))
|
||||||
using (BeginDelayedSequence(b.Duration - fade_duration, true))
|
Schedule(onBreakOut);
|
||||||
onBreakOut();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -113,7 +112,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
.Then()
|
.Then()
|
||||||
.ResizeWidthTo(0, b.Duration - fade_duration);
|
.ResizeWidthTo(0, b.Duration - fade_duration);
|
||||||
|
|
||||||
Scheduler.AddDelayed(() => remainingTimeCounter.StartCounting(b.EndTime), b.StartTime - Clock.CurrentTime);
|
remainingTimeCounter.StartCounting(b.EndTime);
|
||||||
|
|
||||||
remainingTimeCounter.Show();
|
remainingTimeCounter.Show();
|
||||||
info.Show();
|
info.Show();
|
||||||
|
Loading…
Reference in New Issue
Block a user