diff options
Diffstat (limited to 'scene/gui/slider.cpp')
-rw-r--r-- | scene/gui/slider.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/gui/slider.cpp b/scene/gui/slider.cpp index e36287246e..a6d6864b16 100644 --- a/scene/gui/slider.cpp +++ b/scene/gui/slider.cpp @@ -235,12 +235,12 @@ void Slider::set_ticks_on_borders(bool _tob){ void Slider::_bind_methods() { - ClassDB::bind_method(_MD("_gui_input"),&Slider::_gui_input); - ClassDB::bind_method(_MD("set_ticks","count"),&Slider::set_ticks); - ClassDB::bind_method(_MD("get_ticks"),&Slider::get_ticks); + ClassDB::bind_method(D_METHOD("_gui_input"),&Slider::_gui_input); + ClassDB::bind_method(D_METHOD("set_ticks","count"),&Slider::set_ticks); + ClassDB::bind_method(D_METHOD("get_ticks"),&Slider::get_ticks); - ClassDB::bind_method(_MD("get_ticks_on_borders"),&Slider::get_ticks_on_borders); - ClassDB::bind_method(_MD("set_ticks_on_borders","ticks_on_border"),&Slider::set_ticks_on_borders); + ClassDB::bind_method(D_METHOD("get_ticks_on_borders"),&Slider::get_ticks_on_borders); + ClassDB::bind_method(D_METHOD("set_ticks_on_borders","ticks_on_border"),&Slider::set_ticks_on_borders); ADD_PROPERTY( PropertyInfo( Variant::INT, "tick_count", PROPERTY_HINT_RANGE,"0,4096,1"), "set_ticks", "get_ticks") ; ADD_PROPERTY( PropertyInfo( Variant::BOOL, "ticks_on_borders" ), "set_ticks_on_borders", "get_ticks_on_borders") ; |