mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Use tooltip and context menu containers as newly required
This commit is contained in:
Submodule osu-framework updated: 672e318d54...47ad455b71
Submodule osu-resources updated: 900f47563f...76656c51f2
@ -10,9 +10,5 @@ namespace osu.Game.Graphics.Cursor
|
||||
public class OsuContextMenuContainer : ContextMenuContainer
|
||||
{
|
||||
protected override ContextMenu<ContextMenuItem> CreateContextMenu() => new OsuContextMenu<ContextMenuItem>();
|
||||
|
||||
public OsuContextMenuContainer(CursorContainer cursor) : base(cursor)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
@ -37,9 +37,9 @@ namespace osu.Game
|
||||
|
||||
public APIAccess API;
|
||||
|
||||
protected override Container<Drawable> Content => ratioContainer;
|
||||
private Container content;
|
||||
|
||||
private RatioAdjust ratioContainer;
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
protected MenuCursor Cursor;
|
||||
|
||||
@ -146,22 +146,20 @@ namespace osu.Game
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
base.Content.Add(ratioContainer = new RatioAdjust
|
||||
base.Content.Add(new RatioAdjust
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Depth = float.MinValue,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
Cursor = new MenuCursor(),
|
||||
new OsuContextMenuContainer(Cursor) { Depth = -2 },
|
||||
new OsuTooltipContainer(Cursor) { Depth = -1 },
|
||||
}
|
||||
new OsuTooltipContainer(Cursor)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = content = new OsuContextMenuContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// TODO: This is temporary until we reimplement the local FPS display.
|
||||
|
Reference in New Issue
Block a user