diff options
Diffstat (limited to 'scene/2d/light_2d.cpp')
-rw-r--r-- | scene/2d/light_2d.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/scene/2d/light_2d.cpp b/scene/2d/light_2d.cpp index 2f89026367..d7f5a890e8 100644 --- a/scene/2d/light_2d.cpp +++ b/scene/2d/light_2d.cpp @@ -365,67 +365,67 @@ String Light2D::get_configuration_warning() const { void Light2D::_bind_methods() { - ClassDB::bind_method(_MD("set_enabled","enabled"),&Light2D::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&Light2D::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&Light2D::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&Light2D::is_enabled); - ClassDB::bind_method(_MD("set_editor_only","editor_only"), &Light2D::set_editor_only ); - ClassDB::bind_method(_MD("is_editor_only"), &Light2D::is_editor_only ); + ClassDB::bind_method(D_METHOD("set_editor_only","editor_only"), &Light2D::set_editor_only ); + ClassDB::bind_method(D_METHOD("is_editor_only"), &Light2D::is_editor_only ); - ClassDB::bind_method(_MD("set_texture","texture"),&Light2D::set_texture); - ClassDB::bind_method(_MD("get_texture"),&Light2D::get_texture); + ClassDB::bind_method(D_METHOD("set_texture","texture"),&Light2D::set_texture); + ClassDB::bind_method(D_METHOD("get_texture"),&Light2D::get_texture); - ClassDB::bind_method(_MD("set_texture_offset","texture_offset"),&Light2D::set_texture_offset); - ClassDB::bind_method(_MD("get_texture_offset"),&Light2D::get_texture_offset); + ClassDB::bind_method(D_METHOD("set_texture_offset","texture_offset"),&Light2D::set_texture_offset); + ClassDB::bind_method(D_METHOD("get_texture_offset"),&Light2D::get_texture_offset); - ClassDB::bind_method(_MD("set_color","color"),&Light2D::set_color); - ClassDB::bind_method(_MD("get_color"),&Light2D::get_color); + ClassDB::bind_method(D_METHOD("set_color","color"),&Light2D::set_color); + ClassDB::bind_method(D_METHOD("get_color"),&Light2D::get_color); - ClassDB::bind_method(_MD("set_height","height"),&Light2D::set_height); - ClassDB::bind_method(_MD("get_height"),&Light2D::get_height); + ClassDB::bind_method(D_METHOD("set_height","height"),&Light2D::set_height); + ClassDB::bind_method(D_METHOD("get_height"),&Light2D::get_height); - ClassDB::bind_method(_MD("set_energy","energy"),&Light2D::set_energy); - ClassDB::bind_method(_MD("get_energy"),&Light2D::get_energy); + ClassDB::bind_method(D_METHOD("set_energy","energy"),&Light2D::set_energy); + ClassDB::bind_method(D_METHOD("get_energy"),&Light2D::get_energy); - ClassDB::bind_method(_MD("set_texture_scale","texture_scale"),&Light2D::set_texture_scale); - ClassDB::bind_method(_MD("get_texture_scale"),&Light2D::get_texture_scale); + ClassDB::bind_method(D_METHOD("set_texture_scale","texture_scale"),&Light2D::set_texture_scale); + ClassDB::bind_method(D_METHOD("get_texture_scale"),&Light2D::get_texture_scale); - ClassDB::bind_method(_MD("set_z_range_min","z"),&Light2D::set_z_range_min); - ClassDB::bind_method(_MD("get_z_range_min"),&Light2D::get_z_range_min); + ClassDB::bind_method(D_METHOD("set_z_range_min","z"),&Light2D::set_z_range_min); + ClassDB::bind_method(D_METHOD("get_z_range_min"),&Light2D::get_z_range_min); - ClassDB::bind_method(_MD("set_z_range_max","z"),&Light2D::set_z_range_max); - ClassDB::bind_method(_MD("get_z_range_max"),&Light2D::get_z_range_max); + ClassDB::bind_method(D_METHOD("set_z_range_max","z"),&Light2D::set_z_range_max); + ClassDB::bind_method(D_METHOD("get_z_range_max"),&Light2D::get_z_range_max); - ClassDB::bind_method(_MD("set_layer_range_min","layer"),&Light2D::set_layer_range_min); - ClassDB::bind_method(_MD("get_layer_range_min"),&Light2D::get_layer_range_min); + ClassDB::bind_method(D_METHOD("set_layer_range_min","layer"),&Light2D::set_layer_range_min); + ClassDB::bind_method(D_METHOD("get_layer_range_min"),&Light2D::get_layer_range_min); - ClassDB::bind_method(_MD("set_layer_range_max","layer"),&Light2D::set_layer_range_max); - ClassDB::bind_method(_MD("get_layer_range_max"),&Light2D::get_layer_range_max); + ClassDB::bind_method(D_METHOD("set_layer_range_max","layer"),&Light2D::set_layer_range_max); + ClassDB::bind_method(D_METHOD("get_layer_range_max"),&Light2D::get_layer_range_max); - ClassDB::bind_method(_MD("set_item_cull_mask","item_cull_mask"),&Light2D::set_item_cull_mask); - ClassDB::bind_method(_MD("get_item_cull_mask"),&Light2D::get_item_cull_mask); + ClassDB::bind_method(D_METHOD("set_item_cull_mask","item_cull_mask"),&Light2D::set_item_cull_mask); + ClassDB::bind_method(D_METHOD("get_item_cull_mask"),&Light2D::get_item_cull_mask); - ClassDB::bind_method(_MD("set_item_shadow_cull_mask","item_shadow_cull_mask"),&Light2D::set_item_shadow_cull_mask); - ClassDB::bind_method(_MD("get_item_shadow_cull_mask"),&Light2D::get_item_shadow_cull_mask); + ClassDB::bind_method(D_METHOD("set_item_shadow_cull_mask","item_shadow_cull_mask"),&Light2D::set_item_shadow_cull_mask); + ClassDB::bind_method(D_METHOD("get_item_shadow_cull_mask"),&Light2D::get_item_shadow_cull_mask); - ClassDB::bind_method(_MD("set_mode","mode"),&Light2D::set_mode); - ClassDB::bind_method(_MD("get_mode"),&Light2D::get_mode); + ClassDB::bind_method(D_METHOD("set_mode","mode"),&Light2D::set_mode); + ClassDB::bind_method(D_METHOD("get_mode"),&Light2D::get_mode); - ClassDB::bind_method(_MD("set_shadow_enabled","enabled"),&Light2D::set_shadow_enabled); - ClassDB::bind_method(_MD("is_shadow_enabled"),&Light2D::is_shadow_enabled); + ClassDB::bind_method(D_METHOD("set_shadow_enabled","enabled"),&Light2D::set_shadow_enabled); + ClassDB::bind_method(D_METHOD("is_shadow_enabled"),&Light2D::is_shadow_enabled); - ClassDB::bind_method(_MD("set_shadow_buffer_size","size"),&Light2D::set_shadow_buffer_size); - ClassDB::bind_method(_MD("get_shadow_buffer_size"),&Light2D::get_shadow_buffer_size); + ClassDB::bind_method(D_METHOD("set_shadow_buffer_size","size"),&Light2D::set_shadow_buffer_size); + ClassDB::bind_method(D_METHOD("get_shadow_buffer_size"),&Light2D::get_shadow_buffer_size); - ClassDB::bind_method(_MD("set_shadow_gradient_length","multiplier"),&Light2D::set_shadow_gradient_length); - ClassDB::bind_method(_MD("get_shadow_gradient_length"),&Light2D::get_shadow_gradient_length); + ClassDB::bind_method(D_METHOD("set_shadow_gradient_length","multiplier"),&Light2D::set_shadow_gradient_length); + ClassDB::bind_method(D_METHOD("get_shadow_gradient_length"),&Light2D::get_shadow_gradient_length); - ClassDB::bind_method(_MD("set_shadow_filter","filter"),&Light2D::set_shadow_filter); - ClassDB::bind_method(_MD("get_shadow_filter"),&Light2D::get_shadow_filter); + ClassDB::bind_method(D_METHOD("set_shadow_filter","filter"),&Light2D::set_shadow_filter); + ClassDB::bind_method(D_METHOD("get_shadow_filter"),&Light2D::get_shadow_filter); - ClassDB::bind_method(_MD("set_shadow_color","shadow_color"),&Light2D::set_shadow_color); - ClassDB::bind_method(_MD("get_shadow_color"),&Light2D::get_shadow_color); + ClassDB::bind_method(D_METHOD("set_shadow_color","shadow_color"),&Light2D::set_shadow_color); + ClassDB::bind_method(D_METHOD("get_shadow_color"),&Light2D::get_shadow_color); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled"); |