diff options
Diffstat (limited to 'scene/resources')
45 files changed, 834 insertions, 834 deletions
diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index 5b9baa6a67..b743834e63 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -1698,61 +1698,61 @@ float Animation::get_step() const{ void Animation::_bind_methods() { - ClassDB::bind_method(_MD("add_track","type","at_pos"),&Animation::add_track,DEFVAL(-1)); - ClassDB::bind_method(_MD("remove_track","idx"),&Animation::remove_track); - ClassDB::bind_method(_MD("get_track_count"),&Animation::get_track_count); - ClassDB::bind_method(_MD("track_get_type","idx"),&Animation::track_get_type); - ClassDB::bind_method(_MD("track_get_path","idx"),&Animation::track_get_path); - ClassDB::bind_method(_MD("track_set_path","idx","path"),&Animation::track_set_path); - ClassDB::bind_method(_MD("find_track","path"),&Animation::find_track); + ClassDB::bind_method(D_METHOD("add_track","type","at_pos"),&Animation::add_track,DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("remove_track","idx"),&Animation::remove_track); + ClassDB::bind_method(D_METHOD("get_track_count"),&Animation::get_track_count); + ClassDB::bind_method(D_METHOD("track_get_type","idx"),&Animation::track_get_type); + ClassDB::bind_method(D_METHOD("track_get_path","idx"),&Animation::track_get_path); + ClassDB::bind_method(D_METHOD("track_set_path","idx","path"),&Animation::track_set_path); + ClassDB::bind_method(D_METHOD("find_track","path"),&Animation::find_track); - ClassDB::bind_method(_MD("track_move_up","idx"),&Animation::track_move_up); - ClassDB::bind_method(_MD("track_move_down","idx"),&Animation::track_move_down); + ClassDB::bind_method(D_METHOD("track_move_up","idx"),&Animation::track_move_up); + ClassDB::bind_method(D_METHOD("track_move_down","idx"),&Animation::track_move_down); - ClassDB::bind_method(_MD("track_set_imported","idx","imported"),&Animation::track_set_imported); - ClassDB::bind_method(_MD("track_is_imported","idx"),&Animation::track_is_imported); + ClassDB::bind_method(D_METHOD("track_set_imported","idx","imported"),&Animation::track_set_imported); + ClassDB::bind_method(D_METHOD("track_is_imported","idx"),&Animation::track_is_imported); - ClassDB::bind_method(_MD("transform_track_insert_key","idx","time","loc","rot","scale"),&Animation::transform_track_insert_key); - ClassDB::bind_method(_MD("track_insert_key","idx","time","key","transition"),&Animation::track_insert_key,DEFVAL(1)); - ClassDB::bind_method(_MD("track_remove_key","idx","key_idx"),&Animation::track_remove_key); - ClassDB::bind_method(_MD("track_remove_key_at_pos","idx","pos"),&Animation::track_remove_key_at_pos); - ClassDB::bind_method(_MD("track_set_key_value","idx","key","value"),&Animation::track_set_key_value); - ClassDB::bind_method(_MD("track_set_key_transition","idx","key_idx","transition"),&Animation::track_set_key_transition); - ClassDB::bind_method(_MD("track_get_key_transition","idx","key_idx"),&Animation::track_get_key_transition); + ClassDB::bind_method(D_METHOD("transform_track_insert_key","idx","time","loc","rot","scale"),&Animation::transform_track_insert_key); + ClassDB::bind_method(D_METHOD("track_insert_key","idx","time","key","transition"),&Animation::track_insert_key,DEFVAL(1)); + ClassDB::bind_method(D_METHOD("track_remove_key","idx","key_idx"),&Animation::track_remove_key); + ClassDB::bind_method(D_METHOD("track_remove_key_at_pos","idx","pos"),&Animation::track_remove_key_at_pos); + ClassDB::bind_method(D_METHOD("track_set_key_value","idx","key","value"),&Animation::track_set_key_value); + ClassDB::bind_method(D_METHOD("track_set_key_transition","idx","key_idx","transition"),&Animation::track_set_key_transition); + ClassDB::bind_method(D_METHOD("track_get_key_transition","idx","key_idx"),&Animation::track_get_key_transition); - ClassDB::bind_method(_MD("track_get_key_count","idx"),&Animation::track_get_key_count); - ClassDB::bind_method(_MD("track_get_key_value","idx","key_idx"),&Animation::track_get_key_value); - ClassDB::bind_method(_MD("track_get_key_time","idx","key_idx"),&Animation::track_get_key_time); - ClassDB::bind_method(_MD("track_find_key","idx","time","exact"),&Animation::track_find_key,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("track_get_key_count","idx"),&Animation::track_get_key_count); + ClassDB::bind_method(D_METHOD("track_get_key_value","idx","key_idx"),&Animation::track_get_key_value); + ClassDB::bind_method(D_METHOD("track_get_key_time","idx","key_idx"),&Animation::track_get_key_time); + ClassDB::bind_method(D_METHOD("track_find_key","idx","time","exact"),&Animation::track_find_key,DEFVAL(false)); - ClassDB::bind_method(_MD("track_set_interpolation_type","idx","interpolation"),&Animation::track_set_interpolation_type); - ClassDB::bind_method(_MD("track_get_interpolation_type","idx"),&Animation::track_get_interpolation_type); + ClassDB::bind_method(D_METHOD("track_set_interpolation_type","idx","interpolation"),&Animation::track_set_interpolation_type); + ClassDB::bind_method(D_METHOD("track_get_interpolation_type","idx"),&Animation::track_get_interpolation_type); - ClassDB::bind_method(_MD("track_set_interpolation_loop_wrap","idx","interpolation"),&Animation::track_set_interpolation_loop_wrap); - ClassDB::bind_method(_MD("track_get_interpolation_loop_wrap","idx"),&Animation::track_get_interpolation_loop_wrap); + ClassDB::bind_method(D_METHOD("track_set_interpolation_loop_wrap","idx","interpolation"),&Animation::track_set_interpolation_loop_wrap); + ClassDB::bind_method(D_METHOD("track_get_interpolation_loop_wrap","idx"),&Animation::track_get_interpolation_loop_wrap); - ClassDB::bind_method(_MD("transform_track_interpolate","idx","time_sec"),&Animation::_transform_track_interpolate); - ClassDB::bind_method(_MD("value_track_set_update_mode","idx","mode"),&Animation::value_track_set_update_mode); - ClassDB::bind_method(_MD("value_track_get_update_mode","idx"),&Animation::value_track_get_update_mode); + ClassDB::bind_method(D_METHOD("transform_track_interpolate","idx","time_sec"),&Animation::_transform_track_interpolate); + ClassDB::bind_method(D_METHOD("value_track_set_update_mode","idx","mode"),&Animation::value_track_set_update_mode); + ClassDB::bind_method(D_METHOD("value_track_get_update_mode","idx"),&Animation::value_track_get_update_mode); - ClassDB::bind_method(_MD("value_track_get_key_indices","idx","time_sec","delta"),&Animation::_value_track_get_key_indices); + ClassDB::bind_method(D_METHOD("value_track_get_key_indices","idx","time_sec","delta"),&Animation::_value_track_get_key_indices); - ClassDB::bind_method(_MD("method_track_get_key_indices","idx","time_sec","delta"),&Animation::_method_track_get_key_indices); - ClassDB::bind_method(_MD("method_track_get_name","idx","key_idx"),&Animation::method_track_get_name); - ClassDB::bind_method(_MD("method_track_get_params","idx","key_idx"),&Animation::method_track_get_params); + ClassDB::bind_method(D_METHOD("method_track_get_key_indices","idx","time_sec","delta"),&Animation::_method_track_get_key_indices); + ClassDB::bind_method(D_METHOD("method_track_get_name","idx","key_idx"),&Animation::method_track_get_name); + ClassDB::bind_method(D_METHOD("method_track_get_params","idx","key_idx"),&Animation::method_track_get_params); - ClassDB::bind_method(_MD("set_length","time_sec"),&Animation::set_length); - ClassDB::bind_method(_MD("get_length"),&Animation::get_length); + ClassDB::bind_method(D_METHOD("set_length","time_sec"),&Animation::set_length); + ClassDB::bind_method(D_METHOD("get_length"),&Animation::get_length); - ClassDB::bind_method(_MD("set_loop","enabled"),&Animation::set_loop); - ClassDB::bind_method(_MD("has_loop"),&Animation::has_loop); + ClassDB::bind_method(D_METHOD("set_loop","enabled"),&Animation::set_loop); + ClassDB::bind_method(D_METHOD("has_loop"),&Animation::has_loop); - ClassDB::bind_method(_MD("set_step","size_sec"),&Animation::set_step); - ClassDB::bind_method(_MD("get_step"),&Animation::get_step); + ClassDB::bind_method(D_METHOD("set_step","size_sec"),&Animation::set_step); + ClassDB::bind_method(D_METHOD("get_step"),&Animation::get_step); - ClassDB::bind_method(_MD("clear"),&Animation::clear); + ClassDB::bind_method(D_METHOD("clear"),&Animation::clear); BIND_CONSTANT( TYPE_VALUE ); BIND_CONSTANT( TYPE_TRANSFORM ); diff --git a/scene/resources/audio_stream_sample.cpp b/scene/resources/audio_stream_sample.cpp index d9dd2396e0..297cec0c83 100644 --- a/scene/resources/audio_stream_sample.cpp +++ b/scene/resources/audio_stream_sample.cpp @@ -504,26 +504,26 @@ String AudioStreamSample::get_stream_name() const { void AudioStreamSample::_bind_methods() { - ClassDB::bind_method(_MD("set_format","format"),&AudioStreamSample::set_format); - ClassDB::bind_method(_MD("get_format"),&AudioStreamSample::get_format); + ClassDB::bind_method(D_METHOD("set_format","format"),&AudioStreamSample::set_format); + ClassDB::bind_method(D_METHOD("get_format"),&AudioStreamSample::get_format); - ClassDB::bind_method(_MD("set_loop_mode","loop_mode"),&AudioStreamSample::set_loop_mode); - ClassDB::bind_method(_MD("get_loop_mode"),&AudioStreamSample::get_loop_mode); + ClassDB::bind_method(D_METHOD("set_loop_mode","loop_mode"),&AudioStreamSample::set_loop_mode); + ClassDB::bind_method(D_METHOD("get_loop_mode"),&AudioStreamSample::get_loop_mode); - ClassDB::bind_method(_MD("set_loop_begin","loop_begin"),&AudioStreamSample::set_loop_begin); - ClassDB::bind_method(_MD("get_loop_begin"),&AudioStreamSample::get_loop_begin); + ClassDB::bind_method(D_METHOD("set_loop_begin","loop_begin"),&AudioStreamSample::set_loop_begin); + ClassDB::bind_method(D_METHOD("get_loop_begin"),&AudioStreamSample::get_loop_begin); - ClassDB::bind_method(_MD("set_loop_end","loop_end"),&AudioStreamSample::set_loop_end); - ClassDB::bind_method(_MD("get_loop_end"),&AudioStreamSample::get_loop_end); + ClassDB::bind_method(D_METHOD("set_loop_end","loop_end"),&AudioStreamSample::set_loop_end); + ClassDB::bind_method(D_METHOD("get_loop_end"),&AudioStreamSample::get_loop_end); - ClassDB::bind_method(_MD("set_mix_rate","mix_rate"),&AudioStreamSample::set_mix_rate); - ClassDB::bind_method(_MD("get_mix_rate"),&AudioStreamSample::get_mix_rate); + ClassDB::bind_method(D_METHOD("set_mix_rate","mix_rate"),&AudioStreamSample::set_mix_rate); + ClassDB::bind_method(D_METHOD("get_mix_rate"),&AudioStreamSample::get_mix_rate); - ClassDB::bind_method(_MD("set_stereo","stereo"),&AudioStreamSample::set_stereo); - ClassDB::bind_method(_MD("is_stereo"),&AudioStreamSample::is_stereo); + ClassDB::bind_method(D_METHOD("set_stereo","stereo"),&AudioStreamSample::set_stereo); + ClassDB::bind_method(D_METHOD("is_stereo"),&AudioStreamSample::is_stereo); - ClassDB::bind_method(_MD("set_data","data"),&AudioStreamSample::set_data); - ClassDB::bind_method(_MD("get_data"),&AudioStreamSample::get_data); + ClassDB::bind_method(D_METHOD("set_data","data"),&AudioStreamSample::set_data); + ClassDB::bind_method(D_METHOD("get_data"),&AudioStreamSample::get_data); ADD_PROPERTY(PropertyInfo(Variant::INT,"format",PROPERTY_HINT_ENUM,"8-Bit,16-Bit,IMA-ADPCM"),"set_format","get_format"); ADD_PROPERTY(PropertyInfo(Variant::INT,"loop_mode",PROPERTY_HINT_ENUM,"Disabled,Forward,Ping-Pong"),"set_loop_mode","get_loop_mode"); diff --git a/scene/resources/bit_mask.cpp b/scene/resources/bit_mask.cpp index 703dc1a4e5..4ceac5af0c 100644 --- a/scene/resources/bit_mask.cpp +++ b/scene/resources/bit_mask.cpp @@ -177,19 +177,19 @@ Dictionary BitMap::_get_data() const{ void BitMap::_bind_methods() { - ClassDB::bind_method(_MD("create","size"),&BitMap::create); - ClassDB::bind_method(_MD("create_from_image_alpha","image"),&BitMap::create_from_image_alpha); + ClassDB::bind_method(D_METHOD("create","size"),&BitMap::create); + ClassDB::bind_method(D_METHOD("create_from_image_alpha","image"),&BitMap::create_from_image_alpha); - ClassDB::bind_method(_MD("set_bit","pos","bit"),&BitMap::set_bit); - ClassDB::bind_method(_MD("get_bit","pos"),&BitMap::get_bit); + ClassDB::bind_method(D_METHOD("set_bit","pos","bit"),&BitMap::set_bit); + ClassDB::bind_method(D_METHOD("get_bit","pos"),&BitMap::get_bit); - ClassDB::bind_method(_MD("set_bit_rect","p_rect","bit"),&BitMap::set_bit_rect); - ClassDB::bind_method(_MD("get_true_bit_count"),&BitMap::get_true_bit_count); + ClassDB::bind_method(D_METHOD("set_bit_rect","p_rect","bit"),&BitMap::set_bit_rect); + ClassDB::bind_method(D_METHOD("get_true_bit_count"),&BitMap::get_true_bit_count); - ClassDB::bind_method(_MD("get_size"),&BitMap::get_size); + ClassDB::bind_method(D_METHOD("get_size"),&BitMap::get_size); - ClassDB::bind_method(_MD("_set_data"),&BitMap::_set_data); - ClassDB::bind_method(_MD("_get_data"),&BitMap::_get_data); + ClassDB::bind_method(D_METHOD("_set_data"),&BitMap::_set_data); + ClassDB::bind_method(D_METHOD("_get_data"),&BitMap::_get_data); ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY,"data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_data","_get_data"); diff --git a/scene/resources/bounds.cpp b/scene/resources/bounds.cpp index 4c85dac476..26bf6270e9 100644 --- a/scene/resources/bounds.cpp +++ b/scene/resources/bounds.cpp @@ -31,8 +31,8 @@ void Bounds::_bind_methods() { - ClassDB::bind_method( _MD("set_bsp_tree","bsp_tree"),&Bounds::set_bsp_tree); - ClassDB::bind_method( _MD("get_bsp_tree"),&Bounds::get_bsp_tree ); + ClassDB::bind_method( D_METHOD("set_bsp_tree","bsp_tree"),&Bounds::set_bsp_tree); + ClassDB::bind_method( D_METHOD("get_bsp_tree"),&Bounds::get_bsp_tree ); ADD_PROPERTY( PropertyInfo( Variant::ARRAY, "bsp_tree" ), "set_bsp_tree", "get_bsp_tree"); diff --git a/scene/resources/box_shape.cpp b/scene/resources/box_shape.cpp index 9b3a93be1f..e8eccaceae 100644 --- a/scene/resources/box_shape.cpp +++ b/scene/resources/box_shape.cpp @@ -70,8 +70,8 @@ Vector3 BoxShape::get_extents() const { void BoxShape::_bind_methods() { - ClassDB::bind_method(_MD("set_extents","extents"),&BoxShape::set_extents); - ClassDB::bind_method(_MD("get_extents"),&BoxShape::get_extents); + ClassDB::bind_method(D_METHOD("set_extents","extents"),&BoxShape::set_extents); + ClassDB::bind_method(D_METHOD("get_extents"),&BoxShape::get_extents); ADD_PROPERTY( PropertyInfo(Variant::VECTOR3,"extents"), "set_extents", "get_extents") ; diff --git a/scene/resources/capsule_shape.cpp b/scene/resources/capsule_shape.cpp index 75b885c4bf..bd30f009c4 100644 --- a/scene/resources/capsule_shape.cpp +++ b/scene/resources/capsule_shape.cpp @@ -107,10 +107,10 @@ float CapsuleShape::get_height() const { void CapsuleShape::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","radius"),&CapsuleShape::set_radius); - ClassDB::bind_method(_MD("get_radius"),&CapsuleShape::get_radius); - ClassDB::bind_method(_MD("set_height","height"),&CapsuleShape::set_height); - ClassDB::bind_method(_MD("get_height"),&CapsuleShape::get_height); + ClassDB::bind_method(D_METHOD("set_radius","radius"),&CapsuleShape::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&CapsuleShape::get_radius); + ClassDB::bind_method(D_METHOD("set_height","height"),&CapsuleShape::set_height); + ClassDB::bind_method(D_METHOD("get_height"),&CapsuleShape::get_height); ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,4096,0.01"), "set_radius","get_radius") ; ADD_PROPERTY( PropertyInfo(Variant::REAL,"height",PROPERTY_HINT_RANGE,"0.01,4096,0.01"), "set_height","get_height") ; diff --git a/scene/resources/capsule_shape_2d.cpp b/scene/resources/capsule_shape_2d.cpp index 9ad6cc8dcb..523d6d7455 100644 --- a/scene/resources/capsule_shape_2d.cpp +++ b/scene/resources/capsule_shape_2d.cpp @@ -89,11 +89,11 @@ Rect2 CapsuleShape2D::get_rect() const { void CapsuleShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","radius"),&CapsuleShape2D::set_radius); - ClassDB::bind_method(_MD("get_radius"),&CapsuleShape2D::get_radius); + ClassDB::bind_method(D_METHOD("set_radius","radius"),&CapsuleShape2D::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&CapsuleShape2D::get_radius); - ClassDB::bind_method(_MD("set_height","height"),&CapsuleShape2D::set_height); - ClassDB::bind_method(_MD("get_height"),&CapsuleShape2D::get_height); + ClassDB::bind_method(D_METHOD("set_height","height"),&CapsuleShape2D::set_height); + ClassDB::bind_method(D_METHOD("get_height"),&CapsuleShape2D::get_height); ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius"),"set_radius","get_radius") ; diff --git a/scene/resources/circle_shape_2d.cpp b/scene/resources/circle_shape_2d.cpp index 830a3a01c0..cd707b1032 100644 --- a/scene/resources/circle_shape_2d.cpp +++ b/scene/resources/circle_shape_2d.cpp @@ -51,8 +51,8 @@ real_t CircleShape2D::get_radius() const { void CircleShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","radius"),&CircleShape2D::set_radius); - ClassDB::bind_method(_MD("get_radius"),&CircleShape2D::get_radius); + ClassDB::bind_method(D_METHOD("set_radius","radius"),&CircleShape2D::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&CircleShape2D::get_radius); ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,16384,0.5"),"set_radius","get_radius") ; diff --git a/scene/resources/color_ramp.cpp b/scene/resources/color_ramp.cpp index 1f6bd509be..b14ba4c8ed 100644 --- a/scene/resources/color_ramp.cpp +++ b/scene/resources/color_ramp.cpp @@ -55,24 +55,24 @@ void ColorRamp::_bind_methods() { - ClassDB::bind_method(_MD("add_point","offset","color"),&ColorRamp::add_point); - ClassDB::bind_method(_MD("remove_point","offset","color"),&ColorRamp::remove_point); + ClassDB::bind_method(D_METHOD("add_point","offset","color"),&ColorRamp::add_point); + ClassDB::bind_method(D_METHOD("remove_point","offset","color"),&ColorRamp::remove_point); - ClassDB::bind_method(_MD("set_offset","point","offset"),&ColorRamp::set_offset); - ClassDB::bind_method(_MD("get_offset","point"),&ColorRamp::get_offset); + ClassDB::bind_method(D_METHOD("set_offset","point","offset"),&ColorRamp::set_offset); + ClassDB::bind_method(D_METHOD("get_offset","point"),&ColorRamp::get_offset); - ClassDB::bind_method(_MD("set_color","point","color"),&ColorRamp::set_color); - ClassDB::bind_method(_MD("get_color","point"),&ColorRamp::get_color); + ClassDB::bind_method(D_METHOD("set_color","point","color"),&ColorRamp::set_color); + ClassDB::bind_method(D_METHOD("get_color","point"),&ColorRamp::get_color); - ClassDB::bind_method(_MD("interpolate","offset"),&ColorRamp::get_color_at_offset); + ClassDB::bind_method(D_METHOD("interpolate","offset"),&ColorRamp::get_color_at_offset); - ClassDB::bind_method(_MD("get_point_count"),&ColorRamp::get_points_count); + ClassDB::bind_method(D_METHOD("get_point_count"),&ColorRamp::get_points_count); - ClassDB::bind_method(_MD(COLOR_RAMP_SET_OFFSETS,"offsets"),&ColorRamp::set_offsets); - ClassDB::bind_method(_MD(COLOR_RAMP_GET_OFFSETS),&ColorRamp::get_offsets); + ClassDB::bind_method(D_METHOD(COLOR_RAMP_SET_OFFSETS,"offsets"),&ColorRamp::set_offsets); + ClassDB::bind_method(D_METHOD(COLOR_RAMP_GET_OFFSETS),&ColorRamp::get_offsets); - ClassDB::bind_method(_MD(COLOR_RAMP_SET_COLORS,"colors"),&ColorRamp::set_colors); - ClassDB::bind_method(_MD(COLOR_RAMP_GET_COLORS),&ColorRamp::get_colors); + ClassDB::bind_method(D_METHOD(COLOR_RAMP_SET_COLORS,"colors"),&ColorRamp::set_colors); + ClassDB::bind_method(D_METHOD(COLOR_RAMP_GET_COLORS),&ColorRamp::get_colors); ADD_PROPERTY( PropertyInfo(Variant::REAL,"offsets"),COLOR_RAMP_SET_OFFSETS,COLOR_RAMP_GET_OFFSETS) ; ADD_PROPERTY( PropertyInfo(Variant::REAL,"colors"),COLOR_RAMP_SET_COLORS,COLOR_RAMP_GET_COLORS) ; diff --git a/scene/resources/concave_polygon_shape.cpp b/scene/resources/concave_polygon_shape.cpp index 5190bba6a5..3945ade215 100644 --- a/scene/resources/concave_polygon_shape.cpp +++ b/scene/resources/concave_polygon_shape.cpp @@ -110,8 +110,8 @@ PoolVector<Vector3> ConcavePolygonShape::get_faces() const { void ConcavePolygonShape::_bind_methods() { - ClassDB::bind_method(_MD("set_faces","faces"),&ConcavePolygonShape::set_faces); - ClassDB::bind_method(_MD("get_faces"),&ConcavePolygonShape::get_faces); + ClassDB::bind_method(D_METHOD("set_faces","faces"),&ConcavePolygonShape::set_faces); + ClassDB::bind_method(D_METHOD("get_faces"),&ConcavePolygonShape::get_faces); } ConcavePolygonShape::ConcavePolygonShape() : Shape( PhysicsServer::get_singleton()->shape_create(PhysicsServer::SHAPE_CONCAVE_POLYGON)) { diff --git a/scene/resources/concave_polygon_shape_2d.cpp b/scene/resources/concave_polygon_shape_2d.cpp index 2f6070d889..f3dfa8a2b3 100644 --- a/scene/resources/concave_polygon_shape_2d.cpp +++ b/scene/resources/concave_polygon_shape_2d.cpp @@ -82,8 +82,8 @@ Rect2 ConcavePolygonShape2D::get_rect() const { void ConcavePolygonShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_segments","segments"),&ConcavePolygonShape2D::set_segments); - ClassDB::bind_method(_MD("get_segments"),&ConcavePolygonShape2D::get_segments); + ClassDB::bind_method(D_METHOD("set_segments","segments"),&ConcavePolygonShape2D::set_segments); + ClassDB::bind_method(D_METHOD("get_segments"),&ConcavePolygonShape2D::get_segments); ADD_PROPERTY( PropertyInfo(Variant::POOL_VECTOR2_ARRAY,"segments"),"set_segments","get_segments") ; diff --git a/scene/resources/convex_polygon_shape.cpp b/scene/resources/convex_polygon_shape.cpp index e7e8e65e8d..207419f8cd 100644 --- a/scene/resources/convex_polygon_shape.cpp +++ b/scene/resources/convex_polygon_shape.cpp @@ -79,8 +79,8 @@ PoolVector<Vector3> ConvexPolygonShape::get_points() const { void ConvexPolygonShape::_bind_methods() { - ClassDB::bind_method(_MD("set_points","points"),&ConvexPolygonShape::set_points); - ClassDB::bind_method(_MD("get_points"),&ConvexPolygonShape::get_points); + ClassDB::bind_method(D_METHOD("set_points","points"),&ConvexPolygonShape::set_points); + ClassDB::bind_method(D_METHOD("get_points"),&ConvexPolygonShape::get_points); ADD_PROPERTY( PropertyInfo(Variant::ARRAY,"points"), "set_points", "get_points") ; diff --git a/scene/resources/convex_polygon_shape_2d.cpp b/scene/resources/convex_polygon_shape_2d.cpp index 2cd4fc5685..2a4b181611 100644 --- a/scene/resources/convex_polygon_shape_2d.cpp +++ b/scene/resources/convex_polygon_shape_2d.cpp @@ -61,9 +61,9 @@ Vector<Vector2> ConvexPolygonShape2D::get_points() const { void ConvexPolygonShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_point_cloud","point_cloud"),&ConvexPolygonShape2D::set_point_cloud); - ClassDB::bind_method(_MD("set_points","points"),&ConvexPolygonShape2D::set_points); - ClassDB::bind_method(_MD("get_points"),&ConvexPolygonShape2D::get_points); + ClassDB::bind_method(D_METHOD("set_point_cloud","point_cloud"),&ConvexPolygonShape2D::set_point_cloud); + ClassDB::bind_method(D_METHOD("set_points","points"),&ConvexPolygonShape2D::set_points); + ClassDB::bind_method(D_METHOD("get_points"),&ConvexPolygonShape2D::get_points); diff --git a/scene/resources/curve.cpp b/scene/resources/curve.cpp index 4455afeeb8..9311ab4dd7 100644 --- a/scene/resources/curve.cpp +++ b/scene/resources/curve.cpp @@ -349,26 +349,26 @@ Vector2Array Curve2D::get_points_pos() const { void Curve2D::_bind_methods() { - ClassDB::bind_method(_MD("get_point_count"),&Curve2D::get_point_count); - ClassDB::bind_method(_MD("add_point","pos","in","out"),&Curve2D::add_point,DEFVAL(Vector2()),DEFVAL(Vector2())); - ClassDB::bind_method(_MD("set_point_pos","idx","pos"),&Curve2D::set_point_pos); - ClassDB::bind_method(_MD("get_point_pos","idx"),&Curve2D::get_point_pos); - ClassDB::bind_method(_MD("set_point_in","idx","pos"),&Curve2D::set_point_in); - ClassDB::bind_method(_MD("get_point_in","idx"),&Curve2D::get_point_in); - ClassDB::bind_method(_MD("set_point_out","idx","pos"),&Curve2D::set_point_out); - ClassDB::bind_method(_MD("get_point_out","idx"),&Curve2D::get_point_out); - ClassDB::bind_method(_MD("remove_point","idx"),&Curve2D::remove_point); - ClassDB::bind_method(_MD("interpolate","idx","t"),&Curve2D::interpolate); - ClassDB::bind_method(_MD("bake","subdivs"),&Curve2D::bake,DEFVAL(10)); - - - ClassDB::bind_method(_MD("set_points_in"),&Curve2D::set_points_in); - ClassDB::bind_method(_MD("set_points_out"),&Curve2D::set_points_out); - ClassDB::bind_method(_MD("set_points_pos"),&Curve2D::set_points_pos); - - ClassDB::bind_method(_MD("get_points_in"),&Curve2D::get_points_in); - ClassDB::bind_method(_MD("get_points_out"),&Curve2D::get_points_out); - ClassDB::bind_method(_MD("get_points_pos"),&Curve2D::get_points_pos); + ClassDB::bind_method(D_METHOD("get_point_count"),&Curve2D::get_point_count); + ClassDB::bind_method(D_METHOD("add_point","pos","in","out"),&Curve2D::add_point,DEFVAL(Vector2()),DEFVAL(Vector2())); + ClassDB::bind_method(D_METHOD("set_point_pos","idx","pos"),&Curve2D::set_point_pos); + ClassDB::bind_method(D_METHOD("get_point_pos","idx"),&Curve2D::get_point_pos); + ClassDB::bind_method(D_METHOD("set_point_in","idx","pos"),&Curve2D::set_point_in); + ClassDB::bind_method(D_METHOD("get_point_in","idx"),&Curve2D::get_point_in); + ClassDB::bind_method(D_METHOD("set_point_out","idx","pos"),&Curve2D::set_point_out); + ClassDB::bind_method(D_METHOD("get_point_out","idx"),&Curve2D::get_point_out); + ClassDB::bind_method(D_METHOD("remove_point","idx"),&Curve2D::remove_point); + ClassDB::bind_method(D_METHOD("interpolate","idx","t"),&Curve2D::interpolate); + ClassDB::bind_method(D_METHOD("bake","subdivs"),&Curve2D::bake,DEFVAL(10)); + + + ClassDB::bind_method(D_METHOD("set_points_in"),&Curve2D::set_points_in); + ClassDB::bind_method(D_METHOD("set_points_out"),&Curve2D::set_points_out); + ClassDB::bind_method(D_METHOD("set_points_pos"),&Curve2D::set_points_pos); + + ClassDB::bind_method(D_METHOD("get_points_in"),&Curve2D::get_points_in); + ClassDB::bind_method(D_METHOD("get_points_out"),&Curve2D::get_points_out); + ClassDB::bind_method(D_METHOD("get_points_pos"),&Curve2D::get_points_pos); ADD_PROPERTY( PropertyInfo( Variant::VECTOR2_ARRAY, "points_in"), "set_points_in","get_points_in"); ADD_PROPERTY( PropertyInfo( Variant::VECTOR2_ARRAY, "points_out"), "set_points_out","get_points_out"); @@ -789,29 +789,29 @@ PoolVector2Array Curve2D::tesselate(int p_max_stages,float p_tolerance) const { void Curve2D::_bind_methods() { - ClassDB::bind_method(_MD("get_point_count"),&Curve2D::get_point_count); - ClassDB::bind_method(_MD("add_point","pos","in","out","atpos"),&Curve2D::add_point,DEFVAL(Vector2()),DEFVAL(Vector2()),DEFVAL(-1)); - ClassDB::bind_method(_MD("set_point_pos","idx","pos"),&Curve2D::set_point_pos); - ClassDB::bind_method(_MD("get_point_pos","idx"),&Curve2D::get_point_pos); - ClassDB::bind_method(_MD("set_point_in","idx","pos"),&Curve2D::set_point_in); - ClassDB::bind_method(_MD("get_point_in","idx"),&Curve2D::get_point_in); - ClassDB::bind_method(_MD("set_point_out","idx","pos"),&Curve2D::set_point_out); - ClassDB::bind_method(_MD("get_point_out","idx"),&Curve2D::get_point_out); - ClassDB::bind_method(_MD("remove_point","idx"),&Curve2D::remove_point); - ClassDB::bind_method(_MD("clear_points"),&Curve2D::clear_points); - ClassDB::bind_method(_MD("interpolate","idx","t"),&Curve2D::interpolate); - ClassDB::bind_method(_MD("interpolatef","fofs"),&Curve2D::interpolatef); - //ClassDB::bind_method(_MD("bake","subdivs"),&Curve2D::bake,DEFVAL(10)); - ClassDB::bind_method(_MD("set_bake_interval","distance"),&Curve2D::set_bake_interval); - ClassDB::bind_method(_MD("get_bake_interval"),&Curve2D::get_bake_interval); - - ClassDB::bind_method(_MD("get_baked_length"),&Curve2D::get_baked_length); - ClassDB::bind_method(_MD("interpolate_baked","offset","cubic"),&Curve2D::interpolate_baked,DEFVAL(false)); - ClassDB::bind_method(_MD("get_baked_points"),&Curve2D::get_baked_points); - ClassDB::bind_method(_MD("tesselate","max_stages","tolerance_degrees"),&Curve2D::tesselate,DEFVAL(5),DEFVAL(4)); - - ClassDB::bind_method(_MD("_get_data"),&Curve2D::_get_data); - ClassDB::bind_method(_MD("_set_data"),&Curve2D::_set_data); + ClassDB::bind_method(D_METHOD("get_point_count"),&Curve2D::get_point_count); + ClassDB::bind_method(D_METHOD("add_point","pos","in","out","atpos"),&Curve2D::add_point,DEFVAL(Vector2()),DEFVAL(Vector2()),DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("set_point_pos","idx","pos"),&Curve2D::set_point_pos); + ClassDB::bind_method(D_METHOD("get_point_pos","idx"),&Curve2D::get_point_pos); + ClassDB::bind_method(D_METHOD("set_point_in","idx","pos"),&Curve2D::set_point_in); + ClassDB::bind_method(D_METHOD("get_point_in","idx"),&Curve2D::get_point_in); + ClassDB::bind_method(D_METHOD("set_point_out","idx","pos"),&Curve2D::set_point_out); + ClassDB::bind_method(D_METHOD("get_point_out","idx"),&Curve2D::get_point_out); + ClassDB::bind_method(D_METHOD("remove_point","idx"),&Curve2D::remove_point); + ClassDB::bind_method(D_METHOD("clear_points"),&Curve2D::clear_points); + ClassDB::bind_method(D_METHOD("interpolate","idx","t"),&Curve2D::interpolate); + ClassDB::bind_method(D_METHOD("interpolatef","fofs"),&Curve2D::interpolatef); + //ClassDB::bind_method(D_METHOD("bake","subdivs"),&Curve2D::bake,DEFVAL(10)); + ClassDB::bind_method(D_METHOD("set_bake_interval","distance"),&Curve2D::set_bake_interval); + ClassDB::bind_method(D_METHOD("get_bake_interval"),&Curve2D::get_bake_interval); + + ClassDB::bind_method(D_METHOD("get_baked_length"),&Curve2D::get_baked_length); + ClassDB::bind_method(D_METHOD("interpolate_baked","offset","cubic"),&Curve2D::interpolate_baked,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_baked_points"),&Curve2D::get_baked_points); + ClassDB::bind_method(D_METHOD("tesselate","max_stages","tolerance_degrees"),&Curve2D::tesselate,DEFVAL(5),DEFVAL(4)); + + ClassDB::bind_method(D_METHOD("_get_data"),&Curve2D::_get_data); + ClassDB::bind_method(D_METHOD("_set_data"),&Curve2D::_set_data); ADD_PROPERTY( PropertyInfo( Variant::REAL, "bake_interval",PROPERTY_HINT_RANGE,"0.01,512,0.01"), "set_bake_interval","get_bake_interval"); @@ -1329,32 +1329,32 @@ PoolVector3Array Curve3D::tesselate(int p_max_stages,float p_tolerance) const { void Curve3D::_bind_methods() { - ClassDB::bind_method(_MD("get_point_count"),&Curve3D::get_point_count); - ClassDB::bind_method(_MD("add_point","pos","in","out","atpos"),&Curve3D::add_point,DEFVAL(Vector3()),DEFVAL(Vector3()),DEFVAL(-1)); - ClassDB::bind_method(_MD("set_point_pos","idx","pos"),&Curve3D::set_point_pos); - ClassDB::bind_method(_MD("get_point_pos","idx"),&Curve3D::get_point_pos); - ClassDB::bind_method(_MD("set_point_tilt","idx","tilt"),&Curve3D::set_point_tilt); - ClassDB::bind_method(_MD("get_point_tilt","idx"),&Curve3D::get_point_tilt); - ClassDB::bind_method(_MD("set_point_in","idx","pos"),&Curve3D::set_point_in); - ClassDB::bind_method(_MD("get_point_in","idx"),&Curve3D::get_point_in); - ClassDB::bind_method(_MD("set_point_out","idx","pos"),&Curve3D::set_point_out); - ClassDB::bind_method(_MD("get_point_out","idx"),&Curve3D::get_point_out); - ClassDB::bind_method(_MD("remove_point","idx"),&Curve3D::remove_point); - ClassDB::bind_method(_MD("clear_points"),&Curve3D::clear_points); - ClassDB::bind_method(_MD("interpolate","idx","t"),&Curve3D::interpolate); - ClassDB::bind_method(_MD("interpolatef","fofs"),&Curve3D::interpolatef); - //ClassDB::bind_method(_MD("bake","subdivs"),&Curve3D::bake,DEFVAL(10)); - ClassDB::bind_method(_MD("set_bake_interval","distance"),&Curve3D::set_bake_interval); - ClassDB::bind_method(_MD("get_bake_interval"),&Curve3D::get_bake_interval); - - ClassDB::bind_method(_MD("get_baked_length"),&Curve3D::get_baked_length); - ClassDB::bind_method(_MD("interpolate_baked","offset","cubic"),&Curve3D::interpolate_baked,DEFVAL(false)); - ClassDB::bind_method(_MD("get_baked_points"),&Curve3D::get_baked_points); - ClassDB::bind_method(_MD("get_baked_tilts"),&Curve3D::get_baked_tilts); - ClassDB::bind_method(_MD("tesselate","max_stages","tolerance_degrees"),&Curve3D::tesselate,DEFVAL(5),DEFVAL(4)); - - ClassDB::bind_method(_MD("_get_data"),&Curve3D::_get_data); - ClassDB::bind_method(_MD("_set_data"),&Curve3D::_set_data); + ClassDB::bind_method(D_METHOD("get_point_count"),&Curve3D::get_point_count); + ClassDB::bind_method(D_METHOD("add_point","pos","in","out","atpos"),&Curve3D::add_point,DEFVAL(Vector3()),DEFVAL(Vector3()),DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("set_point_pos","idx","pos"),&Curve3D::set_point_pos); + ClassDB::bind_method(D_METHOD("get_point_pos","idx"),&Curve3D::get_point_pos); + ClassDB::bind_method(D_METHOD("set_point_tilt","idx","tilt"),&Curve3D::set_point_tilt); + ClassDB::bind_method(D_METHOD("get_point_tilt","idx"),&Curve3D::get_point_tilt); + ClassDB::bind_method(D_METHOD("set_point_in","idx","pos"),&Curve3D::set_point_in); + ClassDB::bind_method(D_METHOD("get_point_in","idx"),&Curve3D::get_point_in); + ClassDB::bind_method(D_METHOD("set_point_out","idx","pos"),&Curve3D::set_point_out); + ClassDB::bind_method(D_METHOD("get_point_out","idx"),&Curve3D::get_point_out); + ClassDB::bind_method(D_METHOD("remove_point","idx"),&Curve3D::remove_point); + ClassDB::bind_method(D_METHOD("clear_points"),&Curve3D::clear_points); + ClassDB::bind_method(D_METHOD("interpolate","idx","t"),&Curve3D::interpolate); + ClassDB::bind_method(D_METHOD("interpolatef","fofs"),&Curve3D::interpolatef); + //ClassDB::bind_method(D_METHOD("bake","subdivs"),&Curve3D::bake,DEFVAL(10)); + ClassDB::bind_method(D_METHOD("set_bake_interval","distance"),&Curve3D::set_bake_interval); + ClassDB::bind_method(D_METHOD("get_bake_interval"),&Curve3D::get_bake_interval); + + ClassDB::bind_method(D_METHOD("get_baked_length"),&Curve3D::get_baked_length); + ClassDB::bind_method(D_METHOD("interpolate_baked","offset","cubic"),&Curve3D::interpolate_baked,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_baked_points"),&Curve3D::get_baked_points); + ClassDB::bind_method(D_METHOD("get_baked_tilts"),&Curve3D::get_baked_tilts); + ClassDB::bind_method(D_METHOD("tesselate","max_stages","tolerance_degrees"),&Curve3D::tesselate,DEFVAL(5),DEFVAL(4)); + + ClassDB::bind_method(D_METHOD("_get_data"),&Curve3D::_get_data); + ClassDB::bind_method(D_METHOD("_set_data"),&Curve3D::_set_data); ADD_PROPERTY( PropertyInfo( Variant::REAL, "bake_interval",PROPERTY_HINT_RANGE,"0.01,512,0.01"), "set_bake_interval","get_bake_interval"); diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index e29cd344e9..02149f5748 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -84,8 +84,8 @@ void DynamicFontData::set_force_autohinter(bool p_force) { } void DynamicFontData::_bind_methods() { - ClassDB::bind_method(_MD("set_font_path","path"),&DynamicFontData::set_font_path); - ClassDB::bind_method(_MD("get_font_path"),&DynamicFontData::get_font_path); + ClassDB::bind_method(D_METHOD("set_font_path","path"),&DynamicFontData::set_font_path); + ClassDB::bind_method(D_METHOD("get_font_path"),&DynamicFontData::get_font_path); ADD_PROPERTY(PropertyInfo(Variant::STRING,"font_path",PROPERTY_HINT_FILE,"*.ttf,*.otf"),"set_font_path","get_font_path"); } @@ -879,24 +879,24 @@ void DynamicFont::_get_property_list( List<PropertyInfo> *p_list) const{ void DynamicFont::_bind_methods() { - ClassDB::bind_method(_MD("set_font_data","data:DynamicFontData"),&DynamicFont::set_font_data); - ClassDB::bind_method(_MD("get_font_data:DynamicFontData"),&DynamicFont::get_font_data); + ClassDB::bind_method(D_METHOD("set_font_data","data:DynamicFontData"),&DynamicFont::set_font_data); + ClassDB::bind_method(D_METHOD("get_font_data:DynamicFontData"),&DynamicFont::get_font_data); - ClassDB::bind_method(_MD("set_size","data"),&DynamicFont::set_size); - ClassDB::bind_method(_MD("get_size"),&DynamicFont::get_size); + ClassDB::bind_method(D_METHOD("set_size","data"),&DynamicFont::set_size); + ClassDB::bind_method(D_METHOD("get_size"),&DynamicFont::get_size); - ClassDB::bind_method(_MD("set_use_mipmaps","enable"),&DynamicFont::set_use_mipmaps); - ClassDB::bind_method(_MD("get_use_mipmaps"),&DynamicFont::get_use_mipmaps); - ClassDB::bind_method(_MD("set_use_filter","enable"),&DynamicFont::set_use_filter); - ClassDB::bind_method(_MD("get_use_filter"),&DynamicFont::get_use_filter); - ClassDB::bind_method(_MD("set_spacing","type","value"),&DynamicFont::set_spacing); - ClassDB::bind_method(_MD("get_spacing","type"),&DynamicFont::get_spacing); + ClassDB::bind_method(D_METHOD("set_use_mipmaps","enable"),&DynamicFont::set_use_mipmaps); + ClassDB::bind_method(D_METHOD("get_use_mipmaps"),&DynamicFont::get_use_mipmaps); + ClassDB::bind_method(D_METHOD("set_use_filter","enable"),&DynamicFont::set_use_filter); + ClassDB::bind_method(D_METHOD("get_use_filter"),&DynamicFont::get_use_filter); + ClassDB::bind_method(D_METHOD("set_spacing","type","value"),&DynamicFont::set_spacing); + ClassDB::bind_method(D_METHOD("get_spacing","type"),&DynamicFont::get_spacing); - ClassDB::bind_method(_MD("add_fallback","data:DynamicFontData"),&DynamicFont::add_fallback); - ClassDB::bind_method(_MD("set_fallback","idx","data:DynamicFontData"),&DynamicFont::set_fallback); - ClassDB::bind_method(_MD("get_fallback:DynamicFontData","idx"),&DynamicFont::get_fallback); - ClassDB::bind_method(_MD("remove_fallback","idx"),&DynamicFont::remove_fallback); - ClassDB::bind_method(_MD("get_fallback_count"),&DynamicFont::get_fallback_count); + ClassDB::bind_method(D_METHOD("add_fallback","data:DynamicFontData"),&DynamicFont::add_fallback); + ClassDB::bind_method(D_METHOD("set_fallback","idx","data:DynamicFontData"),&DynamicFont::set_fallback); + ClassDB::bind_method(D_METHOD("get_fallback:DynamicFontData","idx"),&DynamicFont::get_fallback); + ClassDB::bind_method(D_METHOD("remove_fallback","idx"),&DynamicFont::remove_fallback); + ClassDB::bind_method(D_METHOD("get_fallback_count"),&DynamicFont::get_fallback_count); ADD_GROUP("Settings",""); diff --git a/scene/resources/dynamic_font_stb.cpp b/scene/resources/dynamic_font_stb.cpp index 076e08a594..c4a182103f 100644 --- a/scene/resources/dynamic_font_stb.cpp +++ b/scene/resources/dynamic_font_stb.cpp @@ -378,11 +378,11 @@ DynamicFontAtSize::~DynamicFontAtSize(){ void DynamicFont::_bind_methods() { - ClassDB::bind_method(_MD("set_font_data","data:DynamicFontData"),&DynamicFont::set_font_data); - ClassDB::bind_method(_MD("get_font_data:DynamicFontData"),&DynamicFont::get_font_data); + ClassDB::bind_method(D_METHOD("set_font_data","data:DynamicFontData"),&DynamicFont::set_font_data); + ClassDB::bind_method(D_METHOD("get_font_data:DynamicFontData"),&DynamicFont::get_font_data); - ClassDB::bind_method(_MD("set_size","data"),&DynamicFont::set_size); - ClassDB::bind_method(_MD("get_size"),&DynamicFont::get_size); + ClassDB::bind_method(D_METHOD("set_size","data"),&DynamicFont::set_size); + ClassDB::bind_method(D_METHOD("get_size"),&DynamicFont::get_size); ADD_PROPERTY(PropertyInfo(Variant::INT,"font/size"),"set_size","get_size"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"font/font",PROPERTY_HINT_RESOURCE_TYPE,"DynamicFontData"),"set_font_data","get_font_data"); diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp index 5f4fbff173..eb1a3b550a 100644 --- a/scene/resources/environment.cpp +++ b/scene/resources/environment.cpp @@ -701,26 +701,26 @@ Environment::DOFBlurQuality Environment::get_dof_blur_near_quality() const { void Environment::_bind_methods() { - ClassDB::bind_method(_MD("set_background","mode"),&Environment::set_background); - ClassDB::bind_method(_MD("set_skybox","skybox:CubeMap"),&Environment::set_skybox); - ClassDB::bind_method(_MD("set_skybox_scale","scale"),&Environment::set_skybox_scale); - ClassDB::bind_method(_MD("set_bg_color","color"),&Environment::set_bg_color); - ClassDB::bind_method(_MD("set_bg_energy","energy"),&Environment::set_bg_energy); - ClassDB::bind_method(_MD("set_canvas_max_layer","layer"),&Environment::set_canvas_max_layer); - ClassDB::bind_method(_MD("set_ambient_light_color","color"),&Environment::set_ambient_light_color); - ClassDB::bind_method(_MD("set_ambient_light_energy","energy"),&Environment::set_ambient_light_energy); - ClassDB::bind_method(_MD("set_ambient_light_skybox_contribution","energy"),&Environment::set_ambient_light_skybox_contribution); - - - ClassDB::bind_method(_MD("get_background"),&Environment::get_background); - ClassDB::bind_method(_MD("get_skybox:CubeMap"),&Environment::get_skybox); - ClassDB::bind_method(_MD("get_skybox_scale"),&Environment::get_skybox_scale); - ClassDB::bind_method(_MD("get_bg_color"),&Environment::get_bg_color); - ClassDB::bind_method(_MD("get_bg_energy"),&Environment::get_bg_energy); - ClassDB::bind_method(_MD("get_canvas_max_layer"),&Environment::get_canvas_max_layer); - ClassDB::bind_method(_MD("get_ambient_light_color"),&Environment::get_ambient_light_color); - ClassDB::bind_method(_MD("get_ambient_light_energy"),&Environment::get_ambient_light_energy); - ClassDB::bind_method(_MD("get_ambient_light_skybox_contribution"),&Environment::get_ambient_light_skybox_contribution); + ClassDB::bind_method(D_METHOD("set_background","mode"),&Environment::set_background); + ClassDB::bind_method(D_METHOD("set_skybox","skybox:CubeMap"),&Environment::set_skybox); + ClassDB::bind_method(D_METHOD("set_skybox_scale","scale"),&Environment::set_skybox_scale); + ClassDB::bind_method(D_METHOD("set_bg_color","color"),&Environment::set_bg_color); + ClassDB::bind_method(D_METHOD("set_bg_energy","energy"),&Environment::set_bg_energy); + ClassDB::bind_method(D_METHOD("set_canvas_max_layer","layer"),&Environment::set_canvas_max_layer); + ClassDB::bind_method(D_METHOD("set_ambient_light_color","color"),&Environment::set_ambient_light_color); + ClassDB::bind_method(D_METHOD("set_ambient_light_energy","energy"),&Environment::set_ambient_light_energy); + ClassDB::bind_method(D_METHOD("set_ambient_light_skybox_contribution","energy"),&Environment::set_ambient_light_skybox_contribution); + + + ClassDB::bind_method(D_METHOD("get_background"),&Environment::get_background); + ClassDB::bind_method(D_METHOD("get_skybox:CubeMap"),&Environment::get_skybox); + ClassDB::bind_method(D_METHOD("get_skybox_scale"),&Environment::get_skybox_scale); + ClassDB::bind_method(D_METHOD("get_bg_color"),&Environment::get_bg_color); + ClassDB::bind_method(D_METHOD("get_bg_energy"),&Environment::get_bg_energy); + ClassDB::bind_method(D_METHOD("get_canvas_max_layer"),&Environment::get_canvas_max_layer); + ClassDB::bind_method(D_METHOD("get_ambient_light_color"),&Environment::get_ambient_light_color); + ClassDB::bind_method(D_METHOD("get_ambient_light_energy"),&Environment::get_ambient_light_energy); + ClassDB::bind_method(D_METHOD("get_ambient_light_skybox_contribution"),&Environment::get_ambient_light_skybox_contribution); ADD_GROUP("Background","background_"); @@ -736,26 +736,26 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::REAL,"ambient_light_skybox_contribution",PROPERTY_HINT_RANGE,"0,1,0.01"),"set_ambient_light_skybox_contribution","get_ambient_light_skybox_contribution") ; - ClassDB::bind_method(_MD("set_ssr_enabled","enabled"),&Environment::set_ssr_enabled); - ClassDB::bind_method(_MD("is_ssr_enabled"),&Environment::is_ssr_enabled); + ClassDB::bind_method(D_METHOD("set_ssr_enabled","enabled"),&Environment::set_ssr_enabled); + ClassDB::bind_method(D_METHOD("is_ssr_enabled"),&Environment::is_ssr_enabled); - ClassDB::bind_method(_MD("set_ssr_max_steps","max_steps"),&Environment::set_ssr_max_steps); - ClassDB::bind_method(_MD("get_ssr_max_steps"),&Environment::get_ssr_max_steps); + ClassDB::bind_method(D_METHOD("set_ssr_max_steps","max_steps"),&Environment::set_ssr_max_steps); + ClassDB::bind_method(D_METHOD("get_ssr_max_steps"),&Environment::get_ssr_max_steps); - ClassDB::bind_method(_MD("set_ssr_accel","accel"),&Environment::set_ssr_accel); - ClassDB::bind_method(_MD("get_ssr_accel"),&Environment::get_ssr_accel); + ClassDB::bind_method(D_METHOD("set_ssr_accel","accel"),&Environment::set_ssr_accel); + ClassDB::bind_method(D_METHOD("get_ssr_accel"),&Environment::get_ssr_accel); - ClassDB::bind_method(_MD("set_ssr_fade","fade"),&Environment::set_ssr_fade); - ClassDB::bind_method(_MD("get_ssr_fade"),&Environment::get_ssr_fade); + ClassDB::bind_method(D_METHOD("set_ssr_fade","fade"),&Environment::set_ssr_fade); + ClassDB::bind_method(D_METHOD("get_ssr_fade"),&Environment::get_ssr_fade); - ClassDB::bind_method(_MD("set_ssr_depth_tolerance","depth_tolerance"),&Environment::set_ssr_depth_tolerance); - ClassDB::bind_method(_MD("get_ssr_depth_tolerance"),&Environment::get_ssr_depth_tolerance); + ClassDB::bind_method(D_METHOD("set_ssr_depth_tolerance","depth_tolerance"),&Environment::set_ssr_depth_tolerance); + ClassDB::bind_method(D_METHOD("get_ssr_depth_tolerance"),&Environment::get_ssr_depth_tolerance); - ClassDB::bind_method(_MD("set_ssr_smooth","smooth"),&Environment::set_ssr_smooth); - ClassDB::bind_method(_MD("is_ssr_smooth"),&Environment::is_ssr_smooth); + ClassDB::bind_method(D_METHOD("set_ssr_smooth","smooth"),&Environment::set_ssr_smooth); + ClassDB::bind_method(D_METHOD("is_ssr_smooth"),&Environment::is_ssr_smooth); - ClassDB::bind_method(_MD("set_ssr_rough","rough"),&Environment::set_ssr_rough); - ClassDB::bind_method(_MD("is_ssr_rough"),&Environment::is_ssr_rough); + ClassDB::bind_method(D_METHOD("set_ssr_rough","rough"),&Environment::set_ssr_rough); + ClassDB::bind_method(D_METHOD("is_ssr_rough"),&Environment::is_ssr_rough); ADD_GROUP("SS Reflections","ss_reflections_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"ss_reflections_enabled"),"set_ssr_enabled","is_ssr_enabled") ; @@ -766,32 +766,32 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL,"ss_reflections_accel_smooth"),"set_ssr_smooth","is_ssr_smooth") ; ADD_PROPERTY(PropertyInfo(Variant::BOOL,"ss_reflections_roughness"),"set_ssr_rough","is_ssr_rough") ; - ClassDB::bind_method(_MD("set_ssao_enabled","enabled"),&Environment::set_ssao_enabled); - ClassDB::bind_method(_MD("is_ssao_enabled"),&Environment::is_ssao_enabled); + ClassDB::bind_method(D_METHOD("set_ssao_enabled","enabled"),&Environment::set_ssao_enabled); + ClassDB::bind_method(D_METHOD("is_ssao_enabled"),&Environment::is_ssao_enabled); - ClassDB::bind_method(_MD("set_ssao_radius","radius"),&Environment::set_ssao_radius); - ClassDB::bind_method(_MD("get_ssao_radius"),&Environment::get_ssao_radius); + ClassDB::bind_method(D_METHOD("set_ssao_radius","radius"),&Environment::set_ssao_radius); + ClassDB::bind_method(D_METHOD("get_ssao_radius"),&Environment::get_ssao_radius); - ClassDB::bind_method(_MD("set_ssao_intensity","intensity"),&Environment::set_ssao_intensity); - ClassDB::bind_method(_MD("get_ssao_intensity"),&Environment::get_ssao_intensity); + ClassDB::bind_method(D_METHOD("set_ssao_intensity","intensity"),&Environment::set_ssao_intensity); + ClassDB::bind_method(D_METHOD("get_ssao_intensity"),&Environment::get_ssao_intensity); - ClassDB::bind_method(_MD("set_ssao_radius2","radius"),&Environment::set_ssao_radius2); - ClassDB::bind_method(_MD("get_ssao_radius2"),&Environment::get_ssao_radius2); + ClassDB::bind_method(D_METHOD("set_ssao_radius2","radius"),&Environment::set_ssao_radius2); + ClassDB::bind_method(D_METHOD("get_ssao_radius2"),&Environment::get_ssao_radius2); - ClassDB::bind_method(_MD("set_ssao_intensity2","intensity"),&Environment::set_ssao_intensity2); - ClassDB::bind_method(_MD("get_ssao_intensity2"),&Environment::get_ssao_intensity2); + ClassDB::bind_method(D_METHOD("set_ssao_intensity2","intensity"),&Environment::set_ssao_intensity2); + ClassDB::bind_method(D_METHOD("get_ssao_intensity2"),&Environment::get_ssao_intensity2); - ClassDB::bind_method(_MD("set_ssao_bias","bias"),&Environment::set_ssao_bias); - ClassDB::bind_method(_MD("get_ssao_bias"),&Environment::get_ssao_bias); + ClassDB::bind_method(D_METHOD("set_ssao_bias","bias"),&Environment::set_ssao_bias); + ClassDB::bind_method(D_METHOD("get_ssao_bias"),&Environment::get_ssao_bias); - ClassDB::bind_method(_MD("set_ssao_direct_light_affect","amount"),&Environment::set_ssao_direct_light_affect); - ClassDB::bind_method(_MD("get_ssao_direct_light_affect"),&Environment::get_ssao_direct_light_affect); + ClassDB::bind_method(D_METHOD("set_ssao_direct_light_affect","amount"),&Environment::set_ssao_direct_light_affect); + ClassDB::bind_method(D_METHOD("get_ssao_direct_light_affect"),&Environment::get_ssao_direct_light_affect); - ClassDB::bind_method(_MD("set_ssao_color","color"),&Environment::set_ssao_color); - ClassDB::bind_method(_MD("get_ssao_color"),&Environment::get_ssao_color); + ClassDB::bind_method(D_METHOD("set_ssao_color","color"),&Environment::set_ssao_color); + ClassDB::bind_method(D_METHOD("get_ssao_color"),&Environment::get_ssao_color); - ClassDB::bind_method(_MD("set_ssao_blur","enabled"),&Environment::set_ssao_blur); - ClassDB::bind_method(_MD("is_ssao_blur_enabled"),&Environment::is_ssao_blur_enabled); + ClassDB::bind_method(D_METHOD("set_ssao_blur","enabled"),&Environment::set_ssao_blur); + ClassDB::bind_method(D_METHOD("is_ssao_blur_enabled"),&Environment::is_ssao_blur_enabled); ADD_GROUP("SSAO","ssao_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"ssao_enabled"),"set_ssao_enabled","is_ssao_enabled") ; @@ -804,35 +804,35 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::COLOR,"ssao_color",PROPERTY_HINT_COLOR_NO_ALPHA),"set_ssao_color","get_ssao_color") ; ADD_PROPERTY(PropertyInfo(Variant::BOOL,"ssao_blur"),"set_ssao_blur","is_ssao_blur_enabled") ; - ClassDB::bind_method(_MD("set_dof_blur_far_enabled","enabled"),&Environment::set_dof_blur_far_enabled); - ClassDB::bind_method(_MD("is_dof_blur_far_enabled"),&Environment::is_dof_blur_far_enabled); + ClassDB::bind_method(D_METHOD("set_dof_blur_far_enabled","enabled"),&Environment::set_dof_blur_far_enabled); + ClassDB::bind_method(D_METHOD("is_dof_blur_far_enabled"),&Environment::is_dof_blur_far_enabled); - ClassDB::bind_method(_MD("set_dof_blur_far_distance","intensity"),&Environment::set_dof_blur_far_distance); - ClassDB::bind_method(_MD("get_dof_blur_far_distance"),&Environment::get_dof_blur_far_distance); + ClassDB::bind_method(D_METHOD("set_dof_blur_far_distance","intensity"),&Environment::set_dof_blur_far_distance); + ClassDB::bind_method(D_METHOD("get_dof_blur_far_distance"),&Environment::get_dof_blur_far_distance); - ClassDB::bind_method(_MD("set_dof_blur_far_transition","intensity"),&Environment::set_dof_blur_far_transition); - ClassDB::bind_method(_MD("get_dof_blur_far_transition"),&Environment::get_dof_blur_far_transition); + ClassDB::bind_method(D_METHOD("set_dof_blur_far_transition","intensity"),&Environment::set_dof_blur_far_transition); + ClassDB::bind_method(D_METHOD("get_dof_blur_far_transition"),&Environment::get_dof_blur_far_transition); - ClassDB::bind_method(_MD("set_dof_blur_far_amount","intensity"),&Environment::set_dof_blur_far_amount); - ClassDB::bind_method(_MD("get_dof_blur_far_amount"),&Environment::get_dof_blur_far_amount); + ClassDB::bind_method(D_METHOD("set_dof_blur_far_amount","intensity"),&Environment::set_dof_blur_far_amount); + ClassDB::bind_method(D_METHOD("get_dof_blur_far_amount"),&Environment::get_dof_blur_far_amount); - ClassDB::bind_method(_MD("set_dof_blur_far_quality","intensity"),&Environment::set_dof_blur_far_quality); - ClassDB::bind_method(_MD("get_dof_blur_far_quality"),&Environment::get_dof_blur_far_quality); + ClassDB::bind_method(D_METHOD("set_dof_blur_far_quality","intensity"),&Environment::set_dof_blur_far_quality); + ClassDB::bind_method(D_METHOD("get_dof_blur_far_quality"),&Environment::get_dof_blur_far_quality); - ClassDB::bind_method(_MD("set_dof_blur_near_enabled","enabled"),&Environment::set_dof_blur_near_enabled); - ClassDB::bind_method(_MD("is_dof_blur_near_enabled"),&Environment::is_dof_blur_near_enabled); + ClassDB::bind_method(D_METHOD("set_dof_blur_near_enabled","enabled"),&Environment::set_dof_blur_near_enabled); + ClassDB::bind_method(D_METHOD("is_dof_blur_near_enabled"),&Environment::is_dof_blur_near_enabled); - ClassDB::bind_method(_MD("set_dof_blur_near_distance","intensity"),&Environment::set_dof_blur_near_distance); - ClassDB::bind_method(_MD("get_dof_blur_near_distance"),&Environment::get_dof_blur_near_distance); + ClassDB::bind_method(D_METHOD("set_dof_blur_near_distance","intensity"),&Environment::set_dof_blur_near_distance); + ClassDB::bind_method(D_METHOD("get_dof_blur_near_distance"),&Environment::get_dof_blur_near_distance); - ClassDB::bind_method(_MD("set_dof_blur_near_transition","intensity"),&Environment::set_dof_blur_near_transition); - ClassDB::bind_method(_MD("get_dof_blur_near_transition"),&Environment::get_dof_blur_near_transition); + ClassDB::bind_method(D_METHOD("set_dof_blur_near_transition","intensity"),&Environment::set_dof_blur_near_transition); + ClassDB::bind_method(D_METHOD("get_dof_blur_near_transition"),&Environment::get_dof_blur_near_transition); - ClassDB::bind_method(_MD("set_dof_blur_near_amount","intensity"),&Environment::set_dof_blur_near_amount); - ClassDB::bind_method(_MD("get_dof_blur_near_amount"),&Environment::get_dof_blur_near_amount); + ClassDB::bind_method(D_METHOD("set_dof_blur_near_amount","intensity"),&Environment::set_dof_blur_near_amount); + ClassDB::bind_method(D_METHOD("get_dof_blur_near_amount"),&Environment::get_dof_blur_near_amount); - ClassDB::bind_method(_MD("set_dof_blur_near_quality","level"),&Environment::set_dof_blur_near_quality); - ClassDB::bind_method(_MD("get_dof_blur_near_quality"),&Environment::get_dof_blur_near_quality); + ClassDB::bind_method(D_METHOD("set_dof_blur_near_quality","level"),&Environment::set_dof_blur_near_quality); + ClassDB::bind_method(D_METHOD("get_dof_blur_near_quality"),&Environment::get_dof_blur_near_quality); ADD_GROUP("DOF Far Blur","dof_blur_far_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"dof_blur_far_enabled"),"set_dof_blur_far_enabled","is_dof_blur_far_enabled") ; @@ -849,32 +849,32 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::INT,"dof_blur_near_quality",PROPERTY_HINT_ENUM,"Low,Medium,High"),"set_dof_blur_near_quality","get_dof_blur_near_quality") ; - ClassDB::bind_method(_MD("set_glow_enabled","enabled"),&Environment::set_glow_enabled); - ClassDB::bind_method(_MD("is_glow_enabled"),&Environment::is_glow_enabled); + ClassDB::bind_method(D_METHOD("set_glow_enabled","enabled"),&Environment::set_glow_enabled); + ClassDB::bind_method(D_METHOD("is_glow_enabled"),&Environment::is_glow_enabled); - ClassDB::bind_method(_MD("set_glow_level","idx","enabled"),&Environment::set_glow_level); - ClassDB::bind_method(_MD("is_glow_level_enabled","idx"),&Environment::is_glow_level_enabled); + ClassDB::bind_method(D_METHOD("set_glow_level","idx","enabled"),&Environment::set_glow_level); + ClassDB::bind_method(D_METHOD("is_glow_level_enabled","idx"),&Environment::is_glow_level_enabled); - ClassDB::bind_method(_MD("set_glow_intensity","intensity"),&Environment::set_glow_intensity); - ClassDB::bind_method(_MD("get_glow_intensity"),&Environment::get_glow_intensity); + ClassDB::bind_method(D_METHOD("set_glow_intensity","intensity"),&Environment::set_glow_intensity); + ClassDB::bind_method(D_METHOD("get_glow_intensity"),&Environment::get_glow_intensity); - ClassDB::bind_method(_MD("set_glow_strength","strength"),&Environment::set_glow_strength); - ClassDB::bind_method(_MD("get_glow_strength"),&Environment::get_glow_strength); + ClassDB::bind_method(D_METHOD("set_glow_strength","strength"),&Environment::set_glow_strength); + ClassDB::bind_method(D_METHOD("get_glow_strength"),&Environment::get_glow_strength); - ClassDB::bind_method(_MD("set_glow_bloom","amount"),&Environment::set_glow_bloom); - ClassDB::bind_method(_MD("get_glow_bloom"),&Environment::get_glow_bloom); + ClassDB::bind_method(D_METHOD("set_glow_bloom","amount"),&Environment::set_glow_bloom); + ClassDB::bind_method(D_METHOD("get_glow_bloom"),&Environment::get_glow_bloom); - ClassDB::bind_method(_MD("set_glow_blend_mode","mode"),&Environment::set_glow_blend_mode); - ClassDB::bind_method(_MD("get_glow_blend_mode"),&Environment::get_glow_blend_mode); + ClassDB::bind_method(D_METHOD("set_glow_blend_mode","mode"),&Environment::set_glow_blend_mode); + ClassDB::bind_method(D_METHOD("get_glow_blend_mode"),&Environment::get_glow_blend_mode); - ClassDB::bind_method(_MD("set_glow_hdr_bleed_treshold","treshold"),&Environment::set_glow_hdr_bleed_treshold); - ClassDB::bind_method(_MD("get_glow_hdr_bleed_treshold"),&Environment::get_glow_hdr_bleed_treshold); + ClassDB::bind_method(D_METHOD("set_glow_hdr_bleed_treshold","treshold"),&Environment::set_glow_hdr_bleed_treshold); + ClassDB::bind_method(D_METHOD("get_glow_hdr_bleed_treshold"),&Environment::get_glow_hdr_bleed_treshold); - ClassDB::bind_method(_MD("set_glow_hdr_bleed_scale","scale"),&Environment::set_glow_hdr_bleed_scale); - ClassDB::bind_method(_MD("get_glow_hdr_bleed_scale"),&Environment::get_glow_hdr_bleed_scale); + ClassDB::bind_method(D_METHOD("set_glow_hdr_bleed_scale","scale"),&Environment::set_glow_hdr_bleed_scale); + ClassDB::bind_method(D_METHOD("get_glow_hdr_bleed_scale"),&Environment::get_glow_hdr_bleed_scale); - ClassDB::bind_method(_MD("set_glow_bicubic_upscale","enabled"),&Environment::set_glow_bicubic_upscale); - ClassDB::bind_method(_MD("is_glow_bicubic_upscale_enabled"),&Environment::is_glow_bicubic_upscale_enabled); + ClassDB::bind_method(D_METHOD("set_glow_bicubic_upscale","enabled"),&Environment::set_glow_bicubic_upscale); + ClassDB::bind_method(D_METHOD("is_glow_bicubic_upscale_enabled"),&Environment::is_glow_bicubic_upscale_enabled); ADD_GROUP("Glow","glow_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"glow_enabled"),"set_glow_enabled","is_glow_enabled") ; @@ -895,29 +895,29 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::BOOL,"glow_bicubic_upscale"),"set_glow_bicubic_upscale","is_glow_bicubic_upscale_enabled") ; - ClassDB::bind_method(_MD("set_tonemapper","mode"),&Environment::set_tonemapper); - ClassDB::bind_method(_MD("get_tonemapper"),&Environment::get_tonemapper); + ClassDB::bind_method(D_METHOD("set_tonemapper","mode"),&Environment::set_tonemapper); + ClassDB::bind_method(D_METHOD("get_tonemapper"),&Environment::get_tonemapper); - ClassDB::bind_method(_MD("set_tonemap_exposure","exposure"),&Environment::set_tonemap_exposure); - ClassDB::bind_method(_MD("get_tonemap_exposure"),&Environment::get_tonemap_exposure); + ClassDB::bind_method(D_METHOD("set_tonemap_exposure","exposure"),&Environment::set_tonemap_exposure); + ClassDB::bind_method(D_METHOD("get_tonemap_exposure"),&Environment::get_tonemap_exposure); - ClassDB::bind_method(_MD("set_tonemap_white","white"),&Environment::set_tonemap_white); - ClassDB::bind_method(_MD("get_tonemap_white"),&Environment::get_tonemap_white); + ClassDB::bind_method(D_METHOD("set_tonemap_white","white"),&Environment::set_tonemap_white); + ClassDB::bind_method(D_METHOD("get_tonemap_white"),&Environment::get_tonemap_white); - ClassDB::bind_method(_MD("set_tonemap_auto_exposure","auto_exposure"),&Environment::set_tonemap_auto_exposure); - ClassDB::bind_method(_MD("get_tonemap_auto_exposure"),&Environment::get_tonemap_auto_exposure); + ClassDB::bind_method(D_METHOD("set_tonemap_auto_exposure","auto_exposure"),&Environment::set_tonemap_auto_exposure); + ClassDB::bind_method(D_METHOD("get_tonemap_auto_exposure"),&Environment::get_tonemap_auto_exposure); - ClassDB::bind_method(_MD("set_tonemap_auto_exposure_max","exposure_max"),&Environment::set_tonemap_auto_exposure_max); - ClassDB::bind_method(_MD("get_tonemap_auto_exposure_max"),&Environment::get_tonemap_auto_exposure_max); + ClassDB::bind_method(D_METHOD("set_tonemap_auto_exposure_max","exposure_max"),&Environment::set_tonemap_auto_exposure_max); + ClassDB::bind_method(D_METHOD("get_tonemap_auto_exposure_max"),&Environment::get_tonemap_auto_exposure_max); - ClassDB::bind_method(_MD("set_tonemap_auto_exposure_min","exposure_min"),&Environment::set_tonemap_auto_exposure_min); - ClassDB::bind_method(_MD("get_tonemap_auto_exposure_min"),&Environment::get_tonemap_auto_exposure_min); + ClassDB::bind_method(D_METHOD("set_tonemap_auto_exposure_min","exposure_min"),&Environment::set_tonemap_auto_exposure_min); + ClassDB::bind_method(D_METHOD("get_tonemap_auto_exposure_min"),&Environment::get_tonemap_auto_exposure_min); - ClassDB::bind_method(_MD("set_tonemap_auto_exposure_speed","exposure_speed"),&Environment::set_tonemap_auto_exposure_speed); - ClassDB::bind_method(_MD("get_tonemap_auto_exposure_speed"),&Environment::get_tonemap_auto_exposure_speed); + ClassDB::bind_method(D_METHOD("set_tonemap_auto_exposure_speed","exposure_speed"),&Environment::set_tonemap_auto_exposure_speed); + ClassDB::bind_method(D_METHOD("get_tonemap_auto_exposure_speed"),&Environment::get_tonemap_auto_exposure_speed); - ClassDB::bind_method(_MD("set_tonemap_auto_exposure_grey","exposure_grey"),&Environment::set_tonemap_auto_exposure_grey); - ClassDB::bind_method(_MD("get_tonemap_auto_exposure_grey"),&Environment::get_tonemap_auto_exposure_grey); + ClassDB::bind_method(D_METHOD("set_tonemap_auto_exposure_grey","exposure_grey"),&Environment::set_tonemap_auto_exposure_grey); + ClassDB::bind_method(D_METHOD("get_tonemap_auto_exposure_grey"),&Environment::get_tonemap_auto_exposure_grey); ADD_GROUP("Tonemap","tonemap_"); @@ -931,20 +931,20 @@ void Environment::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::REAL,"auto_expoure_max_luma",PROPERTY_HINT_RANGE,"0,16,0.01"),"set_tonemap_auto_exposure_max","get_tonemap_auto_exposure_max") ; ADD_PROPERTY(PropertyInfo(Variant::REAL,"auto_expoure_speed",PROPERTY_HINT_RANGE,"0.01,64,0.01"),"set_tonemap_auto_exposure_speed","get_tonemap_auto_exposure_speed") ; - ClassDB::bind_method(_MD("set_adjustment_enable","enabled"),&Environment::set_adjustment_enable); - ClassDB::bind_method(_MD("is_adjustment_enabled"),&Environment::is_adjustment_enabled); + ClassDB::bind_method(D_METHOD("set_adjustment_enable","enabled"),&Environment::set_adjustment_enable); + ClassDB::bind_method(D_METHOD("is_adjustment_enabled"),&Environment::is_adjustment_enabled); - ClassDB::bind_method(_MD("set_adjustment_brightness","brightness"),&Environment::set_adjustment_brightness); - ClassDB::bind_method(_MD("get_adjustment_brightness"),&Environment::get_adjustment_brightness); + ClassDB::bind_method(D_METHOD("set_adjustment_brightness","brightness"),&Environment::set_adjustment_brightness); + ClassDB::bind_method(D_METHOD("get_adjustment_brightness"),&Environment::get_adjustment_brightness); - ClassDB::bind_method(_MD("set_adjustment_contrast","contrast"),&Environment::set_adjustment_contrast); - ClassDB::bind_method(_MD("get_adjustment_contrast"),&Environment::get_adjustment_contrast); + ClassDB::bind_method(D_METHOD("set_adjustment_contrast","contrast"),&Environment::set_adjustment_contrast); + ClassDB::bind_method(D_METHOD("get_adjustment_contrast"),&Environment::get_adjustment_contrast); - ClassDB::bind_method(_MD("set_adjustment_saturation","saturation"),&Environment::set_adjustment_saturation); - ClassDB::bind_method(_MD("get_adjustment_saturation"),&Environment::get_adjustment_saturation); + ClassDB::bind_method(D_METHOD("set_adjustment_saturation","saturation"),&Environment::set_adjustment_saturation); + ClassDB::bind_method(D_METHOD("get_adjustment_saturation"),&Environment::get_adjustment_saturation); - ClassDB::bind_method(_MD("set_adjustment_color_correction","color_correction"),&Environment::set_adjustment_color_correction); - ClassDB::bind_method(_MD("get_adjustment_color_correction"),&Environment::get_adjustment_color_correction); + ClassDB::bind_method(D_METHOD("set_adjustment_color_correction","color_correction"),&Environment::set_adjustment_color_correction); + ClassDB::bind_method(D_METHOD("get_adjustment_color_correction"),&Environment::get_adjustment_color_correction); ADD_GROUP("Adjustments","adjustment_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"adjustment_enabled"),"set_adjustment_enable","is_adjustment_enabled") ; diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp index d7cf629960..d94e046b98 100644 --- a/scene/resources/font.cpp +++ b/scene/resources/font.cpp @@ -78,14 +78,14 @@ void Font::update_changes() { void Font::_bind_methods() { - ClassDB::bind_method(_MD("draw","canvas_item","pos","string","modulate","clip_w"),&Font::draw,DEFVAL(Color(1,1,1)),DEFVAL(-1)); - ClassDB::bind_method(_MD("get_ascent"),&Font::get_ascent); - ClassDB::bind_method(_MD("get_descent"),&Font::get_descent); - ClassDB::bind_method(_MD("get_height"),&Font::get_height); - ClassDB::bind_method(_MD("is_distance_field_hint"),&Font::is_distance_field_hint); - ClassDB::bind_method(_MD("get_string_size","string"),&Font::get_string_size); - ClassDB::bind_method(_MD("draw_char","canvas_item","pos","char","next","modulate"),&Font::draw_char,DEFVAL(-1),DEFVAL(Color(1,1,1))); - ClassDB::bind_method(_MD("update_changes"),&Font::update_changes); + ClassDB::bind_method(D_METHOD("draw","canvas_item","pos","string","modulate","clip_w"),&Font::draw,DEFVAL(Color(1,1,1)),DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("get_ascent"),&Font::get_ascent); + ClassDB::bind_method(D_METHOD("get_descent"),&Font::get_descent); + ClassDB::bind_method(D_METHOD("get_height"),&Font::get_height); + ClassDB::bind_method(D_METHOD("is_distance_field_hint"),&Font::is_distance_field_hint); + ClassDB::bind_method(D_METHOD("get_string_size","string"),&Font::get_string_size); + ClassDB::bind_method(D_METHOD("draw_char","canvas_item","pos","char","next","modulate"),&Font::draw_char,DEFVAL(-1),DEFVAL(Color(1,1,1))); + ClassDB::bind_method(D_METHOD("update_changes"),&Font::update_changes); } @@ -566,39 +566,39 @@ Size2 BitmapFont::get_char_size(CharType p_char,CharType p_next) const { void BitmapFont::_bind_methods() { - ClassDB::bind_method(_MD("create_from_fnt","path"),&BitmapFont::create_from_fnt); - ClassDB::bind_method(_MD("set_height","px"),&BitmapFont::set_height); + ClassDB::bind_method(D_METHOD("create_from_fnt","path"),&BitmapFont::create_from_fnt); + ClassDB::bind_method(D_METHOD("set_height","px"),&BitmapFont::set_height); - ClassDB::bind_method(_MD("set_ascent","px"),&BitmapFont::set_ascent); + ClassDB::bind_method(D_METHOD("set_ascent","px"),&BitmapFont::set_ascent); - ClassDB::bind_method(_MD("add_kerning_pair","char_a","char_b","kerning"),&BitmapFont::add_kerning_pair); - ClassDB::bind_method(_MD("get_kerning_pair","char_a","char_b"),&BitmapFont::get_kerning_pair); + ClassDB::bind_method(D_METHOD("add_kerning_pair","char_a","char_b","kerning"),&BitmapFont::add_kerning_pair); + ClassDB::bind_method(D_METHOD("get_kerning_pair","char_a","char_b"),&BitmapFont::get_kerning_pair); - ClassDB::bind_method(_MD("add_texture","texture:Texture"),&BitmapFont::add_texture); - ClassDB::bind_method(_MD("add_char","character","texture","rect","align","advance"),&BitmapFont::add_char,DEFVAL(Point2()),DEFVAL(-1)); + ClassDB::bind_method(D_METHOD("add_texture","texture:Texture"),&BitmapFont::add_texture); + ClassDB::bind_method(D_METHOD("add_char","character","texture","rect","align","advance"),&BitmapFont::add_char,DEFVAL(Point2()),DEFVAL(-1)); - ClassDB::bind_method(_MD("get_texture_count"),&BitmapFont::get_texture_count); - ClassDB::bind_method(_MD("get_texture:Texture","idx"),&BitmapFont::get_texture); + ClassDB::bind_method(D_METHOD("get_texture_count"),&BitmapFont::get_texture_count); + ClassDB::bind_method(D_METHOD("get_texture:Texture","idx"),&BitmapFont::get_texture); - ClassDB::bind_method(_MD("get_char_size","char","next"),&BitmapFont::get_char_size,DEFVAL(0)); + ClassDB::bind_method(D_METHOD("get_char_size","char","next"),&BitmapFont::get_char_size,DEFVAL(0)); - ClassDB::bind_method(_MD("set_distance_field_hint","enable"),&BitmapFont::set_distance_field_hint); + ClassDB::bind_method(D_METHOD("set_distance_field_hint","enable"),&BitmapFont::set_distance_field_hint); - ClassDB::bind_method(_MD("clear"),&BitmapFont::clear); + ClassDB::bind_method(D_METHOD("clear"),&BitmapFont::clear); - ClassDB::bind_method(_MD("_set_chars"),&BitmapFont::_set_chars); - ClassDB::bind_method(_MD("_get_chars"),&BitmapFont::_get_chars); + ClassDB::bind_method(D_METHOD("_set_chars"),&BitmapFont::_set_chars); + ClassDB::bind_method(D_METHOD("_get_chars"),&BitmapFont::_get_chars); - ClassDB::bind_method(_MD("_set_kernings"),&BitmapFont::_set_kernings); - ClassDB::bind_method(_MD("_get_kernings"),&BitmapFont::_get_kernings); + ClassDB::bind_method(D_METHOD("_set_kernings"),&BitmapFont::_set_kernings); + ClassDB::bind_method(D_METHOD("_get_kernings"),&BitmapFont::_get_kernings); - ClassDB::bind_method(_MD("_set_textures"),&BitmapFont::_set_textures); - ClassDB::bind_method(_MD("_get_textures"),&BitmapFont::_get_textures); + ClassDB::bind_method(D_METHOD("_set_textures"),&BitmapFont::_set_textures); + ClassDB::bind_method(D_METHOD("_get_textures"),&BitmapFont::_get_textures); - ClassDB::bind_method(_MD("set_fallback","fallback"),&BitmapFont::set_fallback); - ClassDB::bind_method(_MD("get_fallback"),&BitmapFont::get_fallback); + ClassDB::bind_method(D_METHOD("set_fallback","fallback"),&BitmapFont::set_fallback); + ClassDB::bind_method(D_METHOD("get_fallback"),&BitmapFont::get_fallback); ADD_PROPERTY( PropertyInfo( Variant::ARRAY, "textures", PROPERTY_HINT_NONE,"", PROPERTY_USAGE_NOEDITOR ), "_set_textures", "_get_textures") ; ADD_PROPERTY( PropertyInfo( Variant::POOL_INT_ARRAY, "chars", PROPERTY_HINT_NONE,"", PROPERTY_USAGE_NOEDITOR ), "_set_chars", "_get_chars") ; diff --git a/scene/resources/gibberish_stream.cpp b/scene/resources/gibberish_stream.cpp index 8b8ae63ab0..fdc5bf01e8 100644 --- a/scene/resources/gibberish_stream.cpp +++ b/scene/resources/gibberish_stream.cpp @@ -305,17 +305,17 @@ float AudioStreamGibberish::get_pitch_random_scale() const { void AudioStreamGibberish::_bind_methods() { - ClassDB::bind_method(_MD("set_phonemes","phonemes"),&AudioStreamGibberish::set_phonemes); - ClassDB::bind_method(_MD("get_phonemes"),&AudioStreamGibberish::get_phonemes); + ClassDB::bind_method(D_METHOD("set_phonemes","phonemes"),&AudioStreamGibberish::set_phonemes); + ClassDB::bind_method(D_METHOD("get_phonemes"),&AudioStreamGibberish::get_phonemes); - ClassDB::bind_method(_MD("set_pitch_scale","pitch_scale"),&AudioStreamGibberish::set_pitch_scale); - ClassDB::bind_method(_MD("get_pitch_scale"),&AudioStreamGibberish::get_pitch_scale); + ClassDB::bind_method(D_METHOD("set_pitch_scale","pitch_scale"),&AudioStreamGibberish::set_pitch_scale); + ClassDB::bind_method(D_METHOD("get_pitch_scale"),&AudioStreamGibberish::get_pitch_scale); - ClassDB::bind_method(_MD("set_pitch_random_scale","pitch_random_scale"),&AudioStreamGibberish::set_pitch_random_scale); - ClassDB::bind_method(_MD("get_pitch_random_scale"),&AudioStreamGibberish::get_pitch_random_scale); + ClassDB::bind_method(D_METHOD("set_pitch_random_scale","pitch_random_scale"),&AudioStreamGibberish::set_pitch_random_scale); + ClassDB::bind_method(D_METHOD("get_pitch_random_scale"),&AudioStreamGibberish::get_pitch_random_scale); - ClassDB::bind_method(_MD("set_xfade_time","sec"),&AudioStreamGibberish::set_xfade_time); - ClassDB::bind_method(_MD("get_xfade_time"),&AudioStreamGibberish::get_xfade_time); + ClassDB::bind_method(D_METHOD("set_xfade_time","sec"),&AudioStreamGibberish::set_xfade_time); + ClassDB::bind_method(D_METHOD("get_xfade_time"),&AudioStreamGibberish::get_xfade_time); ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"phonemes",PROPERTY_HINT_RESOURCE_TYPE,"SampleLibrary"),"set_phonemes","get_phonemes"); ADD_PROPERTY( PropertyInfo(Variant::REAL,"pitch_scale",PROPERTY_HINT_RANGE,"0.01,64,0.01"),"set_pitch_scale","get_pitch_scale"); diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index ea088cb909..b7c8b1664d 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -831,101 +831,101 @@ Vector2 FixedSpatialMaterial::get_uv2_offset() const{ void FixedSpatialMaterial::_bind_methods() { - ClassDB::bind_method(_MD("set_albedo","albedo"),&FixedSpatialMaterial::set_albedo); - ClassDB::bind_method(_MD("get_albedo"),&FixedSpatialMaterial::get_albedo); + ClassDB::bind_method(D_METHOD("set_albedo","albedo"),&FixedSpatialMaterial::set_albedo); + ClassDB::bind_method(D_METHOD("get_albedo"),&FixedSpatialMaterial::get_albedo); - ClassDB::bind_method(_MD("set_specular_mode","specular_mode"),&FixedSpatialMaterial::set_specular_mode); - ClassDB::bind_method(_MD("get_specular_mode"),&FixedSpatialMaterial::get_specular_mode); + ClassDB::bind_method(D_METHOD("set_specular_mode","specular_mode"),&FixedSpatialMaterial::set_specular_mode); + ClassDB::bind_method(D_METHOD("get_specular_mode"),&FixedSpatialMaterial::get_specular_mode); - ClassDB::bind_method(_MD("set_specular","specular"),&FixedSpatialMaterial::set_specular); - ClassDB::bind_method(_MD("get_specular"),&FixedSpatialMaterial::get_specular); + ClassDB::bind_method(D_METHOD("set_specular","specular"),&FixedSpatialMaterial::set_specular); + ClassDB::bind_method(D_METHOD("get_specular"),&FixedSpatialMaterial::get_specular); - ClassDB::bind_method(_MD("set_metalness","metalness"),&FixedSpatialMaterial::set_metalness); - ClassDB::bind_method(_MD("get_metalness"),&FixedSpatialMaterial::get_metalness); + ClassDB::bind_method(D_METHOD("set_metalness","metalness"),&FixedSpatialMaterial::set_metalness); + ClassDB::bind_method(D_METHOD("get_metalness"),&FixedSpatialMaterial::get_metalness); - ClassDB::bind_method(_MD("set_roughness","roughness"),&FixedSpatialMaterial::set_roughness); - ClassDB::bind_method(_MD("get_roughness"),&FixedSpatialMaterial::get_roughness); + ClassDB::bind_method(D_METHOD("set_roughness","roughness"),&FixedSpatialMaterial::set_roughness); + ClassDB::bind_method(D_METHOD("get_roughness"),&FixedSpatialMaterial::get_roughness); - ClassDB::bind_method(_MD("set_emission","emission"),&FixedSpatialMaterial::set_emission); - ClassDB::bind_method(_MD("get_emission"),&FixedSpatialMaterial::get_emission); + ClassDB::bind_method(D_METHOD("set_emission","emission"),&FixedSpatialMaterial::set_emission); + ClassDB::bind_method(D_METHOD("get_emission"),&FixedSpatialMaterial::get_emission); - ClassDB::bind_method(_MD("set_emission_energy","emission_energy"),&FixedSpatialMaterial::set_emission_energy); - ClassDB::bind_method(_MD("get_emission_energy"),&FixedSpatialMaterial::get_emission_energy); + ClassDB::bind_method(D_METHOD("set_emission_energy","emission_energy"),&FixedSpatialMaterial::set_emission_energy); + ClassDB::bind_method(D_METHOD("get_emission_energy"),&FixedSpatialMaterial::get_emission_energy); - ClassDB::bind_method(_MD("set_normal_scale","normal_scale"),&FixedSpatialMaterial::set_normal_scale); - ClassDB::bind_method(_MD("get_normal_scale"),&FixedSpatialMaterial::get_normal_scale); + ClassDB::bind_method(D_METHOD("set_normal_scale","normal_scale"),&FixedSpatialMaterial::set_normal_scale); + ClassDB::bind_method(D_METHOD("get_normal_scale"),&FixedSpatialMaterial::get_normal_scale); - ClassDB::bind_method(_MD("set_rim","rim"),&FixedSpatialMaterial::set_rim); - ClassDB::bind_method(_MD("get_rim"),&FixedSpatialMaterial::get_rim); + ClassDB::bind_method(D_METHOD("set_rim","rim"),&FixedSpatialMaterial::set_rim); + ClassDB::bind_method(D_METHOD("get_rim"),&FixedSpatialMaterial::get_rim); - ClassDB::bind_method(_MD("set_rim_tint","rim_tint"),&FixedSpatialMaterial::set_rim_tint); - ClassDB::bind_method(_MD("get_rim_tint"),&FixedSpatialMaterial::get_rim_tint); + ClassDB::bind_method(D_METHOD("set_rim_tint","rim_tint"),&FixedSpatialMaterial::set_rim_tint); + ClassDB::bind_method(D_METHOD("get_rim_tint"),&FixedSpatialMaterial::get_rim_tint); - ClassDB::bind_method(_MD("set_clearcoat","clearcoat"),&FixedSpatialMaterial::set_clearcoat); - ClassDB::bind_method(_MD("get_clearcoat"),&FixedSpatialMaterial::get_clearcoat); + ClassDB::bind_method(D_METHOD("set_clearcoat","clearcoat"),&FixedSpatialMaterial::set_clearcoat); + ClassDB::bind_method(D_METHOD("get_clearcoat"),&FixedSpatialMaterial::get_clearcoat); - ClassDB::bind_method(_MD("set_clearcoat_gloss","clearcoat_gloss"),&FixedSpatialMaterial::set_clearcoat_gloss); - ClassDB::bind_method(_MD("get_clearcoat_gloss"),&FixedSpatialMaterial::get_clearcoat_gloss); + ClassDB::bind_method(D_METHOD("set_clearcoat_gloss","clearcoat_gloss"),&FixedSpatialMaterial::set_clearcoat_gloss); + ClassDB::bind_method(D_METHOD("get_clearcoat_gloss"),&FixedSpatialMaterial::get_clearcoat_gloss); - ClassDB::bind_method(_MD("set_anisotropy","anisotropy"),&FixedSpatialMaterial::set_anisotropy); - ClassDB::bind_method(_MD("get_anisotropy"),&FixedSpatialMaterial::get_anisotropy); + ClassDB::bind_method(D_METHOD("set_anisotropy","anisotropy"),&FixedSpatialMaterial::set_anisotropy); + ClassDB::bind_method(D_METHOD("get_anisotropy"),&FixedSpatialMaterial::get_anisotropy); - ClassDB::bind_method(_MD("set_height_scale","height_scale"),&FixedSpatialMaterial::set_height_scale); - ClassDB::bind_method(_MD("get_height_scale"),&FixedSpatialMaterial::get_height_scale); + ClassDB::bind_method(D_METHOD("set_height_scale","height_scale"),&FixedSpatialMaterial::set_height_scale); + ClassDB::bind_method(D_METHOD("get_height_scale"),&FixedSpatialMaterial::get_height_scale); - ClassDB::bind_method(_MD("set_subsurface_scattering_strength","strength"),&FixedSpatialMaterial::set_subsurface_scattering_strength); - ClassDB::bind_method(_MD("get_subsurface_scattering_strength"),&FixedSpatialMaterial::get_subsurface_scattering_strength); + ClassDB::bind_method(D_METHOD("set_subsurface_scattering_strength","strength"),&FixedSpatialMaterial::set_subsurface_scattering_strength); + ClassDB::bind_method(D_METHOD("get_subsurface_scattering_strength"),&FixedSpatialMaterial::get_subsurface_scattering_strength); - ClassDB::bind_method(_MD("set_refraction","refraction"),&FixedSpatialMaterial::set_refraction); - ClassDB::bind_method(_MD("get_refraction"),&FixedSpatialMaterial::get_refraction); + ClassDB::bind_method(D_METHOD("set_refraction","refraction"),&FixedSpatialMaterial::set_refraction); + ClassDB::bind_method(D_METHOD("get_refraction"),&FixedSpatialMaterial::get_refraction); - ClassDB::bind_method(_MD("set_refraction_roughness","refraction_roughness"),&FixedSpatialMaterial::set_refraction_roughness); - ClassDB::bind_method(_MD("get_refraction_roughness"),&FixedSpatialMaterial::get_refraction_roughness); + ClassDB::bind_method(D_METHOD("set_refraction_roughness","refraction_roughness"),&FixedSpatialMaterial::set_refraction_roughness); + ClassDB::bind_method(D_METHOD("get_refraction_roughness"),&FixedSpatialMaterial::get_refraction_roughness); - ClassDB::bind_method(_MD("set_line_width","line_width"),&FixedSpatialMaterial::set_line_width); - ClassDB::bind_method(_MD("get_line_width"),&FixedSpatialMaterial::get_line_width); + ClassDB::bind_method(D_METHOD("set_line_width","line_width"),&FixedSpatialMaterial::set_line_width); + ClassDB::bind_method(D_METHOD("get_line_width"),&FixedSpatialMaterial::get_line_width); - ClassDB::bind_method(_MD("set_point_size","point_size"),&FixedSpatialMaterial::set_point_size); - ClassDB::bind_method(_MD("get_point_size"),&FixedSpatialMaterial::get_point_size); + ClassDB::bind_method(D_METHOD("set_point_size","point_size"),&FixedSpatialMaterial::set_point_size); + ClassDB::bind_method(D_METHOD("get_point_size"),&FixedSpatialMaterial::get_point_size); - ClassDB::bind_method(_MD("set_detail_uv","detail_uv"),&FixedSpatialMaterial::set_detail_uv); - ClassDB::bind_method(_MD("get_detail_uv"),&FixedSpatialMaterial::get_detail_uv); + ClassDB::bind_method(D_METHOD("set_detail_uv","detail_uv"),&FixedSpatialMaterial::set_detail_uv); + ClassDB::bind_method(D_METHOD("get_detail_uv"),&FixedSpatialMaterial::get_detail_uv); - ClassDB::bind_method(_MD("set_blend_mode","blend_mode"),&FixedSpatialMaterial::set_blend_mode); - ClassDB::bind_method(_MD("get_blend_mode"),&FixedSpatialMaterial::get_blend_mode); + ClassDB::bind_method(D_METHOD("set_blend_mode","blend_mode"),&FixedSpatialMaterial::set_blend_mode); + ClassDB::bind_method(D_METHOD("get_blend_mode"),&FixedSpatialMaterial::get_blend_mode); - ClassDB::bind_method(_MD("set_depth_draw_mode","depth_draw_mode"),&FixedSpatialMaterial::set_depth_draw_mode); - ClassDB::bind_method(_MD("get_depth_draw_mode"),&FixedSpatialMaterial::get_depth_draw_mode); + ClassDB::bind_method(D_METHOD("set_depth_draw_mode","depth_draw_mode"),&FixedSpatialMaterial::set_depth_draw_mode); + ClassDB::bind_method(D_METHOD("get_depth_draw_mode"),&FixedSpatialMaterial::get_depth_draw_mode); - ClassDB::bind_method(_MD("set_cull_mode","cull_mode"),&FixedSpatialMaterial::set_cull_mode); - ClassDB::bind_method(_MD("get_cull_mode"),&FixedSpatialMaterial::get_cull_mode); + ClassDB::bind_method(D_METHOD("set_cull_mode","cull_mode"),&FixedSpatialMaterial::set_cull_mode); + ClassDB::bind_method(D_METHOD("get_cull_mode"),&FixedSpatialMaterial::get_cull_mode); - ClassDB::bind_method(_MD("set_diffuse_mode","diffuse_mode"),&FixedSpatialMaterial::set_diffuse_mode); - ClassDB::bind_method(_MD("get_diffuse_mode"),&FixedSpatialMaterial::get_diffuse_mode); + ClassDB::bind_method(D_METHOD("set_diffuse_mode","diffuse_mode"),&FixedSpatialMaterial::set_diffuse_mode); + ClassDB::bind_method(D_METHOD("get_diffuse_mode"),&FixedSpatialMaterial::get_diffuse_mode); - ClassDB::bind_method(_MD("set_flag","flag","enable"),&FixedSpatialMaterial::set_flag); - ClassDB::bind_method(_MD("get_flag"),&FixedSpatialMaterial::get_flag); + ClassDB::bind_method(D_METHOD("set_flag","flag","enable"),&FixedSpatialMaterial::set_flag); + ClassDB::bind_method(D_METHOD("get_flag"),&FixedSpatialMaterial::get_flag); - ClassDB::bind_method(_MD("set_feature","feature","enable"),&FixedSpatialMaterial::set_feature); - ClassDB::bind_method(_MD("get_feature","feature"),&FixedSpatialMaterial::get_feature); + ClassDB::bind_method(D_METHOD("set_feature","feature","enable"),&FixedSpatialMaterial::set_feature); + ClassDB::bind_method(D_METHOD("get_feature","feature"),&FixedSpatialMaterial::get_feature); - ClassDB::bind_method(_MD("set_texture","param:Texture","texture"),&FixedSpatialMaterial::set_texture); - ClassDB::bind_method(_MD("get_texture:Texture","param:Texture"),&FixedSpatialMaterial::get_texture); + ClassDB::bind_method(D_METHOD("set_texture","param:Texture","texture"),&FixedSpatialMaterial::set_texture); + ClassDB::bind_method(D_METHOD("get_texture:Texture","param:Texture"),&FixedSpatialMaterial::get_texture); - ClassDB::bind_method(_MD("set_detail_blend_mode","detail_blend_mode"),&FixedSpatialMaterial::set_detail_blend_mode); - ClassDB::bind_method(_MD("get_detail_blend_mode"),&FixedSpatialMaterial::get_detail_blend_mode); + ClassDB::bind_method(D_METHOD("set_detail_blend_mode","detail_blend_mode"),&FixedSpatialMaterial::set_detail_blend_mode); + ClassDB::bind_method(D_METHOD("get_detail_blend_mode"),&FixedSpatialMaterial::get_detail_blend_mode); - ClassDB::bind_method(_MD("set_uv1_scale","scale"),&FixedSpatialMaterial::set_uv1_scale); - ClassDB::bind_method(_MD("get_uv1_scale"),&FixedSpatialMaterial::get_uv1_scale); + ClassDB::bind_method(D_METHOD("set_uv1_scale","scale"),&FixedSpatialMaterial::set_uv1_scale); + ClassDB::bind_method(D_METHOD("get_uv1_scale"),&FixedSpatialMaterial::get_uv1_scale); - ClassDB::bind_method(_MD("set_uv1_offset","offset"),&FixedSpatialMaterial::set_uv1_offset); - ClassDB::bind_method(_MD("get_uv1_offset"),&FixedSpatialMaterial::get_uv1_offset); + ClassDB::bind_method(D_METHOD("set_uv1_offset","offset"),&FixedSpatialMaterial::set_uv1_offset); + ClassDB::bind_method(D_METHOD("get_uv1_offset"),&FixedSpatialMaterial::get_uv1_offset); - ClassDB::bind_method(_MD("set_uv2_scale","scale"),&FixedSpatialMaterial::set_uv2_scale); - ClassDB::bind_method(_MD("get_uv2_scale"),&FixedSpatialMaterial::get_uv2_scale); + ClassDB::bind_method(D_METHOD("set_uv2_scale","scale"),&FixedSpatialMaterial::set_uv2_scale); + ClassDB::bind_method(D_METHOD("get_uv2_scale"),&FixedSpatialMaterial::get_uv2_scale); - ClassDB::bind_method(_MD("set_uv2_offset","offset"),&FixedSpatialMaterial::set_uv2_offset); - ClassDB::bind_method(_MD("get_uv2_offset"),&FixedSpatialMaterial::get_uv2_offset); + ClassDB::bind_method(D_METHOD("set_uv2_offset","offset"),&FixedSpatialMaterial::set_uv2_offset); + ClassDB::bind_method(D_METHOD("get_uv2_offset"),&FixedSpatialMaterial::get_uv2_offset); ADD_GROUP("Flags","flags_"); ADD_PROPERTYI(PropertyInfo(Variant::BOOL,"flags_transparent"),"set_feature","get_feature",FEATURE_TRANSPARENT); diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp index a174fffcc4..03d516329a 100644 --- a/scene/resources/mesh.cpp +++ b/scene/resources/mesh.cpp @@ -1019,31 +1019,31 @@ Ref<Mesh> Mesh::create_outline(float p_margin) const { void Mesh::_bind_methods() { - ClassDB::bind_method(_MD("add_blend_shape","name"),&Mesh::add_blend_shape); - ClassDB::bind_method(_MD("get_blend_shape_count"),&Mesh::get_blend_shape_count); - ClassDB::bind_method(_MD("get_blend_shape_name","index"),&Mesh::get_blend_shape_name); - ClassDB::bind_method(_MD("clear_blend_shapes"),&Mesh::clear_blend_shapes); - ClassDB::bind_method(_MD("set_blend_shape_mode","mode"),&Mesh::set_blend_shape_mode); - ClassDB::bind_method(_MD("get_blend_shape_mode"),&Mesh::get_blend_shape_mode); - - ClassDB::bind_method(_MD("add_surface_from_arrays","primitive","arrays","blend_shapes","compress_flags"),&Mesh::add_surface_from_arrays,DEFVAL(Array()),DEFVAL(ARRAY_COMPRESS_DEFAULT)); - ClassDB::bind_method(_MD("get_surface_count"),&Mesh::get_surface_count); - ClassDB::bind_method(_MD("surface_remove","surf_idx"),&Mesh::surface_remove); - ClassDB::bind_method(_MD("surface_get_array_len","surf_idx"),&Mesh::surface_get_array_len); - ClassDB::bind_method(_MD("surface_get_array_index_len","surf_idx"),&Mesh::surface_get_array_index_len); - ClassDB::bind_method(_MD("surface_get_format","surf_idx"),&Mesh::surface_get_format); - ClassDB::bind_method(_MD("surface_get_primitive_type","surf_idx"),&Mesh::surface_get_primitive_type); - ClassDB::bind_method(_MD("surface_set_material","surf_idx","material:Material"),&Mesh::surface_set_material); - ClassDB::bind_method(_MD("surface_get_material:Material","surf_idx"),&Mesh::surface_get_material); - ClassDB::bind_method(_MD("surface_set_name","surf_idx","name"),&Mesh::surface_set_name); - ClassDB::bind_method(_MD("surface_get_name","surf_idx"),&Mesh::surface_get_name); - ClassDB::bind_method(_MD("center_geometry"),&Mesh::center_geometry); + ClassDB::bind_method(D_METHOD("add_blend_shape","name"),&Mesh::add_blend_shape); + ClassDB::bind_method(D_METHOD("get_blend_shape_count"),&Mesh::get_blend_shape_count); + ClassDB::bind_method(D_METHOD("get_blend_shape_name","index"),&Mesh::get_blend_shape_name); + ClassDB::bind_method(D_METHOD("clear_blend_shapes"),&Mesh::clear_blend_shapes); + ClassDB::bind_method(D_METHOD("set_blend_shape_mode","mode"),&Mesh::set_blend_shape_mode); + ClassDB::bind_method(D_METHOD("get_blend_shape_mode"),&Mesh::get_blend_shape_mode); + + ClassDB::bind_method(D_METHOD("add_surface_from_arrays","primitive","arrays","blend_shapes","compress_flags"),&Mesh::add_surface_from_arrays,DEFVAL(Array()),DEFVAL(ARRAY_COMPRESS_DEFAULT)); + ClassDB::bind_method(D_METHOD("get_surface_count"),&Mesh::get_surface_count); + ClassDB::bind_method(D_METHOD("surface_remove","surf_idx"),&Mesh::surface_remove); + ClassDB::bind_method(D_METHOD("surface_get_array_len","surf_idx"),&Mesh::surface_get_array_len); + ClassDB::bind_method(D_METHOD("surface_get_array_index_len","surf_idx"),&Mesh::surface_get_array_index_len); + ClassDB::bind_method(D_METHOD("surface_get_format","surf_idx"),&Mesh::surface_get_format); + ClassDB::bind_method(D_METHOD("surface_get_primitive_type","surf_idx"),&Mesh::surface_get_primitive_type); + ClassDB::bind_method(D_METHOD("surface_set_material","surf_idx","material:Material"),&Mesh::surface_set_material); + ClassDB::bind_method(D_METHOD("surface_get_material:Material","surf_idx"),&Mesh::surface_get_material); + ClassDB::bind_method(D_METHOD("surface_set_name","surf_idx","name"),&Mesh::surface_set_name); + ClassDB::bind_method(D_METHOD("surface_get_name","surf_idx"),&Mesh::surface_get_name); + ClassDB::bind_method(D_METHOD("center_geometry"),&Mesh::center_geometry); ClassDB::set_method_flags(get_class_static(),_scs_create("center_geometry"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("regen_normalmaps"),&Mesh::regen_normalmaps); + ClassDB::bind_method(D_METHOD("regen_normalmaps"),&Mesh::regen_normalmaps); ClassDB::set_method_flags(get_class_static(),_scs_create("regen_normalmaps"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("set_custom_aabb","aabb"),&Mesh::set_custom_aabb); - ClassDB::bind_method(_MD("get_custom_aabb"),&Mesh::get_custom_aabb); + ClassDB::bind_method(D_METHOD("set_custom_aabb","aabb"),&Mesh::set_custom_aabb); + ClassDB::bind_method(D_METHOD("get_custom_aabb"),&Mesh::get_custom_aabb); BIND_CONSTANT( NO_INDEX_ARRAY ); diff --git a/scene/resources/mesh_data_tool.cpp b/scene/resources/mesh_data_tool.cpp index ec699ee8e3..abe335aa5b 100644 --- a/scene/resources/mesh_data_tool.cpp +++ b/scene/resources/mesh_data_tool.cpp @@ -565,62 +565,62 @@ void MeshDataTool::set_material(const Ref<Material> &p_material) { void MeshDataTool::_bind_methods() { - ClassDB::bind_method(_MD("clear"),&MeshDataTool::clear); - ClassDB::bind_method(_MD("create_from_surface","mesh","surface"),&MeshDataTool::create_from_surface); - ClassDB::bind_method(_MD("commit_to_surface","mesh"),&MeshDataTool::commit_to_surface); + ClassDB::bind_method(D_METHOD("clear"),&MeshDataTool::clear); + ClassDB::bind_method(D_METHOD("create_from_surface","mesh","surface"),&MeshDataTool::create_from_surface); + ClassDB::bind_method(D_METHOD("commit_to_surface","mesh"),&MeshDataTool::commit_to_surface); - ClassDB::bind_method(_MD("get_format"),&MeshDataTool::get_format); + ClassDB::bind_method(D_METHOD("get_format"),&MeshDataTool::get_format); - ClassDB::bind_method(_MD("get_vertex_count"),&MeshDataTool::get_vertex_count); - ClassDB::bind_method(_MD("get_edge_count"),&MeshDataTool::get_edge_count); - ClassDB::bind_method(_MD("get_face_count"),&MeshDataTool::get_face_count); + ClassDB::bind_method(D_METHOD("get_vertex_count"),&MeshDataTool::get_vertex_count); + ClassDB::bind_method(D_METHOD("get_edge_count"),&MeshDataTool::get_edge_count); + ClassDB::bind_method(D_METHOD("get_face_count"),&MeshDataTool::get_face_count); - ClassDB::bind_method(_MD("set_vertex","idx","vertex"),&MeshDataTool::set_vertex); - ClassDB::bind_method(_MD("get_vertex","idx"),&MeshDataTool::get_vertex); + ClassDB::bind_method(D_METHOD("set_vertex","idx","vertex"),&MeshDataTool::set_vertex); + ClassDB::bind_method(D_METHOD("get_vertex","idx"),&MeshDataTool::get_vertex); - ClassDB::bind_method(_MD("set_vertex_normal","idx","normal"),&MeshDataTool::set_vertex_normal); - ClassDB::bind_method(_MD("get_vertex_normal","idx"),&MeshDataTool::get_vertex_normal); + ClassDB::bind_method(D_METHOD("set_vertex_normal","idx","normal"),&MeshDataTool::set_vertex_normal); + ClassDB::bind_method(D_METHOD("get_vertex_normal","idx"),&MeshDataTool::get_vertex_normal); - ClassDB::bind_method(_MD("set_vertex_tangent","idx","tangent"),&MeshDataTool::set_vertex_tangent); - ClassDB::bind_method(_MD("get_vertex_tangent","idx"),&MeshDataTool::get_vertex_tangent); + ClassDB::bind_method(D_METHOD("set_vertex_tangent","idx","tangent"),&MeshDataTool::set_vertex_tangent); + ClassDB::bind_method(D_METHOD("get_vertex_tangent","idx"),&MeshDataTool::get_vertex_tangent); - ClassDB::bind_method(_MD("set_vertex_uv","idx","uv"),&MeshDataTool::set_vertex_uv); - ClassDB::bind_method(_MD("get_vertex_uv","idx"),&MeshDataTool::get_vertex_uv); + ClassDB::bind_method(D_METHOD("set_vertex_uv","idx","uv"),&MeshDataTool::set_vertex_uv); + ClassDB::bind_method(D_METHOD("get_vertex_uv","idx"),&MeshDataTool::get_vertex_uv); - ClassDB::bind_method(_MD("set_vertex_uv2","idx","uv2"),&MeshDataTool::set_vertex_uv2); - ClassDB::bind_method(_MD("get_vertex_uv2","idx"),&MeshDataTool::get_vertex_uv2); + ClassDB::bind_method(D_METHOD("set_vertex_uv2","idx","uv2"),&MeshDataTool::set_vertex_uv2); + ClassDB::bind_method(D_METHOD("get_vertex_uv2","idx"),&MeshDataTool::get_vertex_uv2); - ClassDB::bind_method(_MD("set_vertex_color","idx","color"),&MeshDataTool::set_vertex_color); - ClassDB::bind_method(_MD("get_vertex_color","idx"),&MeshDataTool::get_vertex_color); + ClassDB::bind_method(D_METHOD("set_vertex_color","idx","color"),&MeshDataTool::set_vertex_color); + ClassDB::bind_method(D_METHOD("get_vertex_color","idx"),&MeshDataTool::get_vertex_color); - ClassDB::bind_method(_MD("set_vertex_bones","idx","bones"),&MeshDataTool::set_vertex_bones); - ClassDB::bind_method(_MD("get_vertex_bones","idx"),&MeshDataTool::get_vertex_bones); + ClassDB::bind_method(D_METHOD("set_vertex_bones","idx","bones"),&MeshDataTool::set_vertex_bones); + ClassDB::bind_method(D_METHOD("get_vertex_bones","idx"),&MeshDataTool::get_vertex_bones); - ClassDB::bind_method(_MD("set_vertex_weights","idx","weights"),&MeshDataTool::set_vertex_weights); - ClassDB::bind_method(_MD("get_vertex_weights","idx"),&MeshDataTool::get_vertex_weights); + ClassDB::bind_method(D_METHOD("set_vertex_weights","idx","weights"),&MeshDataTool::set_vertex_weights); + ClassDB::bind_method(D_METHOD("get_vertex_weights","idx"),&MeshDataTool::get_vertex_weights); - ClassDB::bind_method(_MD("set_vertex_meta","idx","meta"),&MeshDataTool::set_vertex_meta); - ClassDB::bind_method(_MD("get_vertex_meta","idx"),&MeshDataTool::get_vertex_meta); + ClassDB::bind_method(D_METHOD("set_vertex_meta","idx","meta"),&MeshDataTool::set_vertex_meta); + ClassDB::bind_method(D_METHOD("get_vertex_meta","idx"),&MeshDataTool::get_vertex_meta); - ClassDB::bind_method(_MD("get_vertex_edges","idx"),&MeshDataTool::get_vertex_edges); - ClassDB::bind_method(_MD("get_vertex_faces","idx"),&MeshDataTool::get_vertex_faces); + ClassDB::bind_method(D_METHOD("get_vertex_edges","idx"),&MeshDataTool::get_vertex_edges); + ClassDB::bind_method(D_METHOD("get_vertex_faces","idx"),&MeshDataTool::get_vertex_faces); - ClassDB::bind_method(_MD("get_edge_vertex","idx","vertex"),&MeshDataTool::get_edge_vertex); - ClassDB::bind_method(_MD("get_edge_faces","idx","faces"),&MeshDataTool::get_edge_faces); + ClassDB::bind_method(D_METHOD("get_edge_vertex","idx","vertex"),&MeshDataTool::get_edge_vertex); + ClassDB::bind_method(D_METHOD("get_edge_faces","idx","faces"),&MeshDataTool::get_edge_faces); - ClassDB::bind_method(_MD("set_edge_meta","idx","meta"),&MeshDataTool::set_edge_meta); - ClassDB::bind_method(_MD("get_edge_meta","idx"),&MeshDataTool::get_edge_meta); + ClassDB::bind_method(D_METHOD("set_edge_meta","idx","meta"),&MeshDataTool::set_edge_meta); + ClassDB::bind_method(D_METHOD("get_edge_meta","idx"),&MeshDataTool::get_edge_meta); - ClassDB::bind_method(_MD("get_face_vertex","idx","vertex"),&MeshDataTool::get_face_vertex); - ClassDB::bind_method(_MD("get_face_edge","idx","edge"),&MeshDataTool::get_face_edge); + ClassDB::bind_method(D_METHOD("get_face_vertex","idx","vertex"),&MeshDataTool::get_face_vertex); + ClassDB::bind_method(D_METHOD("get_face_edge","idx","edge"),&MeshDataTool::get_face_edge); - ClassDB::bind_method(_MD("set_face_meta","idx","meta"),&MeshDataTool::set_face_meta); - ClassDB::bind_method(_MD("get_face_meta","idx"),&MeshDataTool::get_face_meta); + ClassDB::bind_method(D_METHOD("set_face_meta","idx","meta"),&MeshDataTool::set_face_meta); + ClassDB::bind_method(D_METHOD("get_face_meta","idx"),&MeshDataTool::get_face_meta); - ClassDB::bind_method(_MD("get_face_normal","idx"),&MeshDataTool::get_face_normal); + ClassDB::bind_method(D_METHOD("get_face_normal","idx"),&MeshDataTool::get_face_normal); - ClassDB::bind_method(_MD("set_material","material:Material"),&MeshDataTool::set_material); - ClassDB::bind_method(_MD("get_material","material"),&MeshDataTool::get_material); + ClassDB::bind_method(D_METHOD("set_material","material:Material"),&MeshDataTool::set_material); + ClassDB::bind_method(D_METHOD("get_material","material"),&MeshDataTool::get_material); } MeshDataTool::MeshDataTool(){ diff --git a/scene/resources/mesh_library.cpp b/scene/resources/mesh_library.cpp index cc357c4d9b..becbf39dad 100644 --- a/scene/resources/mesh_library.cpp +++ b/scene/resources/mesh_library.cpp @@ -244,19 +244,19 @@ int MeshLibrary::get_last_unused_item_id() const { void MeshLibrary::_bind_methods() { - ClassDB::bind_method(_MD("create_item","id"),&MeshLibrary::create_item); - ClassDB::bind_method(_MD("set_item_name","id","name"),&MeshLibrary::set_item_name); - ClassDB::bind_method(_MD("set_item_mesh","id","mesh:Mesh"),&MeshLibrary::set_item_mesh); - ClassDB::bind_method(_MD("set_item_navmesh","id","navmesh:NavigationMesh"),&MeshLibrary::set_item_navmesh); - ClassDB::bind_method(_MD("set_item_shape","id","shape:Shape"),&MeshLibrary::set_item_shape); - ClassDB::bind_method(_MD("get_item_name","id"),&MeshLibrary::get_item_name); - ClassDB::bind_method(_MD("get_item_mesh:Mesh","id"),&MeshLibrary::get_item_mesh); - ClassDB::bind_method(_MD("get_item_navmesh:NavigationMesh","id"),&MeshLibrary::get_item_navmesh); - ClassDB::bind_method(_MD("get_item_shape:Shape","id"),&MeshLibrary::get_item_shape); - ClassDB::bind_method(_MD("remove_item","id"),&MeshLibrary::remove_item); - ClassDB::bind_method(_MD("clear"),&MeshLibrary::clear); - ClassDB::bind_method(_MD("get_item_list"),&MeshLibrary::get_item_list); - ClassDB::bind_method(_MD("get_last_unused_item_id"),&MeshLibrary::get_last_unused_item_id); + ClassDB::bind_method(D_METHOD("create_item","id"),&MeshLibrary::create_item); + ClassDB::bind_method(D_METHOD("set_item_name","id","name"),&MeshLibrary::set_item_name); + ClassDB::bind_method(D_METHOD("set_item_mesh","id","mesh:Mesh"),&MeshLibrary::set_item_mesh); + ClassDB::bind_method(D_METHOD("set_item_navmesh","id","navmesh:NavigationMesh"),&MeshLibrary::set_item_navmesh); + ClassDB::bind_method(D_METHOD("set_item_shape","id","shape:Shape"),&MeshLibrary::set_item_shape); + ClassDB::bind_method(D_METHOD("get_item_name","id"),&MeshLibrary::get_item_name); + ClassDB::bind_method(D_METHOD("get_item_mesh:Mesh","id"),&MeshLibrary::get_item_mesh); + ClassDB::bind_method(D_METHOD("get_item_navmesh:NavigationMesh","id"),&MeshLibrary::get_item_navmesh); + ClassDB::bind_method(D_METHOD("get_item_shape:Shape","id"),&MeshLibrary::get_item_shape); + ClassDB::bind_method(D_METHOD("remove_item","id"),&MeshLibrary::remove_item); + ClassDB::bind_method(D_METHOD("clear"),&MeshLibrary::clear); + ClassDB::bind_method(D_METHOD("get_item_list"),&MeshLibrary::get_item_list); + ClassDB::bind_method(D_METHOD("get_last_unused_item_id"),&MeshLibrary::get_last_unused_item_id); } MeshLibrary::MeshLibrary() { diff --git a/scene/resources/multimesh.cpp b/scene/resources/multimesh.cpp index d72264c951..69ef3f18a6 100644 --- a/scene/resources/multimesh.cpp +++ b/scene/resources/multimesh.cpp @@ -211,26 +211,26 @@ MultiMesh::TransformFormat MultiMesh::get_transform_format() const{ void MultiMesh::_bind_methods() { - ClassDB::bind_method(_MD("set_mesh","mesh:Mesh"),&MultiMesh::set_mesh); - ClassDB::bind_method(_MD("get_mesh:Mesh"),&MultiMesh::get_mesh); - ClassDB::bind_method(_MD("set_color_format","format"),&MultiMesh::set_color_format); - ClassDB::bind_method(_MD("get_color_format"),&MultiMesh::get_color_format); - ClassDB::bind_method(_MD("set_transform_format","format"),&MultiMesh::set_transform_format); - ClassDB::bind_method(_MD("get_transform_format"),&MultiMesh::get_transform_format); - - ClassDB::bind_method(_MD("set_instance_count","count"),&MultiMesh::set_instance_count); - ClassDB::bind_method(_MD("get_instance_count"),&MultiMesh::get_instance_count); - ClassDB::bind_method(_MD("set_instance_transform","instance","transform"),&MultiMesh::set_instance_transform); - ClassDB::bind_method(_MD("get_instance_transform","instance"),&MultiMesh::get_instance_transform); - ClassDB::bind_method(_MD("set_instance_color","instance","color"),&MultiMesh::set_instance_color); - ClassDB::bind_method(_MD("get_instance_color","instance"),&MultiMesh::get_instance_color); - ClassDB::bind_method(_MD("get_aabb"),&MultiMesh::get_aabb); - - - ClassDB::bind_method(_MD("_set_transform_array"),&MultiMesh::_set_transform_array); - ClassDB::bind_method(_MD("_get_transform_array"),&MultiMesh::_get_transform_array); - ClassDB::bind_method(_MD("_set_color_array"),&MultiMesh::_set_color_array); - ClassDB::bind_method(_MD("_get_color_array"),&MultiMesh::_get_color_array); + ClassDB::bind_method(D_METHOD("set_mesh","mesh:Mesh"),&MultiMesh::set_mesh); + ClassDB::bind_method(D_METHOD("get_mesh:Mesh"),&MultiMesh::get_mesh); + ClassDB::bind_method(D_METHOD("set_color_format","format"),&MultiMesh::set_color_format); + ClassDB::bind_method(D_METHOD("get_color_format"),&MultiMesh::get_color_format); + ClassDB::bind_method(D_METHOD("set_transform_format","format"),&MultiMesh::set_transform_format); + ClassDB::bind_method(D_METHOD("get_transform_format"),&MultiMesh::get_transform_format); + + ClassDB::bind_method(D_METHOD("set_instance_count","count"),&MultiMesh::set_instance_count); + ClassDB::bind_method(D_METHOD("get_instance_count"),&MultiMesh::get_instance_count); + ClassDB::bind_method(D_METHOD("set_instance_transform","instance","transform"),&MultiMesh::set_instance_transform); + ClassDB::bind_method(D_METHOD("get_instance_transform","instance"),&MultiMesh::get_instance_transform); + ClassDB::bind_method(D_METHOD("set_instance_color","instance","color"),&MultiMesh::set_instance_color); + ClassDB::bind_method(D_METHOD("get_instance_color","instance"),&MultiMesh::get_instance_color); + ClassDB::bind_method(D_METHOD("get_aabb"),&MultiMesh::get_aabb); + + + ClassDB::bind_method(D_METHOD("_set_transform_array"),&MultiMesh::_set_transform_array); + ClassDB::bind_method(D_METHOD("_get_transform_array"),&MultiMesh::_get_transform_array); + ClassDB::bind_method(D_METHOD("_set_color_array"),&MultiMesh::_set_color_array); + ClassDB::bind_method(D_METHOD("_get_color_array"),&MultiMesh::_get_color_array); ADD_PROPERTY(PropertyInfo(Variant::INT,"color_format",PROPERTY_HINT_ENUM,"None,Byte,Float"), "set_color_format", "get_color_format"); diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index 948bddf898..ce755d90db 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -1716,25 +1716,25 @@ void SceneState::_bind_methods() { //unbuild API - ClassDB::bind_method(_MD("get_node_count"),&SceneState::get_node_count); - ClassDB::bind_method(_MD("get_node_type","idx"),&SceneState::get_node_type); - ClassDB::bind_method(_MD("get_node_name","idx"),&SceneState::get_node_name); - ClassDB::bind_method(_MD("get_node_path","idx","for_parent"),&SceneState::get_node_path,DEFVAL(false)); - ClassDB::bind_method(_MD("get_node_owner_path","idx"),&SceneState::get_node_owner_path); - ClassDB::bind_method(_MD("is_node_instance_placeholder","idx"),&SceneState::is_node_instance_placeholder); - ClassDB::bind_method(_MD("get_node_instance_placeholder","idx"),&SceneState::get_node_instance_placeholder); - ClassDB::bind_method(_MD("get_node_instance:PackedScene","idx"),&SceneState::get_node_instance); - ClassDB::bind_method(_MD("get_node_groups","idx"),&SceneState::_get_node_groups); - ClassDB::bind_method(_MD("get_node_property_count","idx"),&SceneState::get_node_property_count); - ClassDB::bind_method(_MD("get_node_property_name","idx","prop_idx"),&SceneState::get_node_property_name); - ClassDB::bind_method(_MD("get_node_property_value","idx","prop_idx"),&SceneState::get_node_property_value); - ClassDB::bind_method(_MD("get_connection_count"),&SceneState::get_connection_count); - ClassDB::bind_method(_MD("get_connection_source","idx"),&SceneState::get_connection_source); - ClassDB::bind_method(_MD("get_connection_signal","idx"),&SceneState::get_connection_signal); - ClassDB::bind_method(_MD("get_connection_target","idx"),&SceneState::get_connection_target); - ClassDB::bind_method(_MD("get_connection_method","idx"),&SceneState::get_connection_method); - ClassDB::bind_method(_MD("get_connection_flags","idx"),&SceneState::get_connection_flags); - ClassDB::bind_method(_MD("get_connection_binds","idx"),&SceneState::get_connection_binds); + ClassDB::bind_method(D_METHOD("get_node_count"),&SceneState::get_node_count); + ClassDB::bind_method(D_METHOD("get_node_type","idx"),&SceneState::get_node_type); + ClassDB::bind_method(D_METHOD("get_node_name","idx"),&SceneState::get_node_name); + ClassDB::bind_method(D_METHOD("get_node_path","idx","for_parent"),&SceneState::get_node_path,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_node_owner_path","idx"),&SceneState::get_node_owner_path); + ClassDB::bind_method(D_METHOD("is_node_instance_placeholder","idx"),&SceneState::is_node_instance_placeholder); + ClassDB::bind_method(D_METHOD("get_node_instance_placeholder","idx"),&SceneState::get_node_instance_placeholder); + ClassDB::bind_method(D_METHOD("get_node_instance:PackedScene","idx"),&SceneState::get_node_instance); + ClassDB::bind_method(D_METHOD("get_node_groups","idx"),&SceneState::_get_node_groups); + ClassDB::bind_method(D_METHOD("get_node_property_count","idx"),&SceneState::get_node_property_count); + ClassDB::bind_method(D_METHOD("get_node_property_name","idx","prop_idx"),&SceneState::get_node_property_name); + ClassDB::bind_method(D_METHOD("get_node_property_value","idx","prop_idx"),&SceneState::get_node_property_value); + ClassDB::bind_method(D_METHOD("get_connection_count"),&SceneState::get_connection_count); + ClassDB::bind_method(D_METHOD("get_connection_source","idx"),&SceneState::get_connection_source); + ClassDB::bind_method(D_METHOD("get_connection_signal","idx"),&SceneState::get_connection_signal); + ClassDB::bind_method(D_METHOD("get_connection_target","idx"),&SceneState::get_connection_target); + ClassDB::bind_method(D_METHOD("get_connection_method","idx"),&SceneState::get_connection_method); + ClassDB::bind_method(D_METHOD("get_connection_flags","idx"),&SceneState::get_connection_flags); + ClassDB::bind_method(D_METHOD("get_connection_binds","idx"),&SceneState::get_connection_binds); BIND_CONSTANT( GEN_EDIT_STATE_DISABLED ); BIND_CONSTANT( GEN_EDIT_STATE_INSTANCE ); @@ -1837,12 +1837,12 @@ void PackedScene::set_path(const String& p_path,bool p_take_over) { void PackedScene::_bind_methods() { - ClassDB::bind_method(_MD("pack","path:Node"),&PackedScene::pack); - ClassDB::bind_method(_MD("instance:Node","edit_state"),&PackedScene::instance,DEFVAL(false)); - ClassDB::bind_method(_MD("can_instance"),&PackedScene::can_instance); - ClassDB::bind_method(_MD("_set_bundled_scene"),&PackedScene::_set_bundled_scene); - ClassDB::bind_method(_MD("_get_bundled_scene"),&PackedScene::_get_bundled_scene); - ClassDB::bind_method(_MD("get_state:SceneState"),&PackedScene::get_state); + ClassDB::bind_method(D_METHOD("pack","path:Node"),&PackedScene::pack); + ClassDB::bind_method(D_METHOD("instance:Node","edit_state"),&PackedScene::instance,DEFVAL(false)); + ClassDB::bind_method(D_METHOD("can_instance"),&PackedScene::can_instance); + ClassDB::bind_method(D_METHOD("_set_bundled_scene"),&PackedScene::_set_bundled_scene); + ClassDB::bind_method(D_METHOD("_get_bundled_scene"),&PackedScene::_get_bundled_scene); + ClassDB::bind_method(D_METHOD("get_state:SceneState"),&PackedScene::get_state); ADD_PROPERTY( PropertyInfo(Variant::DICTIONARY,"_bundled"),"_set_bundled_scene","_get_bundled_scene"); diff --git a/scene/resources/plane_shape.cpp b/scene/resources/plane_shape.cpp index e541c964b7..f1bb6d60c0 100644 --- a/scene/resources/plane_shape.cpp +++ b/scene/resources/plane_shape.cpp @@ -80,8 +80,8 @@ Plane PlaneShape::get_plane() const { void PlaneShape::_bind_methods() { - ClassDB::bind_method(_MD("set_plane","plane"),&PlaneShape::set_plane); - ClassDB::bind_method(_MD("get_plane"),&PlaneShape::get_plane); + ClassDB::bind_method(D_METHOD("set_plane","plane"),&PlaneShape::set_plane); + ClassDB::bind_method(D_METHOD("get_plane"),&PlaneShape::get_plane); ADD_PROPERTY( PropertyInfo(Variant::PLANE,"plane"), "set_plane", "get_plane") ; diff --git a/scene/resources/polygon_path_finder.cpp b/scene/resources/polygon_path_finder.cpp index 333c036965..6dac8a9779 100644 --- a/scene/resources/polygon_path_finder.cpp +++ b/scene/resources/polygon_path_finder.cpp @@ -618,17 +618,17 @@ float PolygonPathFinder::get_point_penalty(int p_point) const { void PolygonPathFinder::_bind_methods() { - ClassDB::bind_method(_MD("setup","points","connections"),&PolygonPathFinder::setup); - ClassDB::bind_method(_MD("find_path","from","to"),&PolygonPathFinder::find_path); - ClassDB::bind_method(_MD("get_intersections","from","to"),&PolygonPathFinder::get_intersections); - ClassDB::bind_method(_MD("get_closest_point","point"),&PolygonPathFinder::get_closest_point); - ClassDB::bind_method(_MD("is_point_inside","point"),&PolygonPathFinder::is_point_inside); - ClassDB::bind_method(_MD("set_point_penalty","idx","penalty"),&PolygonPathFinder::set_point_penalty); - ClassDB::bind_method(_MD("get_point_penalty","idx"),&PolygonPathFinder::get_point_penalty); - - ClassDB::bind_method(_MD("get_bounds"),&PolygonPathFinder::get_bounds); - ClassDB::bind_method(_MD("_set_data"),&PolygonPathFinder::_set_data); - ClassDB::bind_method(_MD("_get_data"),&PolygonPathFinder::_get_data); + ClassDB::bind_method(D_METHOD("setup","points","connections"),&PolygonPathFinder::setup); + ClassDB::bind_method(D_METHOD("find_path","from","to"),&PolygonPathFinder::find_path); + ClassDB::bind_method(D_METHOD("get_intersections","from","to"),&PolygonPathFinder::get_intersections); + ClassDB::bind_method(D_METHOD("get_closest_point","point"),&PolygonPathFinder::get_closest_point); + ClassDB::bind_method(D_METHOD("is_point_inside","point"),&PolygonPathFinder::is_point_inside); + ClassDB::bind_method(D_METHOD("set_point_penalty","idx","penalty"),&PolygonPathFinder::set_point_penalty); + ClassDB::bind_method(D_METHOD("get_point_penalty","idx"),&PolygonPathFinder::get_point_penalty); + + ClassDB::bind_method(D_METHOD("get_bounds"),&PolygonPathFinder::get_bounds); + ClassDB::bind_method(D_METHOD("_set_data"),&PolygonPathFinder::_set_data); + ClassDB::bind_method(D_METHOD("_get_data"),&PolygonPathFinder::_get_data); ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY,"data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_data","_get_data"); diff --git a/scene/resources/ray_shape.cpp b/scene/resources/ray_shape.cpp index d90df0baf3..52ce736925 100644 --- a/scene/resources/ray_shape.cpp +++ b/scene/resources/ray_shape.cpp @@ -60,8 +60,8 @@ float RayShape::get_length() const { void RayShape::_bind_methods() { - ClassDB::bind_method(_MD("set_length","length"),&RayShape::set_length); - ClassDB::bind_method(_MD("get_length"),&RayShape::get_length); + ClassDB::bind_method(D_METHOD("set_length","length"),&RayShape::set_length); + ClassDB::bind_method(D_METHOD("get_length"),&RayShape::get_length); ADD_PROPERTY( PropertyInfo(Variant::REAL,"length",PROPERTY_HINT_RANGE,"0,4096,0.01"), "set_length", "get_length") ; diff --git a/scene/resources/rectangle_shape_2d.cpp b/scene/resources/rectangle_shape_2d.cpp index 8c7580e903..1161843a2b 100644 --- a/scene/resources/rectangle_shape_2d.cpp +++ b/scene/resources/rectangle_shape_2d.cpp @@ -64,8 +64,8 @@ Rect2 RectangleShape2D::get_rect() const { void RectangleShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_extents","extents"),&RectangleShape2D::set_extents); - ClassDB::bind_method(_MD("get_extents"),&RectangleShape2D::get_extents); + ClassDB::bind_method(D_METHOD("set_extents","extents"),&RectangleShape2D::set_extents); + ClassDB::bind_method(D_METHOD("get_extents"),&RectangleShape2D::get_extents); diff --git a/scene/resources/room.cpp b/scene/resources/room.cpp index 3374ae90ff..e677f92c31 100644 --- a/scene/resources/room.cpp +++ b/scene/resources/room.cpp @@ -52,8 +52,8 @@ PoolVector<Face3> RoomBounds::get_geometry_hint() const { void RoomBounds::_bind_methods() { - ClassDB::bind_method(_MD("set_geometry_hint","triangles"),&RoomBounds::set_geometry_hint); - ClassDB::bind_method(_MD("get_geometry_hint"),&RoomBounds::get_geometry_hint); + ClassDB::bind_method(D_METHOD("set_geometry_hint","triangles"),&RoomBounds::set_geometry_hint); + ClassDB::bind_method(D_METHOD("get_geometry_hint"),&RoomBounds::get_geometry_hint); //ADD_PROPERTY( PropertyInfo( Variant::DICTIONARY, "bounds"), "set_bounds","get_bounds") ; ADD_PROPERTY( PropertyInfo( Variant::POOL_VECTOR3_ARRAY, "geometry_hint"),"set_geometry_hint","get_geometry_hint") ; diff --git a/scene/resources/segment_shape_2d.cpp b/scene/resources/segment_shape_2d.cpp index ad663faaf9..fbe1efe5d1 100644 --- a/scene/resources/segment_shape_2d.cpp +++ b/scene/resources/segment_shape_2d.cpp @@ -82,11 +82,11 @@ Rect2 SegmentShape2D::get_rect() const{ void SegmentShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_a","a"),&SegmentShape2D::set_a); - ClassDB::bind_method(_MD("get_a"),&SegmentShape2D::get_a); + ClassDB::bind_method(D_METHOD("set_a","a"),&SegmentShape2D::set_a); + ClassDB::bind_method(D_METHOD("get_a"),&SegmentShape2D::get_a); - ClassDB::bind_method(_MD("set_b","b"),&SegmentShape2D::set_b); - ClassDB::bind_method(_MD("get_b"),&SegmentShape2D::get_b); + ClassDB::bind_method(D_METHOD("set_b","b"),&SegmentShape2D::set_b); + ClassDB::bind_method(D_METHOD("get_b"),&SegmentShape2D::get_b); ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"a"),"set_a","get_a") ; @@ -145,8 +145,8 @@ Rect2 RayShape2D::get_rect() const { void RayShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_length","length"),&RayShape2D::set_length); - ClassDB::bind_method(_MD("get_length"),&RayShape2D::get_length); + ClassDB::bind_method(D_METHOD("set_length","length"),&RayShape2D::set_length); + ClassDB::bind_method(D_METHOD("get_length"),&RayShape2D::get_length); ADD_PROPERTY( PropertyInfo(Variant::REAL,"length"),"set_length","get_length") ; diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index 7aa335e44f..375a9a1cb0 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -116,17 +116,17 @@ bool Shader::has_param(const StringName& p_param) const { void Shader::_bind_methods() { - ClassDB::bind_method(_MD("get_mode"),&Shader::get_mode); + ClassDB::bind_method(D_METHOD("get_mode"),&Shader::get_mode); - ClassDB::bind_method(_MD("set_code","code"),&Shader::set_code); - ClassDB::bind_method(_MD("get_code"),&Shader::get_code); + ClassDB::bind_method(D_METHOD("set_code","code"),&Shader::set_code); + ClassDB::bind_method(D_METHOD("get_code"),&Shader::get_code); - ClassDB::bind_method(_MD("set_default_texture_param","param","texture:Texture"),&Shader::set_default_texture_param); - ClassDB::bind_method(_MD("get_default_texture_param:Texture","param"),&Shader::get_default_texture_param); + ClassDB::bind_method(D_METHOD("set_default_texture_param","param","texture:Texture"),&Shader::set_default_texture_param); + ClassDB::bind_method(D_METHOD("get_default_texture_param:Texture","param"),&Shader::get_default_texture_param); - ClassDB::bind_method(_MD("has_param","name"),&Shader::has_param); + ClassDB::bind_method(D_METHOD("has_param","name"),&Shader::has_param); - //ClassDB::bind_method(_MD("get_param_list"),&Shader::get_fragment_code); + //ClassDB::bind_method(D_METHOD("get_param_list"),&Shader::get_fragment_code); ADD_PROPERTY( PropertyInfo(Variant::STRING, "code",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), "set_code", "get_code") ; diff --git a/scene/resources/shader_graph.cpp b/scene/resources/shader_graph.cpp index 5dff8e9907..c21feb0bf5 100644 --- a/scene/resources/shader_graph.cpp +++ b/scene/resources/shader_graph.cpp @@ -165,106 +165,106 @@ int ShaderGraph::node_count(ShaderType p_which, int p_type) void ShaderGraph::_bind_methods() { - ClassDB::bind_method(_MD("_update_shader"),&ShaderGraph::_update_shader); + ClassDB::bind_method(D_METHOD("_update_shader"),&ShaderGraph::_update_shader); - ClassDB::bind_method(_MD("node_add","shader_type","node_type","id"),&ShaderGraph::node_add); - ClassDB::bind_method(_MD("node_remove","shader_type","id"),&ShaderGraph::node_remove); - ClassDB::bind_method(_MD("node_set_pos","shader_type","id","pos"),&ShaderGraph::node_set_pos); - ClassDB::bind_method(_MD("node_get_pos","shader_type","id"),&ShaderGraph::node_get_pos); + ClassDB::bind_method(D_METHOD("node_add","shader_type","node_type","id"),&ShaderGraph::node_add); + ClassDB::bind_method(D_METHOD("node_remove","shader_type","id"),&ShaderGraph::node_remove); + ClassDB::bind_method(D_METHOD("node_set_pos","shader_type","id","pos"),&ShaderGraph::node_set_pos); + ClassDB::bind_method(D_METHOD("node_get_pos","shader_type","id"),&ShaderGraph::node_get_pos); - ClassDB::bind_method(_MD("node_get_type","shader_type","id"),&ShaderGraph::node_get_type); + ClassDB::bind_method(D_METHOD("node_get_type","shader_type","id"),&ShaderGraph::node_get_type); - ClassDB::bind_method(_MD("get_node_list","shader_type"),&ShaderGraph::_get_node_list); + ClassDB::bind_method(D_METHOD("get_node_list","shader_type"),&ShaderGraph::_get_node_list); - ClassDB::bind_method(_MD("default_set_value","shader_type","id","param_id","value"), &ShaderGraph::default_set_value); - ClassDB::bind_method(_MD("default_get_value","shader_type","id","param_id"), &ShaderGraph::default_get_value); + ClassDB::bind_method(D_METHOD("default_set_value","shader_type","id","param_id","value"), &ShaderGraph::default_set_value); + ClassDB::bind_method(D_METHOD("default_get_value","shader_type","id","param_id"), &ShaderGraph::default_get_value); - ClassDB::bind_method(_MD("scalar_const_node_set_value","shader_type","id","value"),&ShaderGraph::scalar_const_node_set_value); - ClassDB::bind_method(_MD("scalar_const_node_get_value","shader_type","id"),&ShaderGraph::scalar_const_node_get_value); + ClassDB::bind_method(D_METHOD("scalar_const_node_set_value","shader_type","id","value"),&ShaderGraph::scalar_const_node_set_value); + ClassDB::bind_method(D_METHOD("scalar_const_node_get_value","shader_type","id"),&ShaderGraph::scalar_const_node_get_value); - ClassDB::bind_method(_MD("vec_const_node_set_value","shader_type","id","value"),&ShaderGraph::vec_const_node_set_value); - ClassDB::bind_method(_MD("vec_const_node_get_value","shader_type","id"),&ShaderGraph::vec_const_node_get_value); + ClassDB::bind_method(D_METHOD("vec_const_node_set_value","shader_type","id","value"),&ShaderGraph::vec_const_node_set_value); + ClassDB::bind_method(D_METHOD("vec_const_node_get_value","shader_type","id"),&ShaderGraph::vec_const_node_get_value); - ClassDB::bind_method(_MD("rgb_const_node_set_value","shader_type","id","value"),&ShaderGraph::rgb_const_node_set_value); - ClassDB::bind_method(_MD("rgb_const_node_get_value","shader_type","id"),&ShaderGraph::rgb_const_node_get_value); + ClassDB::bind_method(D_METHOD("rgb_const_node_set_value","shader_type","id","value"),&ShaderGraph::rgb_const_node_set_value); + ClassDB::bind_method(D_METHOD("rgb_const_node_get_value","shader_type","id"),&ShaderGraph::rgb_const_node_get_value); - ClassDB::bind_method(_MD("xform_const_node_set_value","shader_type","id","value"),&ShaderGraph::xform_const_node_set_value); - ClassDB::bind_method(_MD("xform_const_node_get_value","shader_type","id"),&ShaderGraph::xform_const_node_get_value); + ClassDB::bind_method(D_METHOD("xform_const_node_set_value","shader_type","id","value"),&ShaderGraph::xform_const_node_set_value); + ClassDB::bind_method(D_METHOD("xform_const_node_get_value","shader_type","id"),&ShaderGraph::xform_const_node_get_value); //void get_node_list(ShaderType p_which,List<int> *p_node_list) const; - ClassDB::bind_method(_MD("texture_node_set_filter_size","shader_type","id","filter_size"),&ShaderGraph::texture_node_set_filter_size); - ClassDB::bind_method(_MD("texture_node_get_filter_size","shader_type","id"),&ShaderGraph::texture_node_get_filter_size); + ClassDB::bind_method(D_METHOD("texture_node_set_filter_size","shader_type","id","filter_size"),&ShaderGraph::texture_node_set_filter_size); + ClassDB::bind_method(D_METHOD("texture_node_get_filter_size","shader_type","id"),&ShaderGraph::texture_node_get_filter_size); - ClassDB::bind_method(_MD("texture_node_set_filter_strength","shader_type","id","filter_strength"),&ShaderGraph::texture_node_set_filter_strength); - ClassDB::bind_method(_MD("texture_node_get_filter_strength","shader_type","id"),&ShaderGraph::texture_node_get_filter_strength); + ClassDB::bind_method(D_METHOD("texture_node_set_filter_strength","shader_type","id","filter_strength"),&ShaderGraph::texture_node_set_filter_strength); + ClassDB::bind_method(D_METHOD("texture_node_get_filter_strength","shader_type","id"),&ShaderGraph::texture_node_get_filter_strength); - ClassDB::bind_method(_MD("scalar_op_node_set_op","shader_type","id","op"),&ShaderGraph::scalar_op_node_set_op); - ClassDB::bind_method(_MD("scalar_op_node_get_op","shader_type","id"),&ShaderGraph::scalar_op_node_get_op); + ClassDB::bind_method(D_METHOD("scalar_op_node_set_op","shader_type","id","op"),&ShaderGraph::scalar_op_node_set_op); + ClassDB::bind_method(D_METHOD("scalar_op_node_get_op","shader_type","id"),&ShaderGraph::scalar_op_node_get_op); - ClassDB::bind_method(_MD("vec_op_node_set_op","shader_type","id","op"),&ShaderGraph::vec_op_node_set_op); - ClassDB::bind_method(_MD("vec_op_node_get_op","shader_type","id"),&ShaderGraph::vec_op_node_get_op); + ClassDB::bind_method(D_METHOD("vec_op_node_set_op","shader_type","id","op"),&ShaderGraph::vec_op_node_set_op); + ClassDB::bind_method(D_METHOD("vec_op_node_get_op","shader_type","id"),&ShaderGraph::vec_op_node_get_op); - ClassDB::bind_method(_MD("vec_scalar_op_node_set_op","shader_type","id","op"),&ShaderGraph::vec_scalar_op_node_set_op); - ClassDB::bind_method(_MD("vec_scalar_op_node_get_op","shader_type","id"),&ShaderGraph::vec_scalar_op_node_get_op); + ClassDB::bind_method(D_METHOD("vec_scalar_op_node_set_op","shader_type","id","op"),&ShaderGraph::vec_scalar_op_node_set_op); + ClassDB::bind_method(D_METHOD("vec_scalar_op_node_get_op","shader_type","id"),&ShaderGraph::vec_scalar_op_node_get_op); - ClassDB::bind_method(_MD("rgb_op_node_set_op","shader_type","id","op"),&ShaderGraph::rgb_op_node_set_op); - ClassDB::bind_method(_MD("rgb_op_node_get_op","shader_type","id"),&ShaderGraph::rgb_op_node_get_op); + ClassDB::bind_method(D_METHOD("rgb_op_node_set_op","shader_type","id","op"),&ShaderGraph::rgb_op_node_set_op); + ClassDB::bind_method(D_METHOD("rgb_op_node_get_op","shader_type","id"),&ShaderGraph::rgb_op_node_get_op); - ClassDB::bind_method(_MD("xform_vec_mult_node_set_no_translation","shader_type","id","disable"),&ShaderGraph::xform_vec_mult_node_set_no_translation); - ClassDB::bind_method(_MD("xform_vec_mult_node_get_no_translation","shader_type","id"),&ShaderGraph::xform_vec_mult_node_get_no_translation); + ClassDB::bind_method(D_METHOD("xform_vec_mult_node_set_no_translation","shader_type","id","disable"),&ShaderGraph::xform_vec_mult_node_set_no_translation); + ClassDB::bind_method(D_METHOD("xform_vec_mult_node_get_no_translation","shader_type","id"),&ShaderGraph::xform_vec_mult_node_get_no_translation); - ClassDB::bind_method(_MD("scalar_func_node_set_function","shader_type","id","func"),&ShaderGraph::scalar_func_node_set_function); - ClassDB::bind_method(_MD("scalar_func_node_get_function","shader_type","id"),&ShaderGraph::scalar_func_node_get_function); + ClassDB::bind_method(D_METHOD("scalar_func_node_set_function","shader_type","id","func"),&ShaderGraph::scalar_func_node_set_function); + ClassDB::bind_method(D_METHOD("scalar_func_node_get_function","shader_type","id"),&ShaderGraph::scalar_func_node_get_function); - ClassDB::bind_method(_MD("vec_func_node_set_function","shader_type","id","func"),&ShaderGraph::vec_func_node_set_function); - ClassDB::bind_method(_MD("vec_func_node_get_function","shader_type","id"),&ShaderGraph::vec_func_node_get_function); + ClassDB::bind_method(D_METHOD("vec_func_node_set_function","shader_type","id","func"),&ShaderGraph::vec_func_node_set_function); + ClassDB::bind_method(D_METHOD("vec_func_node_get_function","shader_type","id"),&ShaderGraph::vec_func_node_get_function); - ClassDB::bind_method(_MD("input_node_set_name","shader_type","id","name"),&ShaderGraph::input_node_set_name); - ClassDB::bind_method(_MD("input_node_get_name","shader_type","id"),&ShaderGraph::input_node_get_name); + ClassDB::bind_method(D_METHOD("input_node_set_name","shader_type","id","name"),&ShaderGraph::input_node_set_name); + ClassDB::bind_method(D_METHOD("input_node_get_name","shader_type","id"),&ShaderGraph::input_node_get_name); - ClassDB::bind_method(_MD("scalar_input_node_set_value","shader_type","id","value"),&ShaderGraph::scalar_input_node_set_value); - ClassDB::bind_method(_MD("scalar_input_node_get_value","shader_type","id"),&ShaderGraph::scalar_input_node_get_value); + ClassDB::bind_method(D_METHOD("scalar_input_node_set_value","shader_type","id","value"),&ShaderGraph::scalar_input_node_set_value); + ClassDB::bind_method(D_METHOD("scalar_input_node_get_value","shader_type","id"),&ShaderGraph::scalar_input_node_get_value); - ClassDB::bind_method(_MD("vec_input_node_set_value","shader_type","id","value"),&ShaderGraph::vec_input_node_set_value); - ClassDB::bind_method(_MD("vec_input_node_get_value","shader_type","id"),&ShaderGraph::vec_input_node_get_value); + ClassDB::bind_method(D_METHOD("vec_input_node_set_value","shader_type","id","value"),&ShaderGraph::vec_input_node_set_value); + ClassDB::bind_method(D_METHOD("vec_input_node_get_value","shader_type","id"),&ShaderGraph::vec_input_node_get_value); - ClassDB::bind_method(_MD("rgb_input_node_set_value","shader_type","id","value"),&ShaderGraph::rgb_input_node_set_value); - ClassDB::bind_method(_MD("rgb_input_node_get_value","shader_type","id"),&ShaderGraph::rgb_input_node_get_value); + ClassDB::bind_method(D_METHOD("rgb_input_node_set_value","shader_type","id","value"),&ShaderGraph::rgb_input_node_set_value); + ClassDB::bind_method(D_METHOD("rgb_input_node_get_value","shader_type","id"),&ShaderGraph::rgb_input_node_get_value); - ClassDB::bind_method(_MD("xform_input_node_set_value","shader_type","id","value"),&ShaderGraph::xform_input_node_set_value); - ClassDB::bind_method(_MD("xform_input_node_get_value","shader_type","id"),&ShaderGraph::xform_input_node_get_value); + ClassDB::bind_method(D_METHOD("xform_input_node_set_value","shader_type","id","value"),&ShaderGraph::xform_input_node_set_value); + ClassDB::bind_method(D_METHOD("xform_input_node_get_value","shader_type","id"),&ShaderGraph::xform_input_node_get_value); - ClassDB::bind_method(_MD("texture_input_node_set_value","shader_type","id","value:Texture"),&ShaderGraph::texture_input_node_set_value); - ClassDB::bind_method(_MD("texture_input_node_get_value:Texture","shader_type","id"),&ShaderGraph::texture_input_node_get_value); + ClassDB::bind_method(D_METHOD("texture_input_node_set_value","shader_type","id","value:Texture"),&ShaderGraph::texture_input_node_set_value); + ClassDB::bind_method(D_METHOD("texture_input_node_get_value:Texture","shader_type","id"),&ShaderGraph::texture_input_node_get_value); - ClassDB::bind_method(_MD("cubemap_input_node_set_value","shader_type","id","value:CubeMap"),&ShaderGraph::cubemap_input_node_set_value); - ClassDB::bind_method(_MD("cubemap_input_node_get_value:CubeMap","shader_type","id"),&ShaderGraph::cubemap_input_node_get_value); + ClassDB::bind_method(D_METHOD("cubemap_input_node_set_value","shader_type","id","value:CubeMap"),&ShaderGraph::cubemap_input_node_set_value); + ClassDB::bind_method(D_METHOD("cubemap_input_node_get_value:CubeMap","shader_type","id"),&ShaderGraph::cubemap_input_node_get_value); - ClassDB::bind_method(_MD("comment_node_set_text","shader_type","id","text"),&ShaderGraph::comment_node_set_text); - ClassDB::bind_method(_MD("comment_node_get_text","shader_type","id"),&ShaderGraph::comment_node_get_text); + ClassDB::bind_method(D_METHOD("comment_node_set_text","shader_type","id","text"),&ShaderGraph::comment_node_set_text); + ClassDB::bind_method(D_METHOD("comment_node_get_text","shader_type","id"),&ShaderGraph::comment_node_get_text); - ClassDB::bind_method(_MD("color_ramp_node_set_ramp","shader_type","id","colors","offsets"),&ShaderGraph::color_ramp_node_set_ramp); - ClassDB::bind_method(_MD("color_ramp_node_get_colors","shader_type","id"),&ShaderGraph::color_ramp_node_get_colors); - ClassDB::bind_method(_MD("color_ramp_node_get_offsets","shader_type","id"),&ShaderGraph::color_ramp_node_get_offsets); + ClassDB::bind_method(D_METHOD("color_ramp_node_set_ramp","shader_type","id","colors","offsets"),&ShaderGraph::color_ramp_node_set_ramp); + ClassDB::bind_method(D_METHOD("color_ramp_node_get_colors","shader_type","id"),&ShaderGraph::color_ramp_node_get_colors); + ClassDB::bind_method(D_METHOD("color_ramp_node_get_offsets","shader_type","id"),&ShaderGraph::color_ramp_node_get_offsets); - ClassDB::bind_method(_MD("curve_map_node_set_points","shader_type","id","points"),&ShaderGraph::curve_map_node_set_points); - ClassDB::bind_method(_MD("curve_map_node_get_points","shader_type","id"),&ShaderGraph::curve_map_node_get_points); + ClassDB::bind_method(D_METHOD("curve_map_node_set_points","shader_type","id","points"),&ShaderGraph::curve_map_node_set_points); + ClassDB::bind_method(D_METHOD("curve_map_node_get_points","shader_type","id"),&ShaderGraph::curve_map_node_get_points); - ClassDB::bind_method(_MD("connect_node:Error","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::connect_node); - ClassDB::bind_method(_MD("is_node_connected","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::is_node_connected); - ClassDB::bind_method(_MD("disconnect_node","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::disconnect_node); - ClassDB::bind_method(_MD("get_node_connections","shader_type"),&ShaderGraph::_get_connections); + ClassDB::bind_method(D_METHOD("connect_node:Error","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::connect_node); + ClassDB::bind_method(D_METHOD("is_node_connected","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::is_node_connected); + ClassDB::bind_method(D_METHOD("disconnect_node","shader_type","src_id","src_slot","dst_id","dst_slot"),&ShaderGraph::disconnect_node); + ClassDB::bind_method(D_METHOD("get_node_connections","shader_type"),&ShaderGraph::_get_connections); - ClassDB::bind_method(_MD("clear","shader_type"),&ShaderGraph::clear); + ClassDB::bind_method(D_METHOD("clear","shader_type"),&ShaderGraph::clear); - ClassDB::bind_method(_MD("node_set_state","shader_type","id","state"),&ShaderGraph::node_set_state); - ClassDB::bind_method(_MD("node_get_state:Variant","shader_type","id"),&ShaderGraph::node_get_state); + ClassDB::bind_method(D_METHOD("node_set_state","shader_type","id","state"),&ShaderGraph::node_set_state); + ClassDB::bind_method(D_METHOD("node_get_state:Variant","shader_type","id"),&ShaderGraph::node_get_state); - ClassDB::bind_method(_MD("_set_data"),&ShaderGraph::_set_data); - ClassDB::bind_method(_MD("_get_data"),&ShaderGraph::_get_data); + ClassDB::bind_method(D_METHOD("_set_data"),&ShaderGraph::_set_data); + ClassDB::bind_method(D_METHOD("_get_data"),&ShaderGraph::_get_data); ADD_PROPERTY( PropertyInfo(Variant::DICTIONARY,"_data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), "_set_data","_get_data"); @@ -399,21 +399,21 @@ void ShaderGraph::_bind_methods() { #if 0 - ClassDB::bind_method(_MD("node_add"),&ShaderGraph::node_add ); - ClassDB::bind_method(_MD("node_remove"),&ShaderGraph::node_remove ); - ClassDB::bind_method(_MD("node_set_param"),&ShaderGraph::node_set_param ); - ClassDB::bind_method(_MD("node_set_pos"),&ShaderGraph::node_set_pos ); + ClassDB::bind_method(D_METHOD("node_add"),&ShaderGraph::node_add ); + ClassDB::bind_method(D_METHOD("node_remove"),&ShaderGraph::node_remove ); + ClassDB::bind_method(D_METHOD("node_set_param"),&ShaderGraph::node_set_param ); + ClassDB::bind_method(D_METHOD("node_set_pos"),&ShaderGraph::node_set_pos ); - ClassDB::bind_method(_MD("node_get_pos"),&ShaderGraph::node_get_pos ); - ClassDB::bind_method(_MD("node_get_param"),&ShaderGraph::node_get_param); - ClassDB::bind_method(_MD("node_get_type"),&ShaderGraph::node_get_type); + ClassDB::bind_method(D_METHOD("node_get_pos"),&ShaderGraph::node_get_pos ); + ClassDB::bind_method(D_METHOD("node_get_param"),&ShaderGraph::node_get_param); + ClassDB::bind_method(D_METHOD("node_get_type"),&ShaderGraph::node_get_type); - ClassDB::bind_method(_MD("connect"),&ShaderGraph::connect ); - ClassDB::bind_method(_MD("disconnect"),&ShaderGraph::disconnect ); + ClassDB::bind_method(D_METHOD("connect"),&ShaderGraph::connect ); + ClassDB::bind_method(D_METHOD("disconnect"),&ShaderGraph::disconnect ); - ClassDB::bind_method(_MD("get_connections"),&ShaderGraph::_get_connections_helper ); + ClassDB::bind_method(D_METHOD("get_connections"),&ShaderGraph::_get_connections_helper ); - ClassDB::bind_method(_MD("clear"),&ShaderGraph::clear ); + ClassDB::bind_method(D_METHOD("clear"),&ShaderGraph::clear ); BIND_CONSTANT( NODE_IN ); ///< param 0: name BIND_CONSTANT( NODE_OUT ); ///< param 0: name diff --git a/scene/resources/shape_2d.cpp b/scene/resources/shape_2d.cpp index c39c09ecbc..ec1568e218 100644 --- a/scene/resources/shape_2d.cpp +++ b/scene/resources/shape_2d.cpp @@ -104,12 +104,12 @@ Variant Shape2D::collide_and_get_contacts(const Transform2D& p_local_xform, con void Shape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_custom_solver_bias","bias"),&Shape2D::set_custom_solver_bias); - ClassDB::bind_method(_MD("get_custom_solver_bias"),&Shape2D::get_custom_solver_bias); - ClassDB::bind_method(_MD("collide","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide); - ClassDB::bind_method(_MD("collide_with_motion","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion); - ClassDB::bind_method(_MD("collide_and_get_contacts:Variant","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide_and_get_contacts); - ClassDB::bind_method(_MD("collide_with_motion_and_get_contacts:Variant","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion_and_get_contacts); + ClassDB::bind_method(D_METHOD("set_custom_solver_bias","bias"),&Shape2D::set_custom_solver_bias); + ClassDB::bind_method(D_METHOD("get_custom_solver_bias"),&Shape2D::get_custom_solver_bias); + ClassDB::bind_method(D_METHOD("collide","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide); + ClassDB::bind_method(D_METHOD("collide_with_motion","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion); + ClassDB::bind_method(D_METHOD("collide_and_get_contacts:Variant","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide_and_get_contacts); + ClassDB::bind_method(D_METHOD("collide_with_motion_and_get_contacts:Variant","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion_and_get_contacts); ADD_PROPERTY( PropertyInfo(Variant::REAL,"custom_solver_bias",PROPERTY_HINT_RANGE,"0,1,0.001"),"set_custom_solver_bias","get_custom_solver_bias"); } diff --git a/scene/resources/shape_line_2d.cpp b/scene/resources/shape_line_2d.cpp index 5f6716423d..64e50e62c8 100644 --- a/scene/resources/shape_line_2d.cpp +++ b/scene/resources/shape_line_2d.cpp @@ -90,11 +90,11 @@ Rect2 LineShape2D::get_rect() const{ void LineShape2D::_bind_methods() { - ClassDB::bind_method(_MD("set_normal","normal"),&LineShape2D::set_normal); - ClassDB::bind_method(_MD("get_normal"),&LineShape2D::get_normal); + ClassDB::bind_method(D_METHOD("set_normal","normal"),&LineShape2D::set_normal); + ClassDB::bind_method(D_METHOD("get_normal"),&LineShape2D::get_normal); - ClassDB::bind_method(_MD("set_d","d"),&LineShape2D::set_d); - ClassDB::bind_method(_MD("get_d"),&LineShape2D::get_d); + ClassDB::bind_method(D_METHOD("set_d","d"),&LineShape2D::set_d); + ClassDB::bind_method(D_METHOD("get_d"),&LineShape2D::get_d); ADD_PROPERTY( PropertyInfo(Variant::VECTOR2,"normal"),"set_normal","get_normal") ; ADD_PROPERTY( PropertyInfo(Variant::REAL,"d"),"set_d","get_d") ; diff --git a/scene/resources/sky_box.cpp b/scene/resources/sky_box.cpp index 8975ed83dd..fddf3070b1 100644 --- a/scene/resources/sky_box.cpp +++ b/scene/resources/sky_box.cpp @@ -16,8 +16,8 @@ SkyBox::RadianceSize SkyBox::get_radiance_size() const { void SkyBox::_bind_methods() { - ClassDB::bind_method(_MD("set_radiance_size","size"),&SkyBox::set_radiance_size); - ClassDB::bind_method(_MD("get_radiance_size"),&SkyBox::get_radiance_size); + ClassDB::bind_method(D_METHOD("set_radiance_size","size"),&SkyBox::set_radiance_size); + ClassDB::bind_method(D_METHOD("get_radiance_size"),&SkyBox::get_radiance_size); ADD_PROPERTY(PropertyInfo(Variant::INT,"radiance_size",PROPERTY_HINT_ENUM,"256,512,1024,2048"),"set_radiance_size","get_radiance_size"); @@ -113,8 +113,8 @@ RID ImageSkyBox::get_rid() const { void ImageSkyBox::_bind_methods() { - ClassDB::bind_method(_MD("set_image_path","image","path"),&ImageSkyBox::set_image_path); - ClassDB::bind_method(_MD("get_image_path","image"),&ImageSkyBox::get_image_path); + ClassDB::bind_method(D_METHOD("set_image_path","image","path"),&ImageSkyBox::set_image_path); + ClassDB::bind_method(D_METHOD("get_image_path","image"),&ImageSkyBox::get_image_path); List<String> extensions; ImageLoader::get_recognized_extensions(&extensions); diff --git a/scene/resources/space_2d.cpp b/scene/resources/space_2d.cpp index d0fc6edcf0..f1fe9629dd 100644 --- a/scene/resources/space_2d.cpp +++ b/scene/resources/space_2d.cpp @@ -48,8 +48,8 @@ bool Space2D::is_active() const { void Space2D::_bind_methods() { - ClassDB::bind_method(_MD("set_active","active"),&Space2D::set_active); - ClassDB::bind_method(_MD("is_active"),&Space2D::is_active); + ClassDB::bind_method(D_METHOD("set_active","active"),&Space2D::set_active); + ClassDB::bind_method(D_METHOD("is_active"),&Space2D::is_active); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"active"),"set_active","is_active") ; diff --git a/scene/resources/sphere_shape.cpp b/scene/resources/sphere_shape.cpp index ac73c4d380..3029625928 100644 --- a/scene/resources/sphere_shape.cpp +++ b/scene/resources/sphere_shape.cpp @@ -75,8 +75,8 @@ float SphereShape::get_radius() const { void SphereShape::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","radius"),&SphereShape::set_radius); - ClassDB::bind_method(_MD("get_radius"),&SphereShape::get_radius); + ClassDB::bind_method(D_METHOD("set_radius","radius"),&SphereShape::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&SphereShape::get_radius); ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0,4096,0.01"), "set_radius", "get_radius"); diff --git a/scene/resources/style_box.cpp b/scene/resources/style_box.cpp index d94d42ff62..34a4202942 100644 --- a/scene/resources/style_box.cpp +++ b/scene/resources/style_box.cpp @@ -70,20 +70,20 @@ Size2 StyleBox::get_center_size() const { void StyleBox::_bind_methods() { - ClassDB::bind_method(_MD("test_mask","point","rect"),&StyleBox::test_mask); + ClassDB::bind_method(D_METHOD("test_mask","point","rect"),&StyleBox::test_mask); - ClassDB::bind_method(_MD("set_default_margin","margin","offset"),&StyleBox::set_default_margin); - ClassDB::bind_method(_MD("get_default_margin","margin"),&StyleBox::get_default_margin); + ClassDB::bind_method(D_METHOD("set_default_margin","margin","offset"),&StyleBox::set_default_margin); + ClassDB::bind_method(D_METHOD("get_default_margin","margin"),&StyleBox::get_default_margin); - //ClassDB::bind_method(_MD("set_default_margin"),&StyleBox::set_default_margin); - //ClassDB::bind_method(_MD("get_default_margin"),&StyleBox::get_default_margin); + //ClassDB::bind_method(D_METHOD("set_default_margin"),&StyleBox::set_default_margin); + //ClassDB::bind_method(D_METHOD("get_default_margin"),&StyleBox::get_default_margin); - ClassDB::bind_method(_MD("get_margin","margin"),&StyleBox::get_margin); - ClassDB::bind_method(_MD("get_minimum_size"),&StyleBox::get_minimum_size); - ClassDB::bind_method(_MD("get_center_size"),&StyleBox::get_center_size); - ClassDB::bind_method(_MD("get_offset"),&StyleBox::get_offset); + ClassDB::bind_method(D_METHOD("get_margin","margin"),&StyleBox::get_margin); + ClassDB::bind_method(D_METHOD("get_minimum_size"),&StyleBox::get_minimum_size); + ClassDB::bind_method(D_METHOD("get_center_size"),&StyleBox::get_center_size); + ClassDB::bind_method(D_METHOD("get_offset"),&StyleBox::get_offset); - ClassDB::bind_method(_MD("draw","canvas_item","rect"),&StyleBox::draw); + ClassDB::bind_method(D_METHOD("draw","canvas_item","rect"),&StyleBox::draw); ADD_GROUP("Content Margin","content_margin_"); ADD_PROPERTYI( PropertyInfo( Variant::REAL, "content_margin_left", PROPERTY_HINT_RANGE,"-1,2048,1" ), "set_default_margin","get_default_margin", MARGIN_LEFT ); @@ -209,23 +209,23 @@ Color StyleBoxTexture::get_modulate() const { void StyleBoxTexture::_bind_methods() { - ClassDB::bind_method(_MD("set_texture","texture:Texture"),&StyleBoxTexture::set_texture); - ClassDB::bind_method(_MD("get_texture:Texture"),&StyleBoxTexture::get_texture); + ClassDB::bind_method(D_METHOD("set_texture","texture:Texture"),&StyleBoxTexture::set_texture); + ClassDB::bind_method(D_METHOD("get_texture:Texture"),&StyleBoxTexture::get_texture); - ClassDB::bind_method(_MD("set_margin_size","margin","size"),&StyleBoxTexture::set_margin_size); - ClassDB::bind_method(_MD("get_margin_size","margin"),&StyleBoxTexture::get_margin_size); + ClassDB::bind_method(D_METHOD("set_margin_size","margin","size"),&StyleBoxTexture::set_margin_size); + ClassDB::bind_method(D_METHOD("get_margin_size","margin"),&StyleBoxTexture::get_margin_size); - ClassDB::bind_method(_MD("set_expand_margin_size","margin","size"),&StyleBoxTexture::set_expand_margin_size); - ClassDB::bind_method(_MD("get_expand_margin_size","margin"),&StyleBoxTexture::get_expand_margin_size); + ClassDB::bind_method(D_METHOD("set_expand_margin_size","margin","size"),&StyleBoxTexture::set_expand_margin_size); + ClassDB::bind_method(D_METHOD("get_expand_margin_size","margin"),&StyleBoxTexture::get_expand_margin_size); - ClassDB::bind_method(_MD("set_region_rect","region"),&StyleBoxTexture::set_region_rect); - ClassDB::bind_method(_MD("get_region_rect"),&StyleBoxTexture::get_region_rect); + ClassDB::bind_method(D_METHOD("set_region_rect","region"),&StyleBoxTexture::set_region_rect); + ClassDB::bind_method(D_METHOD("get_region_rect"),&StyleBoxTexture::get_region_rect); - ClassDB::bind_method(_MD("set_draw_center","enable"),&StyleBoxTexture::set_draw_center); - ClassDB::bind_method(_MD("get_draw_center"),&StyleBoxTexture::get_draw_center); + ClassDB::bind_method(D_METHOD("set_draw_center","enable"),&StyleBoxTexture::set_draw_center); + ClassDB::bind_method(D_METHOD("get_draw_center"),&StyleBoxTexture::get_draw_center); - ClassDB::bind_method(_MD("set_modulate","color"),&StyleBoxTexture::set_modulate); - ClassDB::bind_method(_MD("get_modulate"),&StyleBoxTexture::get_modulate); + ClassDB::bind_method(D_METHOD("set_modulate","color"),&StyleBoxTexture::set_modulate); + ClassDB::bind_method(D_METHOD("get_modulate"),&StyleBoxTexture::get_modulate); ADD_SIGNAL(MethodInfo("texture_changed")); @@ -390,18 +390,18 @@ float StyleBoxFlat::get_style_margin(Margin p_margin) const { } void StyleBoxFlat::_bind_methods() { - ClassDB::bind_method(_MD("set_bg_color","color"),&StyleBoxFlat::set_bg_color); - ClassDB::bind_method(_MD("get_bg_color"),&StyleBoxFlat::get_bg_color); - ClassDB::bind_method(_MD("set_light_color","color"),&StyleBoxFlat::set_light_color); - ClassDB::bind_method(_MD("get_light_color"),&StyleBoxFlat::get_light_color); - ClassDB::bind_method(_MD("set_dark_color","color"),&StyleBoxFlat::set_dark_color); - ClassDB::bind_method(_MD("get_dark_color"),&StyleBoxFlat::get_dark_color); - ClassDB::bind_method(_MD("set_border_size","size"),&StyleBoxFlat::set_border_size); - ClassDB::bind_method(_MD("get_border_size"),&StyleBoxFlat::get_border_size); - ClassDB::bind_method(_MD("set_border_blend","blend"),&StyleBoxFlat::set_border_blend); - ClassDB::bind_method(_MD("get_border_blend"),&StyleBoxFlat::get_border_blend); - ClassDB::bind_method(_MD("set_draw_center","size"),&StyleBoxFlat::set_draw_center); - ClassDB::bind_method(_MD("get_draw_center"),&StyleBoxFlat::get_draw_center); + ClassDB::bind_method(D_METHOD("set_bg_color","color"),&StyleBoxFlat::set_bg_color); + ClassDB::bind_method(D_METHOD("get_bg_color"),&StyleBoxFlat::get_bg_color); + ClassDB::bind_method(D_METHOD("set_light_color","color"),&StyleBoxFlat::set_light_color); + ClassDB::bind_method(D_METHOD("get_light_color"),&StyleBoxFlat::get_light_color); + ClassDB::bind_method(D_METHOD("set_dark_color","color"),&StyleBoxFlat::set_dark_color); + ClassDB::bind_method(D_METHOD("get_dark_color"),&StyleBoxFlat::get_dark_color); + ClassDB::bind_method(D_METHOD("set_border_size","size"),&StyleBoxFlat::set_border_size); + ClassDB::bind_method(D_METHOD("get_border_size"),&StyleBoxFlat::get_border_size); + ClassDB::bind_method(D_METHOD("set_border_blend","blend"),&StyleBoxFlat::set_border_blend); + ClassDB::bind_method(D_METHOD("get_border_blend"),&StyleBoxFlat::get_border_blend); + ClassDB::bind_method(D_METHOD("set_draw_center","size"),&StyleBoxFlat::set_draw_center); + ClassDB::bind_method(D_METHOD("get_draw_center"),&StyleBoxFlat::get_draw_center); ADD_PROPERTY( PropertyInfo( Variant::COLOR, "bg_color"), "set_bg_color","get_bg_color") ; ADD_PROPERTY( PropertyInfo( Variant::COLOR, "light_color"),"set_light_color","get_light_color"); diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index 1d0d323546..cf07f1658b 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -862,25 +862,25 @@ void SurfaceTool::clear() { void SurfaceTool::_bind_methods() { - ClassDB::bind_method(_MD("begin","primitive"),&SurfaceTool::begin); - ClassDB::bind_method(_MD("add_vertex","vertex"),&SurfaceTool::add_vertex); - ClassDB::bind_method(_MD("add_color","color"),&SurfaceTool::add_color); - ClassDB::bind_method(_MD("add_normal","normal"),&SurfaceTool::add_normal); - ClassDB::bind_method(_MD("add_tangent","tangent"),&SurfaceTool::add_tangent); - ClassDB::bind_method(_MD("add_uv","uv"),&SurfaceTool::add_uv); - ClassDB::bind_method(_MD("add_uv2","uv2"),&SurfaceTool::add_uv2); - ClassDB::bind_method(_MD("add_bones","bones"),&SurfaceTool::add_bones); - ClassDB::bind_method(_MD("add_weights","weights"),&SurfaceTool::add_weights); - ClassDB::bind_method(_MD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group); - ClassDB::bind_method(_MD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>())); - ClassDB::bind_method(_MD("set_material","material:Material"),&SurfaceTool::set_material); - ClassDB::bind_method(_MD("index"),&SurfaceTool::index); - ClassDB::bind_method(_MD("deindex"),&SurfaceTool::deindex); - ///ClassDB::bind_method(_MD("generate_flat_normals"),&SurfaceTool::generate_flat_normals); - ClassDB::bind_method(_MD("generate_normals"),&SurfaceTool::generate_normals); - ClassDB::bind_method(_MD("add_index", "index"), &SurfaceTool::add_index); - ClassDB::bind_method(_MD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant())); - ClassDB::bind_method(_MD("clear"),&SurfaceTool::clear); + ClassDB::bind_method(D_METHOD("begin","primitive"),&SurfaceTool::begin); + ClassDB::bind_method(D_METHOD("add_vertex","vertex"),&SurfaceTool::add_vertex); + ClassDB::bind_method(D_METHOD("add_color","color"),&SurfaceTool::add_color); + ClassDB::bind_method(D_METHOD("add_normal","normal"),&SurfaceTool::add_normal); + ClassDB::bind_method(D_METHOD("add_tangent","tangent"),&SurfaceTool::add_tangent); + ClassDB::bind_method(D_METHOD("add_uv","uv"),&SurfaceTool::add_uv); + ClassDB::bind_method(D_METHOD("add_uv2","uv2"),&SurfaceTool::add_uv2); + ClassDB::bind_method(D_METHOD("add_bones","bones"),&SurfaceTool::add_bones); + ClassDB::bind_method(D_METHOD("add_weights","weights"),&SurfaceTool::add_weights); + ClassDB::bind_method(D_METHOD("add_smooth_group","smooth"),&SurfaceTool::add_smooth_group); + ClassDB::bind_method(D_METHOD("add_triangle_fan", "vertexes", "uvs", "colors", "uv2s", "normals", "tangents"),&SurfaceTool::add_triangle_fan, DEFVAL(Vector<Vector2>()), DEFVAL(Vector<Color>()), DEFVAL(Vector<Vector2>()),DEFVAL(Vector<Vector3>()), DEFVAL(Vector<Plane>())); + ClassDB::bind_method(D_METHOD("set_material","material:Material"),&SurfaceTool::set_material); + ClassDB::bind_method(D_METHOD("index"),&SurfaceTool::index); + ClassDB::bind_method(D_METHOD("deindex"),&SurfaceTool::deindex); + ///ClassDB::bind_method(D_METHOD("generate_flat_normals"),&SurfaceTool::generate_flat_normals); + ClassDB::bind_method(D_METHOD("generate_normals"),&SurfaceTool::generate_normals); + ClassDB::bind_method(D_METHOD("add_index", "index"), &SurfaceTool::add_index); + ClassDB::bind_method(D_METHOD("commit:Mesh","existing:Mesh"),&SurfaceTool::commit,DEFVAL(Variant())); + ClassDB::bind_method(D_METHOD("clear"),&SurfaceTool::clear); } diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 744150fdb6..5e67a9e5b2 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -63,15 +63,15 @@ bool Texture::get_rect_region(const Rect2& p_rect, const Rect2& p_src_rect,Rect2 void Texture::_bind_methods() { - ClassDB::bind_method(_MD("get_width"),&Texture::get_width); - ClassDB::bind_method(_MD("get_height"),&Texture::get_height); - ClassDB::bind_method(_MD("get_size"),&Texture::get_size); - ClassDB::bind_method(_MD("has_alpha"),&Texture::has_alpha); - ClassDB::bind_method(_MD("set_flags","flags"),&Texture::set_flags); - ClassDB::bind_method(_MD("get_flags"),&Texture::get_flags); - ClassDB::bind_method(_MD("draw","canvas_item","pos","modulate","transpose"),&Texture::draw,DEFVAL(Color(1,1,1)),DEFVAL(false)); - ClassDB::bind_method(_MD("draw_rect","canvas_item","rect","tile","modulate","transpose"),&Texture::draw_rect,DEFVAL(Color(1,1,1)),DEFVAL(false)); - ClassDB::bind_method(_MD("draw_rect_region","canvas_item","rect","src_rect","modulate","transpose"),&Texture::draw_rect_region,DEFVAL(Color(1,1,1)),DEFVAL(false)); + ClassDB::bind_method(D_METHOD("get_width"),&Texture::get_width); + ClassDB::bind_method(D_METHOD("get_height"),&Texture::get_height); + ClassDB::bind_method(D_METHOD("get_size"),&Texture::get_size); + ClassDB::bind_method(D_METHOD("has_alpha"),&Texture::has_alpha); + ClassDB::bind_method(D_METHOD("set_flags","flags"),&Texture::set_flags); + ClassDB::bind_method(D_METHOD("get_flags"),&Texture::get_flags); + ClassDB::bind_method(D_METHOD("draw","canvas_item","pos","modulate","transpose"),&Texture::draw,DEFVAL(Color(1,1,1)),DEFVAL(false)); + ClassDB::bind_method(D_METHOD("draw_rect","canvas_item","rect","tile","modulate","transpose"),&Texture::draw_rect,DEFVAL(Color(1,1,1)),DEFVAL(false)); + ClassDB::bind_method(D_METHOD("draw_rect_region","canvas_item","rect","src_rect","modulate","transpose"),&Texture::draw_rect_region,DEFVAL(Color(1,1,1)),DEFVAL(false)); BIND_CONSTANT( FLAG_MIPMAPS ); BIND_CONSTANT( FLAG_REPEAT ); @@ -406,27 +406,27 @@ void ImageTexture::_set_data(Dictionary p_data) { void ImageTexture::_bind_methods() { - ClassDB::bind_method(_MD("create","width","height","format","flags"),&ImageTexture::create,DEFVAL(FLAGS_DEFAULT)); - ClassDB::bind_method(_MD("create_from_image","image","flags"),&ImageTexture::create_from_image,DEFVAL(FLAGS_DEFAULT)); - ClassDB::bind_method(_MD("get_format"),&ImageTexture::get_format); - ClassDB::bind_method(_MD("load","path"),&ImageTexture::load); - ClassDB::bind_method(_MD("set_data","image"),&ImageTexture::set_data); - ClassDB::bind_method(_MD("get_data","cube_side"),&ImageTexture::get_data); - ClassDB::bind_method(_MD("set_storage","mode"),&ImageTexture::set_storage); - ClassDB::bind_method(_MD("get_storage"),&ImageTexture::get_storage); - ClassDB::bind_method(_MD("set_lossy_storage_quality","quality"),&ImageTexture::set_lossy_storage_quality); - ClassDB::bind_method(_MD("get_lossy_storage_quality"),&ImageTexture::get_lossy_storage_quality); - ClassDB::bind_method(_MD("fix_alpha_edges"),&ImageTexture::fix_alpha_edges); - ClassDB::bind_method(_MD("premultiply_alpha"),&ImageTexture::premultiply_alpha); - ClassDB::bind_method(_MD("normal_to_xy"),&ImageTexture::normal_to_xy); - ClassDB::bind_method(_MD("shrink_x2_and_keep_size"),&ImageTexture::shrink_x2_and_keep_size); - - ClassDB::bind_method(_MD("set_size_override","size"),&ImageTexture::set_size_override); + ClassDB::bind_method(D_METHOD("create","width","height","format","flags"),&ImageTexture::create,DEFVAL(FLAGS_DEFAULT)); + ClassDB::bind_method(D_METHOD("create_from_image","image","flags"),&ImageTexture::create_from_image,DEFVAL(FLAGS_DEFAULT)); + ClassDB::bind_method(D_METHOD("get_format"),&ImageTexture::get_format); + ClassDB::bind_method(D_METHOD("load","path"),&ImageTexture::load); + ClassDB::bind_method(D_METHOD("set_data","image"),&ImageTexture::set_data); + ClassDB::bind_method(D_METHOD("get_data","cube_side"),&ImageTexture::get_data); + ClassDB::bind_method(D_METHOD("set_storage","mode"),&ImageTexture::set_storage); + ClassDB::bind_method(D_METHOD("get_storage"),&ImageTexture::get_storage); + ClassDB::bind_method(D_METHOD("set_lossy_storage_quality","quality"),&ImageTexture::set_lossy_storage_quality); + ClassDB::bind_method(D_METHOD("get_lossy_storage_quality"),&ImageTexture::get_lossy_storage_quality); + ClassDB::bind_method(D_METHOD("fix_alpha_edges"),&ImageTexture::fix_alpha_edges); + ClassDB::bind_method(D_METHOD("premultiply_alpha"),&ImageTexture::premultiply_alpha); + ClassDB::bind_method(D_METHOD("normal_to_xy"),&ImageTexture::normal_to_xy); + ClassDB::bind_method(D_METHOD("shrink_x2_and_keep_size"),&ImageTexture::shrink_x2_and_keep_size); + + ClassDB::bind_method(D_METHOD("set_size_override","size"),&ImageTexture::set_size_override); ClassDB::set_method_flags(get_class_static(),_scs_create("fix_alpha_edges"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ClassDB::set_method_flags(get_class_static(),_scs_create("premultiply_alpha"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ClassDB::set_method_flags(get_class_static(),_scs_create("normal_to_xy"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); ClassDB::set_method_flags(get_class_static(),_scs_create("shrink_x2_and_keep_size"),METHOD_FLAGS_DEFAULT|METHOD_FLAG_EDITOR); - ClassDB::bind_method(_MD("_reload_hook","rid"),&ImageTexture::_reload_hook); + ClassDB::bind_method(D_METHOD("_reload_hook","rid"),&ImageTexture::_reload_hook); BIND_CONSTANT( STORAGE_RAW ); @@ -771,8 +771,8 @@ void StreamTexture::reload_from_file() { void StreamTexture::_bind_methods() { - ClassDB::bind_method(_MD("load","path"),&StreamTexture::load); - ClassDB::bind_method(_MD("get_load_path"),&StreamTexture::get_load_path); + ClassDB::bind_method(D_METHOD("load","path"),&StreamTexture::load); + ClassDB::bind_method(D_METHOD("get_load_path"),&StreamTexture::get_load_path); ADD_PROPERTY( PropertyInfo(Variant::STRING,"load_path",PROPERTY_HINT_FILE,"*.stex"),"load","get_load_path"); } @@ -921,14 +921,14 @@ Rect2 AtlasTexture::get_margin() const { void AtlasTexture::_bind_methods() { - ClassDB::bind_method(_MD("set_atlas","atlas:Texture"),&AtlasTexture::set_atlas); - ClassDB::bind_method(_MD("get_atlas:Texture"),&AtlasTexture::get_atlas); + ClassDB::bind_method(D_METHOD("set_atlas","atlas:Texture"),&AtlasTexture::set_atlas); + ClassDB::bind_method(D_METHOD("get_atlas:Texture"),&AtlasTexture::get_atlas); - ClassDB::bind_method(_MD("set_region","region"),&AtlasTexture::set_region); - ClassDB::bind_method(_MD("get_region"),&AtlasTexture::get_region); + ClassDB::bind_method(D_METHOD("set_region","region"),&AtlasTexture::set_region); + ClassDB::bind_method(D_METHOD("get_region"),&AtlasTexture::get_region); - ClassDB::bind_method(_MD("set_margin","margin"),&AtlasTexture::set_margin); - ClassDB::bind_method(_MD("get_margin"),&AtlasTexture::get_margin); + ClassDB::bind_method(D_METHOD("set_margin","margin"),&AtlasTexture::set_margin); + ClassDB::bind_method(D_METHOD("get_margin"),&AtlasTexture::get_margin); ADD_SIGNAL(MethodInfo("atlas_changed")); @@ -1176,18 +1176,18 @@ Ref<Texture> LargeTexture::get_piece_texture(int p_idx) const{ void LargeTexture::_bind_methods() { - ClassDB::bind_method(_MD("add_piece","ofs","texture:Texture"),&LargeTexture::add_piece); - ClassDB::bind_method(_MD("set_piece_offset", "idx", "ofs"),&LargeTexture::set_piece_offset); - ClassDB::bind_method(_MD("set_piece_texture","idx", "texture:Texture"),&LargeTexture::set_piece_texture); - ClassDB::bind_method(_MD("set_size","size"),&LargeTexture::set_size); - ClassDB::bind_method(_MD("clear"),&LargeTexture::clear); + ClassDB::bind_method(D_METHOD("add_piece","ofs","texture:Texture"),&LargeTexture::add_piece); + ClassDB::bind_method(D_METHOD("set_piece_offset", "idx", "ofs"),&LargeTexture::set_piece_offset); + ClassDB::bind_method(D_METHOD("set_piece_texture","idx", "texture:Texture"),&LargeTexture::set_piece_texture); + ClassDB::bind_method(D_METHOD("set_size","size"),&LargeTexture::set_size); + ClassDB::bind_method(D_METHOD("clear"),&LargeTexture::clear); - ClassDB::bind_method(_MD("get_piece_count"),&LargeTexture::get_piece_count); - ClassDB::bind_method(_MD("get_piece_offset","idx"),&LargeTexture::get_piece_offset); - ClassDB::bind_method(_MD("get_piece_texture:Texture","idx"),&LargeTexture::get_piece_texture); + ClassDB::bind_method(D_METHOD("get_piece_count"),&LargeTexture::get_piece_count); + ClassDB::bind_method(D_METHOD("get_piece_offset","idx"),&LargeTexture::get_piece_offset); + ClassDB::bind_method(D_METHOD("get_piece_texture:Texture","idx"),&LargeTexture::get_piece_texture); - ClassDB::bind_method(_MD("_set_data","data"),&LargeTexture::_set_data); - ClassDB::bind_method(_MD("_get_data"),&LargeTexture::_get_data); + ClassDB::bind_method(D_METHOD("_set_data","data"),&LargeTexture::_set_data); + ClassDB::bind_method(D_METHOD("_get_data"),&LargeTexture::_get_data); ADD_PROPERTY( PropertyInfo( Variant::ARRAY, "_data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR), "_set_data","_get_data") ; @@ -1420,18 +1420,18 @@ void CubeMap::_get_property_list( List<PropertyInfo> *p_list) const { void CubeMap::_bind_methods() { - ClassDB::bind_method(_MD("get_width"),&CubeMap::get_width); - ClassDB::bind_method(_MD("get_height"),&CubeMap::get_height); - //ClassDB::bind_method(_MD("get_rid"),&CubeMap::get_rid); - ClassDB::bind_method(_MD("set_flags","flags"),&CubeMap::set_flags); - ClassDB::bind_method(_MD("get_flags"),&CubeMap::get_flags); - - ClassDB::bind_method(_MD("set_side","side","image"),&CubeMap::set_side); - ClassDB::bind_method(_MD("get_side","side"),&CubeMap::get_side); - ClassDB::bind_method(_MD("set_storage","mode"),&CubeMap::set_storage); - ClassDB::bind_method(_MD("get_storage"),&CubeMap::get_storage); - ClassDB::bind_method(_MD("set_lossy_storage_quality","quality"),&CubeMap::set_lossy_storage_quality); - ClassDB::bind_method(_MD("get_lossy_storage_quality"),&CubeMap::get_lossy_storage_quality); + ClassDB::bind_method(D_METHOD("get_width"),&CubeMap::get_width); + ClassDB::bind_method(D_METHOD("get_height"),&CubeMap::get_height); + //ClassDB::bind_method(D_METHOD("get_rid"),&CubeMap::get_rid); + ClassDB::bind_method(D_METHOD("set_flags","flags"),&CubeMap::set_flags); + ClassDB::bind_method(D_METHOD("get_flags"),&CubeMap::get_flags); + + ClassDB::bind_method(D_METHOD("set_side","side","image"),&CubeMap::set_side); + ClassDB::bind_method(D_METHOD("get_side","side"),&CubeMap::get_side); + ClassDB::bind_method(D_METHOD("set_storage","mode"),&CubeMap::set_storage); + ClassDB::bind_method(D_METHOD("get_storage"),&CubeMap::get_storage); + ClassDB::bind_method(D_METHOD("set_lossy_storage_quality","quality"),&CubeMap::set_lossy_storage_quality); + ClassDB::bind_method(D_METHOD("get_lossy_storage_quality"),&CubeMap::get_lossy_storage_quality); BIND_CONSTANT( STORAGE_RAW ); diff --git a/scene/resources/theme.cpp b/scene/resources/theme.cpp index c123cee54a..10ad38d498 100644 --- a/scene/resources/theme.cpp +++ b/scene/resources/theme.cpp @@ -664,43 +664,43 @@ void Theme::get_type_list(List<StringName> *p_list) const { void Theme::_bind_methods() { - ClassDB::bind_method(_MD("set_icon","name","type","texture:Texture"),&Theme::set_icon); - ClassDB::bind_method(_MD("get_icon:Texture","name","type"),&Theme::get_icon); - ClassDB::bind_method(_MD("has_icon","name","type"),&Theme::has_icon); - ClassDB::bind_method(_MD("clear_icon","name","type"),&Theme::clear_icon); - ClassDB::bind_method(_MD("get_icon_list","type"),&Theme::_get_icon_list); - - ClassDB::bind_method(_MD("set_stylebox","name","type","texture:StyleBox"),&Theme::set_stylebox); - ClassDB::bind_method(_MD("get_stylebox:StyleBox","name","type"),&Theme::get_stylebox); - ClassDB::bind_method(_MD("has_stylebox","name","type"),&Theme::has_stylebox); - ClassDB::bind_method(_MD("clear_stylebox","name","type"),&Theme::clear_stylebox); - ClassDB::bind_method(_MD("get_stylebox_list","type"),&Theme::_get_stylebox_list); - ClassDB::bind_method(_MD("get_stylebox_types"),&Theme::_get_stylebox_types); - - ClassDB::bind_method(_MD("set_font","name","type","font:Font"),&Theme::set_font); - ClassDB::bind_method(_MD("get_font:Font","name","type"),&Theme::get_font); - ClassDB::bind_method(_MD("has_font","name","type"),&Theme::has_font); - ClassDB::bind_method(_MD("clear_font","name","type"),&Theme::clear_font); - ClassDB::bind_method(_MD("get_font_list","type"),&Theme::_get_font_list); - - ClassDB::bind_method(_MD("set_color","name","type","color"),&Theme::set_color); - ClassDB::bind_method(_MD("get_color","name","type"),&Theme::get_color); - ClassDB::bind_method(_MD("has_color","name","type"),&Theme::has_color); - ClassDB::bind_method(_MD("clear_color","name","type"),&Theme::clear_color); - ClassDB::bind_method(_MD("get_color_list","type"),&Theme::_get_color_list); - - ClassDB::bind_method(_MD("set_constant","name","type","constant"),&Theme::set_constant); - ClassDB::bind_method(_MD("get_constant","name","type"),&Theme::get_constant); - ClassDB::bind_method(_MD("has_constant","name","type"),&Theme::has_constant); - ClassDB::bind_method(_MD("clear_constant","name","type"),&Theme::clear_constant); - ClassDB::bind_method(_MD("get_constant_list","type"),&Theme::_get_constant_list); - - ClassDB::bind_method(_MD("set_default_font","font"),&Theme::set_default_theme_font); - ClassDB::bind_method(_MD("get_default_font"),&Theme::get_default_theme_font); - - ClassDB::bind_method(_MD("get_type_list","type"),&Theme::_get_type_list); - - ClassDB::bind_method(_MD("_emit_theme_changed"),&Theme::_emit_theme_changed); + ClassDB::bind_method(D_METHOD("set_icon","name","type","texture:Texture"),&Theme::set_icon); + ClassDB::bind_method(D_METHOD("get_icon:Texture","name","type"),&Theme::get_icon); + ClassDB::bind_method(D_METHOD("has_icon","name","type"),&Theme::has_icon); + ClassDB::bind_method(D_METHOD("clear_icon","name","type"),&Theme::clear_icon); + ClassDB::bind_method(D_METHOD("get_icon_list","type"),&Theme::_get_icon_list); + + ClassDB::bind_method(D_METHOD("set_stylebox","name","type","texture:StyleBox"),&Theme::set_stylebox); + ClassDB::bind_method(D_METHOD("get_stylebox:StyleBox","name","type"),&Theme::get_stylebox); + ClassDB::bind_method(D_METHOD("has_stylebox","name","type"),&Theme::has_stylebox); + ClassDB::bind_method(D_METHOD("clear_stylebox","name","type"),&Theme::clear_stylebox); + ClassDB::bind_method(D_METHOD("get_stylebox_list","type"),&Theme::_get_stylebox_list); + ClassDB::bind_method(D_METHOD("get_stylebox_types"),&Theme::_get_stylebox_types); + + ClassDB::bind_method(D_METHOD("set_font","name","type","font:Font"),&Theme::set_font); + ClassDB::bind_method(D_METHOD("get_font:Font","name","type"),&Theme::get_font); + ClassDB::bind_method(D_METHOD("has_font","name","type"),&Theme::has_font); + ClassDB::bind_method(D_METHOD("clear_font","name","type"),&Theme::clear_font); + ClassDB::bind_method(D_METHOD("get_font_list","type"),&Theme::_get_font_list); + + ClassDB::bind_method(D_METHOD("set_color","name","type","color"),&Theme::set_color); + ClassDB::bind_method(D_METHOD("get_color","name","type"),&Theme::get_color); + ClassDB::bind_method(D_METHOD("has_color","name","type"),&Theme::has_color); + ClassDB::bind_method(D_METHOD("clear_color","name","type"),&Theme::clear_color); + ClassDB::bind_method(D_METHOD("get_color_list","type"),&Theme::_get_color_list); + + ClassDB::bind_method(D_METHOD("set_constant","name","type","constant"),&Theme::set_constant); + ClassDB::bind_method(D_METHOD("get_constant","name","type"),&Theme::get_constant); + ClassDB::bind_method(D_METHOD("has_constant","name","type"),&Theme::has_constant); + ClassDB::bind_method(D_METHOD("clear_constant","name","type"),&Theme::clear_constant); + ClassDB::bind_method(D_METHOD("get_constant_list","type"),&Theme::_get_constant_list); + + ClassDB::bind_method(D_METHOD("set_default_font","font"),&Theme::set_default_theme_font); + ClassDB::bind_method(D_METHOD("get_default_font"),&Theme::get_default_theme_font); + + ClassDB::bind_method(D_METHOD("get_type_list","type"),&Theme::_get_type_list); + + ClassDB::bind_method(D_METHOD("_emit_theme_changed"),&Theme::_emit_theme_changed); diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index c97682f504..e12d8057d8 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -426,37 +426,37 @@ void TileSet::clear() { void TileSet::_bind_methods() { - ClassDB::bind_method(_MD("create_tile","id"),&TileSet::create_tile); - ClassDB::bind_method(_MD("tile_set_name","id","name"),&TileSet::tile_set_name); - ClassDB::bind_method(_MD("tile_get_name","id"),&TileSet::tile_get_name); - ClassDB::bind_method(_MD("tile_set_texture","id","texture:Texture"),&TileSet::tile_set_texture); - ClassDB::bind_method(_MD("tile_get_texture:Texture","id"),&TileSet::tile_get_texture); - ClassDB::bind_method(_MD("tile_set_material","id","material:CanvasItemMaterial"),&TileSet::tile_set_material); - ClassDB::bind_method(_MD("tile_get_material:CanvasItemMaterial","id"),&TileSet::tile_get_material); - ClassDB::bind_method(_MD("tile_set_texture_offset","id","texture_offset"),&TileSet::tile_set_texture_offset); - ClassDB::bind_method(_MD("tile_get_texture_offset","id"),&TileSet::tile_get_texture_offset); - ClassDB::bind_method(_MD("tile_set_shape_offset","id","shape_offset"),&TileSet::tile_set_shape_offset); - ClassDB::bind_method(_MD("tile_get_shape_offset","id"),&TileSet::tile_get_shape_offset); - ClassDB::bind_method(_MD("tile_set_region","id","region"),&TileSet::tile_set_region); - ClassDB::bind_method(_MD("tile_get_region","id"),&TileSet::tile_get_region); - ClassDB::bind_method(_MD("tile_set_shape","id","shape:Shape2D"),&TileSet::tile_set_shape); - ClassDB::bind_method(_MD("tile_get_shape:Shape2D","id"),&TileSet::tile_get_shape); - ClassDB::bind_method(_MD("tile_set_shapes","id","shapes"),&TileSet::_tile_set_shapes); - ClassDB::bind_method(_MD("tile_get_shapes","id"),&TileSet::_tile_get_shapes); - ClassDB::bind_method(_MD("tile_set_navigation_polygon","id","navigation_polygon:NavigationPolygon"),&TileSet::tile_set_navigation_polygon); - ClassDB::bind_method(_MD("tile_get_navigation_polygon:NavigationPolygon","id"),&TileSet::tile_get_navigation_polygon); - ClassDB::bind_method(_MD("tile_set_navigation_polygon_offset","id","navigation_polygon_offset"),&TileSet::tile_set_navigation_polygon_offset); - ClassDB::bind_method(_MD("tile_get_navigation_polygon_offset","id"),&TileSet::tile_get_navigation_polygon_offset); - ClassDB::bind_method(_MD("tile_set_light_occluder","id","light_occluder:OccluderPolygon2D"),&TileSet::tile_set_light_occluder); - ClassDB::bind_method(_MD("tile_get_light_occluder:OccluderPolygon2D","id"),&TileSet::tile_get_light_occluder); - ClassDB::bind_method(_MD("tile_set_occluder_offset","id","occluder_offset"),&TileSet::tile_set_occluder_offset); - ClassDB::bind_method(_MD("tile_get_occluder_offset","id"),&TileSet::tile_get_occluder_offset); - - ClassDB::bind_method(_MD("remove_tile","id"),&TileSet::remove_tile); - ClassDB::bind_method(_MD("clear"),&TileSet::clear); - ClassDB::bind_method(_MD("get_last_unused_tile_id"),&TileSet::get_last_unused_tile_id); - ClassDB::bind_method(_MD("find_tile_by_name","name"),&TileSet::find_tile_by_name); - ClassDB::bind_method(_MD("get_tiles_ids", "name"), &TileSet::_get_tiles_ids); + ClassDB::bind_method(D_METHOD("create_tile","id"),&TileSet::create_tile); + ClassDB::bind_method(D_METHOD("tile_set_name","id","name"),&TileSet::tile_set_name); + ClassDB::bind_method(D_METHOD("tile_get_name","id"),&TileSet::tile_get_name); + ClassDB::bind_method(D_METHOD("tile_set_texture","id","texture:Texture"),&TileSet::tile_set_texture); + ClassDB::bind_method(D_METHOD("tile_get_texture:Texture","id"),&TileSet::tile_get_texture); + ClassDB::bind_method(D_METHOD("tile_set_material","id","material:CanvasItemMaterial"),&TileSet::tile_set_material); + ClassDB::bind_method(D_METHOD("tile_get_material:CanvasItemMaterial","id"),&TileSet::tile_get_material); + ClassDB::bind_method(D_METHOD("tile_set_texture_offset","id","texture_offset"),&TileSet::tile_set_texture_offset); + ClassDB::bind_method(D_METHOD("tile_get_texture_offset","id"),&TileSet::tile_get_texture_offset); + ClassDB::bind_method(D_METHOD("tile_set_shape_offset","id","shape_offset"),&TileSet::tile_set_shape_offset); + ClassDB::bind_method(D_METHOD("tile_get_shape_offset","id"),&TileSet::tile_get_shape_offset); + ClassDB::bind_method(D_METHOD("tile_set_region","id","region"),&TileSet::tile_set_region); + ClassDB::bind_method(D_METHOD("tile_get_region","id"),&TileSet::tile_get_region); + ClassDB::bind_method(D_METHOD("tile_set_shape","id","shape:Shape2D"),&TileSet::tile_set_shape); + ClassDB::bind_method(D_METHOD("tile_get_shape:Shape2D","id"),&TileSet::tile_get_shape); + ClassDB::bind_method(D_METHOD("tile_set_shapes","id","shapes"),&TileSet::_tile_set_shapes); + ClassDB::bind_method(D_METHOD("tile_get_shapes","id"),&TileSet::_tile_get_shapes); + ClassDB::bind_method(D_METHOD("tile_set_navigation_polygon","id","navigation_polygon:NavigationPolygon"),&TileSet::tile_set_navigation_polygon); + ClassDB::bind_method(D_METHOD("tile_get_navigation_polygon:NavigationPolygon","id"),&TileSet::tile_get_navigation_polygon); + ClassDB::bind_method(D_METHOD("tile_set_navigation_polygon_offset","id","navigation_polygon_offset"),&TileSet::tile_set_navigation_polygon_offset); + ClassDB::bind_method(D_METHOD("tile_get_navigation_polygon_offset","id"),&TileSet::tile_get_navigation_polygon_offset); + ClassDB::bind_method(D_METHOD("tile_set_light_occluder","id","light_occluder:OccluderPolygon2D"),&TileSet::tile_set_light_occluder); + ClassDB::bind_method(D_METHOD("tile_get_light_occluder:OccluderPolygon2D","id"),&TileSet::tile_get_light_occluder); + ClassDB::bind_method(D_METHOD("tile_set_occluder_offset","id","occluder_offset"),&TileSet::tile_set_occluder_offset); + ClassDB::bind_method(D_METHOD("tile_get_occluder_offset","id"),&TileSet::tile_get_occluder_offset); + + ClassDB::bind_method(D_METHOD("remove_tile","id"),&TileSet::remove_tile); + ClassDB::bind_method(D_METHOD("clear"),&TileSet::clear); + ClassDB::bind_method(D_METHOD("get_last_unused_tile_id"),&TileSet::get_last_unused_tile_id); + ClassDB::bind_method(D_METHOD("find_tile_by_name","name"),&TileSet::find_tile_by_name); + ClassDB::bind_method(D_METHOD("get_tiles_ids", "name"), &TileSet::_get_tiles_ids); } diff --git a/scene/resources/world.cpp b/scene/resources/world.cpp index 74ab950a2d..f9233d950c 100644 --- a/scene/resources/world.cpp +++ b/scene/resources/world.cpp @@ -310,11 +310,11 @@ PhysicsDirectSpaceState *World::get_direct_space_state() { void World::_bind_methods() { - ClassDB::bind_method(_MD("get_space"),&World::get_space); - ClassDB::bind_method(_MD("get_scenario"),&World::get_scenario); - ClassDB::bind_method(_MD("set_environment","env:Environment"),&World::set_environment); - ClassDB::bind_method(_MD("get_environment:Environment"),&World::get_environment); - ClassDB::bind_method(_MD("get_direct_space_state:PhysicsDirectSpaceState"),&World::get_direct_space_state); + ClassDB::bind_method(D_METHOD("get_space"),&World::get_space); + ClassDB::bind_method(D_METHOD("get_scenario"),&World::get_scenario); + ClassDB::bind_method(D_METHOD("set_environment","env:Environment"),&World::set_environment); + ClassDB::bind_method(D_METHOD("get_environment:Environment"),&World::get_environment); + ClassDB::bind_method(D_METHOD("get_direct_space_state:PhysicsDirectSpaceState"),&World::get_direct_space_state); ADD_PROPERTY(PropertyInfo(Variant::OBJECT,"environment",PROPERTY_HINT_RESOURCE_TYPE,"Environment"),"set_environment","get_environment"); } diff --git a/scene/resources/world_2d.cpp b/scene/resources/world_2d.cpp index d4eff8d2b3..b2713da569 100644 --- a/scene/resources/world_2d.cpp +++ b/scene/resources/world_2d.cpp @@ -382,11 +382,11 @@ RID World2D::get_sound_space() { void World2D::_bind_methods() { - ClassDB::bind_method(_MD("get_canvas"),&World2D::get_canvas); - ClassDB::bind_method(_MD("get_space"),&World2D::get_space); - ClassDB::bind_method(_MD("get_sound_space"),&World2D::get_sound_space); + ClassDB::bind_method(D_METHOD("get_canvas"),&World2D::get_canvas); + ClassDB::bind_method(D_METHOD("get_space"),&World2D::get_space); + ClassDB::bind_method(D_METHOD("get_sound_space"),&World2D::get_sound_space); - ClassDB::bind_method(_MD("get_direct_space_state:Physics2DDirectSpaceState"),&World2D::get_direct_space_state); + ClassDB::bind_method(D_METHOD("get_direct_space_state:Physics2DDirectSpaceState"),&World2D::get_direct_space_state); } |