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:
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
|
||||
};
|
||||
|
||||
videoSprite.FadeIn(500);
|
||||
}
|
||||
|
||||
base.LoadComplete();
|
||||
|
||||
using (videoSprite.BeginAbsoluteSequence(0))
|
||||
videoSprite.FadeIn(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user