From 5cecdfa8afb91a60305b429f5b738e27dadbc83f Mon Sep 17 00:00:00 2001 From: reduz Date: Sun, 22 Aug 2021 12:37:22 -0300 Subject: Entirely removes BIND_VMETHOD in favor of GDVIRTUAL * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now. --- editor/code_editor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/code_editor.h') diff --git a/editor/code_editor.h b/editor/code_editor.h index ee8f4366dd..dfe6561f13 100644 --- a/editor/code_editor.h +++ b/editor/code_editor.h @@ -105,7 +105,7 @@ class FindReplaceBar : public HBoxContainer { protected: void _notification(int p_what); - void _unhandled_input(const Ref &p_event); + virtual void unhandled_input(const Ref &p_event) override; bool _search(uint32_t p_flags, int p_from_line, int p_from_col); @@ -173,7 +173,7 @@ class CodeTextEditor : public VBoxContainer { void _font_resize_timeout(); bool _add_font_size(int p_delta); - void _input(const Ref &event); + virtual void input(const Ref &event) override; void _text_editor_gui_input(const Ref &p_event); void _zoom_in(); void _zoom_out(); -- cgit v1.2.3