diff options
| author | kobewi <kobewi4e@gmail.com> | 2020-12-16 00:04:21 +0100 |
|---|---|---|
| committer | kobewi <kobewi4e@gmail.com> | 2020-12-16 20:23:51 +0100 |
| commit | 889f5e44ef099d092977bc463f3d924d57390f79 (patch) | |
| tree | 233524d550dc8aecb4217724eeb3ab6d825ed185 /editor/editor_node.h | |
| parent | 92d4deedaa542e9458845fdf2b2a44fedd19fde8 (diff) | |
| download | redot-engine-889f5e44ef099d092977bc463f3d924d57390f79.tar.gz | |
Make tool menu plugins use Callables for callback
Diffstat (limited to 'editor/editor_node.h')
| -rw-r--r-- | editor/editor_node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h index 7eec2f265f..ab8d268801 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -830,7 +830,7 @@ public: Variant drag_resource(const Ref<Resource> &p_res, Control *p_from); Variant drag_files_and_dirs(const Vector<String> &p_paths, Control *p_from); - void add_tool_menu_item(const String &p_name, Object *p_handler, const String &p_callback, const Variant &p_ud = Variant()); + void add_tool_menu_item(const String &p_name, const Callable &p_callback); void add_tool_submenu_item(const String &p_name, PopupMenu *p_submenu); void remove_tool_menu_item(const String &p_name); |
