Fix incorrect offset with custom clock

This commit is contained in:
smoogipoo 2020-03-11 17:55:20 +09:00
parent 1d556bfc5f
commit 424f9afbf4
1 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
namespace osu.Game.Storyboards.Drawables
{
public class DrawableStoryboardVideo : Container
public class DrawableStoryboardVideo : CompositeDrawable
{
public readonly StoryboardVideo Video;
private VideoSprite videoSprite;
@ -40,7 +40,7 @@ private void load(IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
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 @@ private void load(IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
Origin = Anchor.Centre,
Alpha = 0,
Clock = new FramedOffsetClock(Clock) { Offset = -Video.StartTime }
});
};
}
protected override void LoadComplete()