1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 19:13:20 +08:00

Restructure Editor construction

This commit is contained in:
smoogipoo 2017-10-02 09:26:16 +09:00
parent 7b1ef53f36
commit 221902f4fe

View File

@ -26,24 +26,26 @@ namespace osu.Game.Screens.Edit
public Editor()
{
Add(new Container
EditorMenuBar menuBar;
SummaryTimeline timeline;
Children = new[]
{
new Container
{
Name = "Top bar",
RelativeSizeAxes = Axes.X,
Height = 40,
Children = new Drawable[]
{
new EditorMenuBar
Child = menuBar = new EditorMenuBar
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
RelativeSizeAxes = Axes.Both
}
}
});
SummaryTimeline summaryTimeline;
Add(new Container
},
new Container
{
Name = "Bottom bar",
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
RelativeSizeAxes = Axes.X,
@ -63,7 +65,7 @@ namespace osu.Game.Screens.Edit
Spacing = new Vector2(10, 0),
Children = new[]
{
summaryTimeline = new SummaryTimeline
timeline = new SummaryTimeline
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
@ -74,9 +76,11 @@ namespace osu.Game.Screens.Edit
}
}
}
});
},
}
};
summaryTimeline.Beatmap.BindTo(Beatmap);
timeline.Beatmap.BindTo(Beatmap);
}
[BackgroundDependencyLoader]