1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 20:33:01 +08:00

Fix incorrect offset with custom clock

This commit is contained in:
smoogipoo 2020-03-11 17:55:20 +09:00
parent 1d556bfc5f
commit 424f9afbf4

View File

@ -13,7 +13,7 @@ using osu.Game.Beatmaps;
namespace osu.Game.Storyboards.Drawables
{
public class DrawableStoryboardVideo : Container
public class DrawableStoryboardVideo : CompositeDrawable
{
public readonly StoryboardVideo Video;
private VideoSprite videoSprite;
@ -40,7 +40,7 @@ namespace osu.Game.Storyboards.Drawables
if (stream == null)
return;
AddInternal(videoSprite = new VideoSprite(stream)
InternalChild = videoSprite = new VideoSprite(stream, false)
{
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fill,
@ -48,7 +48,7 @@ namespace osu.Game.Storyboards.Drawables
Origin = Anchor.Centre,
Alpha = 0,
Clock = new FramedOffsetClock(Clock) { Offset = -Video.StartTime }
});
};
}
protected override void LoadComplete()