Make CreateContent a method again

This commit is contained in:
Andrei Zavatski
2019-12-27 06:36:41 +03:00
parent 2d167a5161
commit 04a4821a9f
3 changed files with 7 additions and 5 deletions

View File

@ -99,13 +99,15 @@ namespace osu.Game.Overlays
}
});
if (CreateContent != null)
flow.Add(CreateContent);
var content = CreateContent();
if (content != null)
flow.Add(content);
}
protected abstract Drawable CreateBackground();
protected virtual Drawable CreateContent => null;
protected virtual Drawable CreateContent() => null;
protected abstract ScreenTitle CreateTitle();
}