mirror of https://github.com/ppy/osu
Fix incorrect offset with custom clock
This commit is contained in:
parent
1d556bfc5f
commit
424f9afbf4
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue