mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
move panel spacing to ctor
This commit is contained in:
parent
10c4ba3a74
commit
24960c4fb8
@ -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,
|
||||
},
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user