mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Add a global popover container
This commit is contained in:
@ -18,6 +18,7 @@ using osu.Framework.Development;
|
|||||||
using osu.Framework.Extensions;
|
using osu.Framework.Extensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Framework.Graphics.Cursor;
|
||||||
using osu.Framework.Graphics.Textures;
|
using osu.Framework.Graphics.Textures;
|
||||||
using osu.Framework.Input;
|
using osu.Framework.Input;
|
||||||
using osu.Framework.Input.Handlers;
|
using osu.Framework.Input.Handlers;
|
||||||
@ -350,9 +351,13 @@ namespace osu.Game
|
|||||||
(GlobalCursorDisplay = new GlobalCursorDisplay
|
(GlobalCursorDisplay = new GlobalCursorDisplay
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both
|
RelativeSizeAxes = Axes.Both
|
||||||
}).WithChild(content = new OsuTooltipContainer(GlobalCursorDisplay.MenuCursor)
|
}).WithChild(new OsuTooltipContainer(GlobalCursorDisplay.MenuCursor)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Child = content = new PopoverContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
// to avoid positional input being blocked by children, ensure the GlobalActionContainer is above everything.
|
// to avoid positional input being blocked by children, ensure the GlobalActionContainer is above everything.
|
||||||
globalBindings = new GlobalActionContainer(this)
|
globalBindings = new GlobalActionContainer(this)
|
||||||
|
Reference in New Issue
Block a user