1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 21:07:33 +08:00

Give EditorScreen a Beatmap

This commit is contained in:
smoogipoo 2017-10-04 15:02:11 +09:00
parent 7211dd2015
commit cf44868bcd
2 changed files with 5 additions and 0 deletions

View File

@ -118,6 +118,7 @@ namespace osu.Game.Screens.Edit
break; break;
} }
currentScreen.Beatmap.BindTo(Beatmap);
screenContainer.Add(currentScreen); screenContainer.Add(currentScreen);
} }

View File

@ -1,13 +1,17 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Configuration;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Beatmaps;
namespace osu.Game.Screens.Edit.Screens namespace osu.Game.Screens.Edit.Screens
{ {
public class EditorScreen : Container public class EditorScreen : Container
{ {
public readonly Bindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
protected override Container<Drawable> Content => content; protected override Container<Drawable> Content => content;
private readonly Container content; private readonly Container content;