mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:17:26 +08:00
23 lines
794 B
C#
23 lines
794 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Storyboards.Drawables;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Storyboards
|
|
{
|
|
public class StoryboardVideo : StoryboardSprite
|
|
{
|
|
public StoryboardVideo(string path, double offset)
|
|
: base(path, Anchor.Centre, Vector2.Zero)
|
|
{
|
|
// This is just required to get a valid StartTime based on the incoming offset.
|
|
// Actual fades are handled inside DrawableStoryboardVideo for now.
|
|
Commands.AddAlpha(Easing.None, offset, offset, 0, 0);
|
|
}
|
|
|
|
public override Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
|
|
}
|
|
}
|