1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 22:27:25 +08:00

Merge pull request #22806 from peppy/fix-video-fade-out

Fix storyboard videos not fading out on completion
This commit is contained in:
Bartłomiej Dach 2023-03-07 18:42:16 +01:00 committed by GitHub
commit 6d94b08415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,11 @@ namespace osu.Game.Storyboards.Drawables
using (drawableVideo.BeginAbsoluteSequence(Video.StartTime))
{
Schedule(() => drawableVideo.PlaybackPosition = Time.Current - Video.StartTime);
drawableVideo.FadeIn(500);
using (drawableVideo.BeginDelayedSequence(drawableVideo.Duration - 500))
drawableVideo.FadeOut(500);
}
}
}