mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:38:28 +00:00
replaced :var by :Variant in documentation, fixes #2897
This commit is contained in:
parent
534c8e74b9
commit
f2183a5e09
|
@ -1977,7 +1977,7 @@ void _Thread::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("start:Error","instance","method","userdata","priority"),&_Thread::start,DEFVAL(Variant()),DEFVAL(PRIORITY_NORMAL));
|
||||
ObjectTypeDB::bind_method(_MD("get_id"),&_Thread::get_id);
|
||||
ObjectTypeDB::bind_method(_MD("is_active"),&_Thread::is_active);
|
||||
ObjectTypeDB::bind_method(_MD("wait_to_finish:var"),&_Thread::wait_to_finish);
|
||||
ObjectTypeDB::bind_method(_MD("wait_to_finish:Variant"),&_Thread::wait_to_finish);
|
||||
|
||||
BIND_CONSTANT( PRIORITY_LOW );
|
||||
BIND_CONSTANT( PRIORITY_NORMAL );
|
||||
|
|
|
@ -127,7 +127,7 @@ Error PacketPeer::_get_packet_error() const {
|
|||
void PacketPeer::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_var"),&PacketPeer::_bnd_get_var);
|
||||
ObjectTypeDB::bind_method(_MD("put_var", "var:var"),&PacketPeer::put_var);
|
||||
ObjectTypeDB::bind_method(_MD("put_var", "var:Variant"),&PacketPeer::put_var);
|
||||
ObjectTypeDB::bind_method(_MD("get_packet"),&PacketPeer::_get_packet);
|
||||
ObjectTypeDB::bind_method(_MD("put_packet:Error", "buffer"),&PacketPeer::_put_packet);
|
||||
ObjectTypeDB::bind_method(_MD("get_packet_error:Error"),&PacketPeer::_get_packet_error);
|
||||
|
|
|
@ -405,7 +405,7 @@ void StreamPeer::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("put_float","val"),&StreamPeer::put_float);
|
||||
ObjectTypeDB::bind_method(_MD("put_double","val"),&StreamPeer::put_double);
|
||||
ObjectTypeDB::bind_method(_MD("put_utf8_string","val"),&StreamPeer::put_utf8_string);
|
||||
ObjectTypeDB::bind_method(_MD("put_var","val:var"),&StreamPeer::put_var);
|
||||
ObjectTypeDB::bind_method(_MD("put_var","val:Variant"),&StreamPeer::put_var);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("get_8"),&StreamPeer::get_8);
|
||||
ObjectTypeDB::bind_method(_MD("get_u8"),&StreamPeer::get_u8);
|
||||
|
@ -419,5 +419,5 @@ void StreamPeer::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("get_double"),&StreamPeer::get_double);
|
||||
ObjectTypeDB::bind_method(_MD("get_string","bytes"),&StreamPeer::get_string);
|
||||
ObjectTypeDB::bind_method(_MD("get_utf8_string","bytes"),&StreamPeer::get_utf8_string);
|
||||
ObjectTypeDB::bind_method(_MD("get_var:var"),&StreamPeer::get_var);
|
||||
ObjectTypeDB::bind_method(_MD("get_var:Variant"),&StreamPeer::get_var);
|
||||
}
|
||||
|
|
|
@ -1613,7 +1613,7 @@ void Object::_bind_methods() {
|
|||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"call_deferred",&Object::_call_deferred_bind,mi,defargs);
|
||||
}
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("callv:var","method","arg_array"),&Object::callv);
|
||||
ObjectTypeDB::bind_method(_MD("callv:Variant","method","arg_array"),&Object::callv);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("has_method"),&Object::has_method);
|
||||
|
||||
|
|
|
@ -482,8 +482,8 @@ void UndoRedo::_bind_methods() {
|
|||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"add_undo_method",&UndoRedo::_add_undo_method,mi,defargs);
|
||||
}
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("add_do_property","object", "property", "value:var"),&UndoRedo::add_do_property);
|
||||
ObjectTypeDB::bind_method(_MD("add_undo_property","object", "property", "value:var"),&UndoRedo::add_undo_property);
|
||||
ObjectTypeDB::bind_method(_MD("add_do_property","object", "property", "value:Variant"),&UndoRedo::add_do_property);
|
||||
ObjectTypeDB::bind_method(_MD("add_undo_property","object", "property", "value:Variant"),&UndoRedo::add_undo_property);
|
||||
ObjectTypeDB::bind_method(_MD("add_do_reference","object"),&UndoRedo::add_do_reference);
|
||||
ObjectTypeDB::bind_method(_MD("add_undo_reference","object"),&UndoRedo::add_undo_reference);
|
||||
ObjectTypeDB::bind_method(_MD("clear_history"),&UndoRedo::clear_history);
|
||||
|
|
|
@ -1307,7 +1307,7 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
|||
} break;
|
||||
case STR_TO_VAR: {
|
||||
|
||||
MethodInfo mi("str2var:var",PropertyInfo(Variant::STRING,"string"));
|
||||
MethodInfo mi("str2var:Variant",PropertyInfo(Variant::STRING,"string"));
|
||||
mi.return_val.type=Variant::NIL;
|
||||
return mi;
|
||||
} break;
|
||||
|
@ -1338,7 +1338,7 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
|||
} break;
|
||||
case HASH: {
|
||||
|
||||
MethodInfo mi("hash",PropertyInfo(Variant::NIL,"var:var"));
|
||||
MethodInfo mi("hash",PropertyInfo(Variant::NIL,"var:Variant"));
|
||||
mi.return_val.type=Variant::INT;
|
||||
return mi;
|
||||
} break;
|
||||
|
|
|
@ -1370,7 +1370,7 @@ Variant GDFunctionState::resume(const Variant& p_arg) {
|
|||
|
||||
void GDFunctionState::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("resume:var","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
|
||||
ObjectTypeDB::bind_method(_MD("resume:Variant","arg"),&GDFunctionState::resume,DEFVAL(Variant()));
|
||||
ObjectTypeDB::bind_method(_MD("is_valid"),&GDFunctionState::is_valid);
|
||||
ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"_signal_callback",&GDFunctionState::_signal_callback,MethodInfo("_signal_callback"));
|
||||
|
||||
|
|
|
@ -572,8 +572,8 @@ void ShaderMaterial::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("set_shader","shader:Shader"), &ShaderMaterial::set_shader );
|
||||
ObjectTypeDB::bind_method(_MD("get_shader:Shader"), &ShaderMaterial::get_shader );
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("set_shader_param","param","value:var"), &ShaderMaterial::set_shader_param);
|
||||
ObjectTypeDB::bind_method(_MD("get_shader_param:var","param"), &ShaderMaterial::get_shader_param);
|
||||
ObjectTypeDB::bind_method(_MD("set_shader_param","param","value:Variant"), &ShaderMaterial::set_shader_param);
|
||||
ObjectTypeDB::bind_method(_MD("get_shader_param:Variant","param"), &ShaderMaterial::get_shader_param);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_shader_changed"), &ShaderMaterial::_shader_changed );
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ void ShaderGraph::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("clear","shader_type"),&ShaderGraph::clear);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("node_set_state","shader_type","id","state"),&ShaderGraph::node_set_state);
|
||||
ObjectTypeDB::bind_method(_MD("node_get_state:var","shader_type","id"),&ShaderGraph::node_get_state);
|
||||
ObjectTypeDB::bind_method(_MD("node_get_state:Variant","shader_type","id"),&ShaderGraph::node_get_state);
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("_set_data"),&ShaderGraph::_set_data);
|
||||
ObjectTypeDB::bind_method(_MD("_get_data"),&ShaderGraph::_get_data);
|
||||
|
|
|
@ -108,8 +108,8 @@ void Shape2D::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("get_custom_solver_bias"),&Shape2D::get_custom_solver_bias);
|
||||
ObjectTypeDB::bind_method(_MD("collide","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide);
|
||||
ObjectTypeDB::bind_method(_MD("collide_with_motion","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion);
|
||||
ObjectTypeDB::bind_method(_MD("collide_and_get_contacts:var","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide_and_get_contacts);
|
||||
ObjectTypeDB::bind_method(_MD("collide_with_motion_and_get_contacts:var","local_xform","local_motion","with_shape:Shape2D","shape_xform","shape_motion"),&Shape2D::collide_with_motion_and_get_contacts);
|
||||
ObjectTypeDB::bind_method(_MD("collide_and_get_contacts:Variant","local_xform","with_shape:Shape2D","shape_xform"),&Shape2D::collide_and_get_contacts);
|
||||
ObjectTypeDB::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);
|
||||
|
||||
ADD_PROPERTY( PropertyInfo(Variant::REAL,"custom_solver_bias",PROPERTY_HINT_RANGE,"0,1,0.001"),_SCS("set_custom_solver_bias"),_SCS("get_custom_solver_bias"));
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ void Physics2DDirectBodyState::_bind_methods() {
|
|||
ObjectTypeDB::bind_method(_MD("get_contact_collider_id","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_id);
|
||||
ObjectTypeDB::bind_method(_MD("get_contact_collider_object","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_object);
|
||||
ObjectTypeDB::bind_method(_MD("get_contact_collider_shape","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_shape);
|
||||
ObjectTypeDB::bind_method(_MD("get_contact_collider_shape_metadata:var","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_shape_metadata);
|
||||
ObjectTypeDB::bind_method(_MD("get_contact_collider_shape_metadata:Variant","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_shape_metadata);
|
||||
ObjectTypeDB::bind_method(_MD("get_contact_collider_velocity_at_pos","contact_idx"),&Physics2DDirectBodyState::get_contact_collider_velocity_at_pos);
|
||||
ObjectTypeDB::bind_method(_MD("get_step"),&Physics2DDirectBodyState::get_step);
|
||||
ObjectTypeDB::bind_method(_MD("integrate_forces"),&Physics2DDirectBodyState::integrate_forces);
|
||||
|
|
|
@ -2256,6 +2256,7 @@ void ScriptEditor::_history_back(){
|
|||
void ScriptEditor::set_scene_root_script( Ref<Script> p_script ) {
|
||||
|
||||
bool open_dominant = EditorSettings::get_singleton()->get("text_editor/open_dominant_script_on_scene_change");
|
||||
|
||||
if (bool(EditorSettings::get_singleton()->get("external_editor/use_external_editor")))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue