Exemple #1
0
        protected override void OnEntering(Screen last)
        {
            base.OnEntering(last);

            if (!loadedSuccessfully)
            {
                return;
            }

            (Background as BackgroundScreenBeatmap)?.BlurTo(Vector2.Zero, 1500, EasingTypes.OutQuint);
            Background?.FadeTo(1 - (float)dimLevel, 1500, EasingTypes.OutQuint);

            Content.Alpha = 0;

            dimLevel.ValueChanged += newDim => Background?.FadeTo(1 - (float)newDim, 800);

            Content.ScaleTo(0.7f);

            using (Content.BeginDelayedSequence(250))
                Content.FadeIn(250);

            Content.ScaleTo(1, 750, EasingTypes.OutQuint);

            using (BeginDelayedSequence(750))
                Schedule(() =>
                {
                    if (!pauseContainer.IsPaused)
                    {
                        decoupledClock.Start();
                    }
                });

            pauseContainer.Alpha = 0;
            pauseContainer.FadeIn(750, EasingTypes.OutQuint);
        }
Exemple #2
0
        protected override void OnEntering(Screen last)
        {
            base.OnEntering(last);

            if (!loadedSuccessfully)
            {
                return;
            }

            (Background as BackgroundScreenBeatmap)?.BlurTo(Vector2.Zero, 1500, Easing.OutQuint);

            dimLevel.ValueChanged       += dimLevel_ValueChanged;
            showStoryboard.ValueChanged += showStoryboard_ValueChanged;
            updateBackgroundElements();

            Content.Alpha = 0;
            Content
            .ScaleTo(0.7f)
            .ScaleTo(1, 750, Easing.OutQuint)
            .Delay(250)
            .FadeIn(250);

            this.Delay(750).Schedule(() =>
            {
                if (!pauseContainer.IsPaused)
                {
                    decoupledClock.Start();
                }
            });

            pauseContainer.Alpha = 0;
            pauseContainer.FadeIn(750, Easing.OutQuint);
        }
Exemple #3
0
        protected override void OnEntering(Screen last)
        {
            base.OnEntering(last);

            if (!loadedSuccessfully)
            {
                return;
            }

            (Background as BackgroundScreenBeatmap)?.BlurTo(Vector2.Zero, 1000, Easing.OutQuint);

            dimLevel.ValueChanged       += dimLevel_ValueChanged;
            showStoryboard.ValueChanged += showStoryboard_ValueChanged;
            updateBackgroundElements();

            Content.Alpha = 0;
            Content
            .ScaleTo(0.7f)
            .ScaleTo(1, 750, Easing.OutQuint)
            .Delay(250)
            .FadeIn(250);

            Task.Run(() =>
            {
                adjustableSourceClock.Reset();

                // this is temporary until we have blocking (async.Wait()) audio component methods.
                // then we can call ResetAsync().Wait() or the blocking version above.
                while (adjustableSourceClock.IsRunning)
                {
                    Thread.Sleep(1);
                }

                Schedule(() =>
                {
                    decoupledClock.ChangeSource(adjustableSourceClock);
                    applyRateFromMods();

                    this.Delay(750).Schedule(() =>
                    {
                        if (!pauseContainer.IsPaused)
                        {
                            decoupledClock.Start();
                        }
                    });
                });
            });

            pauseContainer.Alpha = 0;
            pauseContainer.FadeIn(750, Easing.OutQuint);
        }
Exemple #4
0
        protected override void OnEntering(Screen last)
        {
            base.OnEntering(last);

            if (!loadedSuccessfully)
            {
                return;
            }

            dimLevel.ValueChanged       += _ => updateBackgroundElements();
            blurLevel.ValueChanged      += _ => updateBackgroundElements();
            showStoryboard.ValueChanged += _ => updateBackgroundElements();
            updateBackgroundElements();

            Content.Alpha = 0;
            Content
            .ScaleTo(0.7f)
            .ScaleTo(1, 750, Easing.OutQuint)
            .Delay(250)
            .FadeIn(250);

            Task.Run(() =>
            {
                adjustableSourceClock.Reset();

                Schedule(() =>
                {
                    decoupledClock.ChangeSource(adjustableSourceClock);
                    applyRateFromMods();

                    this.Delay(750).Schedule(() =>
                    {
                        if (!pauseContainer.IsPaused)
                        {
                            decoupledClock.Start();
                        }
                    });
                });
            });

            pauseContainer.Alpha = 0;
            pauseContainer.FadeIn(750, Easing.OutQuint);
        }
Exemple #5
0
        protected override void OnEntering(Screen last)
        {
            base.OnEntering(last);

            if (!LoadedBeatmapSuccessfully)
            {
                return;
            }

            Content.Alpha = 0;
            Content
            .ScaleTo(0.7f)
            .ScaleTo(1, 750, Easing.OutQuint)
            .Delay(250)
            .FadeIn(250);

            Task.Run(() =>
            {
                sourceClock.Reset();

                Schedule(() =>
                {
                    adjustableClock.ChangeSource(sourceClock);
                    applyRateFromMods();

                    this.Delay(750).Schedule(() =>
                    {
                        if (!pauseContainer.IsPaused)
                        {
                            adjustableClock.Start();
                        }
                    });
                });
            });

            pauseContainer.Alpha = 0;
            pauseContainer.FadeIn(750, Easing.OutQuint);
        }