mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Merge pull request #9495 from peppy/download-button-tooltips
Add tooltips to download buttons
This commit is contained in:
commit
1ee0a8cd6d
@ -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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user