mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 03:42:57 +08:00
Allow "none" value in LastYearPlacing
This "none" value (zero) will be the default value for any new team and will display as "N/A" in the SeedingScreen.
This commit is contained in:
parent
f51e2a92a1
commit
8d84ea3712
@ -51,7 +51,7 @@ namespace osu.Game.Tournament.Models
|
||||
|
||||
public Bindable<int> LastYearPlacing = new BindableInt
|
||||
{
|
||||
MinValue = 1,
|
||||
MinValue = 0,
|
||||
MaxValue = 256
|
||||
};
|
||||
|
||||
|
@ -274,7 +274,7 @@ namespace osu.Game.Tournament.Screens.TeamIntro
|
||||
new TeamDisplay(team) { Margin = new MarginPadding { Bottom = 30 } },
|
||||
new RowDisplay("Average Rank:", $"#{team.AverageRank:#,0}"),
|
||||
new RowDisplay("Seed:", team.Seed.Value),
|
||||
new RowDisplay("Last year's placing:", team.LastYearPlacing.Value > 0 ? $"#{team.LastYearPlacing:#,0}" : "0"),
|
||||
new RowDisplay("Last year's placing:", team.LastYearPlacing.Value > 0 ? $"#{team.LastYearPlacing:#,0}" : "N/A"),
|
||||
new Container { Margin = new MarginPadding { Bottom = 30 } },
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user