From b89694a96935efc76a2c13f962b9017a04bbf3ea Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 31 Jan 2019 19:09:04 +0900 Subject: [PATCH] Fix "importing" state display --- .../Overlays/BeatmapSet/Buttons/DownloadButton.cs | 11 +++++++++++ osu.Game/Overlays/Direct/DownloadProgressBar.cs | 1 + 2 files changed, 12 insertions(+) diff --git a/osu.Game/Overlays/BeatmapSet/Buttons/DownloadButton.cs b/osu.Game/Overlays/BeatmapSet/Buttons/DownloadButton.cs index 7c0ffaddcb..de0ced3f08 100644 --- a/osu.Game/Overlays/BeatmapSet/Buttons/DownloadButton.cs +++ b/osu.Game/Overlays/BeatmapSet/Buttons/DownloadButton.cs @@ -124,6 +124,17 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons }; break; case DownloadState.Downloaded: + textSprites.Children = new Drawable[] + { + new OsuSpriteText + { + Text = "Importing...", + TextSize = 13, + Font = @"Exo2.0-Bold", + }, + }; + break; + case DownloadState.LocallyAvailable: this.FadeOut(200); break; case DownloadState.NotDownloaded: diff --git a/osu.Game/Overlays/Direct/DownloadProgressBar.cs b/osu.Game/Overlays/Direct/DownloadProgressBar.cs index b416377d0f..cc5a98c575 100644 --- a/osu.Game/Overlays/Direct/DownloadProgressBar.cs +++ b/osu.Game/Overlays/Direct/DownloadProgressBar.cs @@ -48,6 +48,7 @@ namespace osu.Game.Overlays.Direct progressBar.ResizeHeightTo(4, 400, Easing.OutQuint); break; case DownloadState.Downloaded: + progressBar.FadeIn(400, Easing.OutQuint); progressBar.Current.Value = 1; progressBar.FillColour = colours.Yellow; break;