protected override void LogoArriving(OsuLogo logo, bool resuming) { base.LogoArriving(logo, resuming); logo.RelativePositionAxes = Axes.Both; logo.Colour = Color4.White; logo.Ripple = false; const int quick_appear = 350; int initialMovementTime = logo.Alpha > 0.2f ? quick_appear : 0; logo.MoveTo(new Vector2(0.5f), initialMovementTime, Easing.OutQuint); if (!resuming) { logo.ScaleTo(1); logo.FadeIn(); logo.PlayIntro(); } else { logo.Triangles = false; logo .ScaleTo(1, initialMovementTime, Easing.OutQuint) .FadeIn(quick_appear, Easing.OutQuint) .Then() .RotateTo(20, EXIT_DELAY * 1.5f) .FadeOut(EXIT_DELAY); } }
protected override void LogoArriving(OsuLogo logo, bool resuming) { base.LogoArriving(logo, resuming); if (!resuming) { Beatmap.Value = introBeatmap; introBeatmap = null; welcome?.Play(); Scheduler.AddDelayed(delegate { // Only start the current track if it is the menu music. A beatmap's track is started when entering the Main Manu. if (menuMusic.Value) { track.Restart(); track = null; } PrepareMenuLoad(); Scheduler.AddDelayed(LoadMenu, delay_step_one); }, delay_step_two); logo.ScaleTo(1); logo.FadeIn(); logo.PlayIntro(); } }
protected override void LogoArriving(OsuLogo logo, bool resuming) { base.LogoArriving(logo, resuming); if (!resuming) { Beatmap.Value = introBeatmap; introBeatmap = null; if (menuVoice.Value) { welcome.Play(); } Scheduler.AddDelayed(delegate { // Only start the current track if it is the menu music. A beatmap's track is started when entering the Main Manu. if (menuMusic.Value) { track.Start(); track = null; } LoadComponentAsync(mainMenu = new MainMenu()); Scheduler.AddDelayed(delegate { DidLoadMenu = true; this.Push(mainMenu); }, delay_step_one); }, delay_step_two); } logo.Colour = Color4.White; logo.Ripple = false; const int quick_appear = 350; int initialMovementTime = logo.Alpha > 0.2f ? quick_appear : 0; logo.MoveTo(new Vector2(0.5f), initialMovementTime, Easing.OutQuint); if (!resuming) { logo.ScaleTo(1); logo.FadeIn(); logo.PlayIntro(); } else { logo.Triangles = false; logo .ScaleTo(1, initialMovementTime, Easing.OutQuint) .FadeIn(quick_appear, Easing.OutQuint) .Then() .RotateTo(20, EXIT_DELAY * 1.5f) .FadeOut(EXIT_DELAY); } }
protected override void LogoArriving(OsuLogo logo, bool resuming) { base.LogoArriving(logo, resuming); if (!resuming) { welcome?.Play(); Scheduler.AddDelayed(delegate { StartTrack(); PrepareMenuLoad(); Scheduler.AddDelayed(LoadMenu, delay_step_one); }, delay_step_two); logo.ScaleTo(1); logo.FadeIn(); logo.PlayIntro(); } }