diff options
Diffstat (limited to 'scene/animation/animation_player.cpp')
| -rw-r--r-- | scene/animation/animation_player.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index ecbd75ed8..dabdde8ec 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1296,61 +1296,61 @@ void AnimationPlayer::get_argument_options(const StringName& p_function,int p_id void AnimationPlayer::_bind_methods() { - ClassDB::bind_method(_MD("_node_removed"),&AnimationPlayer::_node_removed); - ClassDB::bind_method(_MD("_animation_changed"),&AnimationPlayer::_animation_changed); + ClassDB::bind_method(D_METHOD("_node_removed"),&AnimationPlayer::_node_removed); + ClassDB::bind_method(D_METHOD("_animation_changed"),&AnimationPlayer::_animation_changed); - ClassDB::bind_method(_MD("add_animation","name","animation:Animation"),&AnimationPlayer::add_animation); - ClassDB::bind_method(_MD("remove_animation","name"),&AnimationPlayer::remove_animation); - ClassDB::bind_method(_MD("rename_animation","name","newname"),&AnimationPlayer::rename_animation); - ClassDB::bind_method(_MD("has_animation","name"),&AnimationPlayer::has_animation); - ClassDB::bind_method(_MD("get_animation:Animation","name"),&AnimationPlayer::get_animation); - ClassDB::bind_method(_MD("get_animation_list"),&AnimationPlayer::_get_animation_list); + ClassDB::bind_method(D_METHOD("add_animation","name","animation:Animation"),&AnimationPlayer::add_animation); + ClassDB::bind_method(D_METHOD("remove_animation","name"),&AnimationPlayer::remove_animation); + ClassDB::bind_method(D_METHOD("rename_animation","name","newname"),&AnimationPlayer::rename_animation); + ClassDB::bind_method(D_METHOD("has_animation","name"),&AnimationPlayer::has_animation); + ClassDB::bind_method(D_METHOD("get_animation:Animation","name"),&AnimationPlayer::get_animation); + ClassDB::bind_method(D_METHOD("get_animation_list"),&AnimationPlayer::_get_animation_list); - ClassDB::bind_method(_MD("animation_set_next", "anim_from", "anim_to"), &AnimationPlayer::animation_set_next); - ClassDB::bind_method(_MD("animation_get_next", "anim_from"), &AnimationPlayer::animation_get_next); + ClassDB::bind_method(D_METHOD("animation_set_next", "anim_from", "anim_to"), &AnimationPlayer::animation_set_next); + ClassDB::bind_method(D_METHOD("animation_get_next", "anim_from"), &AnimationPlayer::animation_get_next); - ClassDB::bind_method(_MD("set_blend_time","anim_from","anim_to","sec"),&AnimationPlayer::set_blend_time); - ClassDB::bind_method(_MD("get_blend_time","anim_from","anim_to"),&AnimationPlayer::get_blend_time); + ClassDB::bind_method(D_METHOD("set_blend_time","anim_from","anim_to","sec"),&AnimationPlayer::set_blend_time); + ClassDB::bind_method(D_METHOD("get_blend_time","anim_from","anim_to"),&AnimationPlayer::get_blend_time); - ClassDB::bind_method(_MD("set_default_blend_time","sec"),&AnimationPlayer::set_default_blend_time); - ClassDB::bind_method(_MD("get_default_blend_time"),&AnimationPlayer::get_default_blend_time); + ClassDB::bind_method(D_METHOD("set_default_blend_time","sec"),&AnimationPlayer::set_default_blend_time); + ClassDB::bind_method(D_METHOD("get_default_blend_time"),&AnimationPlayer::get_default_blend_time); - ClassDB::bind_method(_MD("play","name","custom_blend","custom_speed","from_end"),&AnimationPlayer::play,DEFVAL(""),DEFVAL(-1),DEFVAL(1.0),DEFVAL(false)); - ClassDB::bind_method(_MD("play_backwards","name","custom_blend"),&AnimationPlayer::play_backwards,DEFVAL(""),DEFVAL(-1)); - ClassDB::bind_method(_MD("stop","reset"),&AnimationPlayer::stop,DEFVAL(true)); - ClassDB::bind_method(_MD("stop_all"),&AnimationPlayer::stop_all); - ClassDB::bind_method(_MD("is_playing"),&AnimationPlayer::is_playing); - ClassDB::bind_method(_MD("set_current_animation","anim"),&AnimationPlayer::set_current_animation); - ClassDB::bind_method(_MD("get_current_animation"),&AnimationPlayer::get_current_animation); - ClassDB::bind_method(_MD("queue","name"),&AnimationPlayer::queue); - ClassDB::bind_method(_MD("clear_queue"),&AnimationPlayer::clear_queue); + ClassDB::bind_method(D_METHOD("play","name","custom_blend","custom_speed","from_end"),&AnimationPlayer::play,DEFVAL(""),DEFVAL(-1),DEFVAL(1.0),DEFVAL(false)); + ClassDB::bind_method(D_METHOD("play_backwards","name","custom_blend"),&AnimationPlayer::play_backwards,DEFVAL(""),DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("stop","reset"),&AnimationPlayer::stop,DEFVAL(true)); + ClassDB::bind_method(D_METHOD("stop_all"),&AnimationPlayer::stop_all); + ClassDB::bind_method(D_METHOD("is_playing"),&AnimationPlayer::is_playing); + ClassDB::bind_method(D_METHOD("set_current_animation","anim"),&AnimationPlayer::set_current_animation); + ClassDB::bind_method(D_METHOD("get_current_animation"),&AnimationPlayer::get_current_animation); + ClassDB::bind_method(D_METHOD("queue","name"),&AnimationPlayer::queue); + ClassDB::bind_method(D_METHOD("clear_queue"),&AnimationPlayer::clear_queue); - ClassDB::bind_method(_MD("set_active","active"),&AnimationPlayer::set_active); - ClassDB::bind_method(_MD("is_active"),&AnimationPlayer::is_active); + ClassDB::bind_method(D_METHOD("set_active","active"),&AnimationPlayer::set_active); + ClassDB::bind_method(D_METHOD("is_active"),&AnimationPlayer::is_active); - ClassDB::bind_method(_MD("set_speed_scale","speed"),&AnimationPlayer::set_speed_scale); - ClassDB::bind_method(_MD("get_speed_scale"),&AnimationPlayer::get_speed_scale); + ClassDB::bind_method(D_METHOD("set_speed_scale","speed"),&AnimationPlayer::set_speed_scale); + ClassDB::bind_method(D_METHOD("get_speed_scale"),&AnimationPlayer::get_speed_scale); - ClassDB::bind_method(_MD("set_autoplay","name"),&AnimationPlayer::set_autoplay); - ClassDB::bind_method(_MD("get_autoplay"),&AnimationPlayer::get_autoplay); + ClassDB::bind_method(D_METHOD("set_autoplay","name"),&AnimationPlayer::set_autoplay); + ClassDB::bind_method(D_METHOD("get_autoplay"),&AnimationPlayer::get_autoplay); - ClassDB::bind_method(_MD("set_root","path"),&AnimationPlayer::set_root); - ClassDB::bind_method(_MD("get_root"),&AnimationPlayer::get_root); + ClassDB::bind_method(D_METHOD("set_root","path"),&AnimationPlayer::set_root); + ClassDB::bind_method(D_METHOD("get_root"),&AnimationPlayer::get_root); - ClassDB::bind_method(_MD("seek","pos_sec","update"),&AnimationPlayer::seek,DEFVAL(false)); - ClassDB::bind_method(_MD("get_pos"),&AnimationPlayer::get_current_animation_pos); + ClassDB::bind_method(D_METHOD("seek","pos_sec","update"),&AnimationPlayer::seek,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_pos"),&AnimationPlayer::get_current_animation_pos); - ClassDB::bind_method(_MD("find_animation","animation:Animation"),&AnimationPlayer::find_animation); + ClassDB::bind_method(D_METHOD("find_animation","animation:Animation"),&AnimationPlayer::find_animation); - ClassDB::bind_method(_MD("clear_caches"),&AnimationPlayer::clear_caches); + ClassDB::bind_method(D_METHOD("clear_caches"),&AnimationPlayer::clear_caches); - ClassDB::bind_method(_MD("set_animation_process_mode","mode"),&AnimationPlayer::set_animation_process_mode); - ClassDB::bind_method(_MD("get_animation_process_mode"),&AnimationPlayer::get_animation_process_mode); + ClassDB::bind_method(D_METHOD("set_animation_process_mode","mode"),&AnimationPlayer::set_animation_process_mode); + ClassDB::bind_method(D_METHOD("get_animation_process_mode"),&AnimationPlayer::get_animation_process_mode); - ClassDB::bind_method(_MD("get_current_animation_pos"),&AnimationPlayer::get_current_animation_pos); - ClassDB::bind_method(_MD("get_current_animation_length"),&AnimationPlayer::get_current_animation_length); + ClassDB::bind_method(D_METHOD("get_current_animation_pos"),&AnimationPlayer::get_current_animation_pos); + ClassDB::bind_method(D_METHOD("get_current_animation_length"),&AnimationPlayer::get_current_animation_length); - ClassDB::bind_method(_MD("advance","delta"),&AnimationPlayer::advance); + ClassDB::bind_method(D_METHOD("advance","delta"),&AnimationPlayer::advance); ADD_GROUP("Playback","playback_"); |
