mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 20:12:54 +08:00
Move drawable init properties to constructor
This commit is contained in:
parent
228731493e
commit
2bd28e6718
@ -86,6 +86,10 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
this.score = score;
|
this.score = score;
|
||||||
this.rank = rank;
|
this.rank = rank;
|
||||||
this.isPersonalBest = isPersonalBest;
|
this.isPersonalBest = isPersonalBest;
|
||||||
|
|
||||||
|
Shear = shear;
|
||||||
|
RelativeSizeAxes = Axes.X;
|
||||||
|
Height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -98,9 +102,6 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
statisticsLabels = GetStatistics(score).Select(s => new ScoreComponentLabel(s, score)).ToList();
|
statisticsLabels = GetStatistics(score).Select(s => new ScoreComponentLabel(s, score)).ToList();
|
||||||
|
|
||||||
Shear = shear;
|
|
||||||
RelativeSizeAxes = Axes.X;
|
|
||||||
Height = height;
|
|
||||||
Child = content = new Container
|
Child = content = new Container
|
||||||
{
|
{
|
||||||
Masking = true,
|
Masking = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user