mirror of
https://github.com/ppy/osu.git
synced 2025-03-03 22:02:57 +08:00
Rename download state Downloaded
to Importing
This commit is contained in:
parent
10fd4cf7c9
commit
1f12b2bd09
@ -73,7 +73,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
TooltipText = "Downloading...";
|
TooltipText = "Downloading...";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
background.FadeColour(colours.Yellow, 500, Easing.InOutExpo);
|
background.FadeColour(colours.Yellow, 500, Easing.InOutExpo);
|
||||||
TooltipText = "Importing";
|
TooltipText = "Importing";
|
||||||
break;
|
break;
|
||||||
|
@ -7,7 +7,7 @@ namespace osu.Game.Online
|
|||||||
{
|
{
|
||||||
NotDownloaded,
|
NotDownloaded,
|
||||||
Downloading,
|
Downloading,
|
||||||
Downloaded,
|
Importing,
|
||||||
LocallyAvailable
|
LocallyAvailable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ namespace osu.Game.Online
|
|||||||
{
|
{
|
||||||
if (attachedRequest.Progress == 1)
|
if (attachedRequest.Progress == 1)
|
||||||
{
|
{
|
||||||
State.Value = DownloadState.Downloaded;
|
State.Value = DownloadState.Importing;
|
||||||
Progress.Value = 1;
|
Progress.Value = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -125,7 +125,7 @@ namespace osu.Game.Online
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onRequestSuccess(string _) => Schedule(() => State.Value = DownloadState.Downloaded);
|
private void onRequestSuccess(string _) => Schedule(() => State.Value = DownloadState.Importing);
|
||||||
|
|
||||||
private void onRequestProgress(float progress) => Schedule(() => Progress.Value = progress);
|
private void onRequestProgress(float progress) => Schedule(() => Progress.Value = progress);
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
|
|||||||
switch (State.Value)
|
switch (State.Value)
|
||||||
{
|
{
|
||||||
case DownloadState.Downloading:
|
case DownloadState.Downloading:
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
shakeContainer.Shake();
|
shakeContainer.Shake();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.BeatmapListing.Panels
|
|||||||
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
progressBar.FadeIn(400, Easing.OutQuint);
|
progressBar.FadeIn(400, Easing.OutQuint);
|
||||||
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ namespace osu.Game.Overlays.BeatmapSet.Buttons
|
|||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
textSprites.Children = new Drawable[]
|
textSprites.Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
|
@ -287,7 +287,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloading:
|
case DownloadState.Downloading:
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
// temporary to avoid showing two buttons for maps with novideo. will be fixed in new beatmap overlay design.
|
// temporary to avoid showing two buttons for maps with novideo. will be fixed in new beatmap overlay design.
|
||||||
downloadButtonsContainer.Child = new HeaderDownloadButton(BeatmapSet.Value);
|
downloadButtonsContainer.Child = new HeaderDownloadButton(BeatmapSet.Value);
|
||||||
break;
|
break;
|
||||||
|
@ -63,7 +63,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
scores.Download(Model.Value);
|
scores.Download(Model.Value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DownloadState.Downloaded:
|
case DownloadState.Importing:
|
||||||
case DownloadState.Downloading:
|
case DownloadState.Downloading:
|
||||||
shakeContainer.Shake();
|
shakeContainer.Shake();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user