1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Use ShortName for mode.

- Also set the ruleset when fetching scores in BeatmapSetOverlay
This commit is contained in:
Unknown 2017-12-11 15:05:12 +05:30
parent ccbbd09d84
commit 47bd97363e
3 changed files with 3 additions and 21 deletions

View File

@ -69,25 +69,7 @@ namespace osu.Game.Online.API.Requests
break;
}
switch (ruleset?.Name)
{
default:
case @"osu!":
req.AddParameter(@"mode", @"osu");
break;
case @"osu!taiko":
req.AddParameter(@"mode", @"taiko");
break;
case @"osu!catch":
req.AddParameter(@"mode", @"catch");
break;
case @"osu!mania":
req.AddParameter(@"mode", @"mania");
break;
}
req.AddParameter(@"mode", ruleset?.ShortName ?? @"osu");
return req;
}

View File

@ -104,7 +104,7 @@ namespace osu.Game.Overlays
scores.IsLoading = true;
getScoresRequest = new GetScoresRequest(beatmap);
getScoresRequest = new GetScoresRequest(beatmap, beatmap.Ruleset);
getScoresRequest.Success += r =>
{
scores.Scores = r.Scores;

View File

@ -289,7 +289,7 @@ namespace osu.Game.Screens.Select.Leaderboards
{
Height = 26;
Width = 26;
Child = new ClickableContainer
Child = new OsuClickableContainer
{
AutoSizeAxes = Axes.Both,
Anchor = Anchor.Centre,