2 Commits

4 changed files with 15 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ namespace osu.Game.Online.API.Requests
Medal, Medal,
Rank, Rank,
RankLost, RankLost,
RankRetracted,
UserSupportAgain, UserSupportAgain,
UserSupportFirst, UserSupportFirst,
UserSupportGift, UserSupportGift,

View File

@@ -78,12 +78,13 @@ namespace osu.Game.Overlays.Profile.Header
private void updateDisplay(APIUser? user) private void updateDisplay(APIUser? user)
{ {
var cutoffDate = new DateTime(2025, 8, 25);
topLinkContainer.Clear(); topLinkContainer.Clear();
bottomLinkContainer.Clear(); bottomLinkContainer.Clear();
if (user == null) return; if (user == null) return;
if (user.JoinDate.ToUniversalTime().Year < 2008) if (user.JoinDate.ToUniversalTime().Date < cutoffDate)
topLinkContainer.AddText(UsersStrings.ShowFirstMembers); topLinkContainer.AddText(UsersStrings.ShowFirstMembers);
else else
{ {

View File

@@ -189,6 +189,13 @@ namespace osu.Game.Overlays.Profile.Sections.Recent
addText($" ({getRulesetName()})"); addText($" ({getRulesetName()})");
break; break;
case RecentActivityType.RankRetracted:
addUserLink();
addText("'s score on ");
addBeatmapLink();
addText($" has been retracted ({getRulesetName()})");
break;
case RecentActivityType.UserSupportAgain: case RecentActivityType.UserSupportAgain:
addUserLink(); addUserLink();
addText(" has once again chosen to support osu! - thanks for your generosity!"); addText(" has once again chosen to support osu! - thanks for your generosity!");

View File

@@ -75,6 +75,11 @@ namespace osu.Game.Overlays.Profile.Sections.Recent
icon.Colour = Color4.White; icon.Colour = Color4.White;
break; break;
case RecentActivityType.RankRetracted:
icon.Icon = FontAwesome.Solid.Ban;
icon.Colour = colours.Red1;
break;
case RecentActivityType.UserSupportAgain: case RecentActivityType.UserSupportAgain:
icon.Icon = FontAwesome.Solid.Heart; icon.Icon = FontAwesome.Solid.Heart;
icon.Colour = colours.Pink; icon.Colour = colours.Pink;