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.
This commit is contained in:
@ -83,7 +83,7 @@ void ScrollContainer::_cancel_drag() {
|
||||
}
|
||||
}
|
||||
|
||||
void ScrollContainer::_gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
void ScrollContainer::gui_input(const Ref<InputEvent> &p_gui_input) {
|
||||
ERR_FAIL_COND(p_gui_input.is_null());
|
||||
|
||||
double prev_v_scroll = v_scroll->get_value();
|
||||
@ -568,7 +568,6 @@ VScrollBar *ScrollContainer::get_v_scrollbar() {
|
||||
}
|
||||
|
||||
void ScrollContainer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_gui_input"), &ScrollContainer::_gui_input);
|
||||
ClassDB::bind_method(D_METHOD("_update_scrollbar_position"), &ScrollContainer::_update_scrollbar_position);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_h_scroll", "value"), &ScrollContainer::set_h_scroll);
|
||||
|
||||
Reference in New Issue
Block a user