mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Merge pull request #16903 from peppy/fix-leaderboard-display
Fix beatmap overlay leaderboards and links not working
This commit is contained in:
commit
48dc2cbe72
@ -112,7 +112,27 @@ namespace osu.Game.Online.API.Requests.Responses
|
||||
public int OnlineID { get; set; } = -1;
|
||||
|
||||
public string Name => $@"{nameof(APIRuleset)} (ID: {OnlineID})";
|
||||
public string ShortName => nameof(APIRuleset);
|
||||
|
||||
public string ShortName
|
||||
{
|
||||
get
|
||||
{
|
||||
// TODO: this should really not exist.
|
||||
switch (OnlineID)
|
||||
{
|
||||
case 0: return "osu";
|
||||
|
||||
case 1: return "taiko";
|
||||
|
||||
case 2: return "fruits";
|
||||
|
||||
case 3: return "mania";
|
||||
|
||||
default: throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string InstantiationInfo => string.Empty;
|
||||
|
||||
public Ruleset CreateInstance() => throw new NotImplementedException();
|
||||
|
Loading…
Reference in New Issue
Block a user