Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer This is a step towards fixing #56
This commit is contained in:
parent
bf64df4427
commit
411ee71b4d
297 changed files with 5445 additions and 5443 deletions
|
|
@ -259,33 +259,33 @@ int CanvasLayer::get_sort_index() {
|
|||
void CanvasLayer::_bind_methods() {
|
||||
|
||||
|
||||
ClassDB::bind_method(_MD("set_layer","layer"),&CanvasLayer::set_layer);
|
||||
ClassDB::bind_method(_MD("get_layer"),&CanvasLayer::get_layer);
|
||||
ClassDB::bind_method(D_METHOD("set_layer","layer"),&CanvasLayer::set_layer);
|
||||
ClassDB::bind_method(D_METHOD("get_layer"),&CanvasLayer::get_layer);
|
||||
|
||||
ClassDB::bind_method(_MD("set_transform","transform"),&CanvasLayer::set_transform);
|
||||
ClassDB::bind_method(_MD("get_transform"),&CanvasLayer::get_transform);
|
||||
ClassDB::bind_method(D_METHOD("set_transform","transform"),&CanvasLayer::set_transform);
|
||||
ClassDB::bind_method(D_METHOD("get_transform"),&CanvasLayer::get_transform);
|
||||
|
||||
ClassDB::bind_method(_MD("set_offset","offset"),&CanvasLayer::set_offset);
|
||||
ClassDB::bind_method(_MD("get_offset"),&CanvasLayer::get_offset);
|
||||
ClassDB::bind_method(D_METHOD("set_offset","offset"),&CanvasLayer::set_offset);
|
||||
ClassDB::bind_method(D_METHOD("get_offset"),&CanvasLayer::get_offset);
|
||||
|
||||
ClassDB::bind_method(_MD("set_rotation","radians"),&CanvasLayer::set_rotation);
|
||||
ClassDB::bind_method(_MD("get_rotation"),&CanvasLayer::get_rotation);
|
||||
ClassDB::bind_method(D_METHOD("set_rotation","radians"),&CanvasLayer::set_rotation);
|
||||
ClassDB::bind_method(D_METHOD("get_rotation"),&CanvasLayer::get_rotation);
|
||||
|
||||
ClassDB::bind_method(_MD("set_rotationd","degrees"),&CanvasLayer::set_rotationd);
|
||||
ClassDB::bind_method(_MD("get_rotationd"),&CanvasLayer::get_rotationd);
|
||||
ClassDB::bind_method(D_METHOD("set_rotationd","degrees"),&CanvasLayer::set_rotationd);
|
||||
ClassDB::bind_method(D_METHOD("get_rotationd"),&CanvasLayer::get_rotationd);
|
||||
|
||||
// TODO: Obsolete those two methods (old name) properly (GH-4397)
|
||||
ClassDB::bind_method(_MD("_set_rotationd","degrees"),&CanvasLayer::_set_rotationd);
|
||||
ClassDB::bind_method(_MD("_get_rotationd"),&CanvasLayer::_get_rotationd);
|
||||
ClassDB::bind_method(D_METHOD("_set_rotationd","degrees"),&CanvasLayer::_set_rotationd);
|
||||
ClassDB::bind_method(D_METHOD("_get_rotationd"),&CanvasLayer::_get_rotationd);
|
||||
|
||||
ClassDB::bind_method(_MD("set_scale","scale"),&CanvasLayer::set_scale);
|
||||
ClassDB::bind_method(_MD("get_scale"),&CanvasLayer::get_scale);
|
||||
ClassDB::bind_method(D_METHOD("set_scale","scale"),&CanvasLayer::set_scale);
|
||||
ClassDB::bind_method(D_METHOD("get_scale"),&CanvasLayer::get_scale);
|
||||
|
||||
ClassDB::bind_method(_MD("set_custom_viewport","viewport:Viewport"),&CanvasLayer::set_custom_viewport);
|
||||
ClassDB::bind_method(_MD("get_custom_viewport:Viewport"),&CanvasLayer::get_custom_viewport);
|
||||
ClassDB::bind_method(D_METHOD("set_custom_viewport","viewport:Viewport"),&CanvasLayer::set_custom_viewport);
|
||||
ClassDB::bind_method(D_METHOD("get_custom_viewport:Viewport"),&CanvasLayer::get_custom_viewport);
|
||||
|
||||
ClassDB::bind_method(_MD("get_world_2d:World2D"),&CanvasLayer::get_world_2d);
|
||||
//ClassDB::bind_method(_MD("get_viewport"),&CanvasLayer::get_viewport);
|
||||
ClassDB::bind_method(D_METHOD("get_world_2d:World2D"),&CanvasLayer::get_world_2d);
|
||||
//ClassDB::bind_method(D_METHOD("get_viewport"),&CanvasLayer::get_viewport);
|
||||
|
||||
ADD_PROPERTY( PropertyInfo(Variant::INT,"layer",PROPERTY_HINT_RANGE,"-128,128,1"),"set_layer","get_layer") ;
|
||||
//ADD_PROPERTY( PropertyInfo(Variant::MATRIX32,"transform",PROPERTY_HINT_RANGE),"set_transform","get_transform") ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue