/// <summary>Applies default animations to an arriving logo. /// Todo: This should not exist.</summary> /// <param name="logo">The logo to apply animations to.</param> public static void ApplyLogoArrivingDefaults(RhythmicLogo logo) { logo.FadeOut(300, Easing.OutQuint); logo.Anchor = Anchor.TopLeft; logo.Origin = Anchor.Centre; logo.RelativePositionAxes = Axes.Both; }
protected override void LogoArriving(RhythmicLogo logo, bool resuming) { base.LogoArriving(logo, resuming); logo.RelativePositionAxes = Axes.None; logo.Origin = Anchor.BottomRight; logo.Anchor = Anchor.BottomRight; logo.Position = new Vector2(-40); logo.Scale = new Vector2(0.2f); logo.Delay(500).FadeInFromZero(1000, Easing.OutQuint); }
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); }
protected override void LogoSuspending(RhythmicLogo logo) { base.LogoSuspending(logo); logo.FadeOut(logo.Alpha * 400); }
/// <summary>Fired when this screen was suspended to add any outwards transition to the logo.</summary> protected virtual void LogoSuspending(RhythmicLogo logo) { }
/// <summary>Fired when this screen was exited to add any outwards transition to the logo.</summary> protected virtual void LogoExiting(RhythmicLogo logo) { }
/// <summary>Fired when this screen was entered or resumed and the logo state is required to be adjusted.</summary> protected virtual void LogoArriving(RhythmicLogo logo, bool resuming) { ApplyLogoArrivingDefaults(logo); }