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:
parent
ccbbd09d84
commit
47bd97363e
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user