mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Replace Ranks.Global
completely with a GlobalRank
property
This commit is contained in:
@ -36,7 +36,7 @@ namespace osu.Game.Tournament.Models
|
||||
{
|
||||
get
|
||||
{
|
||||
var ranks = Players.Select(p => p.Statistics?.Ranks.Global)
|
||||
var ranks = Players.Select(p => p.Statistics?.GlobalRank)
|
||||
.Where(i => i.HasValue)
|
||||
.Select(i => i.Value)
|
||||
.ToArray();
|
||||
|
@ -250,7 +250,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
||||
};
|
||||
|
||||
foreach (var p in team.Players)
|
||||
fill.Add(new RowDisplay(p.Username, p.Statistics?.Ranks.Global?.ToString("\\##,0") ?? "-"));
|
||||
fill.Add(new RowDisplay(p.Username, p.Statistics?.GlobalRank?.ToString("\\##,0") ?? "-"));
|
||||
}
|
||||
|
||||
internal class RowDisplay : CompositeDrawable
|
||||
|
@ -150,7 +150,7 @@ namespace osu.Game.Tournament
|
||||
{
|
||||
foreach (var p in t.Players)
|
||||
{
|
||||
if (string.IsNullOrEmpty(p.Username) || p.Statistics == null)
|
||||
if (string.IsNullOrEmpty(p.Username) || p.Statistics?.GlobalRank == null)
|
||||
{
|
||||
PopulateUser(p, immediate: true);
|
||||
addedInfo = true;
|
||||
|
Reference in New Issue
Block a user