diff options
Diffstat (limited to 'scene/2d/node_2d.cpp')
-rw-r--r-- | scene/2d/node_2d.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/scene/2d/node_2d.cpp b/scene/2d/node_2d.cpp index 245fe2f296..710f9731c5 100644 --- a/scene/2d/node_2d.cpp +++ b/scene/2d/node_2d.cpp @@ -423,50 +423,50 @@ void Node2D::_bind_methods() { // TODO: Obsolete those two methods (old name) properly (GH-4397) - ClassDB::bind_method(_MD("_get_rotd"),&Node2D::_get_rotd); - ClassDB::bind_method(_MD("_set_rotd","degrees"),&Node2D::_set_rotd); - - ClassDB::bind_method(_MD("set_position","pos"),&Node2D::set_position); - ClassDB::bind_method(_MD("set_rotation","radians"),&Node2D::set_rotation); - ClassDB::bind_method(_MD("set_rotation_in_degrees","degrees"),&Node2D::set_rotation_in_degrees); - ClassDB::bind_method(_MD("set_scale","scale"),&Node2D::set_scale); - - ClassDB::bind_method(_MD("get_position"),&Node2D::get_position); - ClassDB::bind_method(_MD("get_rotation"),&Node2D::get_rotation); - ClassDB::bind_method(_MD("get_rotation_in_degrees"),&Node2D::get_rotation_in_degrees); - ClassDB::bind_method(_MD("get_scale"),&Node2D::get_scale); - - ClassDB::bind_method(_MD("rotate","radians"),&Node2D::rotate); - ClassDB::bind_method(_MD("move_local_x","delta","scaled"),&Node2D::move_x,DEFVAL(false)); - ClassDB::bind_method(_MD("move_local_y","delta","scaled"),&Node2D::move_y,DEFVAL(false)); - ClassDB::bind_method(_MD("translate","offset"),&Node2D::translate); - ClassDB::bind_method(_MD("global_translate","offset"),&Node2D::global_translate); - ClassDB::bind_method(_MD("scale","ratio"),&Node2D::scale); - - ClassDB::bind_method(_MD("set_global_position","pos"),&Node2D::set_global_position); - ClassDB::bind_method(_MD("get_global_position"),&Node2D::get_global_position); - ClassDB::bind_method(_MD("set_global_rotation","radians"),&Node2D::set_global_rotation); - ClassDB::bind_method(_MD("get_global_rotation"),&Node2D::get_global_rotation); - ClassDB::bind_method(_MD("set_global_rotation_in_degrees","degrees"),&Node2D::set_global_rotation_in_degrees); - ClassDB::bind_method(_MD("get_global_rotation_in_degrees"),&Node2D::get_global_rotation_in_degrees); - ClassDB::bind_method(_MD("set_global_scale","scale"),&Node2D::set_global_scale); - ClassDB::bind_method(_MD("get_global_scale"),&Node2D::get_global_scale); - - ClassDB::bind_method(_MD("set_transform","xform"),&Node2D::set_transform); - ClassDB::bind_method(_MD("set_global_transform","xform"),&Node2D::set_global_transform); - - ClassDB::bind_method(_MD("look_at","point"),&Node2D::look_at); - ClassDB::bind_method(_MD("get_angle_to","point"),&Node2D::get_angle_to); - - ClassDB::bind_method(_MD("set_z","z"),&Node2D::set_z); - ClassDB::bind_method(_MD("get_z"),&Node2D::get_z); - - ClassDB::bind_method(_MD("set_z_as_relative","enable"),&Node2D::set_z_as_relative); - ClassDB::bind_method(_MD("is_z_relative"),&Node2D::is_z_relative); - - ClassDB::bind_method(_MD("edit_set_pivot","pivot"),&Node2D::edit_set_pivot); - - ClassDB::bind_method(_MD("get_relative_transform_to_parent","parent"),&Node2D::get_relative_transform_to_parent); + ClassDB::bind_method(D_METHOD("_get_rotd"),&Node2D::_get_rotd); + ClassDB::bind_method(D_METHOD("_set_rotd","degrees"),&Node2D::_set_rotd); + + ClassDB::bind_method(D_METHOD("set_position","pos"),&Node2D::set_position); + ClassDB::bind_method(D_METHOD("set_rotation","radians"),&Node2D::set_rotation); + ClassDB::bind_method(D_METHOD("set_rotation_in_degrees","degrees"),&Node2D::set_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("set_scale","scale"),&Node2D::set_scale); + + ClassDB::bind_method(D_METHOD("get_position"),&Node2D::get_position); + ClassDB::bind_method(D_METHOD("get_rotation"),&Node2D::get_rotation); + ClassDB::bind_method(D_METHOD("get_rotation_in_degrees"),&Node2D::get_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("get_scale"),&Node2D::get_scale); + + ClassDB::bind_method(D_METHOD("rotate","radians"),&Node2D::rotate); + ClassDB::bind_method(D_METHOD("move_local_x","delta","scaled"),&Node2D::move_x,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("move_local_y","delta","scaled"),&Node2D::move_y,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("translate","offset"),&Node2D::translate); + ClassDB::bind_method(D_METHOD("global_translate","offset"),&Node2D::global_translate); + ClassDB::bind_method(D_METHOD("scale","ratio"),&Node2D::scale); + + ClassDB::bind_method(D_METHOD("set_global_position","pos"),&Node2D::set_global_position); + ClassDB::bind_method(D_METHOD("get_global_position"),&Node2D::get_global_position); + ClassDB::bind_method(D_METHOD("set_global_rotation","radians"),&Node2D::set_global_rotation); + ClassDB::bind_method(D_METHOD("get_global_rotation"),&Node2D::get_global_rotation); + ClassDB::bind_method(D_METHOD("set_global_rotation_in_degrees","degrees"),&Node2D::set_global_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("get_global_rotation_in_degrees"),&Node2D::get_global_rotation_in_degrees); + ClassDB::bind_method(D_METHOD("set_global_scale","scale"),&Node2D::set_global_scale); + ClassDB::bind_method(D_METHOD("get_global_scale"),&Node2D::get_global_scale); + + ClassDB::bind_method(D_METHOD("set_transform","xform"),&Node2D::set_transform); + ClassDB::bind_method(D_METHOD("set_global_transform","xform"),&Node2D::set_global_transform); + + ClassDB::bind_method(D_METHOD("look_at","point"),&Node2D::look_at); + ClassDB::bind_method(D_METHOD("get_angle_to","point"),&Node2D::get_angle_to); + + ClassDB::bind_method(D_METHOD("set_z","z"),&Node2D::set_z); + ClassDB::bind_method(D_METHOD("get_z"),&Node2D::get_z); + + ClassDB::bind_method(D_METHOD("set_z_as_relative","enable"),&Node2D::set_z_as_relative); + ClassDB::bind_method(D_METHOD("is_z_relative"),&Node2D::is_z_relative); + + ClassDB::bind_method(D_METHOD("edit_set_pivot","pivot"),&Node2D::edit_set_pivot); + + ClassDB::bind_method(D_METHOD("get_relative_transform_to_parent","parent"),&Node2D::get_relative_transform_to_parent); ADD_GROUP("Transform",""); ADD_PROPERTYNZ(PropertyInfo(Variant::VECTOR2,"position"),"set_position","get_position"); |