Many fixes

This commit is contained in:
Dean Herbert
2017-11-03 17:54:35 +09:00
parent 2f205d1f63
commit 3adcfa8c38
5 changed files with 95 additions and 132 deletions

View File

@ -39,6 +39,8 @@ namespace osu.Game.Screens.Menu
private readonly Container logoHoverContainer;
private readonly LogoVisualisation visualizer;
private readonly IntroSequence intro;
private SampleChannel sampleClick;
private SampleChannel sampleBeat;
@ -89,6 +91,10 @@ namespace osu.Game.Screens.Menu
Children = new Drawable[]
{
intro = new IntroSequence
{
RelativeSizeAxes = Axes.Both,
},
logoHoverContainer = new Container
{
AutoSizeAxes = Axes.Both,
@ -289,6 +295,17 @@ namespace osu.Game.Screens.Menu
}
}
public void PlayIntro()
{
const double length = 2950;
const double fade = 300;
logoHoverContainer.FadeOut().Delay(length).FadeIn(fade);
intro.Show();
intro.Start(length);
intro.Delay(length + fade).FadeOut();
}
protected override void Update()
{
base.Update();