1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Refactor + fix fade in too late

This commit is contained in:
smoogipoo 2020-03-11 15:11:54 +09:00
parent 6de244389b
commit ae7245a51b

View File

@ -46,23 +46,17 @@ namespace osu.Game.Storyboards.Drawables
FillMode = FillMode.Fill,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Alpha = 0
Alpha = 0,
Clock = new FramedOffsetClock(Clock) { Offset = -Video.StartTime }
});
}
protected override void LoadComplete()
{
using (videoSprite.BeginAbsoluteSequence(Video.StartTime))
{
videoSprite.Clock = new FramedOffsetClock(Clock)
{
Offset = -Video.StartTime
};
videoSprite.FadeIn(500);
}
base.LoadComplete();
using (videoSprite.BeginAbsoluteSequence(0))
videoSprite.FadeIn(500);
}
}
}