1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Use FillFlow rather than manually specifying positions

This commit is contained in:
Dean Herbert 2017-11-23 17:31:43 +09:00
parent 2ff21bbc6c
commit 6d9951d9af

View File

@ -44,18 +44,22 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.2f)
},
total = new CountSection(
"Total Kudosu Earned",
"Based on how much of a contribution the user has made to beatmap moderation. See this link for more information."
),
avaliable = new CountSection(
"Kudosu Avaliable",
"Kudosu can be traded for kudosu stars, which will help your beatmap get more attention. This is the number of kudosu you haven't traded in yet."
)
new FillFlowContainer
{
RelativePositionAxes = Axes.X,
X = 0.5f,
},
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new[]
{
total = new CountSection(
"Total Kudosu Earned",
"Based on how much of a contribution the user has made to beatmap moderation. See this link for more information."
),
avaliable = new CountSection(
"Kudosu Avaliable",
"Kudosu can be traded for kudosu stars, which will help your beatmap get more attention. This is the number of kudosu you haven't traded in yet."
),
}
}
};
this.user.ValueChanged += newUser =>