Add tier colour to ranked play ranking on profile overlay#38197
Open
diquoks wants to merge 1 commit into
Open
Conversation
diquoks
commented
Jun 30, 2026
Contributor
- port of Add tier colour to ranked play ranking osu-web#13110
| actual profile | test scene |
|---|---|
![]() |
![]() |
diquoks
commented
Jun 30, 2026
Comment on lines
+111
to
125
| APIUserMatchmakingStatistics[] allStats = User.Value.User.MatchmakingStatistics; | ||
|
|
||
| if (stats.Length == 0) | ||
| if (allStats.Length == 0) | ||
| { | ||
| Hide(); | ||
| return; | ||
| } | ||
|
|
||
| int? highestRank = null; | ||
| APIUserMatchmakingStatistics? highestRankStats = null; | ||
|
|
||
| foreach (var stat in stats) | ||
| foreach (var stats in allStats) | ||
| { | ||
| if (stat.Pool.Active && stat.Rank != null) | ||
| { | ||
| if (highestRank == null || stat.Rank < highestRank) | ||
| highestRank = stat.Rank; | ||
| } | ||
| if (stats.Pool.Active && (highestRankStats == null || stats.Rank < highestRankStats.Rank)) | ||
| highestRankStats = stats; | ||
| } |
Comment on lines
+20
to
+23
| public int Rank { get; set; } | ||
|
|
||
| [JsonProperty("rank_percent")] | ||
| public float RankPercent { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

