1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:52:56 +08:00

move panel spacing to ctor

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 21:31:49 +07:00
parent 10c4ba3a74
commit 24960c4fb8
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2
2 changed files with 7 additions and 7 deletions

View File

@ -79,8 +79,6 @@ namespace osu.Game.Overlays.Wiki
{
new WikiPanelContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = panelsNode[i].InnerText,
IsFullWidth = true,
Width = 2,
@ -95,14 +93,10 @@ namespace osu.Game.Overlays.Wiki
{
new WikiPanelContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = panelsNode[i].InnerText,
},
new WikiPanelContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = panelsNode[i + 1].InnerText,
},
};

View File

@ -27,10 +27,16 @@ namespace osu.Game.Overlays.Wiki
public bool IsFullWidth;
public WikiPanelContainer()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Padding = new MarginPadding(3);
}
[BackgroundDependencyLoader]
private void load()
{
Padding = new MarginPadding(3);
Children = new Drawable[]
{
new Container