1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 09:30:17 +08:00

Merge pull request #9495 from peppy/download-button-tooltips

Add tooltips to download buttons
This commit is contained in:
Dan Balasescu
2020-07-10 20:57:09 +09:00
committed by GitHub
Unverified
2 changed files with 4 additions and 1 deletions
@@ -63,16 +63,19 @@ namespace osu.Game.Graphics.UserInterface
background.FadeColour(colours.Gray4, 500, Easing.InOutExpo);
icon.MoveToX(0, 500, Easing.InOutExpo);
checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo);
TooltipText = "Download";
break;
case DownloadState.Downloading:
background.FadeColour(colours.Blue, 500, Easing.InOutExpo);
icon.MoveToX(0, 500, Easing.InOutExpo);
checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo);
TooltipText = "Downloading...";
break;
case DownloadState.Downloaded:
background.FadeColour(colours.Yellow, 500, Easing.InOutExpo);
TooltipText = "Importing";
break;
case DownloadState.LocallyAvailable:
@@ -81,7 +81,7 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
{
case DownloadState.LocallyAvailable:
button.Enabled.Value = true;
button.TooltipText = string.Empty;
button.TooltipText = "Go to beatmap";
break;
default: