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

Remove global OsuContextMenuContainer

This commit is contained in:
Dean Herbert 2017-09-14 15:41:32 +09:00
parent bdf62870d1
commit 396a56ddf4
2 changed files with 8 additions and 3 deletions

View File

@ -200,10 +200,9 @@ namespace osu.Game
globalBinding = new GlobalKeyBindingInputManager(this)
{
RelativeSizeAxes = Axes.Both,
Child = new OsuTooltipContainer(Cursor)
Child = content = new OsuTooltipContainer(Cursor)
{
RelativeSizeAxes = Axes.Both,
Child = content = new OsuContextMenuContainer { RelativeSizeAxes = Axes.Both },
}
}
}

View File

@ -19,6 +19,7 @@ using osu.Framework.Threading;
using osu.Framework.Configuration;
using osu.Game.Beatmaps;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.Cursor;
namespace osu.Game.Screens.Select
{
@ -86,9 +87,14 @@ namespace osu.Game.Screens.Select
public BeatmapCarousel()
{
Add(scrollableContent = new Container<Panel>
Add(new OsuContextMenuContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Child = scrollableContent = new Container<Panel>
{
RelativeSizeAxes = Axes.X,
}
});
}