move value set to constructor and make private readonly

This commit is contained in:
Shivam
2021-01-25 15:47:31 +01:00
parent 331a7d0590
commit b036f0165a
2 changed files with 9 additions and 5 deletions

View File

@ -123,14 +123,13 @@ namespace osu.Game.Tournament.Components
if (!string.IsNullOrEmpty(mod))
{
AddInternal(new TournamentModDisplay
AddInternal(new TournamentModDisplay(mod)
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Margin = new MarginPadding(10),
Width = 60,
RelativeSizeAxes = Axes.Y,
ModAcronym = mod
});
}
}