mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 03:47:04 +08:00
2761ee005d
Regressed with 102085668f because the
stupid magic alpha transform addition was also implicitly changing the
value of `IsDrawable` from false to true because that property checks
for presence of any commands.
Apparently past me, in his infinite wisdom, did not decide it pertinent
to test that change against, you know, *a beatmap with a storyboard*.
Great job, past me, good show all around.
27 lines
861 B
C#
27 lines
861 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.
|
|
StartTime = offset;
|
|
}
|
|
|
|
public override double StartTime { get; }
|
|
|
|
public override bool IsDrawable => true;
|
|
|
|
public override Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
|
|
}
|
|
}
|