diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2020-12-16 22:04:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-16 22:04:39 +0100 |
| commit | fb2465b3c8726a2b86313adf8cd1c19c283a38aa (patch) | |
| tree | 9259c50ec30478a86c9f8722267bdc9a34d62b3e /editor/editor_plugin.h | |
| parent | 9c39b51c5306333ba210c0a323f4198a258b51bd (diff) | |
| parent | 889f5e44ef099d092977bc463f3d924d57390f79 (diff) | |
| download | redot-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_plugin.h')
| -rw-r--r-- | editor/editor_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_plugin.h b/editor/editor_plugin.h index 11063066d6..03908b43ca 100644 --- a/editor/editor_plugin.h +++ b/editor/editor_plugin.h @@ -174,7 +174,7 @@ public: void remove_control_from_docks(Control *p_control); void remove_control_from_bottom_panel(Control *p_control); - 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_callable); void add_tool_submenu_item(const String &p_name, Object *p_submenu); void remove_tool_menu_item(const String &p_name); |
