osu/osu.Game/Graphics/Cursor/OsuContextMenuContainer.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
872 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-04-13 09:19:50 +00:00
using osu.Framework.Allocation;
2017-06-12 09:56:07 +00:00
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.UserInterface;
2018-04-13 09:19:50 +00:00
2017-06-12 09:56:07 +00:00
namespace osu.Game.Graphics.Cursor
{
2024-08-06 07:02:36 +00:00
[Cached(typeof(OsuContextMenuContainer))]
2017-08-28 05:42:52 +00:00
public partial class OsuContextMenuContainer : ContextMenuContainer
2017-06-12 09:56:07 +00:00
{
[Cached]
private OsuContextMenuSamples samples = new OsuContextMenuSamples();
private OsuContextMenu menu = null!;
public OsuContextMenuContainer()
{
AddInternal(samples);
}
2024-08-06 06:17:52 +00:00
protected override Menu CreateMenu() => menu = new OsuContextMenu(true);
public void CloseMenu()
{
menu.Close();
}
2017-06-12 09:56:07 +00:00
}
2018-01-05 11:21:19 +00:00
}