1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Replace original menu container to the custom one

This commit is contained in:
jkh675 2024-08-04 19:08:31 +08:00
parent de6d8e7eb7
commit 83aeb27c73
2 changed files with 4 additions and 3 deletions

View File

@ -213,7 +213,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
{
case PlatformAction.Delete:
DeleteSelected();
return true;
// Pass to the `EditorContextMenuContainer` to handle the menu close
return false;
}
return false;

View File

@ -31,7 +31,6 @@ using osu.Game.Beatmaps;
using osu.Game.Beatmaps.ControlPoints;
using osu.Game.Configuration;
using osu.Game.Database;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.UserInterface;
using osu.Game.Input.Bindings;
using osu.Game.Localisation;
@ -43,6 +42,7 @@ using osu.Game.Overlays.OSD;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Objects;
using osu.Game.Screens.Edit.Components;
using osu.Game.Screens.Edit.Components.Menus;
using osu.Game.Screens.Edit.Compose;
using osu.Game.Screens.Edit.Compose.Components.Timeline;
@ -319,7 +319,7 @@ namespace osu.Game.Screens.Edit
editorTimelineShowTimingChanges = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTimingChanges);
editorTimelineShowTicks = config.GetBindable<bool>(OsuSetting.EditorTimelineShowTicks);
AddInternal(new OsuContextMenuContainer
AddInternal(new EditorContextMenuContainer
{
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]