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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user