1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:02:55 +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
commit 1ee0a8cd6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -63,16 +63,19 @@ namespace osu.Game.Graphics.UserInterface
background.FadeColour(colours.Gray4, 500, Easing.InOutExpo); background.FadeColour(colours.Gray4, 500, Easing.InOutExpo);
icon.MoveToX(0, 500, Easing.InOutExpo); icon.MoveToX(0, 500, Easing.InOutExpo);
checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo); checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo);
TooltipText = "Download";
break; break;
case DownloadState.Downloading: case DownloadState.Downloading:
background.FadeColour(colours.Blue, 500, Easing.InOutExpo); background.FadeColour(colours.Blue, 500, Easing.InOutExpo);
icon.MoveToX(0, 500, Easing.InOutExpo); icon.MoveToX(0, 500, Easing.InOutExpo);
checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo); checkmark.ScaleTo(Vector2.Zero, 500, Easing.InOutExpo);
TooltipText = "Downloading...";
break; break;
case DownloadState.Downloaded: case DownloadState.Downloaded:
background.FadeColour(colours.Yellow, 500, Easing.InOutExpo); background.FadeColour(colours.Yellow, 500, Easing.InOutExpo);
TooltipText = "Importing";
break; break;
case DownloadState.LocallyAvailable: case DownloadState.LocallyAvailable:

View File

@ -81,7 +81,7 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
{ {
case DownloadState.LocallyAvailable: case DownloadState.LocallyAvailable:
button.Enabled.Value = true; button.Enabled.Value = true;
button.TooltipText = string.Empty; button.TooltipText = "Go to beatmap";
break; break;
default: default: