Merge pull request #284 from FunkinCrew/bugfix/chart-editor-edit-context

Fix "Edit Event" menu item when right clicking chart events
This commit is contained in:
Cameron Taylor 2024-01-15 21:30:22 -05:00 committed by GitHub
commit 3b078ee42c
2 changed files with 6 additions and 2 deletions

View file

@ -54,14 +54,14 @@
"name": "haxeui-core",
"type": "git",
"dir": null,
"ref": "2561076c5abeee0a60f3a2a65a8ecb7832a6a62a",
"ref": "bb904f8b4b205755a310c23ff25219f9dcd62711",
"url": "https://github.com/haxeui/haxeui-core"
},
{
"name": "haxeui-flixel",
"type": "git",
"dir": null,
"ref": "4f1842e55a410014dd4a188b576b31019631493a",
"ref": "1ec470c297afd7758a90dc9399aa1e3a4ea6ca0b",
"url": "https://github.com/haxeui/haxeui-flixel"
},
{

View file

@ -25,6 +25,10 @@ class ChartEditorEventContextMenu extends ChartEditorBaseContextMenu
function initialize()
{
contextmenuEdit.onClick = function(_) {
chartEditorState.showToolbox(ChartEditorState.CHART_EDITOR_TOOLBOX_EVENT_DATA_LAYOUT);
}
contextmenuDelete.onClick = function(_) {
chartEditorState.performCommand(new RemoveEventsCommand([data]));
}