mirror of https://github.com/ppy/osu
Rename download state `Downloaded` to `Importing`
This commit is contained in:
parent
10fd4cf7c9
commit
1f12b2bd09
|
@ -73,7 +73,7 @@ private void updateState(ValueChangedEvent<DownloadState> state)
|
|||
TooltipText = "Downloading...";
|
||||
break;
|
||||
|
||||
case DownloadState.Downloaded:
|
||||
case DownloadState.Importing:
|
||||
background.FadeColour(colours.Yellow, 500, Easing.InOutExpo);
|
||||
TooltipText = "Importing";
|
||||
break;
|
||||
|
|
|
@ -7,7 +7,7 @@ public enum DownloadState
|
|||
{
|
||||
NotDownloaded,
|
||||
Downloading,
|
||||
Downloaded,
|
||||
Importing,
|
||||
LocallyAvailable
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ private void attachDownload(ArchiveDownloadRequest<TModel> request)
|
|||
{
|
||||
if (attachedRequest.Progress == 1)
|
||||
{
|
||||
State.Value = DownloadState.Downloaded;
|
||||
State.Value = DownloadState.Importing;
|
||||
Progress.Value = 1;
|
||||
}
|
||||
else
|
||||
|
@ -125,7 +125,7 @@ private void attachDownload(ArchiveDownloadRequest<TModel> request)
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ private void load(OsuGame game, BeatmapManager beatmaps, OsuConfigManager osuCon
|
|||
switch (State.Value)
|
||||
{
|
||||
case DownloadState.Downloading:
|
||||
case DownloadState.Downloaded:
|
||||
case DownloadState.Importing:
|
||||
shakeContainer.Shake();
|
||||
break;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ private void load(OsuColour colours)
|
|||
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
||||
break;
|
||||
|
||||
case DownloadState.Downloaded:
|
||||
case DownloadState.Importing:
|
||||
progressBar.FadeIn(400, Easing.OutQuint);
|
||||
progressBar.ResizeHeightTo(4, 400, Easing.OutQuint);
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ private void load(IAPIProvider api, BeatmapManager beatmaps)
|
|||
};
|
||||
break;
|
||||
|
||||
case DownloadState.Downloaded:
|
||||
case DownloadState.Importing:
|
||||
textSprites.Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
|
|
|
@ -287,7 +287,7 @@ private void updateDownloadButtons()
|
|||
break;
|
||||
|
||||
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.
|
||||
downloadButtonsContainer.Child = new HeaderDownloadButton(BeatmapSet.Value);
|
||||
break;
|
||||
|
|
|
@ -63,7 +63,7 @@ private void load(OsuGame game, ScoreManager scores)
|
|||
scores.Download(Model.Value);
|
||||
break;
|
||||
|
||||
case DownloadState.Downloaded:
|
||||
case DownloadState.Importing:
|
||||
case DownloadState.Downloading:
|
||||
shakeContainer.Shake();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue