summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2020-12-16 22:04:39 +0100
committerGitHub <noreply@github.com>2020-12-16 22:04:39 +0100
commitfb2465b3c8726a2b86313adf8cd1c19c283a38aa (patch)
tree9259c50ec30478a86c9f8722267bdc9a34d62b3e /editor/editor_node.h
parent9c39b51c5306333ba210c0a323f4198a258b51bd (diff)
parent889f5e44ef099d092977bc463f3d924d57390f79 (diff)
downloadredot-engine-fb2465b3c8726a2b86313adf8cd1c19c283a38aa.tar.gz
Merge pull request #44410 from KoBeWi/project--tools--thisPR
Make tool menu plugins use Callables for callback
Diffstat (limited to 'editor/editor_node.h')
-rw-r--r--editor/editor_node.h2
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);