mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 22:13:22 +08:00
Move editor constructions to BDL load
This commit is contained in:
parent
9e0aeec574
commit
5e742eb466
@ -26,12 +26,13 @@ namespace osu.Game.Screens.Edit
|
|||||||
|
|
||||||
public override bool ShowOverlaysOnEnter => false;
|
public override bool ShowOverlaysOnEnter => false;
|
||||||
|
|
||||||
private readonly Box bottomBackground;
|
private Box bottomBackground;
|
||||||
private readonly Container screenContainer;
|
private Container screenContainer;
|
||||||
|
|
||||||
private EditorScreen currentScreen;
|
private EditorScreen currentScreen;
|
||||||
|
|
||||||
public Editor()
|
[BackgroundDependencyLoader]
|
||||||
|
private void load(OsuColour colours)
|
||||||
{
|
{
|
||||||
EditorMenuBar menuBar;
|
EditorMenuBar menuBar;
|
||||||
TimeInfoContainer timeInfo;
|
TimeInfoContainer timeInfo;
|
||||||
@ -130,12 +131,9 @@ namespace osu.Game.Screens.Edit
|
|||||||
timeline.Beatmap.BindTo(Beatmap);
|
timeline.Beatmap.BindTo(Beatmap);
|
||||||
playback.Beatmap.BindTo(Beatmap);
|
playback.Beatmap.BindTo(Beatmap);
|
||||||
menuBar.Mode.ValueChanged += onModeChanged;
|
menuBar.Mode.ValueChanged += onModeChanged;
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load(OsuColour colours)
|
|
||||||
{
|
|
||||||
bottomBackground.Colour = colours.Gray2;
|
bottomBackground.Colour = colours.Gray2;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void exportBeatmap()
|
private void exportBeatmap()
|
||||||
|
Loading…
Reference in New Issue
Block a user