Beispiel #1
0
        protected override void LogoArriving(OsuLogo logo, bool resuming)
        {
            base.LogoArriving(logo, resuming);

            if (!resuming)
            {
                PrepareMenuLoad();

                decoupledClock = new DecoupleableInterpolatingFramedClock
                {
                    IsCoupled = false
                };

                if (UsingThemedIntro)
                {
                    decoupledClock.ChangeSource(Track);
                }

                LoadComponentAsync(intro = new TrianglesIntroSequence(logo, background)
                {
                    RelativeSizeAxes = Axes.Both,
                    Clock            = decoupledClock,
                    LoadMenu         = LoadMenu
                }, t =>
                {
                    AddInternal(t);
                    if (!UsingThemedIntro)
                    {
                        welcome?.Play();
                    }

                    StartTrack();
                });
            }
        }