mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:03:01 +08:00
Adjust mode part
This commit is contained in:
parent
3f62c40e70
commit
3002366e70
@ -41,8 +41,37 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonProperty("count")]
|
[JsonProperty("count")]
|
||||||
public int Count;
|
public int Count;
|
||||||
|
|
||||||
|
public string Mode { get; private set; }
|
||||||
|
|
||||||
[JsonProperty("mode")]
|
[JsonProperty("mode")]
|
||||||
public string Mode;
|
private string mode
|
||||||
|
{
|
||||||
|
set
|
||||||
|
{
|
||||||
|
switch (value)
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
Mode = value;
|
||||||
|
return;
|
||||||
|
|
||||||
|
case "osu":
|
||||||
|
Mode = "osu!";
|
||||||
|
return;
|
||||||
|
|
||||||
|
case "mania":
|
||||||
|
Mode = "osu!mania";
|
||||||
|
return;
|
||||||
|
|
||||||
|
case "taiko":
|
||||||
|
Mode = "osu!taiko";
|
||||||
|
return;
|
||||||
|
|
||||||
|
case "fruits":
|
||||||
|
Mode = "osu!catch";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("beatmap")]
|
[JsonProperty("beatmap")]
|
||||||
public RecentActivityBeatmap Beatmap;
|
public RecentActivityBeatmap Beatmap;
|
||||||
|
@ -185,14 +185,14 @@ namespace osu.Game.Overlays.Profile.Sections.Recent
|
|||||||
addUserLink();
|
addUserLink();
|
||||||
addText($" achieved rank #{activity.Rank} on ");
|
addText($" achieved rank #{activity.Rank} on ");
|
||||||
addBeatmapLink();
|
addBeatmapLink();
|
||||||
addText($" ({activity.Mode}!)");
|
addText($" ({activity.Mode})");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RecentActivityType.RankLost:
|
case RecentActivityType.RankLost:
|
||||||
addUserLink();
|
addUserLink();
|
||||||
addText(" has lost first place on ");
|
addText(" has lost first place on ");
|
||||||
addBeatmapLink();
|
addBeatmapLink();
|
||||||
addText($" ({activity.Mode}!)");
|
addText($" ({activity.Mode})");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RecentActivityType.UserSupportAgain:
|
case RecentActivityType.UserSupportAgain:
|
||||||
|
Loading…
Reference in New Issue
Block a user