mirror of
https://github.com/ppy/osu
synced 2024-12-25 16:22:23 +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
|
||||
};
|
||||
|
||||
videoSprite.FadeIn(500);
|
||||
}
|
||||
|
||||
base.LoadComplete();
|
||||
|
||||
using (videoSprite.BeginAbsoluteSequence(0))
|
||||
videoSprite.FadeIn(500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user