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
1 changed files with 15 additions and 11 deletions

View File

@ -44,18 +44,22 @@ public KudosuInfo(Bindable<User> user)
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 =>