diff options
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r-- | scene/gui/button.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 3eb583decb..de2ccfb0b5 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -228,16 +228,16 @@ Button::TextAlign Button::get_text_align() const { void Button::_bind_methods() { - ClassDB::bind_method(_MD("set_text","text"),&Button::set_text); - ClassDB::bind_method(_MD("get_text"),&Button::get_text); - ClassDB::bind_method(_MD("set_button_icon","texture:Texture"),&Button::set_icon); - ClassDB::bind_method(_MD("get_button_icon:Texture"),&Button::get_icon); - ClassDB::bind_method(_MD("set_flat","enabled"),&Button::set_flat); - ClassDB::bind_method(_MD("set_clip_text","enabled"),&Button::set_clip_text); - ClassDB::bind_method(_MD("get_clip_text"),&Button::get_clip_text); - ClassDB::bind_method(_MD("set_text_align","align"),&Button::set_text_align); - ClassDB::bind_method(_MD("get_text_align"),&Button::get_text_align); - ClassDB::bind_method(_MD("is_flat"),&Button::is_flat); + ClassDB::bind_method(D_METHOD("set_text","text"),&Button::set_text); + ClassDB::bind_method(D_METHOD("get_text"),&Button::get_text); + ClassDB::bind_method(D_METHOD("set_button_icon","texture:Texture"),&Button::set_icon); + ClassDB::bind_method(D_METHOD("get_button_icon:Texture"),&Button::get_icon); + ClassDB::bind_method(D_METHOD("set_flat","enabled"),&Button::set_flat); + ClassDB::bind_method(D_METHOD("set_clip_text","enabled"),&Button::set_clip_text); + ClassDB::bind_method(D_METHOD("get_clip_text"),&Button::get_clip_text); + ClassDB::bind_method(D_METHOD("set_text_align","align"),&Button::set_text_align); + ClassDB::bind_method(D_METHOD("get_text_align"),&Button::get_text_align); + ClassDB::bind_method(D_METHOD("is_flat"),&Button::is_flat); BIND_CONSTANT( ALIGN_LEFT ); BIND_CONSTANT( ALIGN_CENTER ); |