Rename the _MD macro to D_METHOD

This new name also makes its purpose a little clearer

This is a step towards fixing #56
This commit is contained in:
Hein-Pieter van Braam
2017-02-13 12:47:24 +01:00
parent bf64df4427
commit 411ee71b4d
297 changed files with 5445 additions and 5443 deletions

View File

@@ -814,11 +814,11 @@ bool ScrollBar::key(unsigned long p_unicode, unsigned long p_scan_code,bool b.pr
void ScrollBar::_bind_methods() {
ClassDB::bind_method(_MD("_gui_input"),&ScrollBar::_gui_input);
ClassDB::bind_method(_MD("set_custom_step","step"),&ScrollBar::set_custom_step);
ClassDB::bind_method(_MD("get_custom_step"),&ScrollBar::get_custom_step);
ClassDB::bind_method(_MD("_drag_slave_input"),&ScrollBar::_drag_slave_input);
ClassDB::bind_method(_MD("_drag_slave_exit"),&ScrollBar::_drag_slave_exit);
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);
ClassDB::bind_method(D_METHOD("_drag_slave_input"),&ScrollBar::_drag_slave_input);
ClassDB::bind_method(D_METHOD("_drag_slave_exit"),&ScrollBar::_drag_slave_exit);
ADD_PROPERTY( PropertyInfo(Variant::REAL,"custom_step",PROPERTY_HINT_RANGE,"-1,4096"), "set_custom_step","get_custom_step");