mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Fix fade-in no longer working on videos
This commit is contained in:
parent
564dec7a14
commit
602b16f533
@ -83,8 +83,6 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
|
||||
var sprite = new StoryboardVideo("Videos/test-video.mp4", Time.Current);
|
||||
|
||||
sprite.AddLoop(Time.Current, 100).Alpha.Add(Easing.None, 0, 10000, 1, 1);
|
||||
|
||||
if (scaleTransformProvided)
|
||||
{
|
||||
sprite.TimelineGroup.Scale.Add(Easing.None, Time.Current, Time.Current + 1000, 1, 2);
|
||||
|
@ -12,7 +12,9 @@ namespace osu.Game.Storyboards
|
||||
public StoryboardVideo(string path, double offset)
|
||||
: base(path, Anchor.Centre, Vector2.Zero)
|
||||
{
|
||||
TimelineGroup.Alpha.Add(Easing.None, offset, offset, 0, 1);
|
||||
// This is just required to get a valid StartTime based on the incoming offset.
|
||||
// Actual fades are handled inside DrawableStoryboardVideo for now.
|
||||
TimelineGroup.Alpha.Add(Easing.None, offset, offset, 0, 0);
|
||||
}
|
||||
|
||||
public override Drawable CreateDrawable() => new DrawableStoryboardVideo(this);
|
||||
|
Loading…
Reference in New Issue
Block a user