1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 14:15:03 +08:00

Move drawable init properties to constructor

This commit is contained in:
Joseph Madamba 2023-09-22 16:21:53 -07:00
parent 228731493e
commit 2bd28e6718

View File

@ -86,6 +86,10 @@ namespace osu.Game.Online.Leaderboards
this.score = score;
this.rank = rank;
this.isPersonalBest = isPersonalBest;
Shear = shear;
RelativeSizeAxes = Axes.X;
Height = height;
}
[BackgroundDependencyLoader]
@ -98,9 +102,6 @@ namespace osu.Game.Online.Leaderboards
statisticsLabels = GetStatistics(score).Select(s => new ScoreComponentLabel(s, score)).ToList();
Shear = shear;
RelativeSizeAxes = Axes.X;
Height = height;
Child = content = new Container
{
Masking = true,