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:
parent
2d446771d6
commit
5cecdfa8af
134 changed files with 359 additions and 410 deletions
|
|
@ -41,7 +41,7 @@ void ScrollBar::set_can_focus_by_default(bool p_can_focus) {
|
|||
focus_by_default = p_can_focus;
|
||||
}
|
||||
|
||||
void ScrollBar::_gui_input(Ref<InputEvent> p_event) {
|
||||
void ScrollBar::gui_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
Ref<InputEventMouseMotion> m = p_event;
|
||||
|
|
@ -597,7 +597,6 @@ bool ScrollBar::is_smooth_scroll_enabled() const {
|
|||
}
|
||||
|
||||
void ScrollBar::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("_gui_input"), &ScrollBar::_gui_input);
|
||||
ClassDB::bind_method(D_METHOD("set_custom_step", "step"), &ScrollBar::set_custom_step);
|
||||
ClassDB::bind_method(D_METHOD("get_custom_step"), &ScrollBar::get_custom_step);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue