mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 17:43:00 +08:00
Read StoryboardEndTime directly from Beatmap
This commit is contained in:
parent
33a665224e
commit
81be562379
@ -228,11 +228,6 @@ namespace osu.Game.Screens.Play
|
|||||||
adjustableClock.ChangeSource(track);
|
adjustableClock.ChangeSource(track);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the endtime of the last element in the storyboard in ms, or start time of the last hitobject if there's no storyboard.
|
|
||||||
/// </summary>
|
|
||||||
public double StoryboardEndTime => beatmap.Storyboard.LatestEventTime ?? 0;
|
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
if (!IsPaused.Value)
|
if (!IsPaused.Value)
|
||||||
|
@ -366,7 +366,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
RequestSkip = performUserRequestedSkip
|
RequestSkip = performUserRequestedSkip
|
||||||
},
|
},
|
||||||
skipOutroOverlay = new SkipOverlay(GameplayClockContainer.StoryboardEndTime)
|
skipOutroOverlay = new SkipOverlay(Beatmap.Value.Storyboard.LatestEventTime ?? 0)
|
||||||
{
|
{
|
||||||
RequestSkip = scheduleCompletion
|
RequestSkip = scheduleCompletion
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user