From 6a00561a5c5575cc03350315bde7f9ea8cb0e956 Mon Sep 17 00:00:00 2001 From: flustix Date: Sat, 14 Dec 2024 20:51:26 +0100 Subject: [PATCH] slow down music when exiting --- fluXis.Game/FluXisGame.cs | 3 ++- fluXis.Game/Overlay/Exit/ExitAnimation.cs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fluXis.Game/FluXisGame.cs b/fluXis.Game/FluXisGame.cs index 50026dd0..a1a53da0 100644 --- a/fluXis.Game/FluXisGame.cs +++ b/fluXis.Game/FluXisGame.cs @@ -488,7 +488,8 @@ public override void Exit(bool restart) return; toolbar.Hide(); - globalClock.VolumeOut(1500); + globalClock.RateTo(0, 1500, Easing.Out); + globalClock.VolumeOut(1300); exitAnimation.Show(buffer.Hide, () => base.Exit(false)); isExiting = true; } diff --git a/fluXis.Game/Overlay/Exit/ExitAnimation.cs b/fluXis.Game/Overlay/Exit/ExitAnimation.cs index 7562fe72..a6b2c661 100644 --- a/fluXis.Game/Overlay/Exit/ExitAnimation.cs +++ b/fluXis.Game/Overlay/Exit/ExitAnimation.cs @@ -20,7 +20,7 @@ public partial class ExitAnimation : FullInputBlockingContainer private const int bars_delay = 200; private const string goodbye = "Goodbye!"; - private const string scramble_chars = "!@#$%^&*()_+-=[]{};':\",./<>?\\|`~"; + private const string scramble_chars = "ABCDEFGHIJKMNOPQRSTUVWXYZ@#$%&*()+=[]{}~"; private Sample sample; @@ -83,10 +83,10 @@ public void Show(Action onBarCompletion, Action onCompletion) barsContainer.Delay(bars_duration + bars_delay).Schedule(onBarCompletion); - text.ScaleTo(1.1f).Delay(bars_duration) + text.ScaleTo(1.4f).Delay(bars_duration) .Schedule(() => Scheduler.AddDelayed(unscrambleOneRandomChar, 50, true)) .FadeIn(400).ScaleTo(1, 800, Easing.OutQuint) - .Then(600).FadeOut(600).Schedule(onCompletion); + .Then(600).FadeOut(600).OnComplete(_ => onCompletion()); } private void unscrambleOneRandomChar()