Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 protected override void LogoSuspending(RhythmicLogo logo)
 {
     base.LogoSuspending(logo);
     logo.FadeOut(logo.Alpha * 400);
 }
Ejemplo n.º 5
0
 /// <summary>Fired when this screen was suspended to add any outwards transition to the logo.</summary>
 protected virtual void LogoSuspending(RhythmicLogo logo)
 {
 }
Ejemplo n.º 6
0
 /// <summary>Fired when this screen was exited to add any outwards transition to the logo.</summary>
 protected virtual void LogoExiting(RhythmicLogo logo)
 {
 }
Ejemplo n.º 7
0
 /// <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);
 }