mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-22 01:49:21 +00:00
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:
commit
3b078ee42c
4
hmm.json
4
hmm.json
|
@ -54,14 +54,14 @@
|
||||||
"name": "haxeui-core",
|
"name": "haxeui-core",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "2561076c5abeee0a60f3a2a65a8ecb7832a6a62a",
|
"ref": "bb904f8b4b205755a310c23ff25219f9dcd62711",
|
||||||
"url": "https://github.com/haxeui/haxeui-core"
|
"url": "https://github.com/haxeui/haxeui-core"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "haxeui-flixel",
|
"name": "haxeui-flixel",
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"dir": null,
|
"dir": null,
|
||||||
"ref": "4f1842e55a410014dd4a188b576b31019631493a",
|
"ref": "1ec470c297afd7758a90dc9399aa1e3a4ea6ca0b",
|
||||||
"url": "https://github.com/haxeui/haxeui-flixel"
|
"url": "https://github.com/haxeui/haxeui-flixel"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,10 @@ class ChartEditorEventContextMenu extends ChartEditorBaseContextMenu
|
||||||
|
|
||||||
function initialize()
|
function initialize()
|
||||||
{
|
{
|
||||||
|
contextmenuEdit.onClick = function(_) {
|
||||||
|
chartEditorState.showToolbox(ChartEditorState.CHART_EDITOR_TOOLBOX_EVENT_DATA_LAYOUT);
|
||||||
|
}
|
||||||
|
|
||||||
contextmenuDelete.onClick = function(_) {
|
contextmenuDelete.onClick = function(_) {
|
||||||
chartEditorState.performCommand(new RemoveEventsCommand([data]));
|
chartEditorState.performCommand(new RemoveEventsCommand([data]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue