Exemplo n.º 1
0
        public override void OnResuming(IScreen last)
        {
            base.OnResuming(last);

            (Background as BackgroundScreenDefault)?.Next();
            logo.MoveToX(25).MoveToX(0, 1000, Easing.OutExpo);
            logo.FadeIn(1000, Easing.OutExpo);
            preloadSongSelect();
        }
Exemplo n.º 2
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            introBeatmap = new BeatmapMeta
            {
                Background = Texture.FromStream(game.Resources.GetStream(@"Tracks/Intro/bg.png")),
                Song       = new TrackBass(game.Resources.GetStream(@"Tracks/Intro/song.mp3")),
                Metadata   = new BeatmapMetadata
                {
                    Song = new SongMetadata
                    {
                        Author = "Kobaryo",
                        Name   = "Villain Virus ( feat. Camellia )"
                    }
                }
            };

            track = introBeatmap.Song;

            collection.CurrentBeatmap.Value = introBeatmap;

            collection.CurrentBeatmap.ValueChanged += delegate
            {
                track.Stop();
                introBeatmap = collection.CurrentBeatmap.Value;
                restartTrack();
            };

            AddInternal(intro = new RhythmicLogo
            {
                Origin = Anchor.Centre,
                Anchor = Anchor.Centre,
            });

            intro.ScaleTo(1);
            intro.FadeIn();
            intro.PlayIntro();

            Scheduler.AddDelayed(() =>
            {
                audio.AddItem(track);
                track.Seek(206500);
                track.Start();

                Scheduler.AddDelayed(() =>
                {
                    DidLoadMenu = true;
                    this.Push(mainMenu);
                }, delay_step_one);
            }, delay_step_two);
        }