1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 09:47:52 +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,6 +44,12 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
RelativeSizeAxes = Axes.Both,
Colour = OsuColour.Gray(0.2f)
},
new FillFlowContainer
{
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."
@ -51,11 +57,9 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
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."
)
{
RelativePositionAxes = Axes.X,
X = 0.5f,
},
),
}
}
};
this.user.ValueChanged += newUser =>