Move editor constructions to BDL load

This commit is contained in:
smoogipoo 2018-03-15 17:10:08 +09:00
parent 9e0aeec574
commit 5e742eb466
1 changed files with 5 additions and 7 deletions

View File

@ -26,12 +26,13 @@ public class Editor : OsuScreen
public override bool ShowOverlaysOnEnter => false;
private readonly Box bottomBackground;
private readonly Container screenContainer;
private Box bottomBackground;
private Container screenContainer;
private EditorScreen currentScreen;
public Editor()
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
EditorMenuBar menuBar;
TimeInfoContainer timeInfo;
@ -130,12 +131,9 @@ public Editor()
timeline.Beatmap.BindTo(Beatmap);
playback.Beatmap.BindTo(Beatmap);
menuBar.Mode.ValueChanged += onModeChanged;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
bottomBackground.Colour = colours.Gray2;
}
private void exportBeatmap()