1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +08:00

Merge pull request #24734 from Joehuu/hd-badges

Use `@2x` variant of profile badges
This commit is contained in:
Dean Herbert 2023-09-07 15:26:58 +09:00 committed by GitHub
commit 4d12678c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -134,14 +134,16 @@ namespace osu.Game.Tests.Visual.Online
{ {
AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569), AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569),
Description = "Outstanding help by being a voluntary test subject.", Description = "Outstanding help by being a voluntary test subject.",
ImageUrl = "https://assets.ppy.sh/profile-badges/contributor.jpg", ImageUrl = "https://assets.ppy.sh/profile-badges/contributor-new@2x.png",
ImageUrlLowRes = "https://assets.ppy.sh/profile-badges/contributor-new.png",
Url = "https://osu.ppy.sh/wiki/en/People/Community_Contributors", Url = "https://osu.ppy.sh/wiki/en/People/Community_Contributors",
}, },
new Badge new Badge
{ {
AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569), AwardedAt = DateTimeOffset.FromUnixTimeSeconds(1505741569),
Description = "Badge without a url.", Description = "Badge without a url.",
ImageUrl = "https://assets.ppy.sh/profile-badges/contributor.jpg", ImageUrl = "https://assets.ppy.sh/profile-badges/contributor@2x.png",
ImageUrlLowRes = "https://assets.ppy.sh/profile-badges/contributor.png",
}, },
}, },
Title = "osu!volunteer", Title = "osu!volunteer",

View File

@ -16,9 +16,12 @@ namespace osu.Game.Users
[JsonProperty("description")] [JsonProperty("description")]
public string Description; public string Description;
[JsonProperty("image_url")] [JsonProperty("image@2x_url")]
public string ImageUrl; public string ImageUrl;
[JsonProperty("image_url")]
public string ImageUrlLowRes;
[JsonProperty("url")] [JsonProperty("url")]
public string Url; public string Url;
} }