mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Many fixes
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user