mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Make CreateContent a method again
This commit is contained in:
parent
2d167a5161
commit
04a4821a9f
@ -77,7 +77,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
|
|
||||||
protected override Drawable CreateBackground() => new HeaderBackground();
|
protected override Drawable CreateBackground() => new HeaderBackground();
|
||||||
|
|
||||||
protected override Drawable CreateContent => new Container
|
protected override Drawable CreateContent() => new Container
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
@ -99,13 +99,15 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (CreateContent != null)
|
var content = CreateContent();
|
||||||
flow.Add(CreateContent);
|
|
||||||
|
if (content != null)
|
||||||
|
flow.Add(content);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract Drawable CreateBackground();
|
protected abstract Drawable CreateBackground();
|
||||||
|
|
||||||
protected virtual Drawable CreateContent => null;
|
protected virtual Drawable CreateContent() => null;
|
||||||
|
|
||||||
protected abstract ScreenTitle CreateTitle();
|
protected abstract ScreenTitle CreateTitle();
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
protected override Drawable CreateContent => new FillFlowContainer
|
protected override Drawable CreateContent() => new FillFlowContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Loading…
Reference in New Issue
Block a user