mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
Show better error message when selecting an unavailable beatmap during multiplayer room creation
This commit is contained in:
parent
77c0b8dfa9
commit
c901a4fd7e
@ -365,7 +365,19 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
|||||||
{
|
{
|
||||||
Debug.Assert(applyingSettingsOperation != null);
|
Debug.Assert(applyingSettingsOperation != null);
|
||||||
|
|
||||||
ErrorText.Text = text;
|
// see https://github.com/ppy/osu-web/blob/2c97aaeb64fb4ed97c747d8383a35b30f57428c7/app/Models/Multiplayer/PlaylistItem.php#L48.
|
||||||
|
const string not_found_prefix = "beatmaps not found:";
|
||||||
|
|
||||||
|
if (text.StartsWith(not_found_prefix, StringComparison.Ordinal))
|
||||||
|
{
|
||||||
|
ErrorText.Text = "The selected beatmap is not available online.";
|
||||||
|
SelectedItem.Value.MarkInvalid();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ErrorText.Text = text;
|
||||||
|
}
|
||||||
|
|
||||||
ErrorText.FadeIn(50);
|
ErrorText.FadeIn(50);
|
||||||
|
|
||||||
applyingSettingsOperation.Dispose();
|
applyingSettingsOperation.Dispose();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user