mirror of
https://github.com/ppy/osu
synced 2024-12-26 08:53:10 +00:00
Refactor + fix fade in too late
This commit is contained in:
parent
6de244389b
commit
ae7245a51b
@ -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
|
||||
};
|
||||
base.LoadComplete();
|
||||
|
||||
using (videoSprite.BeginAbsoluteSequence(0))
|
||||
videoSprite.FadeIn(500);
|
||||
}
|
||||
|
||||
base.LoadComplete();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user