diff options
138 files changed, 8426 insertions, 2324 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index abe8b9b715..a446094643 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -1705,7 +1705,7 @@ Variant _File::get_var() const { ERR_FAIL_COND_V(!f, Variant()); uint32_t len = get_32(); PoolVector<uint8_t> buff = get_buffer(len); - ERR_FAIL_COND_V(buff.size() != len, Variant()); + ERR_FAIL_COND_V((uint32_t)buff.size() != len, Variant()); PoolVector<uint8_t>::Read r = buff.read(); diff --git a/core/class_db.cpp b/core/class_db.cpp index 1cb287a143..872e466e72 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -535,7 +535,13 @@ void ClassDB::get_method_list(StringName p_class, List<MethodInfo> *p_methods, b minfo.return_val = method->get_return_info(); minfo.flags = method->get_hint_flags(); - minfo.default_arguments = method->get_default_arguments(); + + int defval_count = method->get_default_argument_count(); + minfo.default_arguments.resize(defval_count); + + for (int i = 0; i < defval_count; i++) { + minfo.default_arguments[i] = method->get_default_argument(defval_count - i - 1); + } p_methods->push_back(minfo); } diff --git a/core/helper/math_fieldwise.cpp b/core/helper/math_fieldwise.cpp index 2ce2a70866..228611f8b3 100644 --- a/core/helper/math_fieldwise.cpp +++ b/core/helper/math_fieldwise.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* fieldwise.cpp */ +/* math_fieldwise.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/core/helper/math_fieldwise.h b/core/helper/math_fieldwise.h index 4671703f41..400df040a4 100644 --- a/core/helper/math_fieldwise.h +++ b/core/helper/math_fieldwise.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* fieldwise.h */ +/* math_fieldwise.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/core/image.cpp b/core/image.cpp index bb1ce2cee3..4d1f32c360 100644 --- a/core/image.cpp +++ b/core/image.cpp @@ -1256,9 +1256,9 @@ void Image::create(const char **p_xpm) { if (*line_ptr == '#') { line_ptr++; - uint8_t col_r; - uint8_t col_g; - uint8_t col_b; + uint8_t col_r = 0; + uint8_t col_g = 0; + uint8_t col_b = 0; //uint8_t col_a=255; for (int i = 0; i < 6; i++) { diff --git a/core/io/file_access_compressed.h b/core/io/file_access_compressed.h index 2fe1428752..ba84c9767c 100644 --- a/core/io/file_access_compressed.h +++ b/core/io/file_access_compressed.h @@ -37,11 +37,11 @@ class FileAccessCompressed : public FileAccess { Compression::Mode cmode; bool writing; - int write_pos; + uint32_t write_pos; uint8_t *write_ptr; - int write_buffer_size; - int write_max; - int block_size; + uint32_t write_buffer_size; + uint32_t write_max; + uint32_t block_size; mutable bool read_eof; mutable bool at_end; @@ -57,7 +57,7 @@ class FileAccessCompressed : public FileAccess { mutable int read_block_size; mutable int read_pos; Vector<ReadBlock> read_blocks; - int read_total; + uint32_t read_total; String magic; mutable Vector<uint8_t> buffer; diff --git a/core/io/file_access_encrypted.cpp b/core/io/file_access_encrypted.cpp index cf82d04ac5..12503f3be4 100644 --- a/core/io/file_access_encrypted.cpp +++ b/core/io/file_access_encrypted.cpp @@ -73,14 +73,14 @@ Error FileAccessEncrypted::open_and_parse(FileAccess *p_base, const Vector<uint8 length = p_base->get_64(); base = p_base->get_pos(); ERR_FAIL_COND_V(p_base->get_len() < base + length, ERR_FILE_CORRUPT); - int ds = length; + uint32_t ds = length; if (ds % 16) { ds += 16 - (ds % 16); } data.resize(ds); - int blen = p_base->get_buffer(data.ptr(), ds); + uint32_t blen = p_base->get_buffer(data.ptr(), ds); ERR_FAIL_COND_V(blen != ds, ERR_FILE_CORRUPT); aes256_context ctx; diff --git a/core/io/file_access_encrypted.h b/core/io/file_access_encrypted.h index 3df2806a7a..74d00a5a8f 100644 --- a/core/io/file_access_encrypted.h +++ b/core/io/file_access_encrypted.h @@ -48,7 +48,7 @@ private: size_t base; size_t length; Vector<uint8_t> data; - mutable size_t pos; + mutable int pos; mutable bool eofed; public: diff --git a/core/io/file_access_network.cpp b/core/io/file_access_network.cpp index be31076557..d8b8c8c200 100644 --- a/core/io/file_access_network.cpp +++ b/core/io/file_access_network.cpp @@ -244,14 +244,14 @@ FileAccessNetworkClient::~FileAccessNetworkClient() { memdelete(sem); } -void FileAccessNetwork::_set_block(size_t p_offset, const Vector<uint8_t> &p_block) { +void FileAccessNetwork::_set_block(int p_offset, const Vector<uint8_t> &p_block) { int page = p_offset / page_size; ERR_FAIL_INDEX(page, pages.size()); if (page < pages.size() - 1) { ERR_FAIL_COND(p_block.size() != page_size); } else { - ERR_FAIL_COND((p_block.size() != (total_size % page_size))); + ERR_FAIL_COND((p_block.size() != (int)(total_size % page_size))); } buffer_mutex->lock(); diff --git a/core/io/file_access_network.h b/core/io/file_access_network.h index d6010cdbac..cd5046f007 100644 --- a/core/io/file_access_network.h +++ b/core/io/file_access_network.h @@ -97,7 +97,7 @@ class FileAccessNetwork : public FileAccess { mutable int last_page; mutable uint8_t *last_page_buff; - uint32_t page_size; + int page_size; int read_ahead; int max_pages; @@ -121,7 +121,7 @@ class FileAccessNetwork : public FileAccess { friend class FileAccessNetworkClient; void _queue_page(int p_page) const; void _respond(size_t p_len, Error p_status); - void _set_block(size_t p_offset, const Vector<uint8_t> &p_block); + void _set_block(int p_offset, const Vector<uint8_t> &p_block); public: enum Command { diff --git a/core/io/marshalls.cpp b/core/io/marshalls.cpp index af7db904e9..0834d6c321 100644 --- a/core/io/marshalls.cpp +++ b/core/io/marshalls.cpp @@ -333,14 +333,14 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int len -= 12; buf += 12; - int total = namecount + subnamecount; + uint32_t total = namecount + subnamecount; if (flags & 2) total++; if (r_len) (*r_len) += 12; - for (int i = 0; i < total; i++) { + for (uint32_t i = 0; i < total; i++) { ERR_FAIL_COND_V((int)len < 4, ERR_INVALID_DATA); strlen = decode_uint32(buf); @@ -566,7 +566,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int if (count) { data.resize(count); PoolVector<uint8_t>::Write w = data.write(); - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { w[i] = buf[i]; } @@ -597,7 +597,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int //const int*rbuf=(const int*)buf; data.resize(count); PoolVector<int>::Write w = data.write(); - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { w[i] = decode_uint32(&buf[i * 4]); } @@ -624,7 +624,7 @@ Error decode_variant(Variant &r_variant, const uint8_t *p_buffer, int p_len, int //const float*rbuf=(const float*)buf; data.resize(count); PoolVector<float>::Write w = data.write(); - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { w[i] = decode_float(&buf[i * 4]); } diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index f44492248e..d090d7a20b 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -102,7 +102,7 @@ StringName ResourceInteractiveLoaderBinary::_get_string() { uint32_t id = f->get_32(); if (id & 0x80000000) { - uint32_t len = id & 0x7FFFFFFF; + int len = id & 0x7FFFFFFF; if (len > str_buf.size()) { str_buf.resize(len); } @@ -336,9 +336,9 @@ Error ResourceInteractiveLoaderBinary::parse_variant(Variant &r_v) { } break; case OBJECT_EXTERNAL_RESOURCE_INDEX: { //new file format, just refers to an index in the external list - uint32_t erindex = f->get_32(); + int erindex = f->get_32(); - if (erindex >= external_resources.size()) { + if (erindex < 0 || erindex >= external_resources.size()) { WARN_PRINT("Broken external resource! (index out of size"); r_v = Variant(); } else { diff --git a/core/io/translation_loader_po.cpp b/core/io/translation_loader_po.cpp index 353eabea45..92af247823 100644 --- a/core/io/translation_loader_po.cpp +++ b/core/io/translation_loader_po.cpp @@ -51,8 +51,8 @@ RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error, const S Ref<Translation> translation = Ref<Translation>(memnew(Translation)); int line = 1; - bool skip_this; - bool skip_next; + bool skip_this = false; + bool skip_next = false; while (true) { diff --git a/core/io/xml_parser.cpp b/core/io/xml_parser.cpp index 62110bfe24..3a4be7cd13 100644 --- a/core/io/xml_parser.cpp +++ b/core/io/xml_parser.cpp @@ -385,7 +385,7 @@ void XMLParser::_bind_methods() { Error XMLParser::read() { // if not end reached, parse the node - if (P && (P - data) < length - 1 && *P != 0) { + if (P && (P - data) < (int64_t)length - 1 && *P != 0) { _parse_current_node(); return OK; } diff --git a/core/io/xml_parser.h b/core/io/xml_parser.h index 28c57b567f..26616ed94a 100644 --- a/core/io/xml_parser.h +++ b/core/io/xml_parser.h @@ -67,7 +67,7 @@ public: private: char *data; char *P; - int length; + uint64_t length; void unescape(String &p_str); Vector<String> special_characters; String node_name; diff --git a/core/math/a_star.h b/core/math/a_star.h index d2d2166719..75b860d0a4 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* a_star.h */ +/* a_star.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/core/math/face3.cpp b/core/math/face3.cpp index 748faad28f..e1b172e491 100644 --- a/core/math/face3.cpp +++ b/core/math/face3.cpp @@ -296,7 +296,7 @@ void Face3::get_support(const Vector3 &p_normal, const Transform &p_transform, V /** FIND SUPPORT VERTEX **/ int vert_support_idx = -1; - real_t support_max; + real_t support_max = 0; for (int i = 0; i < 3; i++) { diff --git a/core/math/quick_hull.cpp b/core/math/quick_hull.cpp index e9a383df40..e0137b6921 100644 --- a/core/math/quick_hull.cpp +++ b/core/math/quick_hull.cpp @@ -76,7 +76,7 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me int simplex[4]; { - real_t max, min; + real_t max = 0, min = 0; for (int i = 0; i < p_points.size(); i++) { @@ -99,7 +99,7 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me //third vertex is one most further away from the line { - real_t maxd; + real_t maxd = 0; Vector3 rel12 = p_points[simplex[0]] - p_points[simplex[1]]; for (int i = 0; i < p_points.size(); i++) { @@ -121,7 +121,7 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me //fourth vertex is the one most further away from the plane { - real_t maxd; + real_t maxd = 0; Plane p(p_points[simplex[0]], p_points[simplex[1]], p_points[simplex[2]]); for (int i = 0; i < p_points.size(); i++) { @@ -389,8 +389,8 @@ Error QuickHull::build(const Vector<Vector3> &p_points, Geometry::MeshData &r_me for (int i = 0; i < f.indices.size(); i++) { - uint32_t a = E->get().indices[i]; - uint32_t b = E->get().indices[(i + 1) % f.indices.size()]; + int a = E->get().indices[i]; + int b = E->get().indices[(i + 1) % f.indices.size()]; Edge e(a, b); Map<Edge, RetFaceConnect>::Element *F = ret_edges.find(e); diff --git a/core/os/os.cpp b/core/os/os.cpp index 1292b7eeed..764f7fe6e6 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -64,12 +64,13 @@ void OS::debug_break(){ void OS::print_error(const char *p_function, const char *p_file, int p_line, const char *p_code, const char *p_rationale, ErrorType p_type) { - const char *err_type; + const char *err_type = "**ERROR**"; switch (p_type) { case ERR_ERROR: err_type = "**ERROR**"; break; case ERR_WARNING: err_type = "**WARNING**"; break; case ERR_SCRIPT: err_type = "**SCRIPT ERROR**"; break; case ERR_SHADER: err_type = "**SHADER ERROR**"; break; + default: ERR_PRINT("Unknown error type"); break; } if (p_rationale && *p_rationale) diff --git a/core/packed_data_container.cpp b/core/packed_data_container.cpp index 4040680c6d..ad8438e416 100644 --- a/core/packed_data_container.cpp +++ b/core/packed_data_container.cpp @@ -61,7 +61,7 @@ Variant PackedDataContainer::_iter_init_ofs(const Array &p_iter, uint32_t p_offs Variant PackedDataContainer::_iter_next_ofs(const Array &p_iter, uint32_t p_offset) { Array ref = p_iter; - uint32_t size = _size(p_offset); + int size = _size(p_offset); if (ref.size() != 1) return false; int pos = ref[0]; @@ -74,7 +74,7 @@ Variant PackedDataContainer::_iter_next_ofs(const Array &p_iter, uint32_t p_offs Variant PackedDataContainer::_iter_get_ofs(const Variant &p_iter, uint32_t p_offset) { - uint32_t size = _size(p_offset); + int size = _size(p_offset); int pos = p_iter; if (pos < 0 || pos >= size) return Variant(); @@ -164,7 +164,7 @@ Variant PackedDataContainer::_key_at_ofs(uint32_t p_ofs, const Variant &p_key, b if (p_key.is_num()) { int idx = p_key; - uint32_t len = decode_uint32(r + 4); + int len = decode_uint32(r + 4); if (idx < 0 || idx >= len) { err = true; return Variant(); @@ -183,7 +183,7 @@ Variant PackedDataContainer::_key_at_ofs(uint32_t p_ofs, const Variant &p_key, b uint32_t len = decode_uint32(r + 4); bool found = false; - for (int i = 0; i < len; i++) { + for (uint32_t i = 0; i < len; i++) { uint32_t khash = decode_uint32(r + 8 + i * 12 + 0); if (khash == hash) { Variant key = _get_at_ofs(decode_uint32(r + 8 + i * 12 + 4), rd.ptr(), err); diff --git a/core/pool_allocator.cpp b/core/pool_allocator.cpp index c122d21545..c5f6d0dde0 100644 --- a/core/pool_allocator.cpp +++ b/core/pool_allocator.cpp @@ -339,9 +339,9 @@ Error PoolAllocator::resize(ID p_mem, int p_new_size) { ERR_FAIL_COND_V(e->lock, ERR_ALREADY_IN_USE); } - int alloc_size = aligned(p_new_size); + uint32_t alloc_size = aligned(p_new_size); - if (aligned(e->len) == alloc_size) { + if ((uint32_t)aligned(e->len) == alloc_size) { e->len = p_new_size; mt_unlock(); @@ -374,7 +374,7 @@ Error PoolAllocator::resize(ID p_mem, int p_new_size) { } //no need to move stuff around, it fits before the next block - int next_pos; + uint32_t next_pos; if (entry_indices_pos + 1 == entry_count) { next_pos = pool_size; // - static_area_size; } else { diff --git a/core/project_settings.cpp b/core/project_settings.cpp index ce1d7918db..a74917162b 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* globals.cpp */ +/* project_settings.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/core/project_settings.h b/core/project_settings.h index 5c8907c74e..718ab2a011 100644 --- a/core/project_settings.h +++ b/core/project_settings.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* globals.h */ +/* project_settings.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/core/reference.h b/core/reference.h index 5fe8296314..ca3ae60418 100644 --- a/core/reference.h +++ b/core/reference.h @@ -62,7 +62,7 @@ public: template <class T> class Ref { - T *reference; + T *reference = NULL; void ref(const Ref &p_from) { diff --git a/core/ustring.cpp b/core/ustring.cpp index ee07c7b11b..8273ed144b 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -588,7 +588,7 @@ String String::camelcase_to_underscore(bool lowercase) const { const char a = 'a', z = 'z'; int start_index = 0; - for (size_t i = 1; i < this->size(); i++) { + for (int i = 1; i < this->size(); i++) { bool is_upper = cstr[i] >= A && cstr[i] <= Z; bool is_number = cstr[i] >= '0' && cstr[i] <= '9'; bool are_next_2_lower = false; @@ -3655,12 +3655,12 @@ String String::sprintf(const Array &values, bool *error) const { CharType *self = (CharType *)c_str(); bool in_format = false; int value_index = 0; - int min_chars; - int min_decimals; - bool in_decimals; - bool pad_with_zeroes; - bool left_justified; - bool show_sign; + int min_chars = 0; + int min_decimals = 0; + bool in_decimals = false; + bool pad_with_zeroes = false; + bool left_justified = false; + bool show_sign = false; *error = true; @@ -3687,12 +3687,12 @@ String String::sprintf(const Array &values, bool *error) const { } int64_t value = values[value_index]; - int base; + int base = 16; bool capitalize = false; switch (c) { case 'd': base = 10; break; case 'o': base = 8; break; - case 'x': base = 16; break; + case 'x': break; case 'X': base = 16; capitalize = true; @@ -3842,7 +3842,7 @@ String String::sprintf(const Array &values, bool *error) const { } break; } - case '.': { // Float separtor. + case '.': { // Float separator. if (in_decimals) { return "too many decimal points in format"; } @@ -3851,7 +3851,7 @@ String String::sprintf(const Array &values, bool *error) const { break; } - case '*': { // Dyanmic width, based on value. + case '*': { // Dynamic width, based on value. if (value_index >= values.size()) { return "not enough arguments for format string"; } diff --git a/core/vmap.h b/core/vmap.h index f0977341ec..8165a919b6 100644 --- a/core/vmap.h +++ b/core/vmap.h @@ -60,9 +60,13 @@ class VMap { int low = 0; int high = _data.size() - 1; - int middle; const _Pair *a = &_data[0]; + int middle = 0; +#if DEBUG_ENABLED + if (low > high) + ERR_PRINT("low > high, this may be a bug"); +#endif while (low <= high) { middle = (low + high) / 2; diff --git a/core/vset.h b/core/vset.h index 7b12ae0b25..67af6c1a4c 100644 --- a/core/vset.h +++ b/core/vset.h @@ -46,8 +46,13 @@ class VSet { int low = 0; int high = _data.size() - 1; - int middle; const T *a = &_data[0]; + int middle = 0; + +#if DEBUG_ENABLED + if (low > high) + ERR_PRINT("low > high, this may be a bug"); +#endif while (low <= high) { middle = (low + high) / 2; diff --git a/doc/base/classes.xml b/doc/base/classes.xml index e0b1ea3870..b537a7b152 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -61,7 +61,7 @@ </description> </method> <method name="assert"> - <return type="Nil"> + <return type="void"> </return> <argument index="0" name="condition" type="bool"> </argument> @@ -262,7 +262,7 @@ </description> </method> <method name="funcref"> - <return type="FuncRef"> + <return type="Object"> </return> <argument index="0" name="instance" type="Object"> </argument> @@ -275,7 +275,7 @@ <method name="hash"> <return type="int"> </return> - <argument index="0" name="var:Variant" type="Variant"> + <argument index="0" name="var" type="Variant"> </argument> <description> Hash the variable passed and return an integer. @@ -299,6 +299,18 @@ Get an object by its ID. </description> </method> + <method name="inverse_lerp"> + <return type="float"> + </return> + <argument index="0" name="from" type="float"> + </argument> + <argument index="1" name="to" type="float"> + </argument> + <argument index="2" name="value" type="float"> + </argument> + <description> + </description> + </method> <method name="is_inf"> <return type="float"> </return> @@ -317,6 +329,14 @@ Returns whether s is a NaN (Not-A-Number) value. </description> </method> + <method name="len"> + <return type="int"> + </return> + <argument index="0" name="var" type="Variant"> + </argument> + <description> + </description> + </method> <method name="lerp"> <return type="float"> </return> @@ -340,7 +360,7 @@ </description> </method> <method name="load"> - <return type="Resource"> + <return type="Object"> </return> <argument index="0" name="path" type="String"> </argument> @@ -418,64 +438,44 @@ Preload a resource from the filesystem. The resource is loaded during script parsing. </description> </method> - <method name="print"> - <return type="Nil"> + <method name="print" qualifiers="vararg"> + <return type="void"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Print one or more arguments to strings in the best way possible to a console line. </description> </method> <method name="print_stack"> - <return type="Nil"> + <return type="void"> </return> <description> Print a stack track at code location, only works when running with debugger turned on. </description> </method> - <method name="printerr"> - <return type="Nil"> + <method name="printerr" qualifiers="vararg"> + <return type="void"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Print one or more arguments to strings in the best way possible to standard error line. </description> </method> - <method name="printraw"> - <return type="Nil"> + <method name="printraw" qualifiers="vararg"> + <return type="void"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Print one or more arguments to strings in the best way possible to console. No newline is added at the end. </description> </method> - <method name="prints"> - <return type="Nil"> + <method name="prints" qualifiers="vararg"> + <return type="void"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Print one or more arguments to the console with a space between each argument. </description> </method> - <method name="printt"> - <return type="Nil"> + <method name="printt" qualifiers="vararg"> + <return type="void"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Print one or more arguments to the console with a tab between each argument. </description> @@ -524,21 +524,35 @@ </description> </method> <method name="randomize"> - <return type="Nil"> + <return type="void"> </return> <description> Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time. </description> </method> - <method name="range"> + <method name="range" qualifiers="vararg"> <return type="Array"> </return> - <argument index="0" name="..." type="Variant"> - </argument> <description> Return an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial, final-1, increment). </description> </method> + <method name="range_lerp"> + <return type="float"> + </return> + <argument index="0" name="value" type="float"> + </argument> + <argument index="1" name="istart" type="float"> + </argument> + <argument index="2" name="istop" type="float"> + </argument> + <argument index="3" name="ostart" type="float"> + </argument> + <argument index="4" name="ostop" type="float"> + </argument> + <description> + </description> + </method> <method name="round"> <return type="float"> </return> @@ -549,7 +563,7 @@ </description> </method> <method name="seed"> - <return type="Nil"> + <return type="void"> </return> <argument index="0" name="seed" type="int"> </argument> @@ -604,13 +618,9 @@ Snap float value to a given step. </description> </method> - <method name="str"> + <method name="str" qualifiers="vararg"> <return type="String"> </return> - <argument index="0" name="what" type="Variant"> - </argument> - <argument index="1" name="..." type="Variant"> - </argument> <description> Convert one or more arguments to string in the best way possible. </description> @@ -645,7 +655,7 @@ <method name="to_json"> <return type="String"> </return> - <argument index="0" name="var:Variant" type="Variant"> + <argument index="0" name="var" type="Variant"> </argument> <description> Convert a Variant to json text. @@ -669,7 +679,7 @@ </description> </method> <method name="validate_json"> - <return type="Variant"> + <return type="String"> </return> <argument index="0" name="json" type="String"> </argument> @@ -696,7 +706,7 @@ </description> </method> <method name="weakref"> - <return type="WeakRef"> + <return type="Object"> </return> <argument index="0" name="obj" type="Object"> </argument> @@ -719,13 +729,13 @@ </method> </methods> <constants> - <constant name="PI" value="3.141593"> + <constant name="PI" value="3.141593" enum=""> Constant that represents how many times the diameter of a circumference fits around its perimeter. </constant> - <constant name="INF" value="inf"> + <constant name="INF" value="inf" enum=""> A positive infinity. (For negative infinity, use -INF). </constant> - <constant name="NAN" value="nan"> + <constant name="NAN" value="nan" enum=""> Macro constant that expands to an expression of type float that represents a NaN. The NaN values are used to identify undefined or non-representable values for floating-point elements, such as the square root of negative numbers or the result of 0/0. </constant> @@ -742,6 +752,8 @@ <methods> </methods> <members> + <member name="ARVRServer" type="ARVRServer" setter="" getter="" brief=""> + </member> <member name="AudioServer" type="AudioServer" setter="" getter="" brief=""> [AudioServer] singleton </member> @@ -754,9 +766,6 @@ <member name="Geometry" type="Geometry" setter="" getter="" brief=""> [Geometry] singleton </member> - <member name="ProjectSettings" type="ProjectSettings" setter="" getter="" brief=""> - [ProjectSettings] singleton - </member> <member name="IP" type="IP" setter="" getter="" brief=""> [IP] singleton </member> @@ -781,6 +790,9 @@ <member name="PhysicsServer" type="PhysicsServer" setter="" getter="" brief=""> [PhysicsServer] singleton </member> + <member name="ProjectSettings" type="ProjectSettings" setter="" getter="" brief=""> + [ProjectSettings] singleton + </member> <member name="ResourceLoader" type="ResourceLoader" setter="" getter="" brief=""> [ResourceLoader] singleton </member> @@ -831,7 +843,7 @@ <constant name="VALIGN_BOTTOM" value="2"> Vertical bottom alignment, usually for text-derived classes. </constant> - <constant name="SPKEY" value="16777216"> + <constant name="SPKEY" value="16777216" enum=""> Scancodes with this bit applied are non printable. </constant> <constant name="KEY_ESCAPE" value="16777217"> @@ -1496,191 +1508,191 @@ </constant> <constant name="KEY_MASK_GROUP_SWITCH" value="1073741824"> </constant> - <constant name="BUTTON_LEFT" value="1"> + <constant name="BUTTON_LEFT" value="1" enum=""> Left Mouse Button </constant> - <constant name="BUTTON_RIGHT" value="2"> + <constant name="BUTTON_RIGHT" value="2" enum=""> Right Mouse Button </constant> - <constant name="BUTTON_MIDDLE" value="3"> + <constant name="BUTTON_MIDDLE" value="3" enum=""> Middle Mouse Button </constant> - <constant name="BUTTON_WHEEL_UP" value="4"> + <constant name="BUTTON_WHEEL_UP" value="4" enum=""> Mouse wheel up </constant> - <constant name="BUTTON_WHEEL_DOWN" value="5"> + <constant name="BUTTON_WHEEL_DOWN" value="5" enum=""> Mouse wheel down </constant> - <constant name="BUTTON_WHEEL_LEFT" value="6"> + <constant name="BUTTON_WHEEL_LEFT" value="6" enum=""> Mouse wheel left button </constant> - <constant name="BUTTON_WHEEL_RIGHT" value="7"> + <constant name="BUTTON_WHEEL_RIGHT" value="7" enum=""> Mouse wheel right button </constant> - <constant name="BUTTON_MASK_LEFT" value="1"> + <constant name="BUTTON_MASK_LEFT" value="1" enum=""> </constant> - <constant name="BUTTON_MASK_RIGHT" value="2"> + <constant name="BUTTON_MASK_RIGHT" value="2" enum=""> </constant> - <constant name="BUTTON_MASK_MIDDLE" value="4"> + <constant name="BUTTON_MASK_MIDDLE" value="4" enum=""> </constant> - <constant name="JOY_BUTTON_0" value="0"> + <constant name="JOY_BUTTON_0" value="0" enum=""> Joypad Button 0 </constant> - <constant name="JOY_BUTTON_1" value="1"> + <constant name="JOY_BUTTON_1" value="1" enum=""> Joypad Button 1 </constant> - <constant name="JOY_BUTTON_2" value="2"> + <constant name="JOY_BUTTON_2" value="2" enum=""> Joypad Button 2 </constant> - <constant name="JOY_BUTTON_3" value="3"> + <constant name="JOY_BUTTON_3" value="3" enum=""> Joypad Button 3 </constant> - <constant name="JOY_BUTTON_4" value="4"> + <constant name="JOY_BUTTON_4" value="4" enum=""> Joypad Button 4 </constant> - <constant name="JOY_BUTTON_5" value="5"> + <constant name="JOY_BUTTON_5" value="5" enum=""> Joypad Button 5 </constant> - <constant name="JOY_BUTTON_6" value="6"> + <constant name="JOY_BUTTON_6" value="6" enum=""> Joypad Button 6 </constant> - <constant name="JOY_BUTTON_7" value="7"> + <constant name="JOY_BUTTON_7" value="7" enum=""> Joypad Button 7 </constant> - <constant name="JOY_BUTTON_8" value="8"> + <constant name="JOY_BUTTON_8" value="8" enum=""> Joypad Button 8 </constant> - <constant name="JOY_BUTTON_9" value="9"> + <constant name="JOY_BUTTON_9" value="9" enum=""> Joypad Button 9 </constant> - <constant name="JOY_BUTTON_10" value="10"> + <constant name="JOY_BUTTON_10" value="10" enum=""> Joypad Button 10 </constant> - <constant name="JOY_BUTTON_11" value="11"> + <constant name="JOY_BUTTON_11" value="11" enum=""> Joypad Button 11 </constant> - <constant name="JOY_BUTTON_12" value="12"> + <constant name="JOY_BUTTON_12" value="12" enum=""> Joypad Button 12 </constant> - <constant name="JOY_BUTTON_13" value="13"> + <constant name="JOY_BUTTON_13" value="13" enum=""> Joypad Button 13 </constant> - <constant name="JOY_BUTTON_14" value="14"> + <constant name="JOY_BUTTON_14" value="14" enum=""> Joypad Button 14 </constant> - <constant name="JOY_BUTTON_15" value="15"> + <constant name="JOY_BUTTON_15" value="15" enum=""> Joypad Button 15 </constant> - <constant name="JOY_BUTTON_MAX" value="16"> + <constant name="JOY_BUTTON_MAX" value="16" enum=""> Joypad Button 16 </constant> - <constant name="JOY_SONY_CIRCLE" value="1"> + <constant name="JOY_SONY_CIRCLE" value="1" enum=""> DUALSHOCK circle button </constant> - <constant name="JOY_SONY_X" value="0"> + <constant name="JOY_SONY_X" value="0" enum=""> DUALSHOCK X button </constant> - <constant name="JOY_SONY_SQUARE" value="2"> + <constant name="JOY_SONY_SQUARE" value="2" enum=""> DUALSHOCK square button </constant> - <constant name="JOY_SONY_TRIANGLE" value="3"> + <constant name="JOY_SONY_TRIANGLE" value="3" enum=""> DUALSHOCK triangle button </constant> - <constant name="JOY_XBOX_B" value="1"> + <constant name="JOY_XBOX_B" value="1" enum=""> XBOX controller B button </constant> - <constant name="JOY_XBOX_A" value="0"> + <constant name="JOY_XBOX_A" value="0" enum=""> XBOX controller A button </constant> - <constant name="JOY_XBOX_X" value="2"> + <constant name="JOY_XBOX_X" value="2" enum=""> XBOX controller X button </constant> - <constant name="JOY_XBOX_Y" value="3"> + <constant name="JOY_XBOX_Y" value="3" enum=""> XBOX controller Y button </constant> - <constant name="JOY_DS_A" value="1"> + <constant name="JOY_DS_A" value="1" enum=""> </constant> - <constant name="JOY_DS_B" value="0"> + <constant name="JOY_DS_B" value="0" enum=""> </constant> - <constant name="JOY_DS_X" value="3"> + <constant name="JOY_DS_X" value="3" enum=""> </constant> - <constant name="JOY_DS_Y" value="2"> + <constant name="JOY_DS_Y" value="2" enum=""> </constant> - <constant name="JOY_SELECT" value="10"> + <constant name="JOY_SELECT" value="10" enum=""> Joypad Button Select </constant> - <constant name="JOY_START" value="11"> + <constant name="JOY_START" value="11" enum=""> Joypad Button Start </constant> - <constant name="JOY_DPAD_UP" value="12"> + <constant name="JOY_DPAD_UP" value="12" enum=""> Joypad DPad Up </constant> - <constant name="JOY_DPAD_DOWN" value="13"> + <constant name="JOY_DPAD_DOWN" value="13" enum=""> Joypad DPad Down </constant> - <constant name="JOY_DPAD_LEFT" value="14"> + <constant name="JOY_DPAD_LEFT" value="14" enum=""> Joypad DPad Left </constant> - <constant name="JOY_DPAD_RIGHT" value="15"> + <constant name="JOY_DPAD_RIGHT" value="15" enum=""> Joypad DPad Right </constant> - <constant name="JOY_L" value="4"> + <constant name="JOY_L" value="4" enum=""> Joypad Left Shoulder Button </constant> - <constant name="JOY_L2" value="6"> + <constant name="JOY_L2" value="6" enum=""> Joypad Left Trigger </constant> - <constant name="JOY_L3" value="8"> + <constant name="JOY_L3" value="8" enum=""> Joypad Left Stick Click </constant> - <constant name="JOY_R" value="5"> + <constant name="JOY_R" value="5" enum=""> Joypad Right Shoulder Button </constant> - <constant name="JOY_R2" value="7"> + <constant name="JOY_R2" value="7" enum=""> Joypad Right Trigger </constant> - <constant name="JOY_R3" value="9"> + <constant name="JOY_R3" value="9" enum=""> Joypad Right Stick Click </constant> - <constant name="JOY_AXIS_0" value="0"> + <constant name="JOY_AXIS_0" value="0" enum=""> Joypad Left Stick Horizontal Axis </constant> - <constant name="JOY_AXIS_1" value="1"> + <constant name="JOY_AXIS_1" value="1" enum=""> Joypad Left Stick Vertical Axis </constant> - <constant name="JOY_AXIS_2" value="2"> + <constant name="JOY_AXIS_2" value="2" enum=""> Joypad Right Stick Horizontal Axis </constant> - <constant name="JOY_AXIS_3" value="3"> + <constant name="JOY_AXIS_3" value="3" enum=""> Joypad Right Stick Vertical Axis </constant> - <constant name="JOY_AXIS_4" value="4"> + <constant name="JOY_AXIS_4" value="4" enum=""> </constant> - <constant name="JOY_AXIS_5" value="5"> + <constant name="JOY_AXIS_5" value="5" enum=""> </constant> - <constant name="JOY_AXIS_6" value="6"> + <constant name="JOY_AXIS_6" value="6" enum=""> Joypad Left Trigger Analog Axis </constant> - <constant name="JOY_AXIS_7" value="7"> + <constant name="JOY_AXIS_7" value="7" enum=""> Joypad Right Trigger Analog Axis </constant> - <constant name="JOY_AXIS_MAX" value="8"> + <constant name="JOY_AXIS_MAX" value="8" enum=""> </constant> - <constant name="JOY_ANALOG_LX" value="0"> + <constant name="JOY_ANALOG_LX" value="0" enum=""> Joypad Left Stick Horizontal Axis </constant> - <constant name="JOY_ANALOG_LY" value="1"> + <constant name="JOY_ANALOG_LY" value="1" enum=""> Joypad Left Stick Vertical Axis </constant> - <constant name="JOY_ANALOG_RX" value="2"> + <constant name="JOY_ANALOG_RX" value="2" enum=""> Joypad Right Stick Horizontal Axis </constant> - <constant name="JOY_ANALOG_RY" value="3"> + <constant name="JOY_ANALOG_RY" value="3" enum=""> Joypad Right Stick Vertical Axis </constant> - <constant name="JOY_ANALOG_L2" value="6"> + <constant name="JOY_ANALOG_L2" value="6" enum=""> </constant> - <constant name="JOY_ANALOG_R2" value="7"> + <constant name="JOY_ANALOG_R2" value="7" enum=""> </constant> <constant name="OK" value="0"> Functions that return Error return OK when everything went ok. Most functions don't return error anyway and/or just print errors to stdout. @@ -1949,7 +1961,7 @@ </constant> </constants> </class> -<class name="@Native" category="Core"> +<class name="@NativeScript" category="Core"> <brief_description> </brief_description> <description> @@ -1969,6 +1981,542 @@ <constants> </constants> </class> +<class name="ARVRAnchor" inherits="Spatial" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_anchor_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_anchor_name" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> + <method name="get_is_active" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="get_size" qualifiers="const"> + <return type="Vector3"> + </return> + <description> + </description> + </method> + <method name="set_anchor_id"> + <return type="void"> + </return> + <argument index="0" name="anchor_id" type="int"> + </argument> + <description> + </description> + </method> + </methods> + <members> + <member name="anchor_id" type="int" setter="set_anchor_id" getter="get_anchor_id" brief=""> + </member> + </members> + <constants> + </constants> +</class> +<class name="ARVRCamera" inherits="Camera" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + </methods> + <constants> + </constants> +</class> +<class name="ARVRController" inherits="Spatial" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_controller_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_controller_name" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> + <method name="get_is_active" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="get_joystick_axis" qualifiers="const"> + <return type="float"> + </return> + <argument index="0" name="axis" type="int"> + </argument> + <description> + </description> + </method> + <method name="get_joystick_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="is_button_pressed" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="button" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_controller_id"> + <return type="void"> + </return> + <argument index="0" name="controller_id" type="int"> + </argument> + <description> + </description> + </method> + </methods> + <members> + <member name="controller_id" type="int" setter="set_controller_id" getter="get_controller_id" brief=""> + </member> + </members> + <signals> + <signal name="button_pressed"> + <argument index="0" name="button" type="int"> + </argument> + <description> + </description> + </signal> + <signal name="button_release"> + <argument index="0" name="button" type="int"> + </argument> + <description> + </description> + </signal> + </signals> + <constants> + </constants> +</class> +<class name="ARVRInterface" inherits="Reference" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_name" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> + <method name="get_recommended_render_targetsize"> + <return type="Vector2"> + </return> + <description> + </description> + </method> + <method name="hmd_is_present"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="initialize"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_initialized"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_installed"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_primary"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="set_is_primary"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> + <method name="supports_hmd"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="uninitialize"> + <return type="void"> + </return> + <description> + </description> + </method> + </methods> + <members> + <member name="primary" type="bool" setter="set_is_primary" getter="is_primary" brief=""> + </member> + </members> + <constants> + <constant name="EYE_MONO" value="0"> + </constant> + <constant name="EYE_LEFT" value="1"> + </constant> + <constant name="EYE_RIGHT" value="2"> + </constant> + </constants> +</class> +<class name="ARVROrigin" inherits="Spatial" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_world_scale" qualifiers="const"> + <return type="float"> + </return> + <description> + </description> + </method> + <method name="set_world_scale"> + <return type="void"> + </return> + <argument index="0" name="world_scale" type="float"> + </argument> + <description> + </description> + </method> + </methods> + <members> + <member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale" brief=""> + </member> + </members> + <constants> + </constants> +</class> +<class name="ARVRPositionalTracker" inherits="Object" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_joy_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_name" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> + <method name="get_orientation" qualifiers="const"> + <return type="Basis"> + </return> + <description> + </description> + </method> + <method name="get_position" qualifiers="const"> + <return type="Vector3"> + </return> + <description> + </description> + </method> + <method name="get_tracks_orientation" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="get_tracks_position" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="get_transform" qualifiers="const"> + <return type="Transform"> + </return> + <argument index="0" name="adjust_by_reference_frame" type="bool"> + </argument> + <description> + </description> + </method> + <method name="get_type" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + </methods> + <constants> + </constants> +</class> +<class name="ARVRScriptInterface" inherits="ARVRInterface" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="_get_projection_for_eye" qualifiers="virtual"> + <return type="void"> + </return> + <description> + </description> + </method> + <method name="commit_for_eye" qualifiers="virtual"> + <return type="void"> + </return> + <argument index="0" name="eye" type="int"> + </argument> + <argument index="1" name="render_target" type="RID"> + </argument> + <description> + </description> + </method> + <method name="get_recommended_render_targetsize" qualifiers="virtual"> + <return type="Vector2"> + </return> + <description> + </description> + </method> + <method name="get_transform_for_eye" qualifiers="virtual"> + <return type="Transform"> + </return> + <argument index="0" name="eye" type="int"> + </argument> + <argument index="1" name="cam_transform" type="Transform"> + </argument> + <description> + </description> + </method> + <method name="hmd_is_present" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="initialize" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_initialized" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_installed" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_stereo" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="process" qualifiers="virtual"> + <return type="void"> + </return> + <description> + </description> + </method> + <method name="supports_hmd" qualifiers="virtual"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="uninitialize" qualifiers="virtual"> + <return type="void"> + </return> + <description> + </description> + </method> + </methods> + <constants> + </constants> +</class> +<class name="ARVRServer" inherits="Object" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="add_interface"> + <return type="void"> + </return> + <argument index="0" name="arg0" type="ARVRInterface"> + </argument> + <description> + </description> + </method> + <method name="find_interface" qualifiers="const"> + <return type="ARVRInterface"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </method> + <method name="get_interface" qualifiers="const"> + <return type="ARVRInterface"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <description> + </description> + </method> + <method name="get_interface_count" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_reference_frame" qualifiers="const"> + <return type="Transform"> + </return> + <description> + </description> + </method> + <method name="get_tracker" qualifiers="const"> + <return type="ARVRPositionalTracker"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <description> + </description> + </method> + <method name="get_tracker_count" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_world_scale" qualifiers="const"> + <return type="float"> + </return> + <description> + </description> + </method> + <method name="remove_interface"> + <return type="void"> + </return> + <argument index="0" name="arg0" type="ARVRInterface"> + </argument> + <description> + </description> + </method> + <method name="request_reference_frame"> + <return type="void"> + </return> + <argument index="0" name="ignore_tilt" type="bool"> + </argument> + <argument index="1" name="keep_height" type="bool"> + </argument> + <description> + </description> + </method> + <method name="set_primary_interface"> + <return type="void"> + </return> + <argument index="0" name="arg0" type="ARVRInterface"> + </argument> + <description> + </description> + </method> + <method name="set_world_scale"> + <return type="void"> + </return> + <argument index="0" name="arg0" type="float"> + </argument> + <description> + </description> + </method> + </methods> + <members> + <member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale" brief=""> + </member> + </members> + <signals> + <signal name="interface_added"> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </signal> + <signal name="interface_removed"> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </signal> + <signal name="tracker_added"> + <argument index="0" name="name" type="String"> + </argument> + <argument index="1" name="type" type="int"> + </argument> + <description> + </description> + </signal> + <signal name="tracker_removed"> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </signal> + </signals> + <constants> + <constant name="TRACKER_CONTROLLER" value="1"> + </constant> + <constant name="TRACKER_BASESTATION" value="2"> + </constant> + <constant name="TRACKER_ANCHOR" value="4"> + </constant> + <constant name="TRACKER_UNKNOWN" value="128"> + </constant> + <constant name="TRACKER_ANY_KNOWN" value="127"> + </constant> + <constant name="TRACKER_ANY" value="255"> + </constant> + </constants> +</class> <class name="AStar" inherits="Reference" category="Core"> <brief_description> AStar class representation that uses vectors as edges. @@ -1979,6 +2527,8 @@ </description> <methods> <method name="_compute_cost" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="from_id" type="int"> </argument> <argument index="1" name="to_id" type="int"> @@ -1987,6 +2537,8 @@ </description> </method> <method name="_estimate_cost" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="from_id" type="int"> </argument> <argument index="1" name="to_id" type="int"> @@ -1995,11 +2547,13 @@ </description> </method> <method name="add_point"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="pos" type="Vector3"> </argument> - <argument index="2" name="weight_scale" type="float" default="1"> + <argument index="2" name="weight_scale" type="float" default="null"> </argument> <description> Add a new point at the given position [code]pos[/code] with the given identifier [code]id[/code]. The [code]weight_scale[/code] has to be 1 or larger. @@ -2017,22 +2571,28 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear all the points and segments from AStar instance. </description> </method> <method name="connect_points"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="to_id" type="int"> </argument> - <argument index="2" name="bidirectional" type="bool" default="true"> + <argument index="2" name="bidirectional" type="bool" default="null"> </argument> <description> Create a segment between points [code]id[/code] and [code]to_id[/code]. </description> </method> <method name="disconnect_points"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="to_id" type="int"> @@ -2115,6 +2675,8 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -2140,7 +2702,7 @@ </argument> <argument index="1" name="right" type="bool" default="false"> </argument> - <argument index="2" name="action" type="String" default=""""> + <argument index="2" name="action" type="String" default="null"> </argument> <description> Add custom button to the dialog and return the created button. @@ -2164,14 +2726,14 @@ </description> </method> <method name="get_label"> - <return type="Object"> + <return type="Label"> </return> <description> Return the label used for built-in text. </description> </method> <method name="get_ok"> - <return type="Object"> + <return type="Button"> </return> <description> Return the OK Button. @@ -2185,15 +2747,17 @@ </description> </method> <method name="register_text_enter"> - <return type="LineEdit"> + <return type="void"> </return> - <argument index="0" name="line_edit" type="Object"> + <argument index="0" name="line_edit" type="Node"> </argument> <description> Register a [LineEdit] in the dialog. When the enter key is pressed, the dialog will be accepted. </description> </method> <method name="set_hide_on_ok"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -2201,6 +2765,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -2296,6 +2862,8 @@ </description> </method> <method name="play"> + <return type="void"> + </return> <argument index="0" name="anim" type="String" default=""""> </argument> <description> @@ -2303,6 +2871,8 @@ </description> </method> <method name="set_animation"> + <return type="void"> + </return> <argument index="0" name="animation" type="String"> </argument> <description> @@ -2310,6 +2880,8 @@ </description> </method> <method name="set_centered"> + <return type="void"> + </return> <argument index="0" name="centered" type="bool"> </argument> <description> @@ -2317,6 +2889,8 @@ </description> </method> <method name="set_flip_h"> + <return type="void"> + </return> <argument index="0" name="flip_h" type="bool"> </argument> <description> @@ -2324,6 +2898,8 @@ </description> </method> <method name="set_flip_v"> + <return type="void"> + </return> <argument index="0" name="flip_v" type="bool"> </argument> <description> @@ -2331,6 +2907,8 @@ </description> </method> <method name="set_frame"> + <return type="void"> + </return> <argument index="0" name="frame" type="int"> </argument> <description> @@ -2338,6 +2916,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -2345,6 +2925,8 @@ </description> </method> <method name="set_sprite_frames"> + <return type="void"> + </return> <argument index="0" name="sprite_frames" type="SpriteFrames"> </argument> <description> @@ -2352,6 +2934,8 @@ </description> </method> <method name="stop"> + <return type="void"> + </return> <description> Stop the current animation (does not reset the frame counter). </description> @@ -2425,6 +3009,8 @@ </description> </method> <method name="play"> + <return type="void"> + </return> <argument index="0" name="anim" type="String" default=""""> </argument> <description> @@ -2432,6 +3018,8 @@ </description> </method> <method name="set_animation"> + <return type="void"> + </return> <argument index="0" name="animation" type="String"> </argument> <description> @@ -2439,6 +3027,8 @@ </description> </method> <method name="set_frame"> + <return type="void"> + </return> <argument index="0" name="frame" type="int"> </argument> <description> @@ -2446,6 +3036,8 @@ </description> </method> <method name="set_sprite_frames"> + <return type="void"> + </return> <argument index="0" name="sprite_frames" type="SpriteFrames"> </argument> <description> @@ -2453,6 +3045,8 @@ </description> </method> <method name="stop"> + <return type="void"> + </return> <description> Stop the current animation (does not reset the frame counter). </description> @@ -2490,15 +3084,17 @@ <method name="add_track"> <return type="int"> </return> - <argument index="0" name="type" type="int"> + <argument index="0" name="type" type="int" enum="Animation.TrackType"> </argument> - <argument index="1" name="at_pos" type="int" default="-1"> + <argument index="1" name="at_pos" type="int" default="null"> </argument> <description> Add a track to the Animation. The track type must be specified as any of the values in the TYPE_* enumeration. </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear the animation (clear all tracks and reset all). </description> @@ -2576,6 +3172,8 @@ </description> </method> <method name="remove_track"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -2583,6 +3181,8 @@ </description> </method> <method name="set_length"> + <return type="void"> + </return> <argument index="0" name="time_sec" type="float"> </argument> <description> @@ -2590,6 +3190,8 @@ </description> </method> <method name="set_loop"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -2597,6 +3199,8 @@ </description> </method> <method name="set_step"> + <return type="void"> + </return> <argument index="0" name="size_sec" type="float"> </argument> <description> @@ -2610,7 +3214,7 @@ </argument> <argument index="1" name="time" type="float"> </argument> - <argument index="2" name="exact" type="bool" default="false"> + <argument index="2" name="exact" type="bool" default="null"> </argument> <description> Find the key index by time in a given track. Optionally, only find it if the exact time is given. @@ -2665,6 +3269,8 @@ </description> </method> <method name="track_get_key_value" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="key_idx" type="int"> @@ -2692,13 +3298,15 @@ </description> </method> <method name="track_insert_key"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="time" type="float"> </argument> <argument index="2" name="key" type="Variant"> </argument> - <argument index="3" name="transition" type="float" default="1"> + <argument index="3" name="transition" type="float" default="null"> </argument> <description> Insert a generic key in a given track. @@ -2714,6 +3322,8 @@ </description> </method> <method name="track_move_down"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -2721,6 +3331,8 @@ </description> </method> <method name="track_move_up"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -2728,6 +3340,8 @@ </description> </method> <method name="track_remove_key"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="key_idx" type="int"> @@ -2737,6 +3351,8 @@ </description> </method> <method name="track_remove_key_at_pos"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="float"> @@ -2746,6 +3362,8 @@ </description> </method> <method name="track_set_imported"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="imported" type="bool"> @@ -2755,6 +3373,8 @@ </description> </method> <method name="track_set_interpolation_loop_wrap"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="interpolation" type="bool"> @@ -2763,15 +3383,19 @@ </description> </method> <method name="track_set_interpolation_type"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="interpolation" type="int"> + <argument index="1" name="interpolation" type="int" enum="Animation.InterpolationType"> </argument> <description> Set the interpolation type of a given track, from the INTERPOLATION_* enum. </description> </method> <method name="track_set_key_transition"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="key_idx" type="int"> @@ -2783,6 +3407,8 @@ </description> </method> <method name="track_set_key_value"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="key" type="int"> @@ -2794,6 +3420,8 @@ </description> </method> <method name="track_set_path"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="path" type="NodePath"> @@ -2852,9 +3480,11 @@ </description> </method> <method name="value_track_set_update_mode"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Animation.UpdateMode"> </argument> <description> </description> @@ -2907,6 +3537,8 @@ </description> </method> <method name="advance"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> @@ -2922,6 +3554,8 @@ </description> </method> <method name="animation_set_next"> + <return type="void"> + </return> <argument index="0" name="anim_from" type="String"> </argument> <argument index="1" name="anim_to" type="String"> @@ -2930,11 +3564,15 @@ </description> </method> <method name="clear_caches"> + <return type="void"> + </return> <description> The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again. </description> </method> <method name="clear_queue"> + <return type="void"> + </return> <description> If animations are queued to play, clear them. </description> @@ -3062,28 +3700,34 @@ </description> </method> <method name="play"> - <argument index="0" name="name" type="String" default=""""> + <return type="void"> + </return> + <argument index="0" name="name" type="String" default="false"> </argument> - <argument index="1" name="custom_blend" type="float" default="-1"> + <argument index="1" name="custom_blend" type="float" default="1.0"> </argument> - <argument index="2" name="custom_speed" type="float" default="1"> + <argument index="2" name="custom_speed" type="float" default="-1"> </argument> - <argument index="3" name="from_end" type="bool" default="false"> + <argument index="3" name="from_end" type="bool" default=""""> </argument> <description> Play a given animation by the animation name. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being true can play the animation backwards. </description> </method> <method name="play_backwards"> - <argument index="0" name="name" type="String" default=""""> + <return type="void"> + </return> + <argument index="0" name="name" type="String" default="-1"> </argument> - <argument index="1" name="custom_blend" type="float" default="-1"> + <argument index="1" name="custom_blend" type="float" default=""""> </argument> <description> Play a given animation by the animation name in reverse. </description> </method> <method name="queue"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -3091,6 +3735,8 @@ </description> </method> <method name="remove_animation"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -3098,6 +3744,8 @@ </description> </method> <method name="rename_animation"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="newname" type="String"> @@ -3107,15 +3755,19 @@ </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="pos_sec" type="float"> </argument> - <argument index="1" name="update" type="bool" default="false"> + <argument index="1" name="update" type="bool" default="null"> </argument> <description> Seek the animation to a given position in time (in seconds). If 'update' is true, the animation will be updated too, otherwise it will be updated at process time. </description> </method> <method name="set_active"> + <return type="void"> + </return> <argument index="0" name="active" type="bool"> </argument> <description> @@ -3123,13 +3775,17 @@ </description> </method> <method name="set_animation_process_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="AnimationPlayer.AnimationProcessMode"> </argument> <description> Set the mode in which the animation player processes. By default, it processes on idle time (framerate dependent), but using fixed time works well for animating static collision bodies in 2D and 3D. See enum ANIMATION_PROCESS_*. </description> </method> <method name="set_autoplay"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -3137,6 +3793,8 @@ </description> </method> <method name="set_blend_time"> + <return type="void"> + </return> <argument index="0" name="anim_from" type="String"> </argument> <argument index="1" name="anim_to" type="String"> @@ -3148,6 +3806,8 @@ </description> </method> <method name="set_current_animation"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <description> @@ -3155,6 +3815,8 @@ </description> </method> <method name="set_default_blend_time"> + <return type="void"> + </return> <argument index="0" name="sec" type="float"> </argument> <description> @@ -3162,6 +3824,8 @@ </description> </method> <method name="set_root"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> @@ -3169,6 +3833,8 @@ </description> </method> <method name="set_speed_scale"> + <return type="void"> + </return> <argument index="0" name="speed" type="float"> </argument> <description> @@ -3176,6 +3842,8 @@ </description> </method> <method name="stop"> + <return type="void"> + </return> <argument index="0" name="reset" type="bool" default="true"> </argument> <description> @@ -3183,6 +3851,8 @@ </description> </method> <method name="stop_all"> + <return type="void"> + </return> <description> Stop playback of animations (deprecated). </description> @@ -3191,7 +3861,7 @@ <members> <member name="playback_default_blend_time" type="float" setter="set_default_blend_time" getter="get_default_blend_time" brief=""> </member> - <member name="playback_process_mode" type="int" setter="set_animation_process_mode" getter="get_animation_process_mode" brief=""> + <member name="playback_process_mode" type="int" setter="set_animation_process_mode" getter="get_animation_process_mode" brief="" enum="AnimationPlayer.AnimationProcessMode"> </member> <member name="root_node" type="NodePath" setter="set_root" getter="get_root" brief=""> </member> @@ -3239,7 +3909,9 @@ </description> <methods> <method name="add_node"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="AnimationTreePlayer.NodeType"> </argument> <argument index="1" name="id" type="String"> </argument> @@ -3248,6 +3920,8 @@ </description> </method> <method name="advance"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> @@ -3270,6 +3944,8 @@ </description> </method> <method name="animation_node_set_animation"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="animation" type="Animation"> @@ -3279,6 +3955,8 @@ </description> </method> <method name="animation_node_set_filter_path"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="path" type="NodePath"> @@ -3289,6 +3967,8 @@ </description> </method> <method name="animation_node_set_master_animation"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="source" type="String"> @@ -3317,6 +3997,8 @@ </description> </method> <method name="blend2_node_set_amount"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="blend" type="float"> @@ -3325,6 +4007,8 @@ </description> </method> <method name="blend2_node_set_filter_path"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="path" type="NodePath"> @@ -3343,6 +4027,8 @@ </description> </method> <method name="blend3_node_set_amount"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="blend" type="float"> @@ -3359,6 +4045,8 @@ </description> </method> <method name="blend4_node_set_amount"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="blend" type="Vector2"> @@ -3379,6 +4067,8 @@ </description> </method> <method name="disconnect_nodes"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="dst_input_idx" type="int"> @@ -3425,6 +4115,8 @@ </description> </method> <method name="mix_node_set_amount"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="ratio" type="float"> @@ -3490,6 +4182,8 @@ </description> </method> <method name="node_set_pos"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="screen_pos" type="Vector2"> @@ -3546,6 +4240,8 @@ </description> </method> <method name="oneshot_node_set_autorestart"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="enable" type="bool"> @@ -3554,6 +4250,8 @@ </description> </method> <method name="oneshot_node_set_autorestart_delay"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="delay_sec" type="float"> @@ -3562,6 +4260,8 @@ </description> </method> <method name="oneshot_node_set_autorestart_random_delay"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="rand_sec" type="float"> @@ -3570,6 +4270,8 @@ </description> </method> <method name="oneshot_node_set_fadein_time"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="time_sec" type="float"> @@ -3578,6 +4280,8 @@ </description> </method> <method name="oneshot_node_set_fadeout_time"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="time_sec" type="float"> @@ -3586,6 +4290,8 @@ </description> </method> <method name="oneshot_node_set_filter_path"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="path" type="NodePath"> @@ -3596,50 +4302,68 @@ </description> </method> <method name="oneshot_node_start"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <description> </description> </method> <method name="oneshot_node_stop"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <description> </description> </method> <method name="recompute_caches"> + <return type="void"> + </return> <description> </description> </method> <method name="remove_node"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <description> </description> </method> <method name="reset"> + <return type="void"> + </return> <description> </description> </method> <method name="set_active"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_animation_process_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="AnimationTreePlayer.AnimationProcessMode"> </argument> <description> </description> </method> <method name="set_base_path"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> </description> </method> <method name="set_master_player"> + <return type="void"> + </return> <argument index="0" name="nodepath" type="NodePath"> </argument> <description> @@ -3654,6 +4378,8 @@ </description> </method> <method name="timescale_node_set_scale"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="scale" type="float"> @@ -3662,6 +4388,8 @@ </description> </method> <method name="timeseek_node_seek"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="pos_sec" type="float"> @@ -3670,6 +4398,8 @@ </description> </method> <method name="transition_node_delete_input"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="input_idx" type="int"> @@ -3712,6 +4442,8 @@ </description> </method> <method name="transition_node_set_current"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="input_idx" type="int"> @@ -3720,6 +4452,8 @@ </description> </method> <method name="transition_node_set_input_auto_advance"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="input_idx" type="int"> @@ -3730,6 +4464,8 @@ </description> </method> <method name="transition_node_set_input_count"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="count" type="int"> @@ -3738,6 +4474,8 @@ </description> </method> <method name="transition_node_set_xfade_time"> + <return type="void"> + </return> <argument index="0" name="id" type="String"> </argument> <argument index="1" name="time_sec" type="float"> @@ -3747,7 +4485,7 @@ </method> </methods> <members> - <member name="playback_process_mode" type="int" setter="set_animation_process_mode" getter="get_animation_process_mode" brief=""> + <member name="playback_process_mode" type="int" setter="set_animation_process_mode" getter="get_animation_process_mode" brief="" enum="AnimationTreePlayer.AnimationProcessMode"> </member> </members> <constants> @@ -3936,7 +4674,7 @@ <method name="overlaps_area" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="area" type="Object"> + <argument index="0" name="area" type="Node"> </argument> <description> Return whether the area passed is totally or partially inside this area. @@ -3945,13 +4683,15 @@ <method name="overlaps_body" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="body" type="Object"> + <argument index="0" name="body" type="Node"> </argument> <description> Return whether the body passed is totally or partially inside this area. </description> </method> <method name="set_angular_damp"> + <return type="void"> + </return> <argument index="0" name="angular_damp" type="float"> </argument> <description> @@ -3960,18 +4700,24 @@ </description> </method> <method name="set_audio_bus"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_audio_bus_override"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="collision_layer" type="int"> </argument> <description> @@ -3981,6 +4727,8 @@ </description> </method> <method name="set_collision_layer_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -3990,6 +4738,8 @@ </description> </method> <method name="set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="collision_mask" type="int"> </argument> <description> @@ -3997,6 +4747,8 @@ </description> </method> <method name="set_collision_mask_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -4006,6 +4758,8 @@ </description> </method> <method name="set_gravity"> + <return type="void"> + </return> <argument index="0" name="gravity" type="float"> </argument> <description> @@ -4014,6 +4768,8 @@ </description> </method> <method name="set_gravity_distance_scale"> + <return type="void"> + </return> <argument index="0" name="distance_scale" type="float"> </argument> <description> @@ -4021,6 +4777,8 @@ </description> </method> <method name="set_gravity_is_point"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4028,6 +4786,8 @@ </description> </method> <method name="set_gravity_vector"> + <return type="void"> + </return> <argument index="0" name="vector" type="Vector3"> </argument> <description> @@ -4036,6 +4796,8 @@ </description> </method> <method name="set_linear_damp"> + <return type="void"> + </return> <argument index="0" name="linear_damp" type="float"> </argument> <description> @@ -4044,6 +4806,8 @@ </description> </method> <method name="set_monitorable"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4051,6 +4815,8 @@ </description> </method> <method name="set_monitoring"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4058,6 +4824,8 @@ </description> </method> <method name="set_priority"> + <return type="void"> + </return> <argument index="0" name="priority" type="float"> </argument> <description> @@ -4066,25 +4834,33 @@ </description> </method> <method name="set_reverb_amount"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_reverb_bus"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_reverb_uniformity"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_space_override_mode"> - <argument index="0" name="enable" type="int"> + <return type="void"> + </return> + <argument index="0" name="enable" type="int" enum="Area.SpaceOverride"> </argument> <description> Set the space override mode. This mode controls how an area affects gravity and damp. @@ -4096,6 +4872,8 @@ </description> </method> <method name="set_use_reverb_bus"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4127,7 +4905,7 @@ </member> <member name="monitoring" type="bool" setter="set_monitoring" getter="is_monitoring" brief=""> </member> - <member name="priority" type="int" setter="set_priority" getter="get_priority" brief=""> + <member name="priority" type="float" setter="set_priority" getter="get_priority" brief=""> </member> <member name="reverb_bus_amount" type="float" setter="set_reverb_amount" getter="get_reverb_amount" brief=""> </member> @@ -4137,7 +4915,7 @@ </member> <member name="reverb_bus_uniformity" type="float" setter="set_reverb_uniformity" getter="get_reverb_uniformity" brief=""> </member> - <member name="space_override" type="int" setter="set_space_override_mode" getter="get_space_override_mode" brief=""> + <member name="space_override" type="int" setter="set_space_override_mode" getter="get_space_override_mode" brief="" enum="Area.SpaceOverride"> </member> </members> <signals> @@ -4364,7 +5142,7 @@ <method name="overlaps_area" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="area" type="Object"> + <argument index="0" name="area" type="Node"> </argument> <description> Return whether the area passed is totally or partially inside this area. @@ -4373,13 +5151,15 @@ <method name="overlaps_body" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="body" type="Object"> + <argument index="0" name="body" type="Node"> </argument> <description> Return whether the body passed is totally or partially inside this area. </description> </method> <method name="set_angular_damp"> + <return type="void"> + </return> <argument index="0" name="angular_damp" type="float"> </argument> <description> @@ -4388,18 +5168,24 @@ </description> </method> <method name="set_audio_bus"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_audio_bus_override"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="collision_layer" type="int"> </argument> <description> @@ -4409,6 +5195,8 @@ </description> </method> <method name="set_collision_layer_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -4418,6 +5206,8 @@ </description> </method> <method name="set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="collision_mask" type="int"> </argument> <description> @@ -4425,6 +5215,8 @@ </description> </method> <method name="set_collision_mask_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -4434,6 +5226,8 @@ </description> </method> <method name="set_gravity"> + <return type="void"> + </return> <argument index="0" name="gravity" type="float"> </argument> <description> @@ -4442,6 +5236,8 @@ </description> </method> <method name="set_gravity_distance_scale"> + <return type="void"> + </return> <argument index="0" name="distance_scale" type="float"> </argument> <description> @@ -4449,6 +5245,8 @@ </description> </method> <method name="set_gravity_is_point"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4456,6 +5254,8 @@ </description> </method> <method name="set_gravity_vector"> + <return type="void"> + </return> <argument index="0" name="vector" type="Vector2"> </argument> <description> @@ -4464,6 +5264,8 @@ </description> </method> <method name="set_linear_damp"> + <return type="void"> + </return> <argument index="0" name="linear_damp" type="float"> </argument> <description> @@ -4472,6 +5274,8 @@ </description> </method> <method name="set_monitorable"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4479,6 +5283,8 @@ </description> </method> <method name="set_monitoring"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -4486,6 +5292,8 @@ </description> </method> <method name="set_priority"> + <return type="void"> + </return> <argument index="0" name="priority" type="float"> </argument> <description> @@ -4494,7 +5302,9 @@ </description> </method> <method name="set_space_override_mode"> - <argument index="0" name="enable" type="int"> + <return type="void"> + </return> + <argument index="0" name="enable" type="int" enum="Area2D.SpaceOverride"> </argument> <description> Set the space override mode. This mode controls how an area affects gravity and damp. @@ -4531,9 +5341,9 @@ </member> <member name="monitoring" type="bool" setter="set_monitoring" getter="is_monitoring" brief=""> </member> - <member name="priority" type="int" setter="set_priority" getter="get_priority" brief=""> + <member name="priority" type="float" setter="set_priority" getter="get_priority" brief=""> </member> - <member name="space_override" type="int" setter="set_space_override_mode" getter="get_space_override_mode" brief=""> + <member name="space_override" type="int" setter="set_space_override_mode" getter="get_space_override_mode" brief="" enum="Area2D.SpaceOverride"> </member> </members> <signals> @@ -4874,19 +5684,23 @@ </description> <methods> <method name="add_blend_shape"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="add_surface_from_arrays"> - <argument index="0" name="primitive" type="int"> + <return type="void"> + </return> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> </argument> <argument index="1" name="arrays" type="Array"> </argument> - <argument index="2" name="blend_shapes" type="Array" default="[]"> + <argument index="2" name="blend_shapes" type="Array" default="null"> </argument> - <argument index="3" name="compress_flags" type="int" default="97792"> + <argument index="3" name="compress_flags" type="int" default="null"> </argument> <description> Create a new surface ([method get_surface_count] that will become surf_idx for this. @@ -4894,10 +5708,14 @@ </description> </method> <method name="center_geometry"> + <return type="void"> + </return> <description> </description> </method> <method name="clear_blend_shapes"> + <return type="void"> + </return> <description> </description> </method> @@ -4935,16 +5753,22 @@ </description> </method> <method name="regen_normalmaps"> + <return type="void"> + </return> <description> </description> </method> <method name="set_blend_shape_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Mesh.BlendShapeMode"> </argument> <description> </description> </method> <method name="set_custom_aabb"> + <return type="void"> + </return> <argument index="0" name="aabb" type="Rect3"> </argument> <description> @@ -5004,6 +5828,8 @@ </description> </method> <method name="surface_remove"> + <return type="void"> + </return> <argument index="0" name="surf_idx" type="int"> </argument> <description> @@ -5011,6 +5837,8 @@ </description> </method> <method name="surface_set_material"> + <return type="void"> + </return> <argument index="0" name="surf_idx" type="int"> </argument> <argument index="1" name="material" type="Material"> @@ -5019,6 +5847,8 @@ </description> </method> <method name="surface_set_name"> + <return type="void"> + </return> <argument index="0" name="surf_idx" type="int"> </argument> <argument index="1" name="name" type="String"> @@ -5029,10 +5859,10 @@ </method> </methods> <constants> - <constant name="NO_INDEX_ARRAY" value="-1"> + <constant name="NO_INDEX_ARRAY" value="-1" enum=""> Default value used for index_array_len when no indices are present. </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4"> + <constant name="ARRAY_WEIGHTS_SIZE" value="4" enum=""> Amount of weights/bone indices per vertex (always 4). </constant> <constant name="ARRAY_VERTEX" value="0"> @@ -5062,6 +5892,8 @@ <constant name="ARRAY_INDEX" value="8"> Array of integers, used as indices referencing vertices. No index can be beyond the vertex array size. </constant> + <constant name="ARRAY_MAX" value="9"> + </constant> <constant name="ARRAY_FORMAT_VERTEX" value="1"> Array format will include vertices (mandatory). </constant> @@ -5116,18 +5948,24 @@ </description> </method> <method name="set_atlas"> + <return type="void"> + </return> <argument index="0" name="atlas" type="Texture"> </argument> <description> </description> </method> <method name="set_margin"> + <return type="void"> + </return> <argument index="0" name="margin" type="Rect2"> </argument> <description> </description> </method> <method name="set_region"> + <return type="void"> + </return> <argument index="0" name="region" type="Rect2"> </argument> <description> @@ -5142,12 +5980,6 @@ <member name="region" type="Rect2" setter="set_region" getter="get_region" brief=""> </member> </members> - <signals> - <signal name="atlas_changed"> - <description> - </description> - </signal> - </signals> <constants> </constants> </class> @@ -5184,6 +6016,8 @@ </description> </method> <method name="set_volume_db"> + <return type="void"> + </return> <argument index="0" name="volume" type="float"> </argument> <description> @@ -5290,18 +6124,24 @@ </description> </method> <method name="set_dry"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_voice_count"> + <return type="void"> + </return> <argument index="0" name="voices" type="int"> </argument> <description> </description> </method> <method name="set_voice_cutoff_hz"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="cutoff_hz" type="float"> @@ -5310,6 +6150,8 @@ </description> </method> <method name="set_voice_delay_ms"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="delay_ms" type="float"> @@ -5318,6 +6160,8 @@ </description> </method> <method name="set_voice_depth_ms"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="depth_ms" type="float"> @@ -5326,6 +6170,8 @@ </description> </method> <method name="set_voice_level_db"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="level_db" type="float"> @@ -5334,6 +6180,8 @@ </description> </method> <method name="set_voice_pan"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="pan" type="float"> @@ -5342,6 +6190,8 @@ </description> </method> <method name="set_voice_rate_hz"> + <return type="void"> + </return> <argument index="0" name="voice_idx" type="int"> </argument> <argument index="1" name="rate_hz" type="float"> @@ -5350,6 +6200,8 @@ </description> </method> <method name="set_wet"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> @@ -5464,42 +6316,56 @@ </description> </method> <method name="set_attack_us"> + <return type="void"> + </return> <argument index="0" name="attack_us" type="float"> </argument> <description> </description> </method> <method name="set_gain"> + <return type="void"> + </return> <argument index="0" name="gain" type="float"> </argument> <description> </description> </method> <method name="set_mix"> + <return type="void"> + </return> <argument index="0" name="mix" type="float"> </argument> <description> </description> </method> <method name="set_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> </description> </method> <method name="set_release_ms"> + <return type="void"> + </return> <argument index="0" name="release_ms" type="float"> </argument> <description> </description> </method> <method name="set_sidechain"> + <return type="void"> + </return> <argument index="0" name="sidechain" type="String"> </argument> <description> </description> </method> <method name="set_threshold"> + <return type="void"> + </return> <argument index="0" name="threshold" type="float"> </argument> <description> @@ -5517,7 +6383,7 @@ </member> <member name="release_ms" type="float" setter="set_release_ms" getter="get_release_ms" brief=""> </member> - <member name="sidechain" type="float" setter="set_sidechain" getter="get_sidechain" brief=""> + <member name="sidechain" type="String" setter="set_sidechain" getter="get_sidechain" brief=""> </member> <member name="threshold" type="float" setter="set_threshold" getter="get_threshold" brief=""> </member> @@ -5610,78 +6476,104 @@ </description> </method> <method name="set_dry"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_feedback_active"> + <return type="void"> + </return> <argument index="0" name="amount" type="bool"> </argument> <description> </description> </method> <method name="set_feedback_delay_ms"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_feedback_level_db"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_feedback_lowpass"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap1_active"> + <return type="void"> + </return> <argument index="0" name="amount" type="bool"> </argument> <description> </description> </method> <method name="set_tap1_delay_ms"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap1_level_db"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap1_pan"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap2_active"> + <return type="void"> + </return> <argument index="0" name="amount" type="bool"> </argument> <description> </description> </method> <method name="set_tap2_delay_ms"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap2_level_db"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_tap2_pan"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> @@ -5756,30 +6648,40 @@ </description> </method> <method name="set_drive"> + <return type="void"> + </return> <argument index="0" name="drive" type="float"> </argument> <description> </description> </method> <method name="set_keep_hf_hz"> + <return type="void"> + </return> <argument index="0" name="keep_hf_hz" type="float"> </argument> <description> </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="AudioEffectDistortion.Mode"> </argument> <description> </description> </method> <method name="set_post_gain"> + <return type="void"> + </return> <argument index="0" name="post_gain" type="float"> </argument> <description> </description> </method> <method name="set_pre_gain"> + <return type="void"> + </return> <argument index="0" name="pre_gain" type="float"> </argument> <description> @@ -5791,7 +6693,7 @@ </member> <member name="keep_hf_hz" type="float" setter="set_keep_hf_hz" getter="get_keep_hf_hz" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="AudioEffectDistortion.Mode"> </member> <member name="post_gain" type="float" setter="set_post_gain" getter="get_post_gain" brief=""> </member> @@ -5822,6 +6724,8 @@ </description> </method> <method name="set_band_gain_db"> + <return type="void"> + </return> <argument index="0" name="band_idx" type="int"> </argument> <argument index="1" name="volume_db" type="float"> @@ -5894,24 +6798,32 @@ </description> </method> <method name="set_cutoff"> + <return type="void"> + </return> <argument index="0" name="freq" type="float"> </argument> <description> </description> </method> <method name="set_db"> - <argument index="0" name="amount" type="int"> + <return type="void"> + </return> + <argument index="0" name="amount" type="int" enum="AudioEffectFilter.FilterDB"> </argument> <description> </description> </method> <method name="set_gain"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_resonance"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> @@ -5921,7 +6833,7 @@ <members> <member name="cutoff_hz" type="float" setter="set_cutoff" getter="get_cutoff" brief=""> </member> - <member name="dB" type="int" setter="set_db" getter="get_db" brief=""> + <member name="dB" type="int" setter="set_db" getter="get_db" brief="" enum="AudioEffectFilter.FilterDB"> </member> <member name="gain" type="float" setter="set_gain" getter="get_gain" brief=""> </member> @@ -5982,24 +6894,32 @@ </description> </method> <method name="set_ceiling_db"> + <return type="void"> + </return> <argument index="0" name="ceiling" type="float"> </argument> <description> </description> </method> <method name="set_soft_clip_db"> + <return type="void"> + </return> <argument index="0" name="soft_clip" type="float"> </argument> <description> </description> </method> <method name="set_soft_clip_ratio"> + <return type="void"> + </return> <argument index="0" name="soft_clip" type="float"> </argument> <description> </description> </method> <method name="set_threshold_db"> + <return type="void"> + </return> <argument index="0" name="threshold" type="float"> </argument> <description> @@ -6062,6 +6982,8 @@ </description> </method> <method name="set_pan"> + <return type="void"> + </return> <argument index="0" name="cpanume" type="float"> </argument> <description> @@ -6112,30 +7034,40 @@ </description> </method> <method name="set_depth"> + <return type="void"> + </return> <argument index="0" name="depth" type="float"> </argument> <description> </description> </method> <method name="set_feedback"> + <return type="void"> + </return> <argument index="0" name="fbk" type="float"> </argument> <description> </description> </method> <method name="set_range_max_hz"> + <return type="void"> + </return> <argument index="0" name="hz" type="float"> </argument> <description> </description> </method> <method name="set_range_min_hz"> + <return type="void"> + </return> <argument index="0" name="hz" type="float"> </argument> <description> </description> </method> <method name="set_rate_hz"> + <return type="void"> + </return> <argument index="0" name="hz" type="float"> </argument> <description> @@ -6170,6 +7102,8 @@ </description> </method> <method name="set_pitch_scale"> + <return type="void"> + </return> <argument index="0" name="rate" type="float"> </argument> <description> @@ -6238,48 +7172,64 @@ </description> </method> <method name="set_damping"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_dry"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_hpf"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_predelay_feedback"> + <return type="void"> + </return> <argument index="0" name="feedback" type="float"> </argument> <description> </description> </method> <method name="set_predelay_msec"> + <return type="void"> + </return> <argument index="0" name="msec" type="float"> </argument> <description> </description> </method> <method name="set_room_size"> + <return type="void"> + </return> <argument index="0" name="size" type="float"> </argument> <description> </description> </method> <method name="set_spread"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_wet"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> @@ -6332,18 +7282,24 @@ </description> </method> <method name="set_pan_pullout"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_surround"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_time_pullout"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> @@ -6370,17 +7326,21 @@ </description> <methods> <method name="add_bus"> + <return type="void"> + </return> <argument index="0" name="at_pos" type="int" default="-1"> </argument> <description> </description> </method> <method name="add_bus_effect"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="effect" type="AudioEffect"> </argument> - <argument index="2" name="arg2" type="int" default="-1"> + <argument index="2" name="at_pos" type="int" default="null"> </argument> <description> </description> @@ -6408,12 +7368,10 @@ </description> </method> <method name="get_bus_effect_count"> + <return type="int"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> - <argument index="1" name="arg1" type="Object"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> <description> </description> </method> @@ -6516,10 +7474,14 @@ </description> </method> <method name="lock"> + <return type="void"> + </return> <description> </description> </method> <method name="move_bus"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="to_index" type="int"> @@ -6528,12 +7490,16 @@ </description> </method> <method name="remove_bus"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> </description> </method> <method name="remove_bus_effect"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="effect_idx" type="int"> @@ -6542,6 +7508,8 @@ </description> </method> <method name="set_bus_bypass_effects"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -6550,12 +7518,16 @@ </description> </method> <method name="set_bus_count"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> </description> </method> <method name="set_bus_effect_enabled"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="effect_idx" type="int"> @@ -6566,12 +7538,16 @@ </description> </method> <method name="set_bus_layout"> + <return type="void"> + </return> <argument index="0" name="bus_layout" type="AudioBusLayout"> </argument> <description> </description> </method> <method name="set_bus_mute"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -6580,6 +7556,8 @@ </description> </method> <method name="set_bus_name"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="name" type="String"> @@ -6588,6 +7566,8 @@ </description> </method> <method name="set_bus_send"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="send" type="String"> @@ -6596,6 +7576,8 @@ </description> </method> <method name="set_bus_solo"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -6604,6 +7586,8 @@ </description> </method> <method name="set_bus_volume_db"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="volume_db" type="float"> @@ -6612,6 +7596,8 @@ </description> </method> <method name="swap_bus_effects"> + <return type="void"> + </return> <argument index="0" name="bus_idx" type="int"> </argument> <argument index="1" name="effect_idx" type="int"> @@ -6622,6 +7608,8 @@ </description> </method> <method name="unlock"> + <return type="void"> + </return> <description> </description> </method> @@ -6661,6 +7649,12 @@ <description> </description> </method> + <method name="get_loop_offset" qualifiers="const"> + <return type="float"> + </return> + <description> + </description> + </method> <method name="has_loop" qualifiers="const"> <return type="bool"> </return> @@ -6668,23 +7662,37 @@ </description> </method> <method name="set_data"> + <return type="void"> + </return> <argument index="0" name="data" type="PoolByteArray"> </argument> <description> </description> </method> <method name="set_loop"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> + <method name="set_loop_offset"> + <return type="void"> + </return> + <argument index="0" name="seconds" type="float"> + </argument> + <description> + </description> + </method> </methods> <members> <member name="data" type="PoolByteArray" setter="set_data" getter="get_data" brief=""> </member> <member name="loop" type="bool" setter="set_loop" getter="has_loop" brief=""> </member> + <member name="loop_offset" type="float" setter="set_loop_offset" getter="get_loop_offset" brief=""> + </member> </members> <constants> </constants> @@ -6724,7 +7732,7 @@ </description> </method> <method name="get_stream" qualifiers="const"> - <return type="Object"> + <return type="AudioStream"> </return> <description> </description> @@ -6748,48 +7756,64 @@ </description> </method> <method name="play"> - <argument index="0" name="from_pos" type="float" default="0"> + <return type="void"> + </return> + <argument index="0" name="from_pos" type="float" default="0.0"> </argument> <description> </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="to_pos" type="float"> </argument> <description> </description> </method> <method name="set_autoplay"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_bus"> + <return type="void"> + </return> <argument index="0" name="bus" type="String"> </argument> <description> </description> </method> <method name="set_mix_target"> - <argument index="0" name="mix_target" type="int"> + <return type="void"> + </return> + <argument index="0" name="mix_target" type="int" enum="AudioStreamPlayer.MixTarget"> </argument> <description> </description> </method> <method name="set_stream"> + <return type="void"> + </return> <argument index="0" name="stream" type="AudioStream"> </argument> <description> </description> </method> <method name="set_volume_db"> + <return type="void"> + </return> <argument index="0" name="volume_db" type="float"> </argument> <description> </description> </method> <method name="stop"> + <return type="void"> + </return> <description> </description> </method> @@ -6799,7 +7823,7 @@ </member> <member name="bus" type="String" setter="set_bus" getter="get_bus" brief=""> </member> - <member name="mix_target" type="int" setter="set_mix_target" getter="get_mix_target" brief=""> + <member name="mix_target" type="int" setter="set_mix_target" getter="get_mix_target" brief="" enum="AudioStreamPlayer.MixTarget"> </member> <member name="playing" type="bool" setter="_set_playing" getter="_is_active" brief=""> </member> @@ -6808,6 +7832,12 @@ <member name="volume_db" type="float" setter="set_volume_db" getter="get_volume_db" brief=""> </member> </members> + <signals> + <signal name="finished"> + <description> + </description> + </signal> + </signals> <constants> </constants> </class> @@ -6848,7 +7878,7 @@ </description> </method> <method name="get_stream" qualifiers="const"> - <return type="Object"> + <return type="AudioStream"> </return> <description> </description> @@ -6872,60 +7902,80 @@ </description> </method> <method name="play"> - <argument index="0" name="from_pos" type="float" default="0"> + <return type="void"> + </return> + <argument index="0" name="from_pos" type="float" default="0.0"> </argument> <description> </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="to_pos" type="float"> </argument> <description> </description> </method> <method name="set_area_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> </description> </method> <method name="set_attenuation"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_autoplay"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_bus"> + <return type="void"> + </return> <argument index="0" name="bus" type="String"> </argument> <description> </description> </method> <method name="set_max_distance"> + <return type="void"> + </return> <argument index="0" name="pixels" type="float"> </argument> <description> </description> </method> <method name="set_stream"> + <return type="void"> + </return> <argument index="0" name="stream" type="AudioStream"> </argument> <description> </description> </method> <method name="set_volume_db"> + <return type="void"> + </return> <argument index="0" name="volume_db" type="float"> </argument> <description> </description> </method> <method name="stop"> + <return type="void"> + </return> <description> </description> </method> @@ -6948,6 +7998,12 @@ <member name="volume_db" type="float" setter="set_volume_db" getter="get_volume_db" brief=""> </member> </members> + <signals> + <signal name="finished"> + <description> + </description> + </signal> + </signals> <constants> </constants> </class> @@ -7030,7 +8086,7 @@ </description> </method> <method name="get_stream" qualifiers="const"> - <return type="Object"> + <return type="AudioStream"> </return> <description> </description> @@ -7066,114 +8122,152 @@ </description> </method> <method name="play"> - <argument index="0" name="from_pos" type="float" default="0"> + <return type="void"> + </return> + <argument index="0" name="from_pos" type="float" default="0.0"> </argument> <description> </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="to_pos" type="float"> </argument> <description> </description> </method> <method name="set_area_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> </description> </method> <method name="set_attenuation_filter_cutoff_hz"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_attenuation_filter_db"> + <return type="void"> + </return> <argument index="0" name="db" type="float"> </argument> <description> </description> </method> <method name="set_attenuation_model"> - <argument index="0" name="model" type="int"> + <return type="void"> + </return> + <argument index="0" name="model" type="int" enum="AudioStreamPlayer3D.AttenuationModel"> </argument> <description> </description> </method> <method name="set_autoplay"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_bus"> + <return type="void"> + </return> <argument index="0" name="bus" type="String"> </argument> <description> </description> </method> <method name="set_doppler_tracking"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="AudioStreamPlayer3D.DopplerTracking"> </argument> <description> </description> </method> <method name="set_emission_angle"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_emission_angle_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_emission_angle_filter_attenuation_db"> + <return type="void"> + </return> <argument index="0" name="db" type="float"> </argument> <description> </description> </method> <method name="set_max_db"> + <return type="void"> + </return> <argument index="0" name="max_db" type="float"> </argument> <description> </description> </method> <method name="set_max_distance"> + <return type="void"> + </return> <argument index="0" name="metres" type="float"> </argument> <description> </description> </method> <method name="set_out_of_range_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="AudioStreamPlayer3D.OutOfRangeMode"> </argument> <description> </description> </method> <method name="set_stream"> + <return type="void"> + </return> <argument index="0" name="stream" type="AudioStream"> </argument> <description> </description> </method> <method name="set_unit_db"> + <return type="void"> + </return> <argument index="0" name="unit_db" type="float"> </argument> <description> </description> </method> <method name="set_unit_size"> + <return type="void"> + </return> <argument index="0" name="unit_size" type="float"> </argument> <description> </description> </method> <method name="stop"> + <return type="void"> + </return> <description> </description> </method> @@ -7185,13 +8279,13 @@ </member> <member name="attenuation_filter_db" type="float" setter="set_attenuation_filter_db" getter="get_attenuation_filter_db" brief=""> </member> - <member name="attenuation_model" type="int" setter="set_attenuation_model" getter="get_attenuation_model" brief=""> + <member name="attenuation_model" type="int" setter="set_attenuation_model" getter="get_attenuation_model" brief="" enum="AudioStreamPlayer3D.AttenuationModel"> </member> <member name="autoplay" type="bool" setter="set_autoplay" getter="is_autoplay_enabled" brief=""> </member> <member name="bus" type="String" setter="set_bus" getter="get_bus" brief=""> </member> - <member name="doppler_tracking" type="int" setter="set_doppler_tracking" getter="get_doppler_tracking" brief=""> + <member name="doppler_tracking" type="int" setter="set_doppler_tracking" getter="get_doppler_tracking" brief="" enum="AudioStreamPlayer3D.DopplerTracking"> </member> <member name="emission_angle_degrees" type="float" setter="set_emission_angle" getter="get_emission_angle" brief=""> </member> @@ -7203,7 +8297,7 @@ </member> <member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance" brief=""> </member> - <member name="out_of_range_mode" type="int" setter="set_out_of_range_mode" getter="get_out_of_range_mode" brief=""> + <member name="out_of_range_mode" type="int" setter="set_out_of_range_mode" getter="get_out_of_range_mode" brief="" enum="AudioStreamPlayer3D.OutOfRangeMode"> </member> <member name="playing" type="bool" setter="_set_playing" getter="_is_active" brief=""> </member> @@ -7214,6 +8308,12 @@ <member name="unit_size" type="float" setter="set_unit_size" getter="get_unit_size" brief=""> </member> </members> + <signals> + <signal name="finished"> + <description> + </description> + </signal> + </signals> <constants> <constant name="ATTENUATION_INVERSE_DISTANCE" value="0"> </constant> @@ -7240,7 +8340,7 @@ </description> <methods> <method name="get_audio_stream" qualifiers="const"> - <return type="Object"> + <return type="AudioStream"> </return> <description> </description> @@ -7252,12 +8352,16 @@ </description> </method> <method name="set_audio_stream"> - <argument index="0" name="stream" type="Object"> + <return type="void"> + </return> + <argument index="0" name="stream" type="AudioStream"> </argument> <description> </description> </method> <method name="set_random_pitch"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> @@ -7322,42 +8426,56 @@ </description> </method> <method name="set_data"> + <return type="void"> + </return> <argument index="0" name="data" type="PoolByteArray"> </argument> <description> </description> </method> <method name="set_format"> - <argument index="0" name="format" type="int"> + <return type="void"> + </return> + <argument index="0" name="format" type="int" enum="AudioStreamSample.Format"> </argument> <description> </description> </method> <method name="set_loop_begin"> + <return type="void"> + </return> <argument index="0" name="loop_begin" type="int"> </argument> <description> </description> </method> <method name="set_loop_end"> + <return type="void"> + </return> <argument index="0" name="loop_end" type="int"> </argument> <description> </description> </method> <method name="set_loop_mode"> - <argument index="0" name="loop_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="loop_mode" type="int" enum="AudioStreamSample.LoopMode"> </argument> <description> </description> </method> <method name="set_mix_rate"> + <return type="void"> + </return> <argument index="0" name="mix_rate" type="int"> </argument> <description> </description> </method> <method name="set_stereo"> + <return type="void"> + </return> <argument index="0" name="stereo" type="bool"> </argument> <description> @@ -7367,13 +8485,13 @@ <members> <member name="data" type="PoolByteArray" setter="set_data" getter="get_data" brief=""> </member> - <member name="format" type="int" setter="set_format" getter="get_format" brief=""> + <member name="format" type="int" setter="set_format" getter="get_format" brief="" enum="AudioStreamSample.Format"> </member> <member name="loop_begin" type="int" setter="set_loop_begin" getter="get_loop_begin" brief=""> </member> <member name="loop_end" type="int" setter="set_loop_end" getter="get_loop_end" brief=""> </member> - <member name="loop_mode" type="int" setter="set_loop_mode" getter="get_loop_mode" brief=""> + <member name="loop_mode" type="int" setter="set_loop_mode" getter="get_loop_mode" brief="" enum="AudioStreamSample.LoopMode"> </member> <member name="mix_rate" type="int" setter="set_mix_rate" getter="get_mix_rate" brief=""> </member> @@ -7406,13 +8524,17 @@ </description> </method> <method name="set_copy_mode"> - <argument index="0" name="copy_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="copy_mode" type="int" enum="BackBufferCopy.CopyMode"> </argument> <description> Set the copy mode of the BackBufferCopy (refer to constants section). </description> </method> <method name="set_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> @@ -7421,7 +8543,7 @@ </method> </methods> <members> - <member name="copy_mode" type="int" setter="set_copy_mode" getter="get_copy_mode" brief=""> + <member name="copy_mode" type="int" setter="set_copy_mode" getter="get_copy_mode" brief="" enum="BackBufferCopy.CopyMode"> </member> <member name="rect" type="Rect2" setter="set_rect" getter="get_rect" brief=""> </member> @@ -7447,11 +8569,15 @@ </description> <methods> <method name="_pressed" qualifiers="virtual"> + <return type="void"> + </return> <description> Called when button is pressed. </description> </method> <method name="_toggled" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> @@ -7466,7 +8592,7 @@ </description> </method> <method name="get_button_group" qualifiers="const"> - <return type="Object"> + <return type="ButtonGroup"> </return> <description> </description> @@ -7486,7 +8612,7 @@ </description> </method> <method name="get_shortcut" qualifiers="const"> - <return type="Object"> + <return type="ShortCut"> </return> <description> </description> @@ -7520,19 +8646,25 @@ </description> </method> <method name="set_action_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="BaseButton.ActionMode"> </argument> <description> Set the current mode of action, determining when the button is considered clicked (see the ACTION_MODE_* constants). </description> </method> <method name="set_button_group"> - <argument index="0" name="button_group" type="Object"> + <return type="void"> + </return> + <argument index="0" name="button_group" type="ButtonGroup"> </argument> <description> </description> </method> <method name="set_disabled"> + <return type="void"> + </return> <argument index="0" name="disabled" type="bool"> </argument> <description> @@ -7540,13 +8672,17 @@ </description> </method> <method name="set_enabled_focus_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Control.FocusMode"> </argument> <description> Sets the focus access mode to use when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]). </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> @@ -7554,12 +8690,16 @@ </description> </method> <method name="set_shortcut"> - <argument index="0" name="shortcut" type="Object"> + <return type="void"> + </return> + <argument index="0" name="shortcut" type="ShortCut"> </argument> <description> </description> </method> <method name="set_toggle_mode"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -7568,15 +8708,15 @@ </method> </methods> <members> - <member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" brief=""> + <member name="action_mode" type="int" setter="set_action_mode" getter="get_action_mode" brief="" enum="BaseButton.ActionMode"> </member> <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" brief=""> </member> - <member name="enabled_focus_mode" type="int" setter="set_enabled_focus_mode" getter="get_enabled_focus_mode" brief=""> + <member name="enabled_focus_mode" type="int" setter="set_enabled_focus_mode" getter="get_enabled_focus_mode" brief="" enum="Control.FocusMode"> </member> <member name="group" type="ButtonGroup" setter="set_button_group" getter="get_button_group" brief=""> </member> - <member name="is_pressed" type="bool" setter="set_pressed" getter="is_pressed" brief=""> + <member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" brief=""> </member> <member name="shortcut" type="ShortCut" setter="set_shortcut" getter="get_shortcut" brief=""> </member> @@ -7812,13 +8952,17 @@ </description> <methods> <method name="create"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="create_from_image_alpha"> - <argument index="0" name="image" type="Object"> + <return type="void"> + </return> + <argument index="0" name="image" type="Image"> </argument> <description> </description> @@ -7844,6 +8988,8 @@ </description> </method> <method name="set_bit"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <argument index="1" name="bit" type="bool"> @@ -7852,6 +8998,8 @@ </description> </method> <method name="set_bit_rect"> + <return type="void"> + </return> <argument index="0" name="p_rect" type="Rect2"> </argument> <argument index="1" name="bit" type="bool"> @@ -7874,21 +9022,25 @@ </description> <methods> <method name="add_char"> + <return type="void"> + </return> <argument index="0" name="character" type="int"> </argument> <argument index="1" name="texture" type="int"> </argument> <argument index="2" name="rect" type="Rect2"> </argument> - <argument index="3" name="align" type="Vector2" default="Vector2(0, 0)"> + <argument index="3" name="align" type="Vector2" default="null"> </argument> - <argument index="4" name="advance" type="float" default="-1"> + <argument index="4" name="advance" type="float" default="null"> </argument> <description> Add a character to the font, where [i]character[/i] is the unicode value, [i]texture[/i] is the texture index, [i]rect[/i] is the region in the texture (in pixels!), [i]align[/i] is the (optional) alignment for the character and [i]advance[/i] is the (optional) advance. </description> </method> <method name="add_kerning_pair"> + <return type="void"> + </return> <argument index="0" name="char_a" type="int"> </argument> <argument index="1" name="char_b" type="int"> @@ -7900,6 +9052,8 @@ </description> </method> <method name="add_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> @@ -7907,6 +9061,8 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear all the font data. </description> @@ -7924,14 +9080,14 @@ </return> <argument index="0" name="char" type="int"> </argument> - <argument index="1" name="next" type="int" default="0"> + <argument index="1" name="next" type="int" default="null"> </argument> <description> Return the size of a character, optionally taking kerning into account if the next character is provided. </description> </method> <method name="get_fallback" qualifiers="const"> - <return type="Object"> + <return type="BitmapFont"> </return> <description> </description> @@ -7962,6 +9118,8 @@ </description> </method> <method name="set_ascent"> + <return type="void"> + </return> <argument index="0" name="px" type="float"> </argument> <description> @@ -7969,18 +9127,24 @@ </description> </method> <method name="set_distance_field_hint"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_fallback"> - <argument index="0" name="fallback" type="Object"> + <return type="void"> + </return> + <argument index="0" name="fallback" type="BitmapFont"> </argument> <description> </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="px" type="float"> </argument> <description> @@ -8022,6 +9186,8 @@ </description> </method> <method name="set_bone_name"> + <return type="void"> + </return> <argument index="0" name="bone_name" type="String"> </argument> <description> @@ -8040,6 +9206,8 @@ </description> <methods> <method name="add_spacer"> + <return type="void"> + </return> <argument index="0" name="begin" type="bool"> </argument> <description> @@ -8055,7 +9223,9 @@ </description> </method> <method name="set_alignment"> - <argument index="0" name="alignment" type="int"> + <return type="void"> + </return> + <argument index="0" name="alignment" type="int" enum="BoxContainer.AlignMode"> </argument> <description> Set the alignment of children in the container(Must be one of ALIGN_BEGIN, ALIGN_CENTER or ALIGN_END). @@ -8063,7 +9233,7 @@ </method> </methods> <members> - <member name="alignment" type="int" setter="set_alignment" getter="get_alignment" brief=""> + <member name="alignment" type="int" setter="set_alignment" getter="get_alignment" brief="" enum="BoxContainer.AlignMode"> </member> </members> <constants> @@ -8094,6 +9264,8 @@ </description> </method> <method name="set_extents"> + <return type="void"> + </return> <argument index="0" name="extents" type="Vector3"> </argument> <description> @@ -8152,6 +9324,8 @@ </description> </method> <method name="set_button_icon"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> @@ -8159,6 +9333,8 @@ </description> </method> <method name="set_clip_text"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -8166,6 +9342,8 @@ </description> </method> <method name="set_flat"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -8173,6 +9351,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -8180,7 +9360,9 @@ </description> </method> <method name="set_text_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="Button.TextAlign"> </argument> <description> Set the text alignment policy, using one of the ALIGN_* constants. @@ -8188,7 +9370,7 @@ </method> </methods> <members> - <member name="align" type="int" setter="set_text_align" getter="get_text_align" brief=""> + <member name="align" type="int" setter="set_text_align" getter="get_text_align" brief="" enum="Button.TextAlign"> </member> <member name="clip_text" type="bool" setter="set_clip_text" getter="get_clip_text" brief=""> </member> @@ -8267,6 +9449,8 @@ </description> <methods> <method name="clear_current"> + <return type="void"> + </return> <description> </description> </method> @@ -8359,6 +9543,8 @@ </description> </method> <method name="make_current"> + <return type="void"> + </return> <description> Make this camera the current Camera for the [Viewport] (see class description). If the Camera Node is outside the scene tree, it will attempt to become current once it's added. </description> @@ -8398,36 +9584,48 @@ </description> </method> <method name="set_cull_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> </description> </method> <method name="set_doppler_tracking"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Camera.DopplerTracking"> </argument> <description> </description> </method> <method name="set_environment"> + <return type="void"> + </return> <argument index="0" name="env" type="Environment"> </argument> <description> </description> </method> <method name="set_h_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="float"> </argument> <description> </description> </method> <method name="set_keep_aspect_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Camera.KeepAspect"> </argument> <description> </description> </method> <method name="set_orthogonal"> + <return type="void"> + </return> <argument index="0" name="size" type="float"> </argument> <argument index="1" name="z_near" type="float"> @@ -8439,6 +9637,8 @@ </description> </method> <method name="set_perspective"> + <return type="void"> + </return> <argument index="0" name="fov" type="float"> </argument> <argument index="1" name="z_near" type="float"> @@ -8450,6 +9650,8 @@ </description> </method> <method name="set_v_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="float"> </argument> <description> @@ -8494,15 +9696,21 @@ </description> <methods> <method name="align"> + <return type="void"> + </return> <description> Align the camera to the tracked node </description> </method> <method name="clear_current"> + <return type="void"> + </return> <description> </description> </method> <method name="force_update_scroll"> + <return type="void"> + </return> <description> Force the camera to update scroll immediately. </description> @@ -8527,7 +9735,7 @@ </description> </method> <method name="get_custom_viewport" qualifiers="const"> - <return type="Viewport"> + <return type="Node"> </return> <description> </description> @@ -8535,7 +9743,7 @@ <method name="get_drag_margin" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the margins needed to drag the camera (see [method set_drag_margin]). @@ -8556,7 +9764,7 @@ <method name="get_limit" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the scrolling limit in pixels. @@ -8637,30 +9845,40 @@ </description> </method> <method name="make_current"> + <return type="void"> + </return> <description> Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene. </description> </method> <method name="reset_smoothing"> + <return type="void"> + </return> <description> Set the camera's position immediately to its current smoothing destination. This has no effect if smoothing is disabled. </description> </method> <method name="set_anchor_mode"> - <argument index="0" name="anchor_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="anchor_mode" type="int" enum="Camera2D.AnchorMode"> </argument> <description> </description> </method> <method name="set_custom_viewport"> - <argument index="0" name="viewport" type="Viewport"> + <return type="void"> + </return> + <argument index="0" name="viewport" type="Node"> </argument> <description> </description> </method> <method name="set_drag_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="drag_margin" type="float"> </argument> @@ -8669,31 +9887,41 @@ </description> </method> <method name="set_enable_follow_smoothing"> + <return type="void"> + </return> <argument index="0" name="follow_smoothing" type="bool"> </argument> <description> </description> </method> <method name="set_follow_smoothing"> + <return type="void"> + </return> <argument index="0" name="follow_smoothing" type="float"> </argument> <description> </description> </method> <method name="set_h_drag_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_h_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="float"> </argument> <description> </description> </method> <method name="set_limit"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="limit" type="int"> </argument> @@ -8702,12 +9930,16 @@ </description> </method> <method name="set_limit_drawing_enabled"> + <return type="void"> + </return> <argument index="0" name="limit_drawing_enabled" type="bool"> </argument> <description> </description> </method> <method name="set_limit_smoothing_enabled"> + <return type="void"> + </return> <argument index="0" name="limit_smoothing_enabled" type="bool"> </argument> <description> @@ -8716,12 +9948,16 @@ </description> </method> <method name="set_margin_drawing_enabled"> + <return type="void"> + </return> <argument index="0" name="margin_drawing_enabled" type="bool"> </argument> <description> </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -8729,30 +9965,40 @@ </description> </method> <method name="set_rotating"> + <return type="void"> + </return> <argument index="0" name="rotating" type="bool"> </argument> <description> </description> </method> <method name="set_screen_drawing_enabled"> + <return type="void"> + </return> <argument index="0" name="screen_drawing_enabled" type="bool"> </argument> <description> </description> </method> <method name="set_v_drag_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_v_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="float"> </argument> <description> </description> </method> <method name="set_zoom"> + <return type="void"> + </return> <argument index="0" name="zoom" type="Vector2"> </argument> <description> @@ -8760,7 +10006,7 @@ </method> </methods> <members> - <member name="anchor_mode" type="int" setter="set_anchor_mode" getter="get_anchor_mode" brief=""> + <member name="anchor_mode" type="int" setter="set_anchor_mode" getter="get_anchor_mode" brief="" enum="Camera2D.AnchorMode"> </member> <member name="current" type="bool" setter="_set_current" getter="is_current" brief=""> </member> @@ -8823,6 +10069,8 @@ </description> <methods> <method name="_draw" qualifiers="virtual"> + <return type="void"> + </return> <description> Called (if exists) to draw the canvas item. </description> @@ -8838,13 +10086,15 @@ </argument> <argument index="3" name="next" type="String"> </argument> - <argument index="4" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="4" name="modulate" type="Color" default="null"> </argument> <description> Draw a string character using a custom font. Returns the advance, depending on the char width and kerning with an optional next char. </description> </method> <method name="draw_circle"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <argument index="1" name="radius" type="float"> @@ -8856,103 +10106,123 @@ </description> </method> <method name="draw_colored_polygon"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="color" type="Color"> </argument> - <argument index="2" name="uvs" type="PoolVector2Array" default="PoolVector2Array([])"> + <argument index="2" name="uvs" type="PoolVector2Array" default="null"> </argument> - <argument index="3" name="texture" type="Texture" default="NULL"> + <argument index="3" name="texture" type="Texture" default="PoolVector2Array( )"> </argument> - <argument index="4" name="normal_map" type="Texture" default="NULL"> + <argument index="4" name="normal_map" type="Texture" default="null"> + </argument> + <argument index="5" name="antialiased" type="bool" default="null"> </argument> <description> Draw a colored polygon of any amount of points, convex or concave. </description> </method> <method name="draw_line"> + <return type="void"> + </return> <argument index="0" name="from" type="Vector2"> </argument> <argument index="1" name="to" type="Vector2"> </argument> <argument index="2" name="color" type="Color"> </argument> - <argument index="3" name="width" type="float" default="1"> + <argument index="3" name="width" type="float" default="null"> </argument> - <argument index="4" name="antialiased" type="bool" default="false"> + <argument index="4" name="antialiased" type="bool" default="null"> </argument> <description> Draw a line from a 2D point to another, with a given color and width. It can be optionally antialiased. </description> </method> <method name="draw_polygon"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="colors" type="PoolColorArray"> </argument> - <argument index="2" name="uvs" type="PoolVector2Array" default="PoolVector2Array([])"> + <argument index="2" name="uvs" type="PoolVector2Array" default="null"> + </argument> + <argument index="3" name="texture" type="Texture" default="PoolVector2Array( )"> </argument> - <argument index="3" name="texture" type="Texture" default="NULL"> + <argument index="4" name="normal_map" type="Texture" default="null"> </argument> - <argument index="4" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="antialiased" type="bool" default="null"> </argument> <description> Draw a polygon of any amount of points, convex or concave. </description> </method> <method name="draw_polyline"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="color" type="Color"> </argument> - <argument index="2" name="width" type="float" default="1"> + <argument index="2" name="width" type="float" default="null"> </argument> - <argument index="3" name="antialiased" type="bool" default="false"> + <argument index="3" name="antialiased" type="bool" default="null"> </argument> <description> </description> </method> <method name="draw_polyline_colors"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="colors" type="PoolColorArray"> </argument> - <argument index="2" name="width" type="float" default="1"> + <argument index="2" name="width" type="float" default="null"> </argument> - <argument index="3" name="antialiased" type="bool" default="false"> + <argument index="3" name="antialiased" type="bool" default="null"> </argument> <description> </description> </method> <method name="draw_primitive"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="colors" type="PoolColorArray"> </argument> <argument index="2" name="uvs" type="PoolVector2Array"> </argument> - <argument index="3" name="texture" type="Texture" default="NULL"> + <argument index="3" name="texture" type="Texture" default="null"> </argument> - <argument index="4" name="width" type="float" default="1"> + <argument index="4" name="width" type="float" default="null"> </argument> - <argument index="5" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="normal_map" type="Texture" default="null"> </argument> <description> Draw a custom primitive, 1 point for a point, 2 points for a line, 3 points for a triangle and 4 points for a quad. </description> </method> <method name="draw_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <argument index="1" name="color" type="Color"> </argument> - <argument index="2" name="filled" type="bool" default="true"> + <argument index="2" name="filled" type="bool" default="null"> </argument> <description> Draw a colored rectangle. </description> </method> <method name="draw_set_transform"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <argument index="1" name="rot" type="float"> @@ -8964,27 +10234,33 @@ </description> </method> <method name="draw_set_transform_matrix"> + <return type="void"> + </return> <argument index="0" name="xform" type="Transform2D"> </argument> <description> </description> </method> <method name="draw_string"> + <return type="void"> + </return> <argument index="0" name="font" type="Font"> </argument> <argument index="1" name="pos" type="Vector2"> </argument> <argument index="2" name="text" type="String"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="null"> </argument> - <argument index="4" name="clip_w" type="int" default="-1"> + <argument index="4" name="clip_w" type="int" default="null"> </argument> <description> Draw a string using a custom font. </description> </method> <method name="draw_style_box"> + <return type="void"> + </return> <argument index="0" name="style_box" type="StyleBox"> </argument> <argument index="1" name="rect" type="Rect2"> @@ -8994,49 +10270,55 @@ </description> </method> <method name="draw_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="pos" type="Vector2"> </argument> - <argument index="2" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="2" name="modulate" type="Color" default="null"> </argument> - <argument index="3" name="normal_map" type="Texture" default="NULL"> + <argument index="3" name="normal_map" type="Texture" default="null"> </argument> <description> Draw a texture at a given position. </description> </method> <method name="draw_texture_rect"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="rect" type="Rect2"> </argument> <argument index="2" name="tile" type="bool"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="null"> </argument> - <argument index="4" name="transpose" type="bool" default="false"> + <argument index="4" name="transpose" type="bool" default="null"> </argument> - <argument index="5" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="normal_map" type="Texture" default="null"> </argument> <description> Draw a textured rectangle at a given position, optionally modulated by a color. Transpose swaps the x and y coordinates when reading the texture. </description> </method> <method name="draw_texture_rect_region"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="rect" type="Rect2"> </argument> <argument index="2" name="src_rect" type="Rect2"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )"> </argument> - <argument index="4" name="transpose" type="bool" default="false"> + <argument index="4" name="transpose" type="bool" default="null"> </argument> - <argument index="5" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="normal_map" type="Texture" default="null"> </argument> - <argument index="6" name="clip_uv" type="bool" default="true"> + <argument index="6" name="clip_uv" type="bool" default="null"> </argument> <description> Draw a textured rectangle region at a given position, optionally modulated by a color. Transpose swaps the x and y coordinates when reading the texture. @@ -9050,6 +10332,8 @@ </description> </method> <method name="edit_rotate"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> @@ -9057,12 +10341,16 @@ </description> </method> <method name="edit_set_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> </description> </method> <method name="edit_set_state"> + <return type="void"> + </return> <argument index="0" name="state" type="Variant"> </argument> <description> @@ -9189,13 +10477,15 @@ </description> </method> <method name="get_world_2d" qualifiers="const"> - <return type="Object"> + <return type="World2D"> </return> <description> Get the [World2D] where this item is in. </description> </method> <method name="hide"> + <return type="void"> + </return> <description> Hide the CanvasItem currently visible. </description> @@ -9248,14 +10538,16 @@ </description> </method> <method name="make_input_local" qualifiers="const"> - <return type="Object"> + <return type="InputEvent"> </return> - <argument index="0" name="event" type="Object"> + <argument index="0" name="event" type="InputEvent"> </argument> <description> </description> </method> <method name="set_as_toplevel"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -9263,6 +10555,8 @@ </description> </method> <method name="set_draw_behind_parent"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -9270,6 +10564,8 @@ </description> </method> <method name="set_light_mask"> + <return type="void"> + </return> <argument index="0" name="light_mask" type="int"> </argument> <description> @@ -9277,6 +10573,8 @@ </description> </method> <method name="set_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> @@ -9284,6 +10582,8 @@ </description> </method> <method name="set_modulate"> + <return type="void"> + </return> <argument index="0" name="modulate" type="Color"> </argument> <description> @@ -9291,18 +10591,24 @@ </description> </method> <method name="set_notify_local_transform"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_notify_transform"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_self_modulate"> + <return type="void"> + </return> <argument index="0" name="self_modulate" type="Color"> </argument> <description> @@ -9310,6 +10616,8 @@ </description> </method> <method name="set_use_parent_material"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -9317,7 +10625,9 @@ </description> </method> <method name="set_visible"> - <argument index="0" name="arg0" type="bool"> + <return type="void"> + </return> + <argument index="0" name="visible" type="bool"> </argument> <description> Set whether this item should be visible or not. @@ -9325,11 +10635,15 @@ </description> </method> <method name="show"> + <return type="void"> + </return> <description> Show the CanvasItem currently hidden. </description> </method> <method name="update"> + <return type="void"> + </return> <description> Queue the CanvasItem for update. [code]NOTIFICATION_DRAW[/code] will be called on idle time to request redraw. </description> @@ -9338,7 +10652,7 @@ <members> <member name="light_mask" type="int" setter="set_light_mask" getter="get_light_mask" brief=""> </member> - <member name="material" type="ShaderMaterial,CanvasItemMaterial" setter="set_material" getter="get_material" brief=""> + <member name="material" type="Material" setter="set_material" getter="get_material" brief=""> </member> <member name="modulate" type="Color" setter="set_modulate" getter="get_modulate" brief=""> </member> @@ -9391,19 +10705,19 @@ <constant name="BLEND_MODE_PREMULT_ALPHA" value="4"> Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value. </constant> - <constant name="NOTIFICATION_DRAW" value="30"> + <constant name="NOTIFICATION_DRAW" value="30" enum=""> CanvasItem is requested to draw. </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31"> + <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31" enum=""> Canvas item visibility has changed. </constant> - <constant name="NOTIFICATION_ENTER_CANVAS" value="32"> + <constant name="NOTIFICATION_ENTER_CANVAS" value="32" enum=""> Canvas item has entered the canvas. </constant> - <constant name="NOTIFICATION_EXIT_CANVAS" value="33"> + <constant name="NOTIFICATION_EXIT_CANVAS" value="33" enum=""> Canvas item has exited the canvas. </constant> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29"> + <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29" enum=""> Canvas item transform has changed. Only received if requested. </constant> </constants> @@ -9427,22 +10741,26 @@ </description> </method> <method name="set_blend_mode"> - <argument index="0" name="blend_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="blend_mode" type="int" enum="CanvasItemMaterial.BlendMode"> </argument> <description> </description> </method> <method name="set_light_mode"> - <argument index="0" name="light_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="light_mode" type="int" enum="CanvasItemMaterial.LightMode"> </argument> <description> </description> </method> </methods> <members> - <member name="blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" brief=""> + <member name="blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" brief="" enum="CanvasItemMaterial.BlendMode"> </member> - <member name="light_mode" type="int" setter="set_light_mode" getter="get_light_mode" brief=""> + <member name="light_mode" type="int" setter="set_light_mode" getter="get_light_mode" brief="" enum="CanvasItemMaterial.LightMode"> </member> </members> <constants> @@ -9473,7 +10791,7 @@ </description> <methods> <method name="get_custom_viewport" qualifiers="const"> - <return type="Viewport"> + <return type="Node"> </return> <description> </description> @@ -9528,12 +10846,16 @@ </description> </method> <method name="set_custom_viewport"> - <argument index="0" name="viewport" type="Viewport"> + <return type="void"> + </return> + <argument index="0" name="viewport" type="Node"> </argument> <description> </description> </method> <method name="set_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -9541,6 +10863,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -9548,6 +10872,8 @@ </description> </method> <method name="set_rotation"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> @@ -9555,6 +10881,8 @@ </description> </method> <method name="set_rotationd"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> @@ -9562,6 +10890,8 @@ </description> </method> <method name="set_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> @@ -9569,6 +10899,8 @@ </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="transform" type="Transform2D"> </argument> <description> @@ -9605,6 +10937,8 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -9650,24 +10984,32 @@ </description> </method> <method name="set_mid_height"> + <return type="void"> + </return> <argument index="0" name="mid_height" type="float"> </argument> <description> </description> </method> <method name="set_radial_segments"> + <return type="void"> + </return> <argument index="0" name="segments" type="int"> </argument> <description> </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_rings"> + <return type="void"> + </return> <argument index="0" name="rings" type="int"> </argument> <description> @@ -9710,6 +11052,8 @@ </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> @@ -9717,6 +11061,8 @@ </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> @@ -9756,6 +11102,8 @@ </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> @@ -9763,6 +11111,8 @@ </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> @@ -9795,6 +11145,8 @@ </description> </method> <method name="set_use_top_left"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -9913,6 +11265,8 @@ </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> @@ -9972,7 +11326,7 @@ </return> <argument index="0" name="class" type="String"> </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> + <argument index="1" name="no_inheritance" type="bool" default="null"> </argument> <description> </description> @@ -9982,7 +11336,7 @@ </return> <argument index="0" name="class" type="String"> </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> + <argument index="1" name="no_inheritance" type="bool" default="null"> </argument> <description> </description> @@ -10002,7 +11356,7 @@ </return> <argument index="0" name="class" type="String"> </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> + <argument index="1" name="no_inheritance" type="bool" default="null"> </argument> <description> </description> @@ -10022,7 +11376,7 @@ </return> <argument index="0" name="class" type="String"> </argument> - <argument index="1" name="no_inheritance" type="bool" default="false"> + <argument index="1" name="no_inheritance" type="bool" default="null"> </argument> <description> </description> @@ -10044,7 +11398,7 @@ </argument> <argument index="1" name="method" type="String"> </argument> - <argument index="2" name="no_inheritance" type="bool" default="false"> + <argument index="2" name="no_inheritance" type="bool" default="null"> </argument> <description> </description> @@ -10060,7 +11414,7 @@ </description> </method> <method name="class_set_property" qualifiers="const"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="object" type="Object"> </argument> @@ -10130,6 +11484,8 @@ </description> <methods> <method name="_input_event" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="camera" type="Object"> </argument> <argument index="1" name="event" type="InputEvent"> @@ -10143,12 +11499,6 @@ <description> </description> </method> - <method name="get_capture_input_on_drag" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> <method name="create_shape_owner"> <return type="int"> </return> @@ -10158,6 +11508,12 @@ Creates new holder for the shapes. Argument is a [CollisionShape] node. It will return owner_id which usually you will want to save for later use. </description> </method> + <method name="get_capture_input_on_drag" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="get_rid" qualifiers="const"> <return type="RID"> </return> @@ -10171,14 +11527,80 @@ Shape owner is a node which is holding concrete shape resources. This method will return an array which is holding an integer numbers that are representing unique ID of each owner. You can use those ids when you are using others shape_owner methods. </description> </method> + <method name="is_ray_pickable" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="is_shape_owner_disabled" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="remove_shape_owner"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_capture_input_on_drag"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> + <method name="set_ray_pickable"> + <return type="void"> + </return> + <argument index="0" name="ray_pickable" type="bool"> + </argument> + <description> + </description> + </method> + <method name="shape_find_owner" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="shape_index" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_add_shape"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="shape" type="Shape"> + </argument> + <description> + </description> + </method> <method name="shape_owner_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="owner_id" type="int"> </argument> <description> Will remove all the shapes associated with given owner. </description> </method> - <method name="shape_owner_get_shape"> + <method name="shape_owner_get_owner" qualifiers="const"> + <return type="Object"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_get_shape" qualifiers="const"> <return type="Shape"> </return> <argument index="0" name="owner_id" type="int"> @@ -10189,7 +11611,7 @@ Will return a [Shape]. First argument owner_id is an integer that can be obtained from [method get_shape_owners]. Shape_id is a position of the shape inside owner; it's a value in range from 0 to [method shape_owner_get_shape_count]. </description> </method> - <method name="shape_owner_get_shape_count"> + <method name="shape_owner_get_shape_count" qualifiers="const"> <return type="int"> </return> <argument index="0" name="owner_id" type="int"> @@ -10198,7 +11620,17 @@ Returns number of shapes to which given owner is associated to. </description> </method> - <method name="shape_owner_get_transform"> + <method name="shape_owner_get_shape_index" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="shape_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_get_transform" qualifiers="const"> <return type="Transform"> </return> <argument index="0" name="owner_id" type="int"> @@ -10208,6 +11640,8 @@ </description> </method> <method name="shape_owner_remove_shape"> + <return type="void"> + </return> <argument index="0" name="owner_id" type="int"> </argument> <argument index="1" name="shape_id" type="int"> @@ -10216,20 +11650,22 @@ Removes related shape from the owner. </description> </method> - <method name="is_ray_pickable" qualifiers="const"> - <return type="bool"> + <method name="shape_owner_set_disabled"> + <return type="void"> </return> - <description> - </description> - </method> - <method name="set_capture_input_on_drag"> - <argument index="0" name="enable" type="bool"> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="disabled" type="bool"> </argument> <description> </description> </method> - <method name="set_ray_pickable"> - <argument index="0" name="ray_pickable" type="bool"> + <method name="shape_owner_set_transform"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="transform" type="Transform"> </argument> <description> </description> @@ -10277,6 +11713,8 @@ </description> <methods> <method name="_input_event" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="viewport" type="Object"> </argument> <argument index="1" name="event" type="InputEvent"> @@ -10309,14 +11747,82 @@ Shape owner is a node which is holding concrete shape resources. This method will return an array which is holding an integer numbers that are representing unique ID of each owner. You can use those ids when you are using others shape_owner methods. </description> </method> + <method name="is_pickable" qualifiers="const"> + <return type="bool"> + </return> + <description> + Return whether this object is pickable. + </description> + </method> + <method name="is_shape_owner_disabled" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="is_shape_owner_one_way_collision_enabled" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="remove_shape_owner"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_pickable"> + <return type="void"> + </return> + <argument index="0" name="enabled" type="bool"> + </argument> + <description> + Set whether this object is pickable. A pickable object can detect the mouse pointer enter/leave it and, if the mouse is inside it, report input events. + </description> + </method> + <method name="shape_find_owner" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="shape_index" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_add_shape"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="shape" type="Shape2D"> + </argument> + <description> + </description> + </method> <method name="shape_owner_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="owner_id" type="int"> </argument> <description> Will remove all the shapes associated with given owner. </description> </method> - <method name="shape_owner_get_shape"> + <method name="shape_owner_get_owner" qualifiers="const"> + <return type="Object"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_get_shape" qualifiers="const"> <return type="Shape2D"> </return> <argument index="0" name="owner_id" type="int"> @@ -10327,7 +11833,7 @@ Will return a [Shape2D]. First argument owner_id is an integer that can be obtained from [method get_shape_owners]. Shape_id is a position of the shape inside owner; it's a value in range from 0 to [method shape_owner_get_shape_count]. </description> </method> - <method name="shape_owner_get_shape_count"> + <method name="shape_owner_get_shape_count" qualifiers="const"> <return type="int"> </return> <argument index="0" name="owner_id" type="int"> @@ -10336,7 +11842,17 @@ Returns number of shapes to which given owner is associated to. </description> </method> - <method name="shape_owner_get_transform"> + <method name="shape_owner_get_shape_index" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="shape_id" type="int"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_get_transform" qualifiers="const"> <return type="Transform2D"> </return> <argument index="0" name="owner_id" type="int"> @@ -10346,6 +11862,8 @@ </description> </method> <method name="shape_owner_remove_shape"> + <return type="void"> + </return> <argument index="0" name="owner_id" type="int"> </argument> <argument index="1" name="shape_id" type="int"> @@ -10354,18 +11872,34 @@ Removes related shape from the owner. </description> </method> - <method name="is_pickable" qualifiers="const"> - <return type="bool"> + <method name="shape_owner_set_disabled"> + <return type="void"> </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="disabled" type="bool"> + </argument> <description> - Return whether this object is pickable. </description> </method> - <method name="set_pickable"> - <argument index="0" name="enabled" type="bool"> + <method name="shape_owner_set_one_way_collision"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="enable" type="bool"> + </argument> + <description> + </description> + </method> + <method name="shape_owner_set_transform"> + <return type="void"> + </return> + <argument index="0" name="owner_id" type="int"> + </argument> + <argument index="1" name="transform" type="Transform2D"> </argument> <description> - Set whether this object is pickable. A pickable object can detect the mouse pointer enter/leave it and, if the mouse is inside it, report input events. </description> </method> </methods> @@ -10423,18 +11957,24 @@ </description> </method> <method name="set_depth"> + <return type="void"> + </return> <argument index="0" name="depth" type="float"> </argument> <description> </description> </method> <method name="set_disabled"> + <return type="void"> + </return> <argument index="0" name="disabled" type="bool"> </argument> <description> </description> </method> <method name="set_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolVector2Array"> </argument> <description> @@ -10487,25 +12027,33 @@ </description> </method> <method name="set_build_mode"> - <argument index="0" name="build_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="build_mode" type="int" enum="CollisionPolygon2D.BuildMode"> </argument> <description> Set whether the polygon is to be a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). </description> </method> <method name="set_disabled"> + <return type="void"> + </return> <argument index="0" name="disabled" type="bool"> </argument> <description> </description> </method> <method name="set_one_way_collision"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolVector2Array"> </argument> <description> @@ -10515,7 +12063,7 @@ </method> </methods> <members> - <member name="build_mode" type="int" setter="set_build_mode" getter="get_build_mode" brief=""> + <member name="build_mode" type="int" setter="set_build_mode" getter="get_build_mode" brief="" enum="CollisionPolygon2D.BuildMode"> </member> <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" brief=""> </member> @@ -10534,7 +12082,7 @@ </description> <methods> <method name="get_shape" qualifiers="const"> - <return type="Object"> + <return type="Shape"> </return> <description> </description> @@ -10546,23 +12094,31 @@ </description> </method> <method name="make_convex_from_brothers"> + <return type="void"> + </return> <description> </description> </method> <method name="resource_changed"> - <argument index="0" name="resource" type="Object"> + <return type="void"> + </return> + <argument index="0" name="resource" type="Resource"> </argument> <description> </description> </method> <method name="set_disabled"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_shape"> - <argument index="0" name="shape" type="Object"> + <return type="void"> + </return> + <argument index="0" name="shape" type="Shape"> </argument> <description> </description> @@ -10586,7 +12142,7 @@ </description> <methods> <method name="get_shape" qualifiers="const"> - <return type="Object"> + <return type="Shape2D"> </return> <description> Return this shape's [Shape2D]. @@ -10605,19 +12161,25 @@ </description> </method> <method name="set_disabled"> + <return type="void"> + </return> <argument index="0" name="disabled" type="bool"> </argument> <description> </description> </method> <method name="set_one_way_collision"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_shape"> - <argument index="0" name="shape" type="Object"> + <return type="void"> + </return> + <argument index="0" name="shape" type="Shape2D"> </argument> <description> Set this shape's [Shape2D]. This will not appear as a node, but can be directly edited as a property. @@ -10801,7 +12363,9 @@ </description> <methods> <method name="add_preset"> - <argument index="0" name="arg0" type="Color"> + <return type="void"> + </return> + <argument index="0" name="color" type="Color"> </argument> <description> Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker. @@ -10829,6 +12393,8 @@ </description> </method> <method name="set_edit_alpha"> + <return type="void"> + </return> <argument index="0" name="show" type="bool"> </argument> <description> @@ -10836,6 +12402,8 @@ </description> </method> <method name="set_pick_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -10843,6 +12411,8 @@ </description> </method> <method name="set_raw_mode"> + <return type="void"> + </return> <argument index="0" name="mode" type="bool"> </argument> <description> @@ -10910,6 +12480,8 @@ </description> </method> <method name="set_edit_alpha"> + <return type="void"> + </return> <argument index="0" name="show" type="bool"> </argument> <description> @@ -10917,6 +12489,8 @@ </description> </method> <method name="set_pick_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -10978,6 +12552,8 @@ </description> </method> <method name="set_frame_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -11007,6 +12583,8 @@ </description> </method> <method name="set_faces"> + <return type="void"> + </return> <argument index="0" name="faces" type="PoolVector3Array"> </argument> <description> @@ -11034,6 +12612,8 @@ </description> </method> <method name="set_segments"> + <return type="void"> + </return> <argument index="0" name="segments" type="PoolVector2Array"> </argument> <description> @@ -11057,13 +12637,15 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="ConeTwistJoint.Param"> </argument> <description> </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="ConeTwistJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -11120,6 +12702,8 @@ </description> <methods> <method name="erase_section"> + <return type="void"> + </return> <argument index="0" name="section" type="String"> </argument> <description> @@ -11148,7 +12732,7 @@ </argument> <argument index="1" name="key" type="String"> </argument> - <argument index="2" name="default" type="Variant" default="NULL"> + <argument index="2" name="default" type="Variant" default="null"> </argument> <description> Return the current value for the specified section and key. If the section and/or the key do not exist, the method returns the value of the optional [i]default[/i] argument (and thus [code]NULL[/code] if not specified). @@ -11175,7 +12759,7 @@ </description> </method> <method name="load"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -11184,7 +12768,7 @@ </description> </method> <method name="save"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -11194,6 +12778,8 @@ </description> </method> <method name="set_value"> + <return type="void"> + </return> <argument index="0" name="section" type="String"> </argument> <argument index="1" name="key" type="String"> @@ -11237,6 +12823,8 @@ </description> <methods> <method name="fit_child_in_rect"> + <return type="void"> + </return> <argument index="0" name="child" type="Control"> </argument> <argument index="1" name="rect" type="Rect2"> @@ -11246,6 +12834,8 @@ </description> </method> <method name="queue_sort"> + <return type="void"> + </return> <description> Queue resort of the contained children. This is called automatically anyway, but can be called upon request. </description> @@ -11259,7 +12849,7 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_SORT_CHILDREN" value="50"> + <constant name="NOTIFICATION_SORT_CHILDREN" value="50" enum=""> Notification for when sorting the children, it must be obeyed immediately. </constant> </constants> @@ -11286,17 +12876,23 @@ </description> </method> <method name="_gui_input" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="event" type="InputEvent"> </argument> <description> </description> </method> <method name="accept_event"> + <return type="void"> + </return> <description> Handles the event, no other control will receive it and it will not be sent to nodes waiting on [method Node._unhandled_input] or [method Node._unhandled_key_input]. </description> </method> <method name="add_color_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="color" type="Color"> @@ -11305,6 +12901,8 @@ </description> </method> <method name="add_constant_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="constant" type="int"> @@ -11314,6 +12912,8 @@ </description> </method> <method name="add_font_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="font" type="Font"> @@ -11323,6 +12923,8 @@ </description> </method> <method name="add_icon_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="texture" type="Texture"> @@ -11332,6 +12934,8 @@ </description> </method> <method name="add_shader_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="shader" type="Shader"> @@ -11340,6 +12944,8 @@ </description> </method> <method name="add_style_override"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="stylebox" type="StyleBox"> @@ -11359,6 +12965,8 @@ </description> </method> <method name="drop_data" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <argument index="1" name="data" type="Variant"> @@ -11367,17 +12975,19 @@ </description> </method> <method name="force_drag"> + <return type="void"> + </return> <argument index="0" name="data" type="Variant"> </argument> - <argument index="1" name="preview" type="Object"> + <argument index="1" name="preview" type="Control"> </argument> <description> </description> </method> <method name="get_anchor" qualifiers="const"> - <return type="int"> + <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). @@ -11394,7 +13004,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11410,7 +13020,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11418,7 +13028,7 @@ <method name="get_cursor_shape" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="pos" type="Vector2" default="Vector2(0, 0)"> + <argument index="0" name="pos" type="Vector2" default="Vector2( 0, 0 )"> </argument> <description> Return the cursor shape at a certain position in the control. @@ -11462,7 +13072,7 @@ <method name="get_focus_neighbour" qualifiers="const"> <return type="NodePath"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the forced neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function. @@ -11480,7 +13090,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11517,7 +13127,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11525,7 +13135,7 @@ <method name="get_margin" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being returned depends on the anchor mode. @@ -11616,7 +13226,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11631,7 +13241,7 @@ <method name="get_tooltip" qualifiers="const"> <return type="String"> </return> - <argument index="0" name="atpos" type="Vector2" default="Vector2(0, 0)"> + <argument index="0" name="atpos" type="Vector2" default="Vector2( 0, 0 )"> </argument> <description> Return the tooltip, which will appear when the cursor is resting over this control. @@ -11651,10 +13261,14 @@ </description> </method> <method name="grab_click_focus"> + <return type="void"> + </return> <description> </description> </method> <method name="grab_focus"> + <return type="void"> + </return> <description> Steal the focus from another control and become the focused control (see [method set_focus_mode]). </description> @@ -11664,7 +13278,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11682,7 +13296,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11707,7 +13321,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11725,7 +13339,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11739,6 +13353,8 @@ </description> </method> <method name="has_point" qualifiers="virtual"> + <return type="bool"> + </return> <argument index="0" name="point" type="Vector2"> </argument> <description> @@ -11749,7 +13365,7 @@ </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="String" default=""""> + <argument index="1" name="type" type="String" default="null"> </argument> <description> </description> @@ -11769,38 +13385,59 @@ </description> </method> <method name="minimum_size_changed"> + <return type="void"> + </return> <description> </description> </method> <method name="release_focus"> + <return type="void"> + </return> <description> Give up the focus, no other control will be able to receive keyboard input. </description> </method> <method name="set_anchor"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> - <argument index="1" name="anchor_mode" type="int"> + <argument index="1" name="anchor" type="float"> </argument> - <argument index="2" name="keep_margin" type="bool" default="false"> + <argument index="2" name="keep_margin" type="bool" default="null"> + </argument> + <argument index="3" name="push_opposite_anchor" type="bool" default="null"> </argument> <description> - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Changing the anchor mode converts the current margin offset from the previous anchor mode to the new one, so margin offsets ([method set_margin]) must be done after setting anchors, or at the same time ([method set_anchor_and_margin]) - Additionally, [code]keep_margin[/code] controls whether margins should be left the same, or changed to keep the same position and size on-screen. </description> </method> <method name="set_anchor_and_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> - <argument index="1" name="anchor_mode" type="int"> + <argument index="1" name="anchor" type="float"> </argument> <argument index="2" name="offset" type="float"> </argument> + <argument index="3" name="push_opposite_anchor" type="bool" default="null"> + </argument> + <description> + </description> + </method> + <method name="set_anchors_preset"> + <return type="void"> + </return> + <argument index="0" name="preset" type="int" enum="Control.LayoutPreset"> + </argument> + <argument index="1" name="keep_margin" type="bool" default="null"> + </argument> <description> - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM), and also set its offset. This is a helper (see [method set_anchor] and [method set_margin]). </description> </method> <method name="set_area_as_parent_rect"> + <return type="void"> + </return> <argument index="0" name="margin" type="int" default="0"> </argument> <description> @@ -11808,6 +13445,8 @@ </description> </method> <method name="set_begin"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -11815,37 +13454,49 @@ </description> </method> <method name="set_clip_contents"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_custom_minimum_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="set_default_cursor_shape"> - <argument index="0" name="shape" type="int"> + <return type="void"> + </return> + <argument index="0" name="shape" type="int" enum="Control.CursorShape"> </argument> <description> Set the default cursor shape for this control. See enum CURSOR_* for the list of shapes. </description> </method> <method name="set_drag_forwarding"> + <return type="void"> + </return> <argument index="0" name="target" type="Control"> </argument> <description> </description> </method> <method name="set_drag_preview"> + <return type="void"> + </return> <argument index="0" name="control" type="Control"> </argument> <description> </description> </method> <method name="set_end"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -11853,14 +13504,18 @@ </description> </method> <method name="set_focus_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Control.FocusMode"> </argument> <description> Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals. </description> </method> <method name="set_focus_neighbour"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="neighbour" type="NodePath"> </argument> @@ -11869,6 +13524,8 @@ </description> </method> <method name="set_global_position"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -11876,12 +13533,16 @@ </description> </method> <method name="set_h_grow_direction"> - <argument index="0" name="direction" type="int"> + <return type="void"> + </return> + <argument index="0" name="direction" type="int" enum="Control.GrowDirection"> </argument> <description> </description> </method> <method name="set_h_size_flags"> + <return type="void"> + </return> <argument index="0" name="flags" type="int"> </argument> <description> @@ -11889,7 +13550,9 @@ </description> </method> <method name="set_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="offset" type="float"> </argument> @@ -11898,19 +13561,25 @@ </description> </method> <method name="set_mouse_filter"> - <argument index="0" name="filter" type="int"> + <return type="void"> + </return> + <argument index="0" name="filter" type="int" enum="Control.MouseFilter"> </argument> <description> Set when the control is ignoring mouse events (even touchpad events send mouse events). (see the MOUSE_FILTER_* constants) </description> </method> <method name="set_pivot_offset"> + <return type="void"> + </return> <argument index="0" name="pivot_offset" type="Vector2"> </argument> <description> </description> </method> <method name="set_position"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -11918,6 +13587,8 @@ </description> </method> <method name="set_rotation"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> @@ -11925,6 +13596,8 @@ </description> </method> <method name="set_rotation_deg"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> @@ -11932,12 +13605,16 @@ </description> </method> <method name="set_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> @@ -11945,6 +13622,8 @@ </description> </method> <method name="set_stretch_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> @@ -11952,6 +13631,8 @@ </description> </method> <method name="set_theme"> + <return type="void"> + </return> <argument index="0" name="theme" type="Theme"> </argument> <description> @@ -11959,6 +13640,8 @@ </description> </method> <method name="set_tooltip"> + <return type="void"> + </return> <argument index="0" name="tooltip" type="String"> </argument> <description> @@ -11966,12 +13649,16 @@ </description> </method> <method name="set_v_grow_direction"> - <argument index="0" name="direction" type="int"> + <return type="void"> + </return> + <argument index="0" name="direction" type="int" enum="Control.GrowDirection"> </argument> <description> </description> </method> <method name="set_v_size_flags"> + <return type="void"> + </return> <argument index="0" name="flags" type="int"> </argument> <description> @@ -11979,6 +13666,8 @@ </description> </method> <method name="show_modal"> + <return type="void"> + </return> <argument index="0" name="exclusive" type="bool" default="false"> </argument> <description> @@ -11986,6 +13675,8 @@ </description> </method> <method name="warp_mouse"> + <return type="void"> + </return> <argument index="0" name="to_pos" type="Vector2"> </argument> <description> @@ -11993,13 +13684,13 @@ </method> </methods> <members> - <member name="anchor_bottom" type="int" setter="_set_anchor" getter="get_anchor" brief=""> + <member name="anchor_bottom" type="float" setter="_set_anchor" getter="get_anchor" brief=""> </member> - <member name="anchor_left" type="int" setter="_set_anchor" getter="get_anchor" brief=""> + <member name="anchor_left" type="float" setter="_set_anchor" getter="get_anchor" brief=""> </member> - <member name="anchor_right" type="int" setter="_set_anchor" getter="get_anchor" brief=""> + <member name="anchor_right" type="float" setter="_set_anchor" getter="get_anchor" brief=""> </member> - <member name="anchor_top" type="int" setter="_set_anchor" getter="get_anchor" brief=""> + <member name="anchor_top" type="float" setter="_set_anchor" getter="get_anchor" brief=""> </member> <member name="focus_neighbour_bottom" type="NodePath" setter="set_focus_neighbour" getter="get_focus_neighbour" brief=""> </member> @@ -12009,21 +13700,21 @@ </member> <member name="focus_neighbour_top" type="NodePath" setter="set_focus_neighbour" getter="get_focus_neighbour" brief=""> </member> - <member name="grow_horizontal" type="int" setter="set_h_grow_direction" getter="get_h_grow_direction" brief=""> + <member name="grow_horizontal" type="int" setter="set_h_grow_direction" getter="get_h_grow_direction" brief="" enum="Control.GrowDirection"> </member> - <member name="grow_vertical" type="int" setter="set_v_grow_direction" getter="get_v_grow_direction" brief=""> + <member name="grow_vertical" type="int" setter="set_v_grow_direction" getter="get_v_grow_direction" brief="" enum="Control.GrowDirection"> </member> <member name="hint_tooltip" type="String" setter="set_tooltip" getter="_get_tooltip" brief=""> </member> - <member name="margin_bottom" type="int" setter="set_margin" getter="get_margin" brief=""> + <member name="margin_bottom" type="float" setter="set_margin" getter="get_margin" brief=""> </member> - <member name="margin_left" type="int" setter="set_margin" getter="get_margin" brief=""> + <member name="margin_left" type="float" setter="set_margin" getter="get_margin" brief=""> </member> - <member name="margin_right" type="int" setter="set_margin" getter="get_margin" brief=""> + <member name="margin_right" type="float" setter="set_margin" getter="get_margin" brief=""> </member> - <member name="margin_top" type="int" setter="set_margin" getter="get_margin" brief=""> + <member name="margin_top" type="float" setter="set_margin" getter="get_margin" brief=""> </member> - <member name="mouse_filter" type="int" setter="set_mouse_filter" getter="get_mouse_filter" brief=""> + <member name="mouse_filter" type="int" setter="set_mouse_filter" getter="get_mouse_filter" brief="" enum="Control.MouseFilter"> </member> <member name="rect_clip_content" type="bool" setter="set_clip_contents" getter="is_clipping_contents" brief=""> </member> @@ -12041,7 +13732,7 @@ </member> <member name="size_flags_horizontal" type="int" setter="set_h_size_flags" getter="get_h_size_flags" brief=""> </member> - <member name="size_flags_stretch_ratio" type="int" setter="set_stretch_ratio" getter="get_stretch_ratio" brief=""> + <member name="size_flags_stretch_ratio" type="float" setter="set_stretch_ratio" getter="get_stretch_ratio" brief=""> </member> <member name="size_flags_vertical" type="int" setter="set_v_size_flags" getter="get_v_size_flags" brief=""> </member> @@ -12096,14 +13787,6 @@ </signal> </signals> <constants> - <constant name="ANCHOR_BEGIN" value="0"> - X is relative to MARGIN_LEFT, Y is relative to MARGIN_TOP. - </constant> - <constant name="ANCHOR_END" value="1"> - X is relative to -MARGIN_RIGHT, Y is relative to -MARGIN_BOTTOM. - </constant> - <constant name="ANCHOR_CENTER" value="2"> - </constant> <constant name="FOCUS_NONE" value="0"> Control can't acquire focus. </constant> @@ -12113,25 +13796,25 @@ <constant name="FOCUS_ALL" value="2"> Control can acquire focus if clicked, or by pressing TAB/Directionals in the keyboard from another Control. </constant> - <constant name="NOTIFICATION_RESIZED" value="40"> + <constant name="NOTIFICATION_RESIZED" value="40" enum=""> Control changed size (get_size() reports the new size). </constant> - <constant name="NOTIFICATION_MOUSE_ENTER" value="41"> + <constant name="NOTIFICATION_MOUSE_ENTER" value="41" enum=""> Mouse pointer entered the area of the Control. </constant> - <constant name="NOTIFICATION_MOUSE_EXIT" value="42"> + <constant name="NOTIFICATION_MOUSE_EXIT" value="42" enum=""> Mouse pointer exited the area of the Control. </constant> - <constant name="NOTIFICATION_FOCUS_ENTER" value="43"> + <constant name="NOTIFICATION_FOCUS_ENTER" value="43" enum=""> Control gained focus. </constant> - <constant name="NOTIFICATION_FOCUS_EXIT" value="44"> + <constant name="NOTIFICATION_FOCUS_EXIT" value="44" enum=""> Control lost focus. </constant> - <constant name="NOTIFICATION_THEME_CHANGED" value="45"> + <constant name="NOTIFICATION_THEME_CHANGED" value="45" enum=""> Theme changed. Redrawing is desired. </constant> - <constant name="NOTIFICATION_MODAL_CLOSE" value="46"> + <constant name="NOTIFICATION_MODAL_CLOSE" value="46" enum=""> Modal control was closed. </constant> <constant name="CURSOR_ARROW" value="0"> @@ -12168,6 +13851,38 @@ </constant> <constant name="CURSOR_HELP" value="16"> </constant> + <constant name="PRESET_TOP_LEFT" value="0"> + </constant> + <constant name="PRESET_TOP_RIGHT" value="1"> + </constant> + <constant name="PRESET_BOTTOM_LEFT" value="2"> + </constant> + <constant name="PRESET_BOTTOM_RIGHT" value="3"> + </constant> + <constant name="PRESET_CENTER_LEFT" value="4"> + </constant> + <constant name="PRESET_CENTER_TOP" value="5"> + </constant> + <constant name="PRESET_CENTER_RIGHT" value="6"> + </constant> + <constant name="PRESET_CENTER_BOTTOM" value="7"> + </constant> + <constant name="PRESET_CENTER" value="8"> + </constant> + <constant name="PRESET_LEFT_WIDE" value="9"> + </constant> + <constant name="PRESET_TOP_WIDE" value="10"> + </constant> + <constant name="PRESET_RIGHT_WIDE" value="11"> + </constant> + <constant name="PRESET_BOTTOM_WIDE" value="12"> + </constant> + <constant name="PRESET_VCENTER_WIDE" value="13"> + </constant> + <constant name="PRESET_HCENTER_WIDE" value="14"> + </constant> + <constant name="PRESET_WIDE" value="15"> + </constant> <constant name="SIZE_EXPAND" value="2"> </constant> <constant name="SIZE_FILL" value="1"> @@ -12188,6 +13903,12 @@ </constant> <constant name="GROW_DIRECTION_END" value="1"> </constant> + <constant name="ANCHOR_BEGIN" value="0"> + X is relative to MARGIN_LEFT, Y is relative to MARGIN_TOP. + </constant> + <constant name="ANCHOR_END" value="1"> + X is relative to -MARGIN_RIGHT, Y is relative to -MARGIN_BOTTOM. + </constant> </constants> </class> <class name="ConvexPolygonShape" inherits="Shape" category="Core"> @@ -12205,6 +13926,8 @@ </description> </method> <method name="set_points"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector3Array"> </argument> <description> @@ -12212,7 +13935,7 @@ </method> </methods> <members> - <member name="points" type="Array" setter="set_points" getter="get_points" brief=""> + <member name="points" type="PoolVector3Array" setter="set_points" getter="get_points" brief=""> </member> </members> <constants> @@ -12235,6 +13958,8 @@ </description> </method> <method name="set_point_cloud"> + <return type="void"> + </return> <argument index="0" name="point_cloud" type="PoolVector2Array"> </argument> <description> @@ -12242,6 +13967,8 @@ </description> </method> <method name="set_points"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <description> @@ -12281,9 +14008,9 @@ </description> </method> <method name="get_side" qualifiers="const"> - <return type="Object"> + <return type="Image"> </return> - <argument index="0" name="side" type="int"> + <argument index="0" name="side" type="int" enum="CubeMap.Side"> </argument> <description> </description> @@ -12301,27 +14028,35 @@ </description> </method> <method name="set_flags"> + <return type="void"> + </return> <argument index="0" name="flags" type="int"> </argument> <description> </description> </method> <method name="set_lossy_storage_quality"> + <return type="void"> + </return> <argument index="0" name="quality" type="float"> </argument> <description> </description> </method> <method name="set_side"> - <argument index="0" name="side" type="int"> + <return type="void"> + </return> + <argument index="0" name="side" type="int" enum="CubeMap.Side"> </argument> - <argument index="1" name="image" type="Object"> + <argument index="1" name="image" type="Image"> </argument> <description> </description> </method> <method name="set_storage"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="CubeMap.Storage"> </argument> <description> </description> @@ -12387,24 +14122,32 @@ </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector3"> </argument> <description> </description> </method> <method name="set_subdivide_depth"> + <return type="void"> + </return> <argument index="0" name="divisions" type="int"> </argument> <description> </description> </method> <method name="set_subdivide_height"> + <return type="void"> + </return> <argument index="0" name="divisions" type="int"> </argument> <description> </description> </method> <method name="set_subdivide_width"> + <return type="void"> + </return> <argument index="0" name="subdivide" type="int"> </argument> <description> @@ -12412,7 +14155,7 @@ </method> </methods> <members> - <member name="size" type="Vector2" setter="set_size" getter="get_size" brief=""> + <member name="size" type="Vector3" setter="set_size" getter="get_size" brief=""> </member> <member name="subdivide_depth" type="int" setter="set_subdivide_depth" getter="get_subdivide_depth" brief=""> </member> @@ -12439,22 +14182,28 @@ </argument> <argument index="2" name="right_tangent" type="float" default="0"> </argument> - <argument index="3" name="left_mode" type="int" default="0"> + <argument index="3" name="left_mode" type="int" enum="Curve.TangentMode" default="0"> </argument> - <argument index="4" name="right_mode" type="int" default="0"> + <argument index="4" name="right_mode" type="int" enum="Curve.TangentMode" default="null"> </argument> <description> </description> </method> <method name="bake"> + <return type="void"> + </return> <description> </description> </method> <method name="clean_dupes"> + <return type="void"> + </return> <description> </description> </method> <method name="clear_points"> + <return type="void"> + </return> <description> </description> </method> @@ -12533,38 +14282,50 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> </description> </method> <method name="set_bake_resolution"> + <return type="void"> + </return> <argument index="0" name="resolution" type="int"> </argument> <description> </description> </method> <method name="set_max_value"> + <return type="void"> + </return> <argument index="0" name="max" type="float"> </argument> <description> </description> </method> <method name="set_min_value"> + <return type="void"> + </return> <argument index="0" name="min" type="float"> </argument> <description> </description> </method> <method name="set_point_left_mode"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Curve.TangentMode"> </argument> <description> </description> </method> <method name="set_point_left_tangent"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="tangent" type="float"> @@ -12573,6 +14334,8 @@ </description> </method> <method name="set_point_offset"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="offset" type="float"> @@ -12581,14 +14344,18 @@ </description> </method> <method name="set_point_right_mode"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Curve.TangentMode"> </argument> <description> </description> </method> <method name="set_point_right_tangent"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="tangent" type="float"> @@ -12597,6 +14364,8 @@ </description> </method> <method name="set_point_value"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="y" type="float"> @@ -12606,7 +14375,7 @@ </method> </methods> <members> - <member name="_data" type="int" setter="_set_data" getter="_get_data" brief=""> + <member name="_data" type="Array" setter="_set_data" getter="_get_data" brief=""> </member> <member name="bake_resolution" type="int" setter="set_bake_resolution" getter="get_bake_resolution" brief=""> </member> @@ -12634,13 +14403,15 @@ </description> <methods> <method name="add_point"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> - <argument index="1" name="in" type="Vector2" default="Vector2(0, 0)"> + <argument index="1" name="in" type="Vector2" default="Vector2( 0, 0 )"> </argument> - <argument index="2" name="out" type="Vector2" default="Vector2(0, 0)"> + <argument index="2" name="out" type="Vector2" default="Vector2( 0, 0 )"> </argument> - <argument index="3" name="atpos" type="int" default="-1"> + <argument index="3" name="atpos" type="int" default="null"> </argument> <description> Adds a point to a curve, at position "pos", with control points "in" and "out". @@ -12648,6 +14419,8 @@ </description> </method> <method name="clear_points"> + <return type="void"> + </return> <description> </description> </method> @@ -12723,7 +14496,7 @@ </return> <argument index="0" name="offset" type="float"> </argument> - <argument index="1" name="cubic" type="bool" default="false"> + <argument index="1" name="cubic" type="bool" default="null"> </argument> <description> Returns a point within the curve at position "offset", where "offset" is measured as a pixel distance along the curve. @@ -12741,6 +14514,8 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -12748,6 +14523,8 @@ </description> </method> <method name="set_bake_interval"> + <return type="void"> + </return> <argument index="0" name="distance" type="float"> </argument> <description> @@ -12755,6 +14532,8 @@ </description> </method> <method name="set_point_in"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector2"> @@ -12764,6 +14543,8 @@ </description> </method> <method name="set_point_out"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector2"> @@ -12773,6 +14554,8 @@ </description> </method> <method name="set_point_pos"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector2"> @@ -12781,12 +14564,12 @@ Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. </description> </method> - <method name="tesselate" qualifiers="const"> + <method name="tessellate" qualifiers="const"> <return type="PoolVector2Array"> </return> - <argument index="0" name="max_stages" type="int" default="5"> + <argument index="0" name="max_stages" type="int" default="4"> </argument> - <argument index="1" name="tolerance_degrees" type="float" default="4"> + <argument index="1" name="tolerance_degrees" type="float" default="5"> </argument> <description> Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. @@ -12797,7 +14580,7 @@ </method> </methods> <members> - <member name="_data" type="int" setter="_set_data" getter="_get_data" brief=""> + <member name="_data" type="Dictionary" setter="_set_data" getter="_get_data" brief=""> </member> <member name="bake_interval" type="float" setter="set_bake_interval" getter="get_bake_interval" brief=""> </member> @@ -12815,13 +14598,15 @@ </description> <methods> <method name="add_point"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector3"> </argument> - <argument index="1" name="in" type="Vector3" default="Vector3(0, 0, 0)"> + <argument index="1" name="in" type="Vector3" default="Vector3( 0, 0, 0 )"> </argument> - <argument index="2" name="out" type="Vector3" default="Vector3(0, 0, 0)"> + <argument index="2" name="out" type="Vector3" default="Vector3( 0, 0, 0 )"> </argument> - <argument index="3" name="atpos" type="int" default="-1"> + <argument index="3" name="atpos" type="int" default="null"> </argument> <description> Adds a point to a curve, at position "pos", with control points "in" and "out". @@ -12829,6 +14614,8 @@ </description> </method> <method name="clear_points"> + <return type="void"> + </return> <description> </description> </method> @@ -12920,7 +14707,7 @@ </return> <argument index="0" name="offset" type="float"> </argument> - <argument index="1" name="cubic" type="bool" default="false"> + <argument index="1" name="cubic" type="bool" default="null"> </argument> <description> Returns a point within the curve at position "offset", where "offset" is measured as a distance in 3D units along the curve. @@ -12938,6 +14725,8 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -12945,6 +14734,8 @@ </description> </method> <method name="set_bake_interval"> + <return type="void"> + </return> <argument index="0" name="distance" type="float"> </argument> <description> @@ -12952,6 +14743,8 @@ </description> </method> <method name="set_point_in"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector3"> @@ -12961,6 +14754,8 @@ </description> </method> <method name="set_point_out"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector3"> @@ -12970,6 +14765,8 @@ </description> </method> <method name="set_point_pos"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="pos" type="Vector3"> @@ -12979,6 +14776,8 @@ </description> </method> <method name="set_point_tilt"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="tilt" type="float"> @@ -12988,12 +14787,12 @@ The tilt controls the rotation along the look-at axis an object traveling the path would have. In the case of a curve controlling a [PathFollow], this tilt is an offset over the natural tilt the PathFollow calculates. </description> </method> - <method name="tesselate" qualifiers="const"> + <method name="tessellate" qualifiers="const"> <return type="PoolVector3Array"> </return> - <argument index="0" name="max_stages" type="int" default="5"> + <argument index="0" name="max_stages" type="int" default="4"> </argument> - <argument index="1" name="tolerance_degrees" type="float" default="4"> + <argument index="1" name="tolerance_degrees" type="float" default="5"> </argument> <description> Returns a list of points along the curve, with a curvature controlled point density. That is, the curvier parts will have more points than the straighter parts. @@ -13004,7 +14803,7 @@ </method> </methods> <members> - <member name="_data" type="int" setter="_set_data" getter="_get_data" brief=""> + <member name="_data" type="Dictionary" setter="_set_data" getter="_get_data" brief=""> </member> <member name="bake_interval" type="float" setter="set_bake_interval" getter="get_bake_interval" brief=""> </member> @@ -13025,12 +14824,16 @@ </description> </method> <method name="set_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="Curve"> </argument> <description> </description> </method> <method name="set_width"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <description> @@ -13083,30 +14886,40 @@ </description> </method> <method name="set_bottom_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> </description> </method> <method name="set_radial_segments"> + <return type="void"> + </return> <argument index="0" name="segments" type="int"> </argument> <description> </description> </method> <method name="set_rings"> + <return type="void"> + </return> <argument index="0" name="rings" type="int"> </argument> <description> </description> </method> <method name="set_top_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> @@ -13165,6 +14978,8 @@ </description> </method> <method name="set_damping"> + <return type="void"> + </return> <argument index="0" name="damping" type="float"> </argument> <description> @@ -13172,6 +14987,8 @@ </description> </method> <method name="set_length"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> @@ -13179,6 +14996,8 @@ </description> </method> <method name="set_rest_length"> + <return type="void"> + </return> <argument index="0" name="rest_length" type="float"> </argument> <description> @@ -13186,6 +15005,8 @@ </description> </method> <method name="set_stiffness"> + <return type="void"> + </return> <argument index="0" name="stiffness" type="float"> </argument> <description> @@ -13304,22 +15125,28 @@ </description> </method> <method name="set_blend_splits"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_shadow_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="DirectionalLight.ShadowMode"> </argument> <description> </description> </method> </methods> <members> + <member name="directional_shadow_bias_split_scale" type="float" setter="set_param" getter="get_param" brief=""> + </member> <member name="directional_shadow_blend_splits" type="bool" setter="set_blend_splits" getter="is_blend_splits_enabled" brief=""> </member> - <member name="directional_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" brief=""> + <member name="directional_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" brief="" enum="DirectionalLight.ShadowMode"> </member> <member name="directional_shadow_normal_bias" type="float" setter="set_param" getter="get_param" brief=""> </member> @@ -13364,7 +15191,7 @@ </description> <methods> <method name="change_dir"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="todir" type="String"> </argument> @@ -13374,7 +15201,7 @@ </description> </method> <method name="copy"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="from" type="String"> </argument> @@ -13468,12 +15295,14 @@ </description> </method> <method name="list_dir_end"> + <return type="void"> + </return> <description> Close the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] or not does not matter). </description> </method> <method name="make_dir"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -13483,7 +15312,7 @@ </description> </method> <method name="make_dir_recursive"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -13493,7 +15322,7 @@ </description> </method> <method name="open"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -13503,7 +15332,7 @@ </description> </method> <method name="remove"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="path" type="String"> </argument> @@ -13513,7 +15342,7 @@ </description> </method> <method name="rename"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="from" type="String"> </argument> @@ -13535,6 +15364,8 @@ </description> <methods> <method name="add_fallback"> + <return type="void"> + </return> <argument index="0" name="data" type="DynamicFontData"> </argument> <description> @@ -13587,12 +15418,16 @@ </description> </method> <method name="remove_fallback"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> </description> </method> <method name="set_fallback"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="data" type="DynamicFontData"> @@ -13601,18 +15436,24 @@ </description> </method> <method name="set_font_data"> + <return type="void"> + </return> <argument index="0" name="data" type="DynamicFontData"> </argument> <description> </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="data" type="int"> </argument> <description> </description> </method> <method name="set_spacing"> + <return type="void"> + </return> <argument index="0" name="type" type="int"> </argument> <argument index="1" name="value" type="int"> @@ -13621,12 +15462,16 @@ </description> </method> <method name="set_use_filter"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_use_mipmaps"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -13675,6 +15520,8 @@ </description> </method> <method name="set_font_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -13695,12 +15542,16 @@ </description> <methods> <method name="add_filter"> + <return type="void"> + </return> <argument index="0" name="filter" type="String"> </argument> <description> </description> </method> <method name="clear_filters"> + <return type="void"> + </return> <description> </description> </method> @@ -13747,6 +15598,8 @@ </description> </method> <method name="invalidate"> + <return type="void"> + </return> <description> </description> </method> @@ -13763,48 +15616,64 @@ </description> </method> <method name="set_access"> - <argument index="0" name="access" type="int"> + <return type="void"> + </return> + <argument index="0" name="access" type="int" enum="EditorFileDialog.Access"> </argument> <description> </description> </method> <method name="set_current_dir"> + <return type="void"> + </return> <argument index="0" name="dir" type="String"> </argument> <description> </description> </method> <method name="set_current_file"> + <return type="void"> + </return> <argument index="0" name="file" type="String"> </argument> <description> </description> </method> <method name="set_current_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> </description> </method> <method name="set_disable_overwrite_warning"> + <return type="void"> + </return> <argument index="0" name="disable" type="bool"> </argument> <description> </description> </method> <method name="set_display_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="EditorFileDialog.DisplayMode"> </argument> <description> </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="EditorFileDialog.Mode"> </argument> <description> </description> </method> <method name="set_show_hidden_files"> + <return type="void"> + </return> <argument index="0" name="show" type="bool"> </argument> <description> @@ -13897,16 +15766,22 @@ </description> </method> <method name="scan"> + <return type="void"> + </return> <description> Scan the filesystem for changes. </description> </method> <method name="scan_sources"> + <return type="void"> + </return> <description> Check if the source of any imported resource changed. </description> </method> <method name="update_file"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -13920,6 +15795,12 @@ Emitted if the filesystem changed. </description> </signal> + <signal name="resources_reimported"> + <argument index="0" name="resources" type="PoolStringArray"> + </argument> + <description> + </description> + </signal> <signal name="sources_changed"> <argument index="0" name="exist" type="bool"> </argument> @@ -13968,6 +15849,14 @@ <description> </description> </method> + <method name="get_file_import_is_valid" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <description> + </description> + </method> <method name="get_file_path" qualifiers="const"> <return type="String"> </return> @@ -14003,7 +15892,7 @@ </description> </method> <method name="get_subdir"> - <return type="Object"> + <return type="EditorFileSystemDirectory"> </return> <argument index="0" name="idx" type="int"> </argument> @@ -14108,6 +15997,130 @@ <constants> </constants> </class> +<class name="EditorInterface" inherits="Node" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="edit_resource"> + <return type="void"> + </return> + <argument index="0" name="resource" type="Resource"> + </argument> + <description> + </description> + </method> + <method name="get_base_control"> + <return type="Control"> + </return> + <description> + </description> + </method> + <method name="get_edited_scene_root"> + <return type="Node"> + </return> + <description> + </description> + </method> + <method name="get_editor_settings"> + <return type="EditorSettings"> + </return> + <description> + </description> + </method> + <method name="get_editor_viewport"> + <return type="Control"> + </return> + <description> + </description> + </method> + <method name="get_open_scenes" qualifiers="const"> + <return type="Array"> + </return> + <description> + </description> + </method> + <method name="get_resource_filesystem"> + <return type="EditorFileSystem"> + </return> + <description> + </description> + </method> + <method name="get_resource_previewer"> + <return type="EditorResourcePreview"> + </return> + <description> + </description> + </method> + <method name="get_script_editor"> + <return type="ScriptEditor"> + </return> + <description> + </description> + </method> + <method name="get_selection"> + <return type="EditorSelection"> + </return> + <description> + </description> + </method> + <method name="inspect_object"> + <return type="void"> + </return> + <argument index="0" name="object" type="Object"> + </argument> + <argument index="1" name="for_property" type="String" default="null"> + </argument> + <description> + </description> + </method> + <method name="make_mesh_previews"> + <return type="Array"> + </return> + <argument index="0" name="arg0" type="Array"> + </argument> + <argument index="1" name="arg1" type="int"> + </argument> + <description> + </description> + </method> + <method name="open_scene_from_path"> + <return type="void"> + </return> + <argument index="0" name="scene_filepath" type="String"> + </argument> + <description> + </description> + </method> + <method name="reload_scene_from_path"> + <return type="void"> + </return> + <argument index="0" name="scene_filepath" type="String"> + </argument> + <description> + </description> + </method> + <method name="save_scene"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="save_scene_as"> + <return type="void"> + </return> + <argument index="0" name="path" type="String"> + </argument> + <argument index="1" name="with_preview" type="bool" default="null"> + </argument> + <description> + </description> + </method> + </methods> + <constants> + </constants> +</class> <class name="EditorPlugin" inherits="Node" category="Core"> <brief_description> Used by the editor to extend its functionality. @@ -14128,7 +16141,9 @@ </description> </method> <method name="add_control_to_container"> - <argument index="0" name="container" type="int"> + <return type="void"> + </return> + <argument index="0" name="container" type="int" enum="EditorPlugin.CustomControlContainer"> </argument> <argument index="1" name="control" type="Control"> </argument> @@ -14139,7 +16154,9 @@ </description> </method> <method name="add_control_to_dock"> - <argument index="0" name="slot" type="int"> + <return type="void"> + </return> + <argument index="0" name="slot" type="int" enum="EditorPlugin.DockSlot"> </argument> <argument index="1" name="control" type="Control"> </argument> @@ -14150,6 +16167,8 @@ </description> </method> <method name="add_custom_type"> + <return type="void"> + </return> <argument index="0" name="type" type="String"> </argument> <argument index="1" name="base" type="String"> @@ -14166,26 +16185,34 @@ </description> </method> <method name="add_import_plugin"> - <argument index="0" name="arg0" type="Object"> + <return type="void"> + </return> + <argument index="0" name="importer" type="EditorImportPlugin"> </argument> <description> </description> </method> <method name="add_tool_submenu_item"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="submenu" type="PopupMenu"> + <argument index="1" name="submenu" type="Object"> </argument> <description> </description> </method> <method name="apply_changes" qualifiers="virtual"> + <return type="void"> + </return> <description> This method is called when the editor is about to save the project, switch to another tab, etc. It asks the plugin to apply any pending state changes to ensure consistency. This is used, for example, in shader editors to let the plugin know that it must apply the shader code being written by the user to the object. </description> </method> <method name="clear" qualifiers="virtual"> + <return type="void"> + </return> <description> Clear all the state and reset the object being edited to zero. This ensures your plugin does not keep editing a currently existing node, or a node from the wrong scene. </description> @@ -14200,18 +16227,14 @@ </description> </method> <method name="edit" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="object" type="Object"> </argument> <description> This function is used for plugins that edit specific object types (nodes or resources). It requests the editor to edit the given object. </description> </method> - <method name="edit_resource"> - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - </description> - </method> <method name="forward_canvas_gui_input" qualifiers="virtual"> <return type="bool"> </return> @@ -14223,6 +16246,8 @@ </description> </method> <method name="forward_draw_over_canvas" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="canvas_xform" type="Transform2D"> </argument> <argument index="1" name="canvas" type="Control"> @@ -14243,13 +16268,6 @@ If you would like to always gets those input events then additionally use [method set_input_forwarding_always_enabled]. </description> </method> - <method name="get_base_control"> - <return type="Control"> - </return> - <description> - Get a base control where it's safe to place dialogs. Many plugins open dialogs and they need a control as a base to make sure they use the editor icons and theme. - </description> - </method> <method name="get_breakpoints" qualifiers="virtual"> <return type="PoolStringArray"> </return> @@ -14257,67 +16275,16 @@ This is for editors that edit script based objects. You can return a list of breakpoints in the format (script:line), for example: res://path_to_script.gd:25 </description> </method> - <method name="get_editor_settings"> - <return type="EditorSettings"> - </return> - <description> - Get the general settings for the editor (the same window that appears in the Settings menu). - </description> - </method> - <method name="get_edited_scene_root"> - <return type="Node"> + <method name="get_editor_interface"> + <return type="EditorInterface"> </return> <description> - Returns root node of currently edited scene. </description> </method> - <method name="get_editor_viewport"> - <return type="Control"> - </return> - <description> - Get the main editor control. Use this as a parent for main screens. - </description> - </method> - <method name="get_name" qualifiers="virtual"> + <method name="get_plugin_name" qualifiers="virtual"> <return type="String"> </return> <description> - Get the name of the editor plugin. For main scren plugins this is what will appear in the selector (which by default is 2D, 3D, Script). - </description> - </method> - <method name="get_open_scenes"> - <return type="Array"> - </return> - <description> - Will return an Array of Strings which represent file paths to currently open scenes. - </description> - </method> - <method name="get_resource_filesystem"> - <return type="EditorFileSystem"> - </return> - <description> - Get the filesystem cache for all resources in the project. - </description> - </method> - <method name="get_resource_previewer"> - <return type="EditorResourcePreview"> - </return> - <description> - Get tool for generating resource previews. - </description> - </method> - <method name="get_script_editor"> - <return type="ScriptEditor"> - </return> - <description> - Will return ScriptEditor object which contains informations about state of the scripts which are currently open by the editor. - </description> - </method> - <method name="get_selection"> - <return type="EditorSelection"> - </return> - <description> - Get the object that handles the selection of nodes in the Scene Tree editor. </description> </method> <method name="get_state" qualifiers="virtual"> @@ -14335,6 +16302,8 @@ </description> </method> <method name="get_window_layout" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="layout" type="ConfigFile"> </argument> <description> @@ -14358,25 +16327,22 @@ </description> </method> <method name="hide_bottom_panel"> + <return type="void"> + </return> <description> </description> </method> - <method name="inspect_object"> - <argument index="0" name="object" type="Object"> - </argument> - <argument index="1" name="for_property" type="String" default=""""> - </argument> - <description> - Inspect an object in the inspector. - </description> - </method> <method name="make_bottom_panel_item_visible"> + <return type="void"> + </return> <argument index="0" name="item" type="Control"> </argument> <description> </description> </method> <method name="make_visible" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="visible" type="bool"> </argument> <description> @@ -14384,26 +16350,16 @@ Remember that you have to manage the visibility of all your editor controls manually. </description> </method> - <method name="open_scene_from_path"> - <argument index="0" name="scene_filepath" type="String"> - </argument> - <description> - Opens scene in editor. Do not use during plugin initialization. If you need, then use it together with [method Object.call_deferred]. - </description> - </method> <method name="queue_save_layout" qualifiers="const"> + <return type="void"> + </return> <description> Queue save the project's editor layout. </description> </method> - <method name="reload_scene_from_path"> - <argument index="0" name="scene_filepath" type="String"> - </argument> - <description> - Reloads already loaded editor scene. - </description> - </method> <method name="remove_control_from_bottom_panel"> + <return type="void"> + </return> <argument index="0" name="control" type="Control"> </argument> <description> @@ -14411,6 +16367,8 @@ </description> </method> <method name="remove_control_from_docks"> + <return type="void"> + </return> <argument index="0" name="control" type="Control"> </argument> <description> @@ -14418,6 +16376,8 @@ </description> </method> <method name="remove_custom_type"> + <return type="void"> + </return> <argument index="0" name="type" type="String"> </argument> <description> @@ -14425,22 +16385,30 @@ </description> </method> <method name="remove_import_plugin"> - <argument index="0" name="arg0" type="Object"> + <return type="void"> + </return> + <argument index="0" name="importer" type="EditorImportPlugin"> </argument> <description> </description> </method> <method name="save_external_data" qualifiers="virtual"> + <return type="void"> + </return> <description> This method is called after the editor saves the project or when it's closed. It asks the plugin to save edited external scenes/resources. </description> </method> <method name="set_input_event_forwarding_always_enabled"> + <return type="void"> + </return> <description> Use this method if you always want to receive inputs from 3D view screen inside [method forward_spatial_gui_input]. It might be especially usable if your plugin will want to use raycast in the scene. </description> </method> <method name="set_state" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="state" type="Dictionary"> </argument> <description> @@ -14448,6 +16416,8 @@ </description> </method> <method name="set_window_layout" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="layout" type="ConfigFile"> </argument> <description> @@ -14455,11 +16425,36 @@ </description> </method> <method name="update_canvas"> + <return type="void"> + </return> <description> Updates the control used to draw the edited scene over the 2D canvas. This is used together with [method forward_canvas_input_event]. </description> </method> </methods> + <signals> + <signal name="main_screen_changed"> + <argument index="0" name="screen_name" type="String"> + </argument> + <description> + Emitted when user change main screen view (2D, 3D, Script, AssetLib). Works also with screens which are defined by plugins. + </description> + </signal> + <signal name="scene_changed"> + <argument index="0" name="scene_root" type="Object"> + </argument> + <description> + Emitted when user change scene. The argument is a root node of freshly opened scene. + </description> + </signal> + <signal name="scene_closed"> + <argument index="0" name="filepath" type="String"> + </argument> + <description> + Emitted when user close scene. The argument is file path to a closed scene. + </description> + </signal> + </signals> <constants> <constant name="CONTAINER_TOOLBAR" value="0"> </constant> @@ -14494,29 +16489,6 @@ <constant name="DOCK_SLOT_MAX" value="8"> </constant> </constants> - <signals> - <signal name="main_screen_changed"> - <argument index="0" name="screen_name" type="String"> - </argument> - <description> - Emitted when user change main screen view (2D, 3D, Script, AssetLib). Works also with screens which are defined by plugins. - </description> - </signal> - <signal name="scene_changed"> - <argument index="0" name="scene_root" type="Node"> - </argument> - <description> - Emitted when user change scene. The argument is a root node of freshly opened scene. - </description> - </signal> - <signal name="scene_closed"> - <argument index="0" name="filepath" type="String"> - </argument> - <description> - Emitted when user close scene. The argument is file path to a closed scene. - </description> - </signal> - </signals> </class> <class name="EditorResourcePreview" inherits="Node" category="Core"> <brief_description> @@ -14527,6 +16499,8 @@ </description> <methods> <method name="add_preview_generator"> + <return type="void"> + </return> <argument index="0" name="generator" type="EditorResourcePreviewGenerator"> </argument> <description> @@ -14534,6 +16508,8 @@ </description> </method> <method name="check_for_invalidation"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -14541,6 +16517,8 @@ </description> </method> <method name="queue_edited_resource_preview"> + <return type="void"> + </return> <argument index="0" name="resource" type="Resource"> </argument> <argument index="1" name="receiver" type="Object"> @@ -14554,6 +16532,8 @@ </description> </method> <method name="queue_resource_preview"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <argument index="1" name="receiver" type="Object"> @@ -14567,6 +16547,8 @@ </description> </method> <method name="remove_preview_generator"> + <return type="void"> + </return> <argument index="0" name="generator" type="EditorResourcePreviewGenerator"> </argument> <description> @@ -14638,17 +16620,27 @@ </description> <methods> <method name="_run" qualifiers="virtual"> + <return type="void"> + </return> <description> </description> </method> <method name="add_root_node"> - <argument index="0" name="node" type="Object"> + <return type="void"> + </return> + <argument index="0" name="node" type="Node"> </argument> <description> </description> </method> + <method name="get_editor_interface"> + <return type="EditorInterface"> + </return> + <description> + </description> + </method> <method name="get_scene"> - <return type="Object"> + <return type="Node"> </return> <description> </description> @@ -14666,6 +16658,8 @@ </description> <methods> <method name="add_node"> + <return type="void"> + </return> <argument index="0" name="node" type="Node"> </argument> <description> @@ -14673,6 +16667,8 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear the selection. </description> @@ -14692,6 +16688,8 @@ </description> </method> <method name="remove_node"> + <return type="void"> + </return> <argument index="0" name="node" type="Node"> </argument> <description> @@ -14724,6 +16722,8 @@ </description> <methods> <method name="add_property_info"> + <return type="void"> + </return> <argument index="0" name="info" type="Dictionary"> </argument> <description> @@ -14744,6 +16744,8 @@ </description> </method> <method name="erase"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <description> @@ -14781,6 +16783,8 @@ </description> </method> <method name="set_favorite_dirs"> + <return type="void"> + </return> <argument index="0" name="dirs" type="PoolStringArray"> </argument> <description> @@ -14788,6 +16792,8 @@ </description> </method> <method name="set_recent_dirs"> + <return type="void"> + </return> <argument index="0" name="dirs" type="PoolStringArray"> </argument> <description> @@ -14813,12 +16819,16 @@ </description> <methods> <method name="add_collision_segments"> + <return type="void"> + </return> <argument index="0" name="segments" type="PoolVector3Array"> </argument> <description> </description> </method> <method name="add_collision_triangles"> + <return type="void"> + </return> <argument index="0" name="triangles" type="TriangleMesh"> </argument> <description> @@ -14826,11 +16836,13 @@ </description> </method> <method name="add_handles"> + <return type="void"> + </return> <argument index="0" name="handles" type="PoolVector3Array"> </argument> <argument index="1" name="billboard" type="bool" default="false"> </argument> - <argument index="2" name="secondary" type="bool" default="false"> + <argument index="2" name="secondary" type="bool" default="null"> </argument> <description> Add a list of handles (points) which can be used to deform the object being edited. @@ -14838,46 +16850,55 @@ </description> </method> <method name="add_lines"> + <return type="void"> + </return> <argument index="0" name="lines" type="PoolVector3Array"> </argument> <argument index="1" name="material" type="Material"> </argument> - <argument index="2" name="billboard" type="bool" default="false"> + <argument index="2" name="billboard" type="bool" default="null"> </argument> <description> Add lines to the gizmo (as sets of 2 points), with a given material. The lines are used for visualizing the gizmo. Call this function during [method redraw]. </description> </method> <method name="add_mesh"> - <argument index="0" name="mesh" type="Mesh"> + <return type="void"> + </return> + <argument index="0" name="mesh" type="ArrayMesh"> </argument> <argument index="1" name="billboard" type="bool" default="false"> </argument> - <argument index="2" name="skeleton" type="RID" default="[RID]"> + <argument index="2" name="skeleton" type="RID" default="null"> </argument> <description> - Add a mesh to the gizmo, this is used for visualization. Call this function during [method redraw]. </description> </method> <method name="add_unscaled_billboard"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> - <argument index="1" name="default_scale" type="float" default="1"> + <argument index="1" name="default_scale" type="float" default="null"> </argument> <description> Add an unscaled billboard for visualization. Call this function during [method redraw]. </description> </method> <method name="clear"> + <return type="void"> + </return> <description> </description> </method> <method name="commit_handle" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="restore" type="Variant"> </argument> - <argument index="2" name="cancel" type="bool"> + <argument index="2" name="cancel" type="bool" default="false"> </argument> <description> Commit a handle being edited (handles must have been prevously added by [method add_handles]). @@ -14904,11 +16925,15 @@ </description> </method> <method name="redraw" qualifiers="virtual"> + <return type="void"> + </return> <description> This function is called when the Spatial this gizmo refers to changes (the [method Spatial.update_gizmo] is called). </description> </method> <method name="set_handle" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <argument index="1" name="camera" type="Camera"> @@ -14921,10 +16946,35 @@ </description> </method> <method name="set_spatial_node"> - <argument index="0" name="node" type="Spatial"> + <return type="void"> + </return> + <argument index="0" name="node" type="Node"> + </argument> + <description> + </description> + </method> + </methods> + <constants> + </constants> +</class> +<class name="EncodedObjectAsID" inherits="Reference" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_object_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="set_object_id"> + <return type="void"> + </return> + <argument index="0" name="id" type="int"> </argument> <description> - Call this function once and upon creation of the gizmo, otherwise no other function will work. The argument is the node being edited by the gizmo. </description> </method> </methods> @@ -14991,13 +17041,29 @@ "string" - major + minor + patch + status + revision in a single String </description> </method> + <method name="is_editor_hint" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="is_in_fixed_frame" qualifiers="const"> <return type="bool"> </return> <description> </description> </method> + <method name="set_editor_hint"> + <return type="void"> + </return> + <argument index="0" name="enabled" type="bool"> + </argument> + <description> + </description> + </method> <method name="set_iterations_per_second"> + <return type="void"> + </return> <argument index="0" name="iterations_per_second" type="int"> </argument> <description> @@ -15005,12 +17071,16 @@ </description> </method> <method name="set_target_fps"> + <return type="void"> + </return> <argument index="0" name="target_fps" type="int"> </argument> <description> </description> </method> <method name="set_time_scale"> + <return type="void"> + </return> <argument index="0" name="time_scale" type="float"> </argument> <description> @@ -15033,7 +17103,7 @@ </description> </method> <method name="get_adjustment_color_correction" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -15231,7 +17301,7 @@ </description> </method> <method name="get_sky" qualifiers="const"> - <return type="CubeMap"> + <return type="Sky"> </return> <description> </description> @@ -15443,258 +17513,344 @@ </description> </method> <method name="set_adjustment_brightness"> + <return type="void"> + </return> <argument index="0" name="brightness" type="float"> </argument> <description> </description> </method> <method name="set_adjustment_color_correction"> - <argument index="0" name="color_correction" type="Object"> + <return type="void"> + </return> + <argument index="0" name="color_correction" type="Texture"> </argument> <description> </description> </method> <method name="set_adjustment_contrast"> + <return type="void"> + </return> <argument index="0" name="contrast" type="float"> </argument> <description> </description> </method> <method name="set_adjustment_enable"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_adjustment_saturation"> + <return type="void"> + </return> <argument index="0" name="saturation" type="float"> </argument> <description> </description> </method> <method name="set_ambient_light_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_ambient_light_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_ambient_light_sky_contribution"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_background"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Environment.BGMode"> </argument> <description> </description> </method> <method name="set_bg_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_bg_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_canvas_max_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> </description> </method> <method name="set_dof_blur_far_amount"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_dof_blur_far_distance"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_dof_blur_far_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_dof_blur_far_quality"> - <argument index="0" name="intensity" type="int"> + <return type="void"> + </return> + <argument index="0" name="intensity" type="int" enum="Environment.DOFBlurQuality"> </argument> <description> </description> </method> <method name="set_dof_blur_far_transition"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_dof_blur_near_amount"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_dof_blur_near_distance"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_dof_blur_near_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_dof_blur_near_quality"> - <argument index="0" name="level" type="int"> + <return type="void"> + </return> + <argument index="0" name="level" type="int" enum="Environment.DOFBlurQuality"> </argument> <description> </description> </method> <method name="set_dof_blur_near_transition"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_fog_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_fog_depth_begin"> + <return type="void"> + </return> <argument index="0" name="distance" type="float"> </argument> <description> </description> </method> <method name="set_fog_depth_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_fog_depth_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_fog_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_fog_height_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_fog_height_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_fog_height_max"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> </description> </method> <method name="set_fog_height_min"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> </description> </method> <method name="set_fog_sun_amount"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_fog_sun_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_fog_transmit_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_fog_transmit_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_glow_bicubic_upscale"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_glow_blend_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Environment.GlowBlendMode"> </argument> <description> </description> </method> <method name="set_glow_bloom"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_glow_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_glow_hdr_bleed_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> </description> </method> <method name="set_glow_hdr_bleed_threshold"> + <return type="void"> + </return> <argument index="0" name="threshold" type="float"> </argument> <description> </description> </method> <method name="set_glow_intensity"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_glow_level"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="enabled" type="bool"> @@ -15703,157 +17859,209 @@ </description> </method> <method name="set_glow_strength"> + <return type="void"> + </return> <argument index="0" name="strength" type="float"> </argument> <description> </description> </method> <method name="set_sky"> + <return type="void"> + </return> <argument index="0" name="sky" type="Sky"> </argument> <description> </description> </method> <method name="set_sky_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> </description> </method> <method name="set_ssao_bias"> + <return type="void"> + </return> <argument index="0" name="bias" type="float"> </argument> <description> </description> </method> <method name="set_ssao_blur"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_ssao_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_ssao_direct_light_affect"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_ssao_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_ssao_intensity"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_ssao_intensity2"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_ssao_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_ssao_radius2"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_ssr_depth_tolerance"> + <return type="void"> + </return> <argument index="0" name="depth_tolerance" type="float"> </argument> <description> </description> </method> <method name="set_ssr_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_ssr_fade_in"> + <return type="void"> + </return> <argument index="0" name="fade_in" type="float"> </argument> <description> </description> </method> <method name="set_ssr_fade_out"> + <return type="void"> + </return> <argument index="0" name="fade_out" type="float"> </argument> <description> </description> </method> <method name="set_ssr_max_steps"> + <return type="void"> + </return> <argument index="0" name="max_steps" type="int"> </argument> <description> </description> </method> <method name="set_ssr_rough"> + <return type="void"> + </return> <argument index="0" name="rough" type="bool"> </argument> <description> </description> </method> <method name="set_tonemap_auto_exposure"> + <return type="void"> + </return> <argument index="0" name="auto_exposure" type="bool"> </argument> <description> </description> </method> <method name="set_tonemap_auto_exposure_grey"> + <return type="void"> + </return> <argument index="0" name="exposure_grey" type="float"> </argument> <description> </description> </method> <method name="set_tonemap_auto_exposure_max"> + <return type="void"> + </return> <argument index="0" name="exposure_max" type="float"> </argument> <description> </description> </method> <method name="set_tonemap_auto_exposure_min"> + <return type="void"> + </return> <argument index="0" name="exposure_min" type="float"> </argument> <description> </description> </method> <method name="set_tonemap_auto_exposure_speed"> + <return type="void"> + </return> <argument index="0" name="exposure_speed" type="float"> </argument> <description> </description> </method> <method name="set_tonemap_exposure"> + <return type="void"> + </return> <argument index="0" name="exposure" type="float"> </argument> <description> </description> </method> <method name="set_tonemap_white"> + <return type="void"> + </return> <argument index="0" name="white" type="float"> </argument> <description> </description> </method> <method name="set_tonemapper"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Environment.ToneMapper"> </argument> <description> </description> @@ -15892,7 +18100,7 @@ </member> <member name="background_energy" type="float" setter="set_bg_energy" getter="get_bg_energy" brief=""> </member> - <member name="background_mode" type="int" setter="set_background" getter="get_background" brief=""> + <member name="background_mode" type="int" setter="set_background" getter="get_background" brief="" enum="Environment.BGMode"> </member> <member name="background_sky" type="Sky" setter="set_sky" getter="get_sky" brief=""> </member> @@ -15904,7 +18112,7 @@ </member> <member name="dof_blur_far_enabled" type="bool" setter="set_dof_blur_far_enabled" getter="is_dof_blur_far_enabled" brief=""> </member> - <member name="dof_blur_far_quality" type="int" setter="set_dof_blur_far_quality" getter="get_dof_blur_far_quality" brief=""> + <member name="dof_blur_far_quality" type="int" setter="set_dof_blur_far_quality" getter="get_dof_blur_far_quality" brief="" enum="Environment.DOFBlurQuality"> </member> <member name="dof_blur_far_transition" type="float" setter="set_dof_blur_far_transition" getter="get_dof_blur_far_transition" brief=""> </member> @@ -15914,7 +18122,7 @@ </member> <member name="dof_blur_near_enabled" type="bool" setter="set_dof_blur_near_enabled" getter="is_dof_blur_near_enabled" brief=""> </member> - <member name="dof_blur_near_quality" type="int" setter="set_dof_blur_near_quality" getter="get_dof_blur_near_quality" brief=""> + <member name="dof_blur_near_quality" type="int" setter="set_dof_blur_near_quality" getter="get_dof_blur_near_quality" brief="" enum="Environment.DOFBlurQuality"> </member> <member name="dof_blur_near_transition" type="float" setter="set_dof_blur_near_transition" getter="get_dof_blur_near_transition" brief=""> </member> @@ -15946,7 +18154,7 @@ </member> <member name="glow_bicubic_upscale" type="bool" setter="set_glow_bicubic_upscale" getter="is_glow_bicubic_upscale_enabled" brief=""> </member> - <member name="glow_blend_mode" type="int" setter="set_glow_blend_mode" getter="get_glow_blend_mode" brief=""> + <member name="glow_blend_mode" type="int" setter="set_glow_blend_mode" getter="get_glow_blend_mode" brief="" enum="Environment.GlowBlendMode"> </member> <member name="glow_bloom" type="float" setter="set_glow_bloom" getter="get_glow_bloom" brief=""> </member> @@ -16006,7 +18214,7 @@ </member> <member name="tonemap_exposure" type="float" setter="set_tonemap_exposure" getter="get_tonemap_exposure" brief=""> </member> - <member name="tonemap_mode" type="int" setter="set_tonemapper" getter="get_tonemapper" brief=""> + <member name="tonemap_mode" type="int" setter="set_tonemapper" getter="get_tonemapper" brief="" enum="Environment.ToneMapper"> </member> <member name="tonemap_white" type="float" setter="set_tonemap_white" getter="get_tonemap_white" brief=""> </member> @@ -16072,6 +18280,8 @@ </description> <methods> <method name="close"> + <return type="void"> + </return> <description> Close the currently opened file. </description> @@ -16160,7 +18370,7 @@ </description> </method> <method name="get_error" qualifiers="const"> - <return type="Error"> + <return type="int"> </return> <description> Get the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [@Global Scope]. @@ -16235,6 +18445,8 @@ </description> </method> <method name="get_var" qualifiers="const"> + <return type="Variant"> + </return> <description> Get the next Variant value from the file. </description> @@ -16264,7 +18476,7 @@ </argument> <argument index="1" name="mode_flags" type="int"> </argument> - <argument index="2" name="compression_mode" type="int" default="0"> + <argument index="2" name="compression_mode" type="int" default="null"> </argument> <description> Open a compressed file for reading or writing. The compression_mode can be set as one of the COMPRESSION_* constants. @@ -16297,6 +18509,8 @@ </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="pos" type="int"> </argument> <description> @@ -16304,6 +18518,8 @@ </description> </method> <method name="seek_end"> + <return type="void"> + </return> <argument index="0" name="pos" type="int" default="0"> </argument> <description> @@ -16311,6 +18527,8 @@ </description> </method> <method name="set_endian_swap"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -16319,6 +18537,8 @@ </description> </method> <method name="store_16"> + <return type="void"> + </return> <argument index="0" name="value" type="int"> </argument> <description> @@ -16326,6 +18546,8 @@ </description> </method> <method name="store_32"> + <return type="void"> + </return> <argument index="0" name="value" type="int"> </argument> <description> @@ -16333,6 +18555,8 @@ </description> </method> <method name="store_64"> + <return type="void"> + </return> <argument index="0" name="value" type="int"> </argument> <description> @@ -16340,6 +18564,8 @@ </description> </method> <method name="store_8"> + <return type="void"> + </return> <argument index="0" name="value" type="int"> </argument> <description> @@ -16347,6 +18573,8 @@ </description> </method> <method name="store_buffer"> + <return type="void"> + </return> <argument index="0" name="buffer" type="PoolByteArray"> </argument> <description> @@ -16354,6 +18582,8 @@ </description> </method> <method name="store_double"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -16361,6 +18591,8 @@ </description> </method> <method name="store_float"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -16368,6 +18600,8 @@ </description> </method> <method name="store_line"> + <return type="void"> + </return> <argument index="0" name="line" type="String"> </argument> <description> @@ -16375,6 +18609,8 @@ </description> </method> <method name="store_pascal_string"> + <return type="void"> + </return> <argument index="0" name="string" type="String"> </argument> <description> @@ -16382,6 +18618,8 @@ </description> </method> <method name="store_real"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -16389,6 +18627,8 @@ </description> </method> <method name="store_string"> + <return type="void"> + </return> <argument index="0" name="string" type="String"> </argument> <description> @@ -16396,6 +18636,8 @@ </description> </method> <method name="store_var"> + <return type="void"> + </return> <argument index="0" name="value" type="Variant"> </argument> <description> @@ -16438,6 +18680,8 @@ </description> <methods> <method name="add_filter"> + <return type="void"> + </return> <argument index="0" name="filter" type="String"> </argument> <description> @@ -16445,6 +18689,8 @@ </description> </method> <method name="clear_filters"> + <return type="void"> + </return> <description> Clear all the added filters in the dialog. </description> @@ -16498,6 +18744,8 @@ </description> </method> <method name="invalidate"> + <return type="void"> + </return> <description> Invalidate and update the current dialog content list. </description> @@ -16510,13 +18758,17 @@ </description> </method> <method name="set_access"> - <argument index="0" name="access" type="int"> + <return type="void"> + </return> + <argument index="0" name="access" type="int" enum="FileDialog.Access"> </argument> <description> Set the file access permission of the dialog(Must be one of [ACCESS_RESOURCES], [ACCESS_USERDATA] or [ACCESS_FILESYSTEM]). </description> </method> <method name="set_current_dir"> + <return type="void"> + </return> <argument index="0" name="dir" type="String"> </argument> <description> @@ -16524,6 +18776,8 @@ </description> </method> <method name="set_current_file"> + <return type="void"> + </return> <argument index="0" name="file" type="String"> </argument> <description> @@ -16531,6 +18785,8 @@ </description> </method> <method name="set_current_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -16538,19 +18794,25 @@ </description> </method> <method name="set_filters"> + <return type="void"> + </return> <argument index="0" name="filters" type="PoolStringArray"> </argument> <description> </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="FileDialog.Mode"> </argument> <description> Set the file dialog mode from the MODE_* enum. </description> </method> <method name="set_show_hidden_files"> + <return type="void"> + </return> <argument index="0" name="show" type="bool"> </argument> <description> @@ -16559,11 +18821,11 @@ </method> </methods> <members> - <member name="access" type="int" setter="set_access" getter="get_access" brief=""> + <member name="access" type="int" setter="set_access" getter="get_access" brief="" enum="FileDialog.Access"> </member> <member name="filters" type="PoolStringArray" setter="set_filters" getter="get_filters" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="FileDialog.Mode"> </member> <member name="show_hidden_files" type="bool" setter="set_show_hidden_files" getter="is_showing_hidden_files" brief=""> </member> @@ -16635,15 +18897,17 @@ </description> <methods> <method name="draw" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="canvas_item" type="RID"> </argument> <argument index="1" name="pos" type="Vector2"> </argument> <argument index="2" name="string" type="String"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="null"> </argument> - <argument index="4" name="clip_w" type="int" default="-1"> + <argument index="4" name="clip_w" type="int" default="null"> </argument> <description> Draw "string" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally clipping the width. "pos" specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. @@ -16658,9 +18922,9 @@ </argument> <argument index="2" name="char" type="int"> </argument> - <argument index="3" name="next" type="int" default="-1"> + <argument index="3" name="next" type="int" default="null"> </argument> - <argument index="4" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="4" name="modulate" type="Color" default="null"> </argument> <description> Draw character "char" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally kerning if "next" is passed. clipping the width. "pos" specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character. @@ -16703,6 +18967,8 @@ </description> </method> <method name="update_changes"> + <return type="void"> + </return> <description> After editing a font (changing size, ascent, char rects, etc.). Call this function to propagate changes to controls that might use it. </description> @@ -16727,6 +18993,8 @@ </description> </method> <method name="set_function"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -16734,6 +19002,8 @@ </description> </method> <method name="set_instance"> + <return type="void"> + </return> <argument index="0" name="instance" type="Object"> </argument> <description> @@ -16765,7 +19035,7 @@ <method name="resume"> <return type="Variant"> </return> - <argument index="0" name="arg" type="Variant" default="NULL"> + <argument index="0" name="arg" type="Variant" default="null"> </argument> <description> Resume execution of the yielded function call. @@ -16785,39 +19055,67 @@ <constants> </constants> </class> -<class name="GDNativeClass" inherits="Reference" category="Core"> +<class name="GDNative" inherits="Reference" category="Core"> <brief_description> </brief_description> <description> </description> <methods> - <method name="new"> + <method name="call_native"> + <return type="Variant"> + </return> + <argument index="0" name="procedure_name" type="String"> + </argument> + <argument index="1" name="arguments" type="String"> + </argument> + <argument index="2" name="arg2" type="Array"> + </argument> + <description> + </description> + </method> + <method name="get_library"> + <return type="GDNativeLibrary"> + </return> + <description> + </description> + </method> + <method name="initialize"> + <return type="bool"> + </return> + <description> + </description> + </method> + <method name="set_library"> + <return type="void"> + </return> + <argument index="0" name="library" type="GDNativeLibrary"> + </argument> + <description> + </description> + </method> + <method name="terminate"> + <return type="bool"> + </return> <description> </description> </method> </methods> + <members> + <member name="library" type="GDNativeLibrary" setter="set_library" getter="get_library" brief=""> + </member> + </members> <constants> </constants> </class> -<class name="GDNativeLibrary" inherits="Resource" category="Core"> +<class name="GDNativeClass" inherits="Reference" category="Core"> <brief_description> </brief_description> <description> </description> <methods> - <method name="get_platform_file" qualifiers="const"> - <return type="String"> + <method name="new"> + <return type="Variant"> </return> - <argument index="0" name="platform" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_platform_file"> - <argument index="0" name="platform" type="String"> - </argument> - <argument index="1" name="file" type="String"> - </argument> <description> </description> </method> @@ -16825,49 +19123,31 @@ <constants> </constants> </class> -<class name="GDNativeScript" inherits="Script" category="Core"> +<class name="GDNativeLibrary" inherits="Resource" category="Core"> <brief_description> </brief_description> <description> </description> <methods> - <method name="get_library" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_script_name" qualifiers="const"> + <method name="get_library_path" qualifiers="const"> <return type="String"> </return> + <argument index="0" name="platform" type="String"> + </argument> <description> </description> </method> - <method name="new" qualifiers="vararg"> - <return type="Object"> + <method name="set_library_path"> + <return type="void"> </return> - <description> - </description> - </method> - <method name="set_library"> - <argument index="0" name="library" type="Object"> + <argument index="0" name="platform" type="String"> </argument> - <description> - </description> - </method> - <method name="set_script_name"> - <argument index="0" name="script_name" type="String"> + <argument index="1" name="path" type="String"> </argument> <description> </description> </method> </methods> - <members> - <member name="library" type="GDNativeLibrary" setter="set_library" getter="get_library" brief=""> - </member> - <member name="script_name" type="String" setter="set_script_name" getter="get_script_name" brief=""> - </member> - </members> <constants> </constants> </class> @@ -16900,14 +19180,18 @@ </description> <methods> <method name="bake"> - <argument index="0" name="from_node" type="Object" default="NULL"> + <return type="void"> + </return> + <argument index="0" name="from_node" type="Node" default="false"> </argument> - <argument index="1" name="create_visual_debug" type="bool" default="false"> + <argument index="1" name="create_visual_debug" type="bool" default="null"> </argument> <description> </description> </method> <method name="debug_bake"> + <return type="void"> + </return> <description> </description> </method> @@ -16942,7 +19226,7 @@ </description> </method> <method name="get_probe_data" qualifiers="const"> - <return type="Object"> + <return type="GIProbeData"> </return> <description> </description> @@ -16972,61 +19256,81 @@ </description> </method> <method name="set_bias"> + <return type="void"> + </return> <argument index="0" name="max" type="float"> </argument> <description> </description> </method> <method name="set_compress"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_dynamic_range"> + <return type="void"> + </return> <argument index="0" name="max" type="int"> </argument> <description> </description> </method> <method name="set_energy"> + <return type="void"> + </return> <argument index="0" name="max" type="float"> </argument> <description> </description> </method> <method name="set_extents"> + <return type="void"> + </return> <argument index="0" name="extents" type="Vector3"> </argument> <description> </description> </method> <method name="set_interior"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_normal_bias"> + <return type="void"> + </return> <argument index="0" name="max" type="float"> </argument> <description> </description> </method> <method name="set_probe_data"> - <argument index="0" name="data" type="Object"> + <return type="void"> + </return> + <argument index="0" name="data" type="GIProbeData"> </argument> <description> </description> </method> <method name="set_propagation"> + <return type="void"> + </return> <argument index="0" name="max" type="float"> </argument> <description> </description> </method> <method name="set_subdiv"> - <argument index="0" name="subdiv" type="int"> + <return type="void"> + </return> + <argument index="0" name="subdiv" type="int" enum="GIProbe.Subdiv"> </argument> <description> </description> @@ -17051,7 +19355,7 @@ </member> <member name="propagation" type="float" setter="set_propagation" getter="get_propagation" brief=""> </member> - <member name="subdiv" type="int" setter="set_subdiv" getter="get_subdiv" brief=""> + <member name="subdiv" type="int" setter="set_subdiv" getter="get_subdiv" brief="" enum="GIProbe.Subdiv"> </member> </members> <constants> @@ -17138,66 +19442,88 @@ </description> </method> <method name="set_bias"> + <return type="void"> + </return> <argument index="0" name="bias" type="float"> </argument> <description> </description> </method> <method name="set_bounds"> + <return type="void"> + </return> <argument index="0" name="bounds" type="Rect3"> </argument> <description> </description> </method> <method name="set_cell_size"> + <return type="void"> + </return> <argument index="0" name="cell_size" type="float"> </argument> <description> </description> </method> <method name="set_compress"> + <return type="void"> + </return> <argument index="0" name="compress" type="bool"> </argument> <description> </description> </method> <method name="set_dynamic_data"> + <return type="void"> + </return> <argument index="0" name="dynamic_data" type="PoolIntArray"> </argument> <description> </description> </method> <method name="set_dynamic_range"> + <return type="void"> + </return> <argument index="0" name="dynamic_range" type="int"> </argument> <description> </description> </method> <method name="set_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_interior"> + <return type="void"> + </return> <argument index="0" name="interior" type="bool"> </argument> <description> </description> </method> <method name="set_normal_bias"> + <return type="void"> + </return> <argument index="0" name="bias" type="float"> </argument> <description> </description> </method> <method name="set_propagation"> + <return type="void"> + </return> <argument index="0" name="propagation" type="float"> </argument> <description> </description> </method> <method name="set_to_cell_xform"> + <return type="void"> + </return> <argument index="0" name="to_cell_xform" type="Transform"> </argument> <description> @@ -17240,7 +19566,7 @@ <method name="get_flag_x" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <description> </description> @@ -17248,7 +19574,7 @@ <method name="get_flag_y" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <description> </description> @@ -17256,7 +19582,7 @@ <method name="get_flag_z" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <description> </description> @@ -17264,7 +19590,7 @@ <method name="get_param_x" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <description> </description> @@ -17272,7 +19598,7 @@ <method name="get_param_y" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <description> </description> @@ -17280,13 +19606,15 @@ <method name="get_param_z" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <description> </description> </method> <method name="set_flag_x"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <argument index="1" name="value" type="bool"> </argument> @@ -17294,7 +19622,9 @@ </description> </method> <method name="set_flag_y"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <argument index="1" name="value" type="bool"> </argument> @@ -17302,7 +19632,9 @@ </description> </method> <method name="set_flag_z"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="Generic6DOFJoint.Flag"> </argument> <argument index="1" name="value" type="bool"> </argument> @@ -17310,7 +19642,9 @@ </description> </method> <method name="set_param_x"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -17318,7 +19652,9 @@ </description> </method> <method name="set_param_y"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -17326,7 +19662,9 @@ </description> </method> <method name="set_param_z"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="Generic6DOFJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -17504,7 +19842,7 @@ </argument> <argument index="3" name="lats" type="int"> </argument> - <argument index="4" name="axis" type="int" default="2"> + <argument index="4" name="axis" type="int" enum="Vector3.Axis" default="null"> </argument> <description> </description> @@ -17518,7 +19856,7 @@ </argument> <argument index="2" name="sides" type="int"> </argument> - <argument index="3" name="axis" type="int" default="2"> + <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="null"> </argument> <description> </description> @@ -17630,6 +19968,8 @@ </description> </method> <method name="ray_intersects_triangle"> + <return type="Variant"> + </return> <argument index="0" name="from" type="Vector3"> </argument> <argument index="1" name="dir" type="Vector3"> @@ -17684,6 +20024,8 @@ </description> </method> <method name="segment_intersects_segment_2d"> + <return type="Variant"> + </return> <argument index="0" name="from_a" type="Vector2"> </argument> <argument index="1" name="to_a" type="Vector2"> @@ -17710,6 +20052,8 @@ </description> </method> <method name="segment_intersects_triangle"> + <return type="Variant"> + </return> <argument index="0" name="from" type="Vector3"> </argument> <argument index="1" name="to" type="Vector3"> @@ -17758,7 +20102,7 @@ <method name="get_flag" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="GeometryInstance.Flags"> </argument> <description> </description> @@ -17788,26 +20132,32 @@ </description> </method> <method name="get_material_override" qualifiers="const"> - <return type="Object"> + <return type="Material"> </return> <description> Return the material override for the whole geometry. </description> </method> <method name="set_cast_shadows_setting"> - <argument index="0" name="shadow_casting_setting" type="int"> + <return type="void"> + </return> + <argument index="0" name="shadow_casting_setting" type="int" enum="GeometryInstance.ShadowCastingSetting"> </argument> <description> </description> </method> <method name="set_extra_cull_margin"> + <return type="void"> + </return> <argument index="0" name="margin" type="float"> </argument> <description> </description> </method> <method name="set_flag"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="GeometryInstance.Flags"> </argument> <argument index="1" name="value" type="bool"> </argument> @@ -17815,31 +20165,41 @@ </description> </method> <method name="set_lod_max_distance"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_lod_max_hysteresis"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_lod_min_distance"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_lod_min_hysteresis"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_material_override"> - <argument index="0" name="material" type="Object"> + <return type="void"> + </return> + <argument index="0" name="material" type="Material"> </argument> <description> Set the material override for the whole geometry. @@ -17847,188 +20207,36 @@ </method> </methods> <members> - <member name="cast_shadow" type="int" setter="set_cast_shadows_setting" getter="get_cast_shadows_setting" brief=""> + <member name="cast_shadow" type="int" setter="set_cast_shadows_setting" getter="get_cast_shadows_setting" brief="" enum="GeometryInstance.ShadowCastingSetting"> </member> <member name="extra_cull_margin" type="float" setter="set_extra_cull_margin" getter="get_extra_cull_margin" brief=""> </member> - <member name="lod_max_distance" type="int" setter="set_lod_max_distance" getter="get_lod_max_distance" brief=""> + <member name="lod_max_distance" type="float" setter="set_lod_max_distance" getter="get_lod_max_distance" brief=""> </member> - <member name="lod_max_hysteresis" type="int" setter="set_lod_max_hysteresis" getter="get_lod_max_hysteresis" brief=""> + <member name="lod_max_hysteresis" type="float" setter="set_lod_max_hysteresis" getter="get_lod_max_hysteresis" brief=""> </member> - <member name="lod_min_distance" type="int" setter="set_lod_min_distance" getter="get_lod_min_distance" brief=""> + <member name="lod_min_distance" type="float" setter="set_lod_min_distance" getter="get_lod_min_distance" brief=""> </member> - <member name="lod_min_hysteresis" type="int" setter="set_lod_min_hysteresis" getter="get_lod_min_hysteresis" brief=""> + <member name="lod_min_hysteresis" type="float" setter="set_lod_min_hysteresis" getter="get_lod_min_hysteresis" brief=""> </member> - <member name="material_override" type="ShaderMaterial,SpatialMaterial" setter="set_material_override" getter="get_material_override" brief=""> + <member name="material_override" type="Material" setter="set_material_override" getter="get_material_override" brief=""> </member> <member name="use_in_baked_light" type="bool" setter="set_flag" getter="get_flag" brief=""> </member> - <member name="visible_in_all_rooms" type="bool" setter="set_flag" getter="get_flag" brief=""> - </member> </members> <constants> - <constant name="FLAG_CAST_SHADOW" value="0"> - </constant> - <constant name="FLAG_VISIBLE_IN_ALL_ROOMS" value="1"> - </constant> - <constant name="FLAG_MAX" value="3"> + <constant name="FLAG_MAX" value="1" enum=""> </constant> - <constant name="SHADOW_CASTING_SETTING_OFF" value="0"> + <constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum=""> </constant> - <constant name="SHADOW_CASTING_SETTING_ON" value="1"> + <constant name="SHADOW_CASTING_SETTING_ON" value="1" enum=""> </constant> - <constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2"> + <constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2" enum=""> </constant> - <constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3"> + <constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3" enum=""> </constant> </constants> </class> -<class name="ProjectSettings" inherits="Object" category="Core"> - <brief_description> - Contains global variables accessible from everywhere. - </brief_description> - <description> - Contains global variables accessible from everywhere. Use the normal [Object] API, such as "ProjectSettings.get(variable)", "ProjectSettings.set(variable,value)" or "ProjectSettings.has(variable)" to access them. Variables stored in project.godot are also loaded into ProjectSettings, making this object very useful for reading custom game configuration options. - </description> - <methods> - <method name="add_property_info"> - <argument index="0" name="hint" type="Dictionary"> - </argument> - <description> - Add a custom property info to a property. The dictionary must contain: name:[String](the name of the property) and type:[int](see TYPE_* in [@Global Scope]), and optionally hint:[int](see PROPERTY_HINT_* in [@Global Scope]), hint_string:[String]. - Example: - [codeblock] - ProjectSettings.set("category/property_name", 0) - - var property_info = { - "name": "category/property_name", - "type": TYPE_INT, - "hint": PROPERTY_HINT_ENUM, - "hint_string": "one,two,three" - } - - ProjectSettings.add_property_info(property_info) - [/codeblock] - </description> - </method> - <method name="clear"> - <argument index="0" name="name" type="String"> - </argument> - <description> - Clear the whole configuration (not recommended, may break things). - </description> - </method> - <method name="get_order" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - Return the order of a configuration value (influences when saved to the config file). - </description> - </method> - <method name="get_singleton" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="globalize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - Convert a localized path (res://) to a full native OS path. - </description> - </method> - <method name="has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - Return true if a configuration value is present. - </description> - </method> - <method name="has_singleton" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="load_resource_pack"> - <return type="bool"> - </return> - <argument index="0" name="pack" type="String"> - </argument> - <description> - </description> - </method> - <method name="localize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - Convert a path to a localized path (res:// path). - </description> - </method> - <method name="property_can_revert"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="property_get_revert"> - <return type="Variant"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="save"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="save_custom"> - <return type="int"> - </return> - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_initial_value"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="Variant"> - </argument> - <description> - </description> - </method> - <method name="set_order"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - Set the order of a configuration value (influences when saved to the config file). - </description> - </method> - </methods> - <constants> - </constants> -</class> <class name="Gradient" inherits="Resource" category="Core"> <brief_description> Color interpolator node @@ -18038,6 +20246,8 @@ </description> <methods> <method name="add_point"> + <return type="void"> + </return> <argument index="0" name="offset" type="float"> </argument> <argument index="1" name="color" type="Color"> @@ -18095,6 +20305,8 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="offset" type="int"> </argument> <description> @@ -18102,6 +20314,8 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="point" type="int"> </argument> <argument index="1" name="color" type="Color"> @@ -18111,6 +20325,8 @@ </description> </method> <method name="set_colors"> + <return type="void"> + </return> <argument index="0" name="colors" type="PoolColorArray"> </argument> <description> @@ -18118,6 +20334,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="point" type="int"> </argument> <argument index="1" name="offset" type="float"> @@ -18127,6 +20345,8 @@ </description> </method> <method name="set_offsets"> + <return type="void"> + </return> <argument index="0" name="offsets" type="PoolRealArray"> </argument> <description> @@ -18135,9 +20355,9 @@ </method> </methods> <members> - <member name="colors" type="float" setter="set_colors" getter="get_colors" brief=""> + <member name="colors" type="PoolColorArray" setter="set_colors" getter="get_colors" brief=""> </member> - <member name="offsets" type="float" setter="set_offsets" getter="get_offsets" brief=""> + <member name="offsets" type="PoolRealArray" setter="set_offsets" getter="get_offsets" brief=""> </member> </members> <constants> @@ -18156,12 +20376,16 @@ </description> </method> <method name="set_gradient"> + <return type="void"> + </return> <argument index="0" name="gradient" type="Gradient"> </argument> <description> </description> </method> <method name="set_width"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <description> @@ -18187,7 +20411,7 @@ </description> <methods> <method name="connect_node"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="from" type="String"> </argument> @@ -18202,6 +20426,8 @@ </description> </method> <method name="disconnect_node"> + <return type="void"> + </return> <argument index="0" name="from" type="String"> </argument> <argument index="1" name="from_port" type="int"> @@ -18270,6 +20496,8 @@ </description> </method> <method name="set_right_disconnects"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -18277,30 +20505,40 @@ </description> </method> <method name="set_scroll_ofs"> + <return type="void"> + </return> <argument index="0" name="ofs" type="Vector2"> </argument> <description> </description> </method> <method name="set_selected"> - <argument index="0" name="node" type="Object"> + <return type="void"> + </return> + <argument index="0" name="node" type="Node"> </argument> <description> </description> </method> <method name="set_snap"> + <return type="void"> + </return> <argument index="0" name="pixels" type="int"> </argument> <description> </description> </method> <method name="set_use_snap"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_zoom"> + <return type="void"> + </return> <argument index="0" name="p_zoom" type="float"> </argument> <description> @@ -18417,11 +20655,15 @@ </description> <methods> <method name="clear_all_slots"> + <return type="void"> + </return> <description> Disable all input and output slots of the GraphNode. </description> </method> <method name="clear_slot"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -18596,12 +20838,16 @@ </description> </method> <method name="set_comment"> + <return type="void"> + </return> <argument index="0" name="comment" type="bool"> </argument> <description> </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -18609,24 +20855,32 @@ </description> </method> <method name="set_overlay"> - <argument index="0" name="overlay" type="int"> + <return type="void"> + </return> + <argument index="0" name="overlay" type="int" enum="GraphNode.Overlay"> </argument> <description> </description> </method> <method name="set_resizeable"> + <return type="void"> + </return> <argument index="0" name="resizeable" type="bool"> </argument> <description> </description> </method> <method name="set_selected"> + <return type="void"> + </return> <argument index="0" name="selected" type="bool"> </argument> <description> </description> </method> <method name="set_show_close_button"> + <return type="void"> + </return> <argument index="0" name="show" type="bool"> </argument> <description> @@ -18634,6 +20888,8 @@ </description> </method> <method name="set_slot"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="enable_left" type="bool"> @@ -18648,14 +20904,16 @@ </argument> <argument index="6" name="color_right" type="Color"> </argument> - <argument index="7" name="custom_left" type="Object" default="NULL"> + <argument index="7" name="custom_left" type="Texture" default="null"> </argument> - <argument index="8" name="custom_right" type="Object" default="NULL"> + <argument index="8" name="custom_right" type="Texture" default="null"> </argument> <description> </description> </method> <method name="set_title"> + <return type="void"> + </return> <argument index="0" name="title" type="String"> </argument> <description> @@ -18764,6 +21022,8 @@ </description> </method> <method name="set_columns"> + <return type="void"> + </return> <argument index="0" name="columns" type="int"> </argument> <description> @@ -18790,95 +21050,9 @@ <description> </description> <methods> - <method name="area_get_bounds" qualifiers="const"> - <return type="Rect3"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_distance" qualifiers="const"> - <return type="float"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_is_exterior_portal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_exterior_portal"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="area_set_name"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_color"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_distance"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="distance" type="float"> - </argument> - <description> - </description> - </method> <method name="clear"> - <description> - </description> - </method> - <method name="create_area"> - <return type="int"> + <return type="void"> </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="area" type="Rect3"> - </argument> - <description> - </description> - </method> - <method name="erase_area"> - <argument index="0" name="area" type="int"> - </argument> <description> </description> </method> @@ -18907,7 +21081,7 @@ </description> </method> <method name="get_cell_size" qualifiers="const"> - <return type="float"> + <return type="Vector3"> </return> <description> </description> @@ -18948,19 +21122,17 @@ <description> </description> </method> - <method name="get_unused_area_id" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> <method name="resource_changed"> - <argument index="0" name="resource" type="Object"> + <return type="void"> + </return> + <argument index="0" name="resource" type="Resource"> </argument> <description> </description> </method> <method name="set_cell_item"> + <return type="void"> + </return> <argument index="0" name="x" type="int"> </argument> <argument index="1" name="y" type="int"> @@ -18969,54 +21141,68 @@ </argument> <argument index="3" name="item" type="int"> </argument> - <argument index="4" name="orientation" type="int" default="0"> + <argument index="4" name="orientation" type="int" default="null"> </argument> <description> </description> </method> <method name="set_cell_size"> - <argument index="0" name="size" type="float"> + <return type="void"> + </return> + <argument index="0" name="size" type="Vector3"> </argument> <description> </description> </method> <method name="set_center_x"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_center_y"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_center_z"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_clip"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> - <argument index="1" name="clipabove" type="bool" default="true"> + <argument index="1" name="clipabove" type="bool" default="0"> </argument> - <argument index="2" name="floor" type="int" default="0"> + <argument index="2" name="floor" type="int" default="true"> </argument> - <argument index="3" name="axis" type="int" default="0"> + <argument index="3" name="axis" type="int" enum="Vector3.Axis" default="null"> </argument> <description> </description> </method> <method name="set_octant_size"> + <return type="void"> + </return> <argument index="0" name="size" type="int"> </argument> <description> </description> </method> <method name="set_theme"> + <return type="void"> + </return> <argument index="0" name="theme" type="MeshLibrary"> </argument> <description> @@ -19024,7 +21210,7 @@ </method> </methods> <constants> - <constant name="INVALID_CELL_ITEM" value="-1"> + <constant name="INVALID_CELL_ITEM" value="-1" enum=""> </constant> </constants> </class> @@ -19051,6 +21237,8 @@ </description> </method> <method name="set_initial_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="float"> </argument> <description> @@ -19058,6 +21246,8 @@ </description> </method> <method name="set_length"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> @@ -19110,6 +21300,8 @@ </theme_item> <theme_item name="grabber_highlight" type="StyleBox"> </theme_item> + <theme_item name="grabber_pressed" type="StyleBox"> + </theme_item> <theme_item name="increment" type="Texture"> </theme_item> <theme_item name="increment_highlight" type="Texture"> @@ -19200,20 +21392,22 @@ </description> <methods> <method name="close"> + <return type="void"> + </return> <description> Cloces the current connection, allows for reusal of [HTTPClient]. </description> </method> <method name="connect_to_host"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="host" type="String"> </argument> <argument index="1" name="port" type="int"> </argument> - <argument index="2" name="use_ssl" type="bool" default="false"> + <argument index="2" name="use_ssl" type="bool" default="null"> </argument> - <argument index="3" name="verify_host" type="bool" default="true"> + <argument index="3" name="verify_host" type="bool" default="null"> </argument> <description> Connect to a host. This needs to be done before any requests are sent. @@ -19287,7 +21481,7 @@ </description> </method> <method name="poll"> - <return type="Error"> + <return type="int"> </return> <description> This needs to be called in order to have any request processed. Check results with [method get_status] @@ -19317,13 +21511,13 @@ <method name="request"> <return type="int"> </return> - <argument index="0" name="method" type="int"> + <argument index="0" name="method" type="int" enum="HTTPClient.Method"> </argument> <argument index="1" name="url" type="String"> </argument> <argument index="2" name="headers" type="PoolStringArray"> </argument> - <argument index="3" name="body" type="String" default=""""> + <argument index="3" name="body" type="String" default="null"> </argument> <description> Sends a request to the connected host. The url is what is normally behind the hostname, i.e. in [code]http://somehost.com/index.php[/code], url would be "index.php". @@ -19340,7 +21534,7 @@ <method name="request_raw"> <return type="int"> </return> - <argument index="0" name="method" type="int"> + <argument index="0" name="method" type="int" enum="HTTPClient.Method"> </argument> <argument index="1" name="url" type="String"> </argument> @@ -19373,6 +21567,8 @@ </description> </method> <method name="set_blocking_mode"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -19380,6 +21576,8 @@ </description> </method> <method name="set_connection"> + <return type="void"> + </return> <argument index="0" name="connection" type="StreamPeer"> </argument> <description> @@ -19387,6 +21585,8 @@ </description> </method> <method name="set_read_chunk_size"> + <return type="void"> + </return> <argument index="0" name="bytes" type="int"> </argument> <description> @@ -19543,6 +21743,8 @@ </description> <methods> <method name="cancel_request"> + <return type="void"> + </return> <description> Cancel the current request. </description> @@ -19601,18 +21803,20 @@ </return> <argument index="0" name="url" type="String"> </argument> - <argument index="1" name="custom_headers" type="PoolStringArray" default="PoolStringArray([])"> + <argument index="1" name="custom_headers" type="PoolStringArray" default="0"> </argument> <argument index="2" name="ssl_validate_domain" type="bool" default="true"> </argument> - <argument index="3" name="method" type="int" default="0"> + <argument index="3" name="method" type="int" enum="HTTPClient.Method" default="PoolStringArray( )"> </argument> - <argument index="4" name="request_data" type="String" default=""""> + <argument index="4" name="request_data" type="String" default="null"> </argument> <description> </description> </method> <method name="set_body_size_limit"> + <return type="void"> + </return> <argument index="0" name="bytes" type="int"> </argument> <description> @@ -19620,6 +21824,8 @@ </description> </method> <method name="set_download_file"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -19627,6 +21833,8 @@ </description> </method> <method name="set_max_redirects"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -19634,6 +21842,8 @@ </description> </method> <method name="set_use_threads"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -19711,7 +21921,7 @@ <method name="get_flag" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="HingeJoint.Flag"> </argument> <description> </description> @@ -19719,13 +21929,15 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="HingeJoint.Param"> </argument> <description> </description> </method> <method name="set_flag"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="HingeJoint.Flag"> </argument> <argument index="1" name="enabled" type="bool"> </argument> @@ -19733,7 +21945,9 @@ </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="HingeJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -19799,12 +22013,16 @@ </description> <methods> <method name="clear_cache"> - <argument index="0" name="arg0" type="String" default=""""> + <return type="void"> + </return> + <argument index="0" name="hostname" type="String" default=""""> </argument> <description> </description> </method> <method name="erase_resolve_item"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -19840,7 +22058,7 @@ </return> <argument index="0" name="host" type="String"> </argument> - <argument index="1" name="ip_type" type="int" default="3"> + <argument index="1" name="ip_type" type="int" enum="IP.Type" default="null"> </argument> <description> Resolve a given hostname, blocking. Resolved hostname is returned as an IPv4 or IPv6 depending on "ip_type". @@ -19851,7 +22069,7 @@ </return> <argument index="0" name="host" type="String"> </argument> - <argument index="1" name="ip_type" type="int" default="3"> + <argument index="1" name="ip_type" type="int" enum="IP.Type" default="null"> </argument> <description> Create a queue item for resolving a given hostname to an IPv4 or IPv6 depending on "ip_type". The queue ID is returned, or RESOLVER_INVALID_ID on error. @@ -19867,9 +22085,9 @@ </constant> <constant name="RESOLVER_STATUS_ERROR" value="3"> </constant> - <constant name="RESOLVER_MAX_QUERIES" value="32"> + <constant name="RESOLVER_MAX_QUERIES" value="32" enum=""> </constant> - <constant name="RESOLVER_INVALID_ID" value="-1"> + <constant name="RESOLVER_INVALID_ID" value="-1" enum=""> </constant> <constant name="TYPE_NONE" value="0"> </constant> @@ -19900,6 +22118,8 @@ </description> <methods> <method name="blend_rect"> + <return type="void"> + </return> <argument index="0" name="src" type="Image"> </argument> <argument index="1" name="src_rect" type="Rect2"> @@ -19911,6 +22131,8 @@ </description> </method> <method name="blend_rect_mask"> + <return type="void"> + </return> <argument index="0" name="src" type="Image"> </argument> <argument index="1" name="mask" type="Image"> @@ -19924,6 +22146,8 @@ </description> </method> <method name="blit_rect"> + <return type="void"> + </return> <argument index="0" name="src" type="Image"> </argument> <argument index="1" name="src_rect" type="Rect2"> @@ -19935,6 +22159,8 @@ </description> </method> <method name="blit_rect_mask"> + <return type="void"> + </return> <argument index="0" name="src" type="Image"> </argument> <argument index="1" name="mask" type="Image"> @@ -19948,54 +22174,64 @@ </description> </method> <method name="clear_mipmaps"> + <return type="void"> + </return> <description> </description> </method> <method name="compress"> <return type="int"> </return> - <argument index="0" name="mode" type="int"> + <argument index="0" name="mode" type="int" enum="Image.CompressMode"> </argument> - <argument index="1" name="arg1" type="int"> + <argument index="1" name="source" type="int" enum="Image.CompressSource"> </argument> - <argument index="2" name="arg2" type="float"> + <argument index="2" name="lossy_quality" type="float"> </argument> <description> </description> </method> <method name="convert"> - <argument index="0" name="format" type="int"> + <return type="void"> + </return> + <argument index="0" name="format" type="int" enum="Image.Format"> </argument> <description> </description> </method> <method name="copy_from"> + <return type="void"> + </return> <argument index="0" name="src" type="Image"> </argument> <description> </description> </method> <method name="create"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <argument index="1" name="height" type="int"> </argument> <argument index="2" name="use_mipmaps" type="bool"> </argument> - <argument index="3" name="format" type="int"> + <argument index="3" name="format" type="int" enum="Image.Format"> </argument> <description> Create an empty image of a specific size and format. </description> </method> <method name="create_from_data"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <argument index="1" name="height" type="int"> </argument> <argument index="2" name="use_mipmaps" type="bool"> </argument> - <argument index="3" name="format" type="int"> + <argument index="3" name="format" type="int" enum="Image.Format"> </argument> <argument index="4" name="data" type="PoolByteArray"> </argument> @@ -20003,6 +22239,8 @@ </description> </method> <method name="crop"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <argument index="1" name="height" type="int"> @@ -20023,10 +22261,14 @@ </description> </method> <method name="expand_x2_hq2x"> + <return type="void"> + </return> <description> </description> </method> <method name="fill"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -20034,14 +22276,20 @@ </description> </method> <method name="fix_alpha_edges"> + <return type="void"> + </return> <description> </description> </method> <method name="flip_x"> + <return type="void"> + </return> <description> </description> </method> <method name="flip_y"> + <return type="void"> + </return> <description> </description> </method> @@ -20099,6 +22347,12 @@ Return a new [Image] that is a copy of "area" in this [Image]. </description> </method> + <method name="get_size" qualifiers="const"> + <return type="Vector2"> + </return> + <description> + </description> + </method> <method name="get_used_rect" qualifiers="const"> <return type="Rect2"> </return> @@ -20147,28 +22401,38 @@ </description> </method> <method name="lock"> + <return type="void"> + </return> <description> </description> </method> <method name="normalmap_to_xy"> + <return type="void"> + </return> <description> </description> </method> <method name="premultiply_alpha"> + <return type="void"> + </return> <description> </description> </method> <method name="resize"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <argument index="1" name="height" type="int"> </argument> - <argument index="2" name="interpolation" type="int" default="1"> + <argument index="2" name="interpolation" type="int" enum="Image.Interpolation" default="null"> </argument> <description> </description> </method> <method name="resize_to_po2"> + <return type="void"> + </return> <argument index="0" name="square" type="bool" default="false"> </argument> <description> @@ -20184,6 +22448,8 @@ </description> </method> <method name="set_pixel"> + <return type="void"> + </return> <argument index="0" name="x" type="int"> </argument> <argument index="1" name="y" type="int"> @@ -20194,14 +22460,20 @@ </description> </method> <method name="shrink_x2"> + <return type="void"> + </return> <description> </description> </method> <method name="srgb_to_linear"> + <return type="void"> + </return> <description> </description> </method> <method name="unlock"> + <return type="void"> + </return> <description> </description> </method> @@ -20326,13 +22598,15 @@ </description> <methods> <method name="create"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <argument index="1" name="height" type="int"> </argument> - <argument index="2" name="format" type="int"> + <argument index="2" name="format" type="int" enum="Image.Format"> </argument> - <argument index="3" name="flags" type="int" default="7"> + <argument index="3" name="flags" type="int" default="null"> </argument> <description> Create a new [ImageTexture] with "width" and "height". @@ -20341,21 +22615,16 @@ </description> </method> <method name="create_from_image"> + <return type="void"> + </return> <argument index="0" name="image" type="Image"> </argument> - <argument index="1" name="flags" type="int" default="7"> + <argument index="1" name="flags" type="int" default="null"> </argument> <description> Create a new [ImageTexture] from an [Image] with "flags" from [Texture].FLAG_*. </description> </method> - <method name="get_data" qualifiers="const"> - <return type="Image"> - </return> - <description> - Return the [Image] of this [ImageTexture]. - </description> - </method> <method name="get_format" qualifiers="const"> <return type="int"> </return> @@ -20378,6 +22647,8 @@ </description> </method> <method name="load"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -20385,6 +22656,8 @@ </description> </method> <method name="set_data"> + <return type="void"> + </return> <argument index="0" name="image" type="Image"> </argument> <description> @@ -20392,6 +22665,8 @@ </description> </method> <method name="set_lossy_storage_quality"> + <return type="void"> + </return> <argument index="0" name="quality" type="float"> </argument> <description> @@ -20399,13 +22674,17 @@ </description> </method> <method name="set_size_override"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="set_storage"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="ImageTexture.Storage"> </argument> <description> Set the storage type. One of [ImageTexture].STORAGE_*. @@ -20432,19 +22711,23 @@ </description> <methods> <method name="add_sphere"> + <return type="void"> + </return> <argument index="0" name="lats" type="int"> </argument> <argument index="1" name="lons" type="int"> </argument> <argument index="2" name="radius" type="float"> </argument> - <argument index="3" name="add_uv" type="bool" default="true"> + <argument index="3" name="add_uv" type="bool" default="null"> </argument> <description> Simple helper to draw an uvsphere, with given latitudes, longitude and radius. </description> </method> <method name="add_vertex"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector3"> </argument> <description> @@ -20452,9 +22735,11 @@ </description> </method> <method name="begin"> - <argument index="0" name="primitive" type="int"> + <return type="void"> + </return> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> </argument> - <argument index="1" name="texture" type="Texture" default="NULL"> + <argument index="1" name="texture" type="Texture" default="null"> </argument> <description> Begin drawing (And optionally pass a texture override). When done call end(). For more information on how this works, search for glBegin() glEnd() references. @@ -20462,16 +22747,22 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear everything that was drawn using begin/end. </description> </method> <method name="end"> + <return type="void"> + </return> <description> Call this when done adding a batch of geometry, otherwise it can't be displayed. </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -20479,6 +22770,8 @@ </description> </method> <method name="set_normal"> + <return type="void"> + </return> <argument index="0" name="normal" type="Vector3"> </argument> <description> @@ -20486,6 +22779,8 @@ </description> </method> <method name="set_tangent"> + <return type="void"> + </return> <argument index="0" name="tangent" type="Plane"> </argument> <description> @@ -20493,6 +22788,8 @@ </description> </method> <method name="set_uv"> + <return type="void"> + </return> <argument index="0" name="uv" type="Vector2"> </argument> <description> @@ -20500,6 +22797,8 @@ </description> </method> <method name="set_uv2"> + <return type="void"> + </return> <argument index="0" name="uv" type="Vector2"> </argument> <description> @@ -20519,6 +22818,8 @@ </description> <methods> <method name="action_press"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> @@ -20526,6 +22827,8 @@ </description> </method> <method name="action_release"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> @@ -20533,9 +22836,11 @@ </description> </method> <method name="add_joy_mapping"> + <return type="void"> + </return> <argument index="0" name="mapping" type="String"> </argument> - <argument index="1" name="update_existing" type="bool" default="false"> + <argument index="1" name="update_existing" type="bool" default="null"> </argument> <description> Add a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. @@ -20739,12 +23044,16 @@ </description> </method> <method name="parse_input_event"> - <argument index="0" name="event" type="Object"> + <return type="void"> + </return> + <argument index="0" name="event" type="InputEvent"> </argument> <description> </description> </method> <method name="remove_joy_mapping"> + <return type="void"> + </return> <argument index="0" name="guid" type="String"> </argument> <description> @@ -20752,29 +23061,34 @@ </description> </method> <method name="set_custom_mouse_cursor"> - <argument index="0" name="image" type="Texture"> + <return type="void"> + </return> + <argument index="0" name="image" type="Resource"> </argument> - <argument index="1" name="hotspot" type="Vector2" default="Vector2(0, 0)"> + <argument index="1" name="hotspot" type="Vector2" default="null"> </argument> <description> - Set a custom mouse cursor image, which is only visible inside the game window. The hotspot can also be specified. </description> </method> <method name="set_mouse_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Input.MouseMode"> </argument> <description> Set the mouse mode. See the constants for more information. </description> </method> <method name="start_joy_vibration"> + <return type="void"> + </return> <argument index="0" name="device" type="int"> </argument> <argument index="1" name="weak_magnitude" type="float"> </argument> <argument index="2" name="strong_magnitude" type="float"> </argument> - <argument index="3" name="duration" type="float" default="0"> + <argument index="3" name="duration" type="float" default="null"> </argument> <description> Starts to vibrate the joypad. Joypads usually come with two rumble motors, a strong and a weak one. weak_magnitude is the strength of the weak motor (between 0 and 1) and strong_magnitude is the strength of the strong motor (between 0 and 1). duration is the duration of the effect in seconds (a duration of 0 will try to play the vibration indefinitely). @@ -20782,6 +23096,8 @@ </description> </method> <method name="stop_joy_vibration"> + <return type="void"> + </return> <argument index="0" name="device" type="int"> </argument> <description> @@ -20789,6 +23105,8 @@ </description> </method> <method name="warp_mouse_pos"> + <return type="void"> + </return> <argument index="0" name="to" type="Vector2"> </argument> <description> @@ -20913,12 +23231,16 @@ </description> </method> <method name="set_device"> + <return type="void"> + </return> <argument index="0" name="device" type="int"> </argument> <description> </description> </method> <method name="set_id"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -20937,7 +23259,7 @@ </return> <argument index="0" name="xform" type="Transform2D"> </argument> - <argument index="1" name="local_ofs" type="Vector2" default="Vector2(0, 0)"> + <argument index="1" name="local_ofs" type="Vector2" default="null"> </argument> <description> </description> @@ -20964,12 +23286,16 @@ </description> </method> <method name="set_action"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> @@ -21005,18 +23331,24 @@ </description> </method> <method name="set_button_index"> + <return type="void"> + </return> <argument index="0" name="button_index" type="int"> </argument> <description> </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> </description> </method> <method name="set_pressure"> + <return type="void"> + </return> <argument index="0" name="pressure" type="float"> </argument> <description> @@ -21057,12 +23389,16 @@ </description> </method> <method name="set_axis"> + <return type="void"> + </return> <argument index="0" name="axis" type="int"> </argument> <description> </description> </method> <method name="set_axis_value"> + <return type="void"> + </return> <argument index="0" name="axis_value" type="float"> </argument> <description> @@ -21106,24 +23442,32 @@ </description> </method> <method name="set_echo"> + <return type="void"> + </return> <argument index="0" name="echo" type="bool"> </argument> <description> </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> </description> </method> <method name="set_scancode"> + <return type="void"> + </return> <argument index="0" name="scancode" type="int"> </argument> <description> </description> </method> <method name="set_unicode"> + <return type="void"> + </return> <argument index="0" name="unicode" type="int"> </argument> <description> @@ -21131,7 +23475,7 @@ </method> </methods> <members> - <member name="echo" type="int" setter="set_echo" getter="is_echo" brief=""> + <member name="echo" type="bool" setter="set_echo" getter="is_echo" brief=""> Echo state of the key, i.e. whether it's a repeat event or not. </member> <member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" brief=""> @@ -21173,18 +23517,24 @@ </description> </method> <method name="set_button_mask"> + <return type="void"> + </return> <argument index="0" name="button_mask" type="int"> </argument> <description> </description> </method> <method name="set_global_position"> + <return type="void"> + </return> <argument index="0" name="global_position" type="Vector2"> </argument> <description> </description> </method> <method name="set_position"> + <return type="void"> + </return> <argument index="0" name="position" type="Vector2"> </argument> <description> @@ -21231,24 +23581,32 @@ </description> </method> <method name="set_button_index"> + <return type="void"> + </return> <argument index="0" name="button_index" type="int"> </argument> <description> </description> </method> <method name="set_doubleclick"> + <return type="void"> + </return> <argument index="0" name="doubleclick" type="bool"> </argument> <description> </description> </method> <method name="set_factor"> + <return type="void"> + </return> <argument index="0" name="factor" type="float"> </argument> <description> </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> @@ -21291,12 +23649,16 @@ </description> </method> <method name="set_relative"> + <return type="void"> + </return> <argument index="0" name="relative" type="Vector2"> </argument> <description> </description> </method> <method name="set_speed"> + <return type="void"> + </return> <argument index="0" name="speed" type="Vector2"> </argument> <description> @@ -21346,24 +23708,32 @@ </description> </method> <method name="set_index"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> </description> </method> <method name="set_position"> + <return type="void"> + </return> <argument index="0" name="position" type="Vector2"> </argument> <description> </description> </method> <method name="set_relative"> + <return type="void"> + </return> <argument index="0" name="relative" type="Vector2"> </argument> <description> </description> </method> <method name="set_speed"> + <return type="void"> + </return> <argument index="0" name="speed" type="Vector2"> </argument> <description> @@ -21407,18 +23777,24 @@ </description> </method> <method name="set_index"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> </description> </method> <method name="set_position"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> </description> </method> <method name="set_pressed"> + <return type="void"> + </return> <argument index="0" name="pressed" type="bool"> </argument> <description> @@ -21477,30 +23853,40 @@ </description> </method> <method name="set_alt"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_command"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_control"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_metakey"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_shift"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -21535,18 +23921,22 @@ </description> <methods> <method name="action_add_event"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> - <argument index="1" name="event" type="Object"> + <argument index="1" name="event" type="InputEvent"> </argument> <description> Add an [InputEvent] to an action. This [InputEvent] will trigger the action. </description> </method> <method name="action_erase_event"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> - <argument index="1" name="event" type="Object"> + <argument index="1" name="event" type="InputEvent"> </argument> <description> Remove an [InputEvent] from an action. @@ -21557,13 +23947,15 @@ </return> <argument index="0" name="action" type="String"> </argument> - <argument index="1" name="event" type="Object"> + <argument index="1" name="event" type="InputEvent"> </argument> <description> Whether an action has an [InputEvent] associated with it. </description> </method> <method name="add_action"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> @@ -21571,6 +23963,8 @@ </description> </method> <method name="erase_action"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> @@ -21580,7 +23974,7 @@ <method name="event_is_action" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="event" type="Object"> + <argument index="0" name="event" type="InputEvent"> </argument> <argument index="1" name="action" type="String"> </argument> @@ -21614,6 +24008,8 @@ </description> </method> <method name="load_from_globals"> + <return type="void"> + </return> <description> Clear the [InputMap] and load it anew from [ProjectSettings]. </description> @@ -21647,7 +24043,9 @@ </description> </method> <method name="replace_by_instance"> - <argument index="0" name="custom_scene" type="PackedScene" default="NULL"> + <return type="void"> + </return> + <argument index="0" name="custom_scene" type="PackedScene" default="null"> </argument> <description> Replace this placeholder by the scene handed as an argument, or the original scene if no argument is given. As for all resources, the scene is loaded only if it's not loaded already. By manually loading the scene beforehand, delays caused by this function can be avoided. @@ -21682,24 +24080,32 @@ </description> </method> <method name="set_interpolation_enabled"> + <return type="void"> + </return> <argument index="0" name="target_path" type="bool"> </argument> <description> </description> </method> <method name="set_speed"> + <return type="void"> + </return> <argument index="0" name="speed" type="float"> </argument> <description> </description> </method> <method name="set_target"> - <argument index="0" name="target" type="Camera"> + <return type="void"> + </return> + <argument index="0" name="target" type="Object"> </argument> <description> </description> </method> <method name="set_target_path"> + <return type="void"> + </return> <argument index="0" name="target_path" type="NodePath"> </argument> <description> @@ -21729,20 +24135,24 @@ </description> <methods> <method name="add_icon_item"> + <return type="void"> + </return> <argument index="0" name="icon" type="Texture"> </argument> - <argument index="1" name="selectable" type="bool" default="true"> + <argument index="1" name="selectable" type="bool" default="null"> </argument> <description> Adds an item to the item list with no text, only an icon. </description> </method> <method name="add_item"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> - <argument index="1" name="icon" type="Texture" default="NULL"> + <argument index="1" name="icon" type="Texture" default="null"> </argument> - <argument index="2" name="selectable" type="bool" default="true"> + <argument index="2" name="selectable" type="bool" default="null"> </argument> <description> Adds an item to the item list with specified text. Specify an icon of null for a list item with no icon. @@ -21750,11 +24160,15 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Remove all items from the list. </description> </method> <method name="ensure_current_is_visible"> + <return type="void"> + </return> <description> Ensure selection is visible, adjusting the scroll position as necessary. </description> @@ -21796,7 +24210,7 @@ </return> <argument index="0" name="pos" type="Vector2"> </argument> - <argument index="1" name="exact" type="bool" default="false"> + <argument index="1" name="exact" type="bool" default="null"> </argument> <description> Given a position within the control return the item (if any) at that point. @@ -21887,12 +24301,18 @@ </description> </method> <method name="get_v_scroll"> - <return type="Object"> + <return type="VScrollBar"> </return> <description> Returns the current vertical scroll bar for the List. </description> </method> + <method name="has_auto_height" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="is_item_disabled" qualifiers="const"> <return type="bool"> </return> @@ -21921,7 +24341,7 @@ </description> </method> <method name="is_same_column_width" qualifiers="const"> - <return type="int"> + <return type="bool"> </return> <description> Returns whether or not all columns of the list are of the same size. @@ -21937,6 +24357,8 @@ </description> </method> <method name="remove_item"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -21944,9 +24366,11 @@ </description> </method> <method name="select"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="single" type="bool" default="true"> + <argument index="1" name="single" type="bool" default="null"> </argument> <description> Select the item at the specified index. @@ -21954,13 +24378,25 @@ </description> </method> <method name="set_allow_rmb_select"> + <return type="void"> + </return> <argument index="0" name="allow" type="bool"> </argument> <description> Allow (or disallow) selection of (selectable) items in the list using right mouse button. </description> </method> + <method name="set_auto_height"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> <method name="set_fixed_column_width"> + <return type="void"> + </return> <argument index="0" name="width" type="int"> </argument> <description> @@ -21968,24 +24404,32 @@ </description> </method> <method name="set_fixed_icon_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="set_icon_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="ItemList.IconMode"> </argument> <description> </description> </method> <method name="set_icon_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> </description> </method> <method name="set_item_custom_bg_color"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="custom_bg_color" type="Color"> @@ -21994,6 +24438,8 @@ </description> </method> <method name="set_item_disabled"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="disabled" type="bool"> @@ -22004,6 +24450,8 @@ </description> </method> <method name="set_item_icon"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="icon" type="Texture"> @@ -22013,6 +24461,8 @@ </description> </method> <method name="set_item_icon_region"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="rect" type="Rect2"> @@ -22021,6 +24471,8 @@ </description> </method> <method name="set_item_metadata"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="metadata" type="Variant"> @@ -22030,6 +24482,8 @@ </description> </method> <method name="set_item_selectable"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="selectable" type="bool"> @@ -22039,6 +24493,8 @@ </description> </method> <method name="set_item_text"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="text" type="String"> @@ -22048,6 +24504,8 @@ </description> </method> <method name="set_item_tooltip"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="tooltip" type="String"> @@ -22057,6 +24515,8 @@ </description> </method> <method name="set_item_tooltip_enabled"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -22066,6 +24526,8 @@ </description> </method> <method name="set_max_columns"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -22073,6 +24535,8 @@ </description> </method> <method name="set_max_text_lines"> + <return type="void"> + </return> <argument index="0" name="lines" type="int"> </argument> <description> @@ -22080,6 +24544,8 @@ </description> </method> <method name="set_same_column_width"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -22087,17 +24553,23 @@ </description> </method> <method name="set_select_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="ItemList.SelectMode"> </argument> <description> </description> </method> <method name="sort_items_by_text"> + <return type="void"> + </return> <description> Sorts items in the list by their text. </description> </method> <method name="unselect"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -22108,9 +24580,11 @@ <members> <member name="allow_rmb_select" type="bool" setter="set_allow_rmb_select" getter="get_allow_rmb_select" brief=""> </member> + <member name="auto_height" type="bool" setter="set_auto_height" getter="has_auto_height" brief=""> + </member> <member name="fixed_column_width" type="int" setter="set_fixed_column_width" getter="get_fixed_column_width" brief=""> </member> - <member name="icon_mode" type="int" setter="set_icon_mode" getter="get_icon_mode" brief=""> + <member name="icon_mode" type="int" setter="set_icon_mode" getter="get_icon_mode" brief="" enum="ItemList.IconMode"> </member> <member name="icon_scale" type="float" setter="set_icon_scale" getter="get_icon_scale" brief=""> </member> @@ -22122,7 +24596,7 @@ </member> <member name="same_column_width" type="bool" setter="set_same_column_width" getter="is_same_column_width" brief=""> </member> - <member name="select_mode" type="int" setter="set_select_mode" getter="get_select_mode" brief=""> + <member name="select_mode" type="int" setter="set_select_mode" getter="get_select_mode" brief="" enum="ItemList.SelectMode"> </member> </members> <signals> @@ -22233,24 +24707,32 @@ </description> </method> <method name="set_exclude_nodes_from_collision"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_node_a"> + <return type="void"> + </return> <argument index="0" name="node" type="NodePath"> </argument> <description> </description> </method> <method name="set_node_b"> + <return type="void"> + </return> <argument index="0" name="node" type="NodePath"> </argument> <description> </description> </method> <method name="set_solver_priority"> + <return type="void"> + </return> <argument index="0" name="priority" type="int"> </argument> <description> @@ -22305,18 +24787,24 @@ </description> </method> <method name="set_bias"> + <return type="void"> + </return> <argument index="0" name="bias" type="float"> </argument> <description> </description> </method> <method name="set_exclude_nodes_from_collision"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_node_a"> + <return type="void"> + </return> <argument index="0" name="node" type="NodePath"> </argument> <description> @@ -22324,6 +24812,8 @@ </description> </method> <method name="set_node_b"> + <return type="void"> + </return> <argument index="0" name="node" type="NodePath"> </argument> <description> @@ -22371,6 +24861,8 @@ </description> </method> <method name="get_collision_collider_metadata" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="collision" type="int"> </argument> <description> @@ -22499,18 +24991,20 @@ </return> <argument index="0" name="linear_velocity" type="Vector3"> </argument> - <argument index="1" name="floor_normal" type="Vector3" default="Vector3(0, 0, 0)"> + <argument index="1" name="floor_normal" type="Vector3" default="4"> </argument> <argument index="2" name="slope_stop_min_velocity" type="float" default="0.05"> </argument> - <argument index="3" name="max_bounces" type="int" default="4"> + <argument index="3" name="max_bounces" type="int" default="Vector3( 0, 0, 0 )"> </argument> - <argument index="4" name="floor_max_angle" type="float" default="0.785398"> + <argument index="4" name="floor_max_angle" type="float" default="null"> </argument> <description> </description> </method> <method name="set_safe_margin"> + <return type="void"> + </return> <argument index="0" name="pixels" type="float"> </argument> <description> @@ -22561,6 +25055,8 @@ </description> </method> <method name="get_collision_collider_metadata" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="collision" type="int"> </argument> <description> @@ -22690,18 +25186,20 @@ </return> <argument index="0" name="linear_velocity" type="Vector2"> </argument> - <argument index="1" name="floor_normal" type="Vector2" default="Vector2(0, 0)"> + <argument index="1" name="floor_normal" type="Vector2" default="4"> </argument> <argument index="2" name="slope_stop_min_velocity" type="float" default="5"> </argument> - <argument index="3" name="max_bounces" type="int" default="4"> + <argument index="3" name="max_bounces" type="int" default="Vector2( 0, 0 )"> </argument> - <argument index="4" name="floor_max_angle" type="float" default="0.785398"> + <argument index="4" name="floor_max_angle" type="float" default="null"> </argument> <description> </description> </method> <method name="set_safe_margin"> + <return type="void"> + </return> <argument index="0" name="pixels" type="float"> </argument> <description> @@ -22832,13 +25330,17 @@ </description> </method> <method name="set_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="Label.Align"> </argument> <description> Sets the alignment mode to any of the ALIGN_* enumeration values. </description> </method> <method name="set_autowrap"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -22846,6 +25348,8 @@ </description> </method> <method name="set_clip_text"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -22853,6 +25357,8 @@ </description> </method> <method name="set_lines_skipped"> + <return type="void"> + </return> <argument index="0" name="lines_skipped" type="int"> </argument> <description> @@ -22860,6 +25366,8 @@ </description> </method> <method name="set_max_lines_visible"> + <return type="void"> + </return> <argument index="0" name="lines_visible" type="int"> </argument> <description> @@ -22867,6 +25375,8 @@ </description> </method> <method name="set_percent_visible"> + <return type="void"> + </return> <argument index="0" name="percent_visible" type="float"> </argument> <description> @@ -22874,6 +25384,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -22881,6 +25393,8 @@ </description> </method> <method name="set_uppercase"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -22888,13 +25402,17 @@ </description> </method> <method name="set_valign"> - <argument index="0" name="valign" type="int"> + <return type="void"> + </return> + <argument index="0" name="valign" type="int" enum="Label.VAlign"> </argument> <description> Sets the vertical alignment mode to any of the VALIGN_* enumeration values. </description> </method> <method name="set_visible_characters"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -22903,7 +25421,7 @@ </method> </methods> <members> - <member name="align" type="int" setter="set_align" getter="get_align" brief=""> + <member name="align" type="int" setter="set_align" getter="get_align" brief="" enum="Label.Align"> </member> <member name="autowrap" type="bool" setter="set_autowrap" getter="has_autowrap" brief=""> </member> @@ -22919,7 +25437,7 @@ </member> <member name="uppercase" type="bool" setter="set_uppercase" getter="is_uppercase" brief=""> </member> - <member name="valign" type="int" setter="set_valign" getter="get_valign" brief=""> + <member name="valign" type="int" setter="set_valign" getter="get_valign" brief="" enum="Label.VAlign"> </member> </members> <constants> @@ -22957,6 +25475,8 @@ </theme_item> <theme_item name="line_spacing" type="int"> </theme_item> + <theme_item name="normal" type="StyleBox"> + </theme_item> <theme_item name="shadow_as_outline" type="int"> </theme_item> <theme_item name="shadow_offset_x" type="int"> @@ -22986,6 +25506,8 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear the [LargeTexture]. </description> @@ -23016,6 +25538,8 @@ </description> </method> <method name="set_piece_offset"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="ofs" type="Vector2"> @@ -23025,6 +25549,8 @@ </description> </method> <method name="set_piece_texture"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="texture" type="Texture"> @@ -23034,6 +25560,8 @@ </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> @@ -23071,7 +25599,7 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="Light.Param"> </argument> <description> </description> @@ -23082,6 +25610,12 @@ <description> </description> </method> + <method name="get_shadow_reverse_cull_face" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="has_shadow" qualifiers="const"> <return type="bool"> </return> @@ -23101,31 +25635,41 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_cull_mask"> + <return type="void"> + </return> <argument index="0" name="cull_mask" type="int"> </argument> <description> </description> </method> <method name="set_editor_only"> + <return type="void"> + </return> <argument index="0" name="editor_only" type="bool"> </argument> <description> </description> </method> <method name="set_negative"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="Light.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -23133,17 +25677,29 @@ </description> </method> <method name="set_shadow"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_shadow_color"> + <return type="void"> + </return> <argument index="0" name="shadow_color" type="Color"> </argument> <description> </description> </method> + <method name="set_shadow_reverse_cull_face"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> </methods> <members> <member name="editor_only" type="bool" setter="set_editor_only" getter="is_editor_only" brief=""> @@ -23168,6 +25724,8 @@ </member> <member name="shadow_max_distance" type="float" setter="set_param" getter="get_param" brief=""> </member> + <member name="shadow_reverse_cull_face" type="bool" setter="set_shadow_reverse_cull_face" getter="get_shadow_reverse_cull_face" brief=""> + </member> </members> <constants> <constant name="PARAM_ENERGY" value="0"> @@ -23196,7 +25754,7 @@ </constant> <constant name="PARAM_SHADOW_BIAS" value="12"> </constant> - <constant name="PARAM_MAX" value="13"> + <constant name="PARAM_MAX" value="14"> </constant> </constants> </class> @@ -23295,7 +25853,7 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> Return the texture of the Light2D. @@ -23350,6 +25908,8 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -23357,12 +25917,16 @@ </description> </method> <method name="set_editor_only"> + <return type="void"> + </return> <argument index="0" name="editor_only" type="bool"> </argument> <description> </description> </method> <method name="set_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -23370,6 +25934,8 @@ </description> </method> <method name="set_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> @@ -23377,6 +25943,8 @@ </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> @@ -23384,6 +25952,8 @@ </description> </method> <method name="set_item_cull_mask"> + <return type="void"> + </return> <argument index="0" name="item_cull_mask" type="int"> </argument> <description> @@ -23391,6 +25961,8 @@ </description> </method> <method name="set_item_shadow_cull_mask"> + <return type="void"> + </return> <argument index="0" name="item_shadow_cull_mask" type="int"> </argument> <description> @@ -23398,6 +25970,8 @@ </description> </method> <method name="set_layer_range_max"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -23405,6 +25979,8 @@ </description> </method> <method name="set_layer_range_min"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -23412,13 +25988,17 @@ </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Light2D.Mode"> </argument> <description> Set the behaviour mode of the Light2D. Use constants defined in the constants section. </description> </method> <method name="set_shadow_buffer_size"> + <return type="void"> + </return> <argument index="0" name="size" type="int"> </argument> <description> @@ -23426,6 +26006,8 @@ </description> </method> <method name="set_shadow_color"> + <return type="void"> + </return> <argument index="0" name="shadow_color" type="Color"> </argument> <description> @@ -23433,6 +26015,8 @@ </description> </method> <method name="set_shadow_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -23440,31 +26024,41 @@ </description> </method> <method name="set_shadow_filter"> - <argument index="0" name="filter" type="int"> + <return type="void"> + </return> + <argument index="0" name="filter" type="int" enum="Light2D.ShadowFilter"> </argument> <description> </description> </method> <method name="set_shadow_gradient_length"> + <return type="void"> + </return> <argument index="0" name="multiplier" type="float"> </argument> <description> </description> </method> <method name="set_shadow_smooth"> + <return type="void"> + </return> <argument index="0" name="smooth" type="float"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> Set the texture of the Light2D. </description> </method> <method name="set_texture_offset"> + <return type="void"> + </return> <argument index="0" name="texture_offset" type="Vector2"> </argument> <description> @@ -23472,6 +26066,8 @@ </description> </method> <method name="set_texture_scale"> + <return type="void"> + </return> <argument index="0" name="texture_scale" type="float"> </argument> <description> @@ -23479,6 +26075,8 @@ </description> </method> <method name="set_z_range_max"> + <return type="void"> + </return> <argument index="0" name="z" type="int"> </argument> <description> @@ -23486,6 +26084,8 @@ </description> </method> <method name="set_z_range_min"> + <return type="void"> + </return> <argument index="0" name="z" type="int"> </argument> <description> @@ -23502,7 +26102,7 @@ </member> <member name="energy" type="float" setter="set_energy" getter="get_energy" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="Light2D.Mode"> </member> <member name="offset" type="Vector2" setter="set_texture_offset" getter="get_texture_offset" brief=""> </member> @@ -23518,15 +26118,13 @@ </member> <member name="range_z_min" type="int" setter="set_z_range_min" getter="get_z_range_min" brief=""> </member> - <member name="scale" type="float" setter="set_texture_scale" getter="get_texture_scale" brief=""> - </member> <member name="shadow_buffer_size" type="int" setter="set_shadow_buffer_size" getter="get_shadow_buffer_size" brief=""> </member> <member name="shadow_color" type="Color" setter="set_shadow_color" getter="get_shadow_color" brief=""> </member> <member name="shadow_enabled" type="bool" setter="set_shadow_enabled" getter="is_shadow_enabled" brief=""> </member> - <member name="shadow_filter" type="float" setter="set_shadow_filter" getter="get_shadow_filter" brief=""> + <member name="shadow_filter" type="int" setter="set_shadow_filter" getter="get_shadow_filter" brief="" enum="Light2D.ShadowFilter"> </member> <member name="shadow_filter_smooth" type="float" setter="set_shadow_smooth" getter="get_shadow_smooth" brief=""> </member> @@ -23536,6 +26134,8 @@ </member> <member name="texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> + <member name="texture_scale" type="float" setter="set_texture_scale" getter="get_texture_scale" brief=""> + </member> </members> <constants> <constant name="MODE_ADD" value="0"> @@ -23575,6 +26175,8 @@ </description> </method> <method name="set_occluder_light_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -23582,6 +26184,8 @@ </description> </method> <method name="set_occluder_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="OccluderPolygon2D"> </argument> <description> @@ -23605,6 +26209,8 @@ </description> <methods> <method name="add_point"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -23629,7 +26235,7 @@ </description> </method> <method name="get_gradient" qualifiers="const"> - <return type="Object"> + <return type="Gradient"> </return> <description> </description> @@ -23673,7 +26279,7 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -23691,42 +26297,56 @@ </description> </method> <method name="remove_point"> + <return type="void"> + </return> <argument index="0" name="i" type="int"> </argument> <description> </description> </method> <method name="set_begin_cap_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="LineCapMode"> </argument> <description> </description> </method> <method name="set_default_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_end_cap_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="LineCapMode"> </argument> <description> </description> </method> <method name="set_gradient"> - <argument index="0" name="color" type="Object"> + <return type="void"> + </return> + <argument index="0" name="color" type="Gradient"> </argument> <description> </description> </method> <method name="set_joint_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="LineJointMode"> </argument> <description> </description> </method> <method name="set_point_pos"> + <return type="void"> + </return> <argument index="0" name="i" type="int"> </argument> <argument index="1" name="pos" type="Vector2"> @@ -23735,36 +26355,48 @@ </description> </method> <method name="set_points"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <description> </description> </method> <method name="set_round_precision"> + <return type="void"> + </return> <argument index="0" name="precision" type="int"> </argument> <description> </description> </method> <method name="set_sharp_limit"> + <return type="void"> + </return> <argument index="0" name="limit" type="float"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_texture_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="LineTextureMode"> </argument> <description> </description> </method> <method name="set_width"> + <return type="void"> + </return> <argument index="0" name="width" type="float"> </argument> <description> @@ -23772,15 +26404,15 @@ </method> </methods> <members> - <member name="begin_cap_mode" type="int" setter="set_begin_cap_mode" getter="get_begin_cap_mode" brief=""> + <member name="begin_cap_mode" type="int" setter="set_begin_cap_mode" getter="get_begin_cap_mode" brief="" enum="LineCapMode"> </member> <member name="default_color" type="Color" setter="set_default_color" getter="get_default_color" brief=""> </member> - <member name="end_cap_mode" type="int" setter="set_end_cap_mode" getter="get_end_cap_mode" brief=""> + <member name="end_cap_mode" type="int" setter="set_end_cap_mode" getter="get_end_cap_mode" brief="" enum="LineCapMode"> </member> <member name="gradient" type="Gradient" setter="set_gradient" getter="get_gradient" brief=""> </member> - <member name="joint_mode" type="int" setter="set_joint_mode" getter="get_joint_mode" brief=""> + <member name="joint_mode" type="int" setter="set_joint_mode" getter="get_joint_mode" brief="" enum="LineJointMode"> </member> <member name="points" type="PoolVector2Array" setter="set_points" getter="get_points" brief=""> </member> @@ -23790,7 +26422,7 @@ </member> <member name="texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> - <member name="texture_mode" type="int" setter="set_texture_mode" getter="get_texture_mode" brief=""> + <member name="texture_mode" type="int" setter="set_texture_mode" getter="get_texture_mode" brief="" enum="LineTextureMode"> </member> <member name="width" type="float" setter="set_width" getter="get_width" brief=""> </member> @@ -23823,6 +26455,8 @@ </description> <methods> <method name="append_at_cursor"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -23830,6 +26464,8 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear the [LineEdit] text. </description> @@ -23849,6 +26485,8 @@ </description> </method> <method name="cursor_set_blink_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -23856,6 +26494,8 @@ </description> </method> <method name="cursor_set_blink_speed"> + <return type="void"> + </return> <argument index="0" name="blink_speed" type="float"> </argument> <description> @@ -23928,31 +26568,41 @@ </description> </method> <method name="menu_option"> + <return type="void"> + </return> <argument index="0" name="option" type="int"> </argument> <description> </description> </method> <method name="select"> - <argument index="0" name="from" type="int" default="0"> + <return type="void"> + </return> + <argument index="0" name="from" type="int" default="-1"> </argument> - <argument index="1" name="to" type="int" default="-1"> + <argument index="1" name="to" type="int" default="0"> </argument> <description> </description> </method> <method name="select_all"> + <return type="void"> + </return> <description> Select the whole string. </description> </method> <method name="set_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="LineEdit.Align"> </argument> <description> </description> </method> <method name="set_cursor_pos"> + <return type="void"> + </return> <argument index="0" name="pos" type="int"> </argument> <description> @@ -23960,6 +26610,8 @@ </description> </method> <method name="set_editable"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -23967,12 +26619,16 @@ </description> </method> <method name="set_expand_to_text_length"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_max_length"> + <return type="void"> + </return> <argument index="0" name="chars" type="int"> </argument> <description> @@ -23980,18 +26636,24 @@ </description> </method> <method name="set_placeholder"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> </description> </method> <method name="set_placeholder_alpha"> + <return type="void"> + </return> <argument index="0" name="alpha" type="float"> </argument> <description> </description> </method> <method name="set_secret"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -23999,6 +26661,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -24007,7 +26671,7 @@ </method> </methods> <members> - <member name="align" type="int" setter="set_align" getter="get_align" brief=""> + <member name="align" type="int" setter="set_align" getter="get_align" brief="" enum="LineEdit.Align"> </member> <member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled" brief=""> </member> @@ -24017,7 +26681,7 @@ </member> <member name="expand_to_len" type="bool" setter="set_expand_to_text_length" getter="get_expand_to_text_length" brief=""> </member> - <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" brief=""> + <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" brief="" enum="Control.FocusMode"> </member> <member name="max_length" type="int" setter="set_max_length" getter="get_max_length" brief=""> </member> @@ -24114,6 +26778,8 @@ </description> </method> <method name="set_d"> + <return type="void"> + </return> <argument index="0" name="d" type="float"> </argument> <description> @@ -24121,6 +26787,8 @@ </description> </method> <method name="set_normal"> + <return type="void"> + </return> <argument index="0" name="normal" type="Vector2"> </argument> <description> @@ -24160,6 +26828,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -24167,7 +26837,9 @@ </description> </method> <method name="set_underline_mode"> - <argument index="0" name="underline_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="underline_mode" type="int" enum="LinkButton.UnderlineMode"> </argument> <description> Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section). @@ -24177,7 +26849,7 @@ <members> <member name="text" type="String" setter="set_text" getter="get_text" brief=""> </member> - <member name="underline" type="int" setter="set_underline_mode" getter="get_underline_mode" brief=""> + <member name="underline" type="int" setter="set_underline_mode" getter="get_underline_mode" brief="" enum="LinkButton.UnderlineMode"> </member> </members> <constants> @@ -24211,6 +26883,8 @@ </description> <methods> <method name="clear_current"> + <return type="void"> + </return> <description> </description> </method> @@ -24227,6 +26901,8 @@ </description> </method> <method name="make_current"> + <return type="void"> + </return> <description> </description> </method> @@ -24243,6 +26919,8 @@ </description> <methods> <method name="_drop_files" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="files" type="PoolStringArray"> </argument> <argument index="1" name="screen" type="int"> @@ -24251,38 +26929,52 @@ </description> </method> <method name="_finalize" qualifiers="virtual"> + <return type="void"> + </return> <description> </description> </method> <method name="_idle" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> </description> </method> <method name="_initialize" qualifiers="virtual"> + <return type="void"> + </return> <description> </description> </method> <method name="_input_event" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="ev" type="InputEvent"> </argument> <description> </description> </method> <method name="_input_text" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> </description> </method> <method name="_iteration" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> </description> </method> <method name="finish"> + <return type="void"> + </return> <description> </description> </method> @@ -24295,16 +26987,22 @@ </description> </method> <method name="init"> + <return type="void"> + </return> <description> </description> </method> <method name="input_event"> - <argument index="0" name="ev" type="Object"> + <return type="void"> + </return> + <argument index="0" name="ev" type="InputEvent"> </argument> <description> </description> </method> <method name="input_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -24320,19 +27018,23 @@ </method> </methods> <constants> - <constant name="NOTIFICATION_WM_MOUSE_ENTER" value="2"> + <constant name="NOTIFICATION_WM_MOUSE_ENTER" value="2" enum=""> + </constant> + <constant name="NOTIFICATION_WM_MOUSE_EXIT" value="3" enum=""> </constant> - <constant name="NOTIFICATION_WM_MOUSE_EXIT" value="3"> + <constant name="NOTIFICATION_WM_FOCUS_IN" value="4" enum=""> </constant> - <constant name="NOTIFICATION_WM_FOCUS_IN" value="4"> + <constant name="NOTIFICATION_WM_FOCUS_OUT" value="5" enum=""> </constant> - <constant name="NOTIFICATION_WM_FOCUS_OUT" value="5"> + <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="6" enum=""> </constant> - <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="6"> + <constant name="NOTIFICATION_WM_UNFOCUS_REQUEST" value="8" enum=""> </constant> - <constant name="NOTIFICATION_WM_UNFOCUS_REQUEST" value="8"> + <constant name="NOTIFICATION_OS_MEMORY_WARNING" value="9" enum=""> </constant> - <constant name="NOTIFICATION_OS_MEMORY_WARNING" value="9"> + <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="90" enum=""> + </constant> + <constant name="NOTIFICATION_WM_ABOUT" value="91" enum=""> </constant> </constants> </class> @@ -24430,18 +27132,40 @@ <description> </description> </method> + <method name="get_render_priority" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="set_next_pass"> + <return type="void"> + </return> <argument index="0" name="next_pass" type="Material"> </argument> <description> </description> </method> + <method name="set_render_priority"> + <return type="void"> + </return> + <argument index="0" name="priority" type="int"> + </argument> + <description> + </description> + </method> </methods> <members> <member name="next_pass" type="Material" setter="set_next_pass" getter="get_next_pass" brief=""> </member> + <member name="render_priority" type="int" setter="set_render_priority" getter="get_render_priority" brief=""> + </member> </members> <constants> + <constant name="RENDER_PRIORITY_MAX" value="127" enum=""> + </constant> + <constant name="RENDER_PRIORITY_MIN" value="-128" enum=""> + </constant> </constants> </class> <class name="MenuButton" inherits="Button" category="Core"> @@ -24512,7 +27236,7 @@ </description> </method> <method name="create_outline" qualifiers="const"> - <return type="ArrayMesh"> + <return type="Mesh"> </return> <argument index="0" name="margin" type="float"> </argument> @@ -24569,13 +27293,15 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> </description> </method> <method name="commit_to_surface"> <return type="int"> </return> - <argument index="0" name="mesh" type="Object"> + <argument index="0" name="mesh" type="ArrayMesh"> </argument> <description> </description> @@ -24583,7 +27309,7 @@ <method name="create_from_surface"> <return type="int"> </return> - <argument index="0" name="mesh" type="Object"> + <argument index="0" name="mesh" type="ArrayMesh"> </argument> <argument index="1" name="surface" type="int"> </argument> @@ -24671,7 +27397,7 @@ </description> </method> <method name="get_material" qualifiers="const"> - <return type="Object"> + <return type="Material"> </return> <description> </description> @@ -24771,6 +27497,8 @@ </description> </method> <method name="set_edge_meta"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="meta" type="Variant"> @@ -24779,6 +27507,8 @@ </description> </method> <method name="set_face_meta"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="meta" type="Variant"> @@ -24787,12 +27517,16 @@ </description> </method> <method name="set_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> </description> </method> <method name="set_vertex"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="vertex" type="Vector3"> @@ -24801,6 +27535,8 @@ </description> </method> <method name="set_vertex_bones"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="bones" type="PoolIntArray"> @@ -24809,6 +27545,8 @@ </description> </method> <method name="set_vertex_color"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="color" type="Color"> @@ -24817,6 +27555,8 @@ </description> </method> <method name="set_vertex_meta"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="meta" type="Variant"> @@ -24825,6 +27565,8 @@ </description> </method> <method name="set_vertex_normal"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="normal" type="Vector3"> @@ -24833,6 +27575,8 @@ </description> </method> <method name="set_vertex_tangent"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="tangent" type="Plane"> @@ -24841,6 +27585,8 @@ </description> </method> <method name="set_vertex_uv"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="uv" type="Vector2"> @@ -24849,6 +27595,8 @@ </description> </method> <method name="set_vertex_uv2"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="uv2" type="Vector2"> @@ -24857,6 +27605,8 @@ </description> </method> <method name="set_vertex_weights"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="weights" type="PoolRealArray"> @@ -24877,14 +27627,20 @@ </description> <methods> <method name="create_convex_collision"> + <return type="void"> + </return> <description> </description> </method> <method name="create_debug_tangents"> + <return type="void"> + </return> <description> </description> </method> <method name="create_trimesh_collision"> + <return type="void"> + </return> <description> This helper creates a [StaticBody] child [Node] using the mesh geometry as collision. It's mainly used for testing. </description> @@ -24911,6 +27667,8 @@ </description> </method> <method name="set_mesh"> + <return type="void"> + </return> <argument index="0" name="mesh" type="Mesh"> </argument> <description> @@ -24918,12 +27676,16 @@ </description> </method> <method name="set_skeleton_path"> + <return type="void"> + </return> <argument index="0" name="skeleton_path" type="NodePath"> </argument> <description> </description> </method> <method name="set_surface_material"> + <return type="void"> + </return> <argument index="0" name="surface" type="int"> </argument> <argument index="1" name="material" type="Material"> @@ -24950,11 +27712,15 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> Clear the library. </description> </method> <method name="create_item"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -24994,8 +27760,16 @@ <description> </description> </method> - <method name="get_item_shape" qualifiers="const"> - <return type="Shape"> + <method name="get_item_preview" qualifiers="const"> + <return type="Texture"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <description> + </description> + </method> + <method name="get_item_shapes" qualifiers="const"> + <return type="Array"> </return> <argument index="0" name="id" type="int"> </argument> @@ -25010,6 +27784,8 @@ </description> </method> <method name="remove_item"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -25017,6 +27793,8 @@ </description> </method> <method name="set_item_mesh"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="mesh" type="Mesh"> @@ -25026,6 +27804,8 @@ </description> </method> <method name="set_item_name"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="name" type="String"> @@ -25035,6 +27815,8 @@ </description> </method> <method name="set_item_navmesh"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="navmesh" type="NavigationMesh"> @@ -25042,10 +27824,22 @@ <description> </description> </method> - <method name="set_item_shape"> + <method name="set_item_preview"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> - <argument index="1" name="shape" type="Shape"> + <argument index="1" name="texture" type="Texture"> + </argument> + <description> + </description> + </method> + <method name="set_item_shapes"> + <return type="void"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <argument index="1" name="shapes" type="Array"> </argument> <description> </description> @@ -25117,12 +27911,16 @@ </description> </method> <method name="set_color_format"> - <argument index="0" name="format" type="int"> + <return type="void"> + </return> + <argument index="0" name="format" type="int" enum="MultiMesh.ColorFormat"> </argument> <description> </description> </method> <method name="set_instance_color"> + <return type="void"> + </return> <argument index="0" name="instance" type="int"> </argument> <argument index="1" name="color" type="Color"> @@ -25132,6 +27930,8 @@ </description> </method> <method name="set_instance_count"> + <return type="void"> + </return> <argument index="0" name="count" type="int"> </argument> <description> @@ -25139,6 +27939,8 @@ </description> </method> <method name="set_instance_transform"> + <return type="void"> + </return> <argument index="0" name="instance" type="int"> </argument> <argument index="1" name="transform" type="Transform"> @@ -25148,6 +27950,8 @@ </description> </method> <method name="set_mesh"> + <return type="void"> + </return> <argument index="0" name="mesh" type="Mesh"> </argument> <description> @@ -25155,7 +27959,9 @@ </description> </method> <method name="set_transform_format"> - <argument index="0" name="format" type="int"> + <return type="void"> + </return> + <argument index="0" name="format" type="int" enum="MultiMesh.TransformFormat"> </argument> <description> </description> @@ -25164,7 +27970,7 @@ <members> <member name="color_array" type="PoolColorArray" setter="_set_color_array" getter="_get_color_array" brief=""> </member> - <member name="color_format" type="int" setter="set_color_format" getter="get_color_format" brief=""> + <member name="color_format" type="int" setter="set_color_format" getter="get_color_format" brief="" enum="MultiMesh.ColorFormat"> </member> <member name="instance_count" type="int" setter="set_instance_count" getter="get_instance_count" brief=""> </member> @@ -25172,7 +27978,7 @@ </member> <member name="transform_array" type="PoolVector3Array" setter="_set_transform_array" getter="_get_transform_array" brief=""> </member> - <member name="transform_format" type="int" setter="set_transform_format" getter="get_transform_format" brief=""> + <member name="transform_format" type="int" setter="set_transform_format" getter="get_transform_format" brief="" enum="MultiMesh.TransformFormat"> </member> </members> <constants> @@ -25197,17 +28003,19 @@ </description> <methods> <method name="get_multimesh" qualifiers="const"> - <return type="Object"> + <return type="MultiMesh"> </return> <description> Return the [MultiMesh] that is used for instancing. </description> </method> <method name="set_multimesh"> - <argument index="0" name="multimesh" type="Object"> + <return type="void"> + </return> + <argument index="0" name="multimesh" type="MultiMesh"> </argument> <description> - Set the [MultiMesh] to be instance. + Set the [MultiMesh] to be instanced. </description> </method> </methods> @@ -25227,18 +28035,22 @@ </description> <methods> <method name="lock"> + <return type="void"> + </return> <description> Lock this [Mutex], blocks until it is unlocked by the current owner. </description> </method> <method name="try_lock"> - <return type="Error"> + <return type="int"> </return> <description> Try locking this [Mutex], does not block. Returns [OK] on success else [ERR_BUSY]. </description> </method> <method name="unlock"> + <return type="void"> + </return> <description> Unlock this [Mutex], leaving it to others threads. </description> @@ -25247,6 +28059,56 @@ <constants> </constants> </class> +<class name="NativeScript" inherits="Script" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_class_name" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> + <method name="get_library" qualifiers="const"> + <return type="GDNativeLibrary"> + </return> + <description> + </description> + </method> + <method name="new" qualifiers="vararg"> + <return type="Object"> + </return> + <description> + </description> + </method> + <method name="set_class_name"> + <return type="void"> + </return> + <argument index="0" name="class_name" type="String"> + </argument> + <description> + </description> + </method> + <method name="set_library"> + <return type="void"> + </return> + <argument index="0" name="library" type="GDNativeLibrary"> + </argument> + <description> + </description> + </method> + </methods> + <members> + <member name="class_name" type="String" setter="set_class_name" getter="get_class_name" brief=""> + </member> + <member name="library" type="GDNativeLibrary" setter="set_library" getter="get_library" brief=""> + </member> + </members> + <constants> + </constants> +</class> <class name="Navigation" inherits="Spatial" category="Core"> <brief_description> </brief_description> @@ -25284,7 +28146,7 @@ </argument> <argument index="1" name="end" type="Vector3"> </argument> - <argument index="2" name="use_collision" type="bool" default="false"> + <argument index="2" name="use_collision" type="bool" default="null"> </argument> <description> </description> @@ -25296,7 +28158,7 @@ </argument> <argument index="1" name="end" type="Vector3"> </argument> - <argument index="2" name="optimize" type="bool" default="true"> + <argument index="2" name="optimize" type="bool" default="null"> </argument> <description> </description> @@ -25314,18 +28176,22 @@ </argument> <argument index="1" name="xform" type="Transform"> </argument> - <argument index="2" name="owner" type="Object" default="NULL"> + <argument index="2" name="owner" type="Object" default="null"> </argument> <description> </description> </method> <method name="navmesh_remove"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> </description> </method> <method name="navmesh_set_transform"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="xform" type="Transform"> @@ -25334,6 +28200,8 @@ </description> </method> <method name="set_up_vector"> + <return type="void"> + </return> <argument index="0" name="up" type="Vector3"> </argument> <description> @@ -25376,7 +28244,7 @@ </argument> <argument index="1" name="end" type="Vector2"> </argument> - <argument index="2" name="optimize" type="bool" default="true"> + <argument index="2" name="optimize" type="bool" default="null"> </argument> <description> </description> @@ -25388,18 +28256,22 @@ </argument> <argument index="1" name="xform" type="Transform2D"> </argument> - <argument index="2" name="owner" type="Object" default="NULL"> + <argument index="2" name="owner" type="Object" default="null"> </argument> <description> </description> </method> <method name="navpoly_remove"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> </description> </method> <method name="navpoly_set_transform"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="xform" type="Transform2D"> @@ -25418,12 +28290,24 @@ </description> <methods> <method name="add_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolIntArray"> </argument> <description> </description> </method> <method name="clear_polygons"> + <return type="void"> + </return> + <description> + </description> + </method> + <method name="create_from_mesh"> + <return type="void"> + </return> + <argument index="0" name="mesh" type="Mesh"> + </argument> <description> </description> </method> @@ -25448,6 +28332,8 @@ </description> </method> <method name="set_vertices"> + <return type="void"> + </return> <argument index="0" name="vertices" type="PoolVector3Array"> </argument> <description> @@ -25470,7 +28356,7 @@ </description> <methods> <method name="get_navigation_mesh" qualifiers="const"> - <return type="Object"> + <return type="NavigationMesh"> </return> <description> </description> @@ -25482,13 +28368,17 @@ </description> </method> <method name="set_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_navigation_mesh"> - <argument index="0" name="navmesh" type="Object"> + <return type="void"> + </return> + <argument index="0" name="navmesh" type="NavigationMesh"> </argument> <description> </description> @@ -25510,12 +28400,16 @@ </description> <methods> <method name="add_outline"> + <return type="void"> + </return> <argument index="0" name="outline" type="PoolVector2Array"> </argument> <description> </description> </method> <method name="add_outline_at_index"> + <return type="void"> + </return> <argument index="0" name="outline" type="PoolVector2Array"> </argument> <argument index="1" name="index" type="int"> @@ -25524,16 +28418,22 @@ </description> </method> <method name="add_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolIntArray"> </argument> <description> </description> </method> <method name="clear_outlines"> + <return type="void"> + </return> <description> </description> </method> <method name="clear_polygons"> + <return type="void"> + </return> <description> </description> </method> @@ -25572,16 +28472,22 @@ </description> </method> <method name="make_polygons_from_outlines"> + <return type="void"> + </return> <description> </description> </method> <method name="remove_outline"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> </description> </method> <method name="set_outline"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="outline" type="PoolVector2Array"> @@ -25590,6 +28496,8 @@ </description> </method> <method name="set_vertices"> + <return type="void"> + </return> <argument index="0" name="vertices" type="PoolVector2Array"> </argument> <description> @@ -25601,7 +28509,7 @@ </member> <member name="polygons" type="Array" setter="_set_polygons" getter="_get_polygons" brief=""> </member> - <member name="vertices" type="PoolVector3Array" setter="set_vertices" getter="get_vertices" brief=""> + <member name="vertices" type="PoolVector2Array" setter="set_vertices" getter="get_vertices" brief=""> </member> </members> <constants> @@ -25626,12 +28534,16 @@ </description> </method> <method name="set_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_navigation_polygon"> + <return type="void"> + </return> <argument index="0" name="navpoly" type="NavigationPolygon"> </argument> <description> @@ -25656,6 +28568,8 @@ </description> <methods> <method name="close_connection"> + <return type="void"> + </return> <description> </description> </method> @@ -25666,9 +28580,9 @@ </argument> <argument index="1" name="port" type="int"> </argument> - <argument index="2" name="in_bandwidth" type="int" default="0"> + <argument index="2" name="in_bandwidth" type="int" default="null"> </argument> - <argument index="3" name="out_bandwidth" type="int" default="0"> + <argument index="3" name="out_bandwidth" type="int" default="null"> </argument> <description> </description> @@ -25678,11 +28592,11 @@ </return> <argument index="0" name="port" type="int"> </argument> - <argument index="1" name="max_clients" type="int" default="32"> + <argument index="1" name="max_clients" type="int" default="0"> </argument> - <argument index="2" name="in_bandwidth" type="int" default="0"> + <argument index="2" name="in_bandwidth" type="int" default="32"> </argument> - <argument index="3" name="out_bandwidth" type="int" default="0"> + <argument index="3" name="out_bandwidth" type="int" default="null"> </argument> <description> </description> @@ -25694,13 +28608,17 @@ </description> </method> <method name="set_bind_ip"> + <return type="void"> + </return> <argument index="0" name="ip" type="String"> </argument> <description> </description> </method> <method name="set_compression_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="NetworkedMultiplayerENet.CompressionMode"> </argument> <description> </description> @@ -25750,23 +28668,31 @@ </description> </method> <method name="poll"> + <return type="void"> + </return> <description> </description> </method> <method name="set_refuse_new_connections"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_target_peer"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> </description> </method> <method name="set_transfer_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="NetworkedMultiplayerPeer.TransferMode"> </argument> <description> </description> @@ -25811,9 +28737,9 @@ </constant> <constant name="CONNECTION_CONNECTED" value="2"> </constant> - <constant name="TARGET_PEER_BROADCAST" value="0"> + <constant name="TARGET_PEER_BROADCAST" value="0" enum=""> </constant> - <constant name="TARGET_PEER_SERVER" value="1"> + <constant name="TARGET_PEER_SERVER" value="1" enum=""> </constant> </constants> </class> @@ -25989,12 +28915,6 @@ <description> </description> <methods> - <method name="is_draw_center_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> <method name="get_h_axis_stretch_mode" qualifiers="const"> <return type="int"> </return> @@ -26004,7 +28924,7 @@ <method name="get_patch_margin" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> </description> @@ -26016,7 +28936,7 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -26027,20 +28947,32 @@ <description> </description> </method> + <method name="is_draw_center_enabled" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="set_draw_center"> + <return type="void"> + </return> <argument index="0" name="draw_center" type="bool"> </argument> <description> </description> </method> <method name="set_h_axis_stretch_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="NinePatchRect.AxisStretchMode"> </argument> <description> </description> </method> <method name="set_patch_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="value" type="int"> </argument> @@ -26048,28 +28980,34 @@ </description> </method> <method name="set_region_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_v_axis_stretch_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="NinePatchRect.AxisStretchMode"> </argument> <description> </description> </method> </methods> <members> - <member name="axis_stretch_horizontal" type="int" setter="set_h_axis_stretch_mode" getter="get_h_axis_stretch_mode" brief=""> + <member name="axis_stretch_horizontal" type="int" setter="set_h_axis_stretch_mode" getter="get_h_axis_stretch_mode" brief="" enum="NinePatchRect.AxisStretchMode"> </member> - <member name="axis_stretch_vertical" type="int" setter="set_v_axis_stretch_mode" getter="get_v_axis_stretch_mode" brief=""> + <member name="axis_stretch_vertical" type="int" setter="set_v_axis_stretch_mode" getter="get_v_axis_stretch_mode" brief="" enum="NinePatchRect.AxisStretchMode"> </member> <member name="draw_center" type="bool" setter="set_draw_center" getter="is_draw_center_enabled" brief=""> </member> @@ -26119,18 +29057,24 @@ </description> <methods> <method name="_enter_tree" qualifiers="virtual"> + <return type="void"> + </return> <description> Called when the node enters the [SceneTree] (e.g. upon instancing, scene changing or after calling [method add_child] in a script). If the node has children, its [method _enter_tree] callback will be called first, and then that of the children. Corresponds to the NOTIFICATION_ENTER_TREE notification in [method Object._notification]. </description> </method> <method name="_exit_tree" qualifiers="virtual"> + <return type="void"> + </return> <description> Called when the node leaves the [SceneTree] (e.g. upon freeing, scene changing or after calling [method remove_child] in a script). If the node has children, its [method _exit_tree] callback will be called last, after all its children have left the tree. Corresponds to the NOTIFICATION_EXIT_TREE notification in [method Object._notification]. </description> </method> <method name="_fixed_process" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> @@ -26140,12 +29084,16 @@ </description> </method> <method name="_input" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="event" type="InputEvent"> </argument> <description> </description> </method> <method name="_process" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> <description> @@ -26155,27 +29103,35 @@ </description> </method> <method name="_ready" qualifiers="virtual"> + <return type="void"> + </return> <description> Called when the node is "ready", i.e. when both the node and its children have entered the scene tree. If the node has children, their [method _ready] callback gets triggered first, and the node will receive the ready notification only afterwards. Corresponds to the NOTIFICATION_READY notification in [method Object._notification]. </description> </method> <method name="_unhandled_input" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="event" type="InputEvent"> </argument> <description> </description> </method> <method name="_unhandled_key_input" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="event" type="InputEventKey"> </argument> <description> </description> </method> <method name="add_child"> + <return type="void"> + </return> <argument index="0" name="node" type="Node"> </argument> - <argument index="1" name="legible_unique_name" type="bool" default="false"> + <argument index="1" name="legible_unique_name" type="bool" default="null"> </argument> <description> Add a child [Node]. Nodes can have as many children as they want, but every child must have a unique name. Children nodes are automatically deleted when the parent node is deleted, so deleting a whole scene is performed by deleting its topmost node. @@ -26183,9 +29139,11 @@ </description> </method> <method name="add_to_group"> + <return type="void"> + </return> <argument index="0" name="group" type="String"> </argument> - <argument index="1" name="persistent" type="bool" default="false"> + <argument index="1" name="persistent" type="bool" default="null"> </argument> <description> Add a node to a group. Groups are helpers to name and organize a subset of nodes, like for example "enemies" or "collectables". A [Node] can be in any number of groups. Nodes can be assigned a group at any time, but will not be added to it until they are inside the scene tree (see [method is_inside_tree]). @@ -26215,7 +29173,7 @@ </argument> <argument index="1" name="recursive" type="bool" default="true"> </argument> - <argument index="2" name="owned" type="bool" default="true"> + <argument index="2" name="owned" type="bool" default="null"> </argument> <description> Find a descendant of this node whose name matches [code]mask[/code] as in [method String.match] (i.e. case sensitive, but '*' matches zero or more characters and '?' matches any single character except '.'). Note that it does not match against the full path, just against individual node names. @@ -26383,7 +29341,7 @@ </description> </method> <method name="get_viewport" qualifiers="const"> - <return type="Object"> + <return type="Viewport"> </return> <description> </description> @@ -26495,6 +29453,8 @@ </description> </method> <method name="move_child"> + <return type="void"> + </return> <argument index="0" name="child_node" type="Node"> </argument> <argument index="1" name="to_pos" type="int"> @@ -26504,47 +29464,63 @@ </description> </method> <method name="print_stray_nodes"> + <return type="void"> + </return> <description> </description> </method> <method name="print_tree"> + <return type="void"> + </return> <description> Print the scene to stdout. Used mainly for debugging purposes. </description> </method> - <method name="propagate_notification"> - <argument index="0" name="what" type="int"> - </argument> - <description> - Notify the current node and all its children recursively by calling notification() in all of them. - </description> - </method> <method name="propagate_call"> + <return type="void"> + </return> <argument index="0" name="method" type="String"> </argument> - <argument index="1" name="args" type="Array" default="[]"> + <argument index="1" name="args" type="Array" default="[ ]"> </argument> - <argument index="2" name="parent_first" type="bool" default="false"> + <argument index="2" name="parent_first" type="bool" default="null"> </argument> <description> Calls the method (if present) with the arguments given in "args" on this Node and recursively on all children. If the parent_first argument is true then the method will be called on the current [Node] first, then on all children. If it is false then the children will get called first. </description> </method> + <method name="propagate_notification"> + <return type="void"> + </return> + <argument index="0" name="what" type="int"> + </argument> + <description> + Notify the current node and all its children recursively by calling notification() in all of them. + </description> + </method> <method name="queue_free"> + <return type="void"> + </return> <description> </description> </method> <method name="raise"> + <return type="void"> + </return> <description> Move this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree. </description> </method> <method name="remove_and_skip"> + <return type="void"> + </return> <description> Remove a node and set all its children as children of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed. </description> </method> <method name="remove_child"> + <return type="void"> + </return> <argument index="0" name="node" type="Node"> </argument> <description> @@ -26552,6 +29528,8 @@ </description> </method> <method name="remove_from_group"> + <return type="void"> + </return> <argument index="0" name="group" type="String"> </argument> <description> @@ -26559,19 +29537,25 @@ </description> </method> <method name="replace_by"> + <return type="void"> + </return> <argument index="0" name="node" type="Node"> </argument> - <argument index="1" name="keep_data" type="bool" default="false"> + <argument index="1" name="keep_data" type="bool" default="null"> </argument> <description> Replace a node in a scene by a given one. Subscriptions that pass through this node will be lost. </description> </method> <method name="request_ready"> + <return type="void"> + </return> <description> </description> </method> <method name="rpc" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="method" type="String"> </argument> <description> @@ -26579,15 +29563,19 @@ </description> </method> <method name="rpc_config"> + <return type="void"> + </return> <argument index="0" name="method" type="String"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Node.RPCMode"> </argument> <description> Change the method's RPC mode (one of RPC_MODE_* constants). </description> </method> <method name="rpc_id" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="peer_id" type="int"> </argument> <argument index="1" name="method" type="String"> @@ -26597,6 +29585,8 @@ </description> </method> <method name="rpc_unreliable" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="method" type="String"> </argument> <description> @@ -26604,6 +29594,8 @@ </description> </method> <method name="rpc_unreliable_id" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="peer_id" type="int"> </argument> <argument index="1" name="method" type="String"> @@ -26613,6 +29605,8 @@ </description> </method> <method name="rset"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -26622,15 +29616,19 @@ </description> </method> <method name="rset_config"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Node.RPCMode"> </argument> <description> Change the property's RPC mode (one of RPC_MODE_* constants). </description> </method> <method name="rset_id"> + <return type="void"> + </return> <argument index="0" name="peer_id" type="int"> </argument> <argument index="1" name="property" type="String"> @@ -26642,6 +29640,8 @@ </description> </method> <method name="rset_unreliable"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -26651,6 +29651,8 @@ </description> </method> <method name="rset_unreliable_id"> + <return type="void"> + </return> <argument index="0" name="peer_id" type="int"> </argument> <argument index="1" name="property" type="String"> @@ -26662,12 +29664,16 @@ </description> </method> <method name="set_display_folded"> + <return type="void"> + </return> <argument index="0" name="fold" type="bool"> </argument> <description> </description> </method> <method name="set_filename"> + <return type="void"> + </return> <argument index="0" name="filename" type="String"> </argument> <description> @@ -26675,6 +29681,8 @@ </description> </method> <method name="set_fixed_process"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -26682,12 +29690,16 @@ </description> </method> <method name="set_fixed_process_internal"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -26695,14 +29707,18 @@ </description> </method> <method name="set_network_master"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> - <argument index="1" name="recursive" type="bool" default="true"> + <argument index="1" name="recursive" type="bool" default="null"> </argument> <description> </description> </method> <method name="set_owner"> + <return type="void"> + </return> <argument index="0" name="owner" type="Node"> </argument> <description> @@ -26710,12 +29726,16 @@ </description> </method> <method name="set_pause_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Node.PauseMode"> </argument> <description> </description> </method> <method name="set_process"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -26723,6 +29743,8 @@ </description> </method> <method name="set_process_input"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -26730,12 +29752,16 @@ </description> </method> <method name="set_process_internal"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_process_unhandled_input"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -26743,12 +29769,16 @@ </description> </method> <method name="set_process_unhandled_key_input"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_scene_instance_load_placeholder"> + <return type="void"> + </return> <argument index="0" name="load_placeholder" type="bool"> </argument> <description> @@ -26760,7 +29790,7 @@ </member> <member name="editor/display_folded" type="bool" setter="set_display_folded" getter="is_displayed_folded" brief=""> </member> - <member name="pause_mode" type="int" setter="set_pause_mode" getter="get_pause_mode" brief=""> + <member name="pause_mode" type="int" setter="set_pause_mode" getter="get_pause_mode" brief="" enum="Node.PauseMode"> </member> </members> <signals> @@ -26779,42 +29809,42 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_ENTER_TREE" value="10"> + <constant name="NOTIFICATION_ENTER_TREE" value="10" enum=""> </constant> - <constant name="NOTIFICATION_EXIT_TREE" value="11"> + <constant name="NOTIFICATION_EXIT_TREE" value="11" enum=""> </constant> - <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12"> + <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12" enum=""> </constant> - <constant name="NOTIFICATION_READY" value="13"> + <constant name="NOTIFICATION_READY" value="13" enum=""> </constant> - <constant name="NOTIFICATION_FIXED_PROCESS" value="16"> + <constant name="NOTIFICATION_FIXED_PROCESS" value="16" enum=""> </constant> - <constant name="NOTIFICATION_PROCESS" value="17"> + <constant name="NOTIFICATION_PROCESS" value="17" enum=""> Notification received every frame when the process flag is set (see [method set_process]). </constant> - <constant name="NOTIFICATION_PARENTED" value="18"> + <constant name="NOTIFICATION_PARENTED" value="18" enum=""> Notification received when a node is set as a child of another node. Note that this doesn't mean that a node entered the Scene Tree. </constant> - <constant name="NOTIFICATION_UNPARENTED" value="19"> + <constant name="NOTIFICATION_UNPARENTED" value="19" enum=""> Notification received when a node is unparented (parent removed it from the list of children). </constant> - <constant name="NOTIFICATION_PAUSED" value="14"> + <constant name="NOTIFICATION_PAUSED" value="14" enum=""> </constant> - <constant name="NOTIFICATION_UNPAUSED" value="15"> + <constant name="NOTIFICATION_UNPAUSED" value="15" enum=""> </constant> - <constant name="NOTIFICATION_INSTANCED" value="20"> + <constant name="NOTIFICATION_INSTANCED" value="20" enum=""> </constant> - <constant name="NOTIFICATION_DRAG_BEGIN" value="21"> + <constant name="NOTIFICATION_DRAG_BEGIN" value="21" enum=""> </constant> - <constant name="NOTIFICATION_DRAG_END" value="22"> + <constant name="NOTIFICATION_DRAG_END" value="22" enum=""> </constant> - <constant name="NOTIFICATION_PATH_CHANGED" value="23"> + <constant name="NOTIFICATION_PATH_CHANGED" value="23" enum=""> </constant> - <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24"> + <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24" enum=""> </constant> - <constant name="NOTIFICATION_INTERNAL_PROCESS" value="25"> + <constant name="NOTIFICATION_INTERNAL_PROCESS" value="25" enum=""> </constant> - <constant name="NOTIFICATION_INTERNAL_FIXED_PROCESS" value="26"> + <constant name="NOTIFICATION_INTERNAL_FIXED_PROCESS" value="26" enum=""> </constant> <constant name="RPC_MODE_DISABLED" value="0"> </constant> @@ -26850,7 +29880,18 @@ Base node for 2D system. Node2D contains a position, rotation and scale, which is used to position and animate. It can alternatively be used with a custom 2D transform ([Transform2D]). A tree of Node2Ds allows complex hierarchies for animation and positioning. </description> <methods> + <method name="apply_scale"> + <return type="void"> + </return> + <argument index="0" name="ratio" type="Vector2"> + </argument> + <description> + Apply the 'ratio' scale to the 2D node, according to its current scale value. + </description> + </method> <method name="edit_set_pivot"> + <return type="void"> + </return> <argument index="0" name="pivot" type="Vector2"> </argument> <description> @@ -26904,7 +29945,7 @@ <method name="get_relative_transform_to_parent" qualifiers="const"> <return type="Transform2D"> </return> - <argument index="0" name="parent" type="Object"> + <argument index="0" name="parent" type="Node"> </argument> <description> Return the transform [Transform2D] calculated relatively to the parent of this 2D node. @@ -26939,6 +29980,8 @@ </description> </method> <method name="global_translate"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -26953,6 +29996,8 @@ </description> </method> <method name="look_at"> + <return type="void"> + </return> <argument index="0" name="point" type="Vector2"> </argument> <description> @@ -26960,38 +30005,39 @@ </description> </method> <method name="move_local_x"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> - <argument index="1" name="scaled" type="bool" default="false"> + <argument index="1" name="scaled" type="bool" default="null"> </argument> <description> Apply a local translation on X axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. </description> </method> <method name="move_local_y"> + <return type="void"> + </return> <argument index="0" name="delta" type="float"> </argument> - <argument index="1" name="scaled" type="bool" default="false"> + <argument index="1" name="scaled" type="bool" default="null"> </argument> <description> Apply a local translation on Y axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. </description> </method> <method name="rotate"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> Apply a rotation (in radians) to the 2D node, starting from its current rotation. </description> </method> - <method name="scale"> - <argument index="0" name="ratio" type="Vector2"> - </argument> - <description> - Apply the 'ratio' scale to the 2D node, according to its current scale value. - </description> - </method> <method name="set_global_position"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -26999,6 +30045,8 @@ </description> </method> <method name="set_global_rotation"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> @@ -27006,6 +30054,8 @@ </description> </method> <method name="set_global_rotation_in_degrees"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> @@ -27013,6 +30063,8 @@ </description> </method> <method name="set_global_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> @@ -27020,6 +30072,8 @@ </description> </method> <method name="set_global_transform"> + <return type="void"> + </return> <argument index="0" name="xform" type="Transform2D"> </argument> <description> @@ -27027,6 +30081,8 @@ </description> </method> <method name="set_position"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <description> @@ -27034,6 +30090,8 @@ </description> </method> <method name="set_rotation"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> @@ -27041,6 +30099,8 @@ </description> </method> <method name="set_rotation_in_degrees"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> @@ -27048,6 +30108,8 @@ </description> </method> <method name="set_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> @@ -27055,6 +30117,8 @@ </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="xform" type="Transform2D"> </argument> <description> @@ -27062,6 +30126,8 @@ </description> </method> <method name="set_z"> + <return type="void"> + </return> <argument index="0" name="z" type="int"> </argument> <description> @@ -27069,13 +30135,33 @@ </description> </method> <method name="set_z_as_relative"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> Set the Z-index value as relative to the parent node of this 2D node. Thus, if this 2D node's Z-index value is 2 and its parent's effective Z-index is 3, then the effective Z-index value of this 2D node would be 3 + 2 = 5. </description> </method> + <method name="to_global" qualifiers="const"> + <return type="Vector2"> + </return> + <argument index="0" name="local_point" type="Vector2"> + </argument> + <description> + </description> + </method> + <method name="to_local" qualifiers="const"> + <return type="Vector2"> + </return> + <argument index="0" name="global_point" type="Vector2"> + </argument> + <description> + </description> + </method> <method name="translate"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -27084,13 +30170,13 @@ </method> </methods> <members> - <member name="global_position" type="float" setter="set_global_position" getter="get_global_position" brief=""> + <member name="global_position" type="Vector2" setter="set_global_position" getter="get_global_position" brief=""> </member> <member name="global_rotation" type="float" setter="set_global_rotation" getter="get_global_rotation" brief=""> </member> <member name="global_rotation_deg" type="float" setter="set_global_rotation_in_degrees" getter="get_global_rotation_in_degrees" brief=""> </member> - <member name="global_scale" type="float" setter="set_global_scale" getter="get_global_scale" brief=""> + <member name="global_scale" type="Vector2" setter="set_global_scale" getter="get_global_scale" brief=""> </member> <member name="global_transform" type="Transform2D" setter="set_global_transform" getter="get_global_transform" brief=""> </member> @@ -27197,9 +30283,11 @@ </description> <methods> <method name="alert"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> - <argument index="1" name="title" type="String" default=""Alert!""> + <argument index="1" name="title" type="String" default="null"> </argument> <description> Displays a modal dialog box utilizing the host OS. @@ -27220,6 +30308,8 @@ </description> </method> <method name="delay_msec" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="msec" type="int"> </argument> <description> @@ -27227,6 +30317,8 @@ </description> </method> <method name="delay_usec" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="usec" type="int"> </argument> <description> @@ -27234,6 +30326,8 @@ </description> </method> <method name="dump_memory_to_file"> + <return type="void"> + </return> <argument index="0" name="file" type="String"> </argument> <description> @@ -27242,6 +30336,8 @@ </description> </method> <method name="dump_resources_to_file"> + <return type="void"> + </return> <argument index="0" name="file" type="String"> </argument> <description> @@ -27259,7 +30355,7 @@ </argument> <argument index="2" name="blocking" type="bool"> </argument> - <argument index="3" name="output" type="Array" default="[]"> + <argument index="3" name="output" type="Array" default="null"> </argument> <description> Execute the binary file in given path, optionally blocking until it returns. A process ID is returned. @@ -27446,7 +30542,7 @@ <method name="get_screen_dpi" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="screen" type="int" default="0"> + <argument index="0" name="screen" type="int" default="-1"> </argument> <description> Returns the dots per inch density of the specified screen. @@ -27470,7 +30566,7 @@ <method name="get_screen_position" qualifiers="const"> <return type="Vector2"> </return> - <argument index="0" name="screen" type="int" default="0"> + <argument index="0" name="screen" type="int" default="-1"> </argument> <description> </description> @@ -27478,7 +30574,7 @@ <method name="get_screen_size" qualifiers="const"> <return type="Vector2"> </return> - <argument index="0" name="screen" type="int" default="0"> + <argument index="0" name="screen" type="int" default="-1"> </argument> <description> Returns the dimensions in pixels of the specified screen. @@ -27506,7 +30602,7 @@ <method name="get_system_dir" qualifiers="const"> <return type="String"> </return> - <argument index="0" name="dir" type="int"> + <argument index="0" name="dir" type="int" enum="_OS.SystemDir"> </argument> <description> </description> @@ -27600,6 +30696,8 @@ </description> </method> <method name="hide_virtual_keyboard"> + <return type="void"> + </return> <description> Hides the virtual keyboard if it is shown, does nothing otherwise. </description> @@ -27695,6 +30793,8 @@ </description> </method> <method name="native_video_pause"> + <return type="void"> + </return> <description> </description> </method> @@ -27713,47 +30813,65 @@ </description> </method> <method name="native_video_stop"> + <return type="void"> + </return> <description> </description> </method> <method name="native_video_unpause"> + <return type="void"> + </return> <description> </description> </method> <method name="print_all_resources"> + <return type="void"> + </return> <argument index="0" name="tofile" type="String" default=""""> </argument> <description> </description> </method> <method name="print_all_textures_by_size"> + <return type="void"> + </return> <description> </description> </method> <method name="print_resources_by_type"> + <return type="void"> + </return> <argument index="0" name="types" type="PoolStringArray"> </argument> <description> </description> </method> <method name="print_resources_in_use"> + <return type="void"> + </return> <argument index="0" name="short" type="bool" default="false"> </argument> <description> </description> </method> <method name="request_attention"> + <return type="void"> + </return> <description> Request the user attention to the window. It'll flash the taskbar button on Windows or bounce the dock icon on OSX. </description> </method> <method name="set_borderless_window"> + <return type="void"> + </return> <argument index="0" name="borderless" type="bool"> </argument> <description> </description> </method> <method name="set_clipboard"> + <return type="void"> + </return> <argument index="0" name="clipboard" type="String"> </argument> <description> @@ -27761,30 +30879,40 @@ </description> </method> <method name="set_current_screen"> + <return type="void"> + </return> <argument index="0" name="screen" type="int"> </argument> <description> </description> </method> <method name="set_exit_code"> + <return type="void"> + </return> <argument index="0" name="code" type="int"> </argument> <description> </description> </method> <method name="set_icon"> - <argument index="0" name="icon" type="Object"> + <return type="void"> + </return> + <argument index="0" name="icon" type="Image"> </argument> <description> </description> </method> <method name="set_ime_position"> - <argument index="0" name="arg0" type="Vector2"> + <return type="void"> + </return> + <argument index="0" name="position" type="Vector2"> </argument> <description> </description> </method> <method name="set_keep_screen_on"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -27792,6 +30920,8 @@ </description> </method> <method name="set_low_processor_usage_mode"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -27799,7 +30929,9 @@ </description> </method> <method name="set_screen_orientation"> - <argument index="0" name="orientation" type="int"> + <return type="void"> + </return> + <argument index="0" name="orientation" type="int" enum="_OS.ScreenOrientation"> </argument> <description> Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class. @@ -27814,18 +30946,24 @@ </description> </method> <method name="set_use_file_access_save_and_swap"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_use_vsync"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_window_fullscreen"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -27833,6 +30971,8 @@ </description> </method> <method name="set_window_maximized"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -27840,6 +30980,8 @@ </description> </method> <method name="set_window_minimized"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -27847,6 +30989,8 @@ </description> </method> <method name="set_window_position"> + <return type="void"> + </return> <argument index="0" name="position" type="Vector2"> </argument> <description> @@ -27854,6 +30998,8 @@ </description> </method> <method name="set_window_resizable"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -27861,6 +31007,8 @@ </description> </method> <method name="set_window_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> @@ -27868,6 +31016,8 @@ </description> </method> <method name="set_window_title"> + <return type="void"> + </return> <argument index="0" name="title" type="String"> </argument> <description> @@ -27883,6 +31033,8 @@ </description> </method> <method name="show_virtual_keyboard"> + <return type="void"> + </return> <argument index="0" name="existing_text" type="String" default=""""> </argument> <description> @@ -27984,6 +31136,8 @@ </description> <methods> <method name="_get" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <description> @@ -27998,10 +31152,14 @@ </description> </method> <method name="_init" qualifiers="virtual"> + <return type="void"> + </return> <description> </description> </method> <method name="_notification" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="what" type="int"> </argument> <description> @@ -28009,6 +31167,8 @@ </description> </method> <method name="_set" qualifiers="virtual"> + <return type="bool"> + </return> <argument index="0" name="property" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -28018,9 +31178,11 @@ </description> </method> <method name="add_user_signal"> + <return type="void"> + </return> <argument index="0" name="signal" type="String"> </argument> - <argument index="1" name="arguments" type="Array" default="[]"> + <argument index="1" name="arguments" type="Array" default="null"> </argument> <description> Add a user signal (can be added anytime). Arguments are optional, but can be added as an array of dictionaries, each containing "name" and "type" (from [@Global Scope] TYPE_*). @@ -28035,6 +31197,8 @@ </description> </method> <method name="call_deferred" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="method" type="String"> </argument> <description> @@ -28066,15 +31230,17 @@ </argument> <argument index="2" name="method" type="String"> </argument> - <argument index="3" name="binds" type="Array" default="[]"> + <argument index="3" name="binds" type="Array" default="null"> </argument> - <argument index="4" name="flags" type="int" default="0"> + <argument index="4" name="flags" type="int" default="null"> </argument> <description> Connect a signal to a method at a target (member function). Binds are optional and are passed as extra arguments to the call. Flags specify optional deferred or one shot connections, see enum CONNECT_*. A signal can only be connected once to a method, and it will throw an error if already connected. If you want to avoid this, use [method is_connected] to check. </description> </method> <method name="disconnect"> + <return type="void"> + </return> <argument index="0" name="signal" type="String"> </argument> <argument index="1" name="target" type="Object"> @@ -28086,12 +31252,16 @@ </description> </method> <method name="emit_signal" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="signal" type="String"> </argument> <description> </description> </method> <method name="free"> + <return type="void"> + </return> <description> </description> </method> @@ -28159,7 +31329,7 @@ </description> </method> <method name="get_script" qualifiers="const"> - <return type="Script"> + <return type="Reference"> </return> <description> Return the object script (or null if it doesn't have one). @@ -28241,19 +31411,25 @@ </description> </method> <method name="notification"> + <return type="void"> + </return> <argument index="0" name="what" type="int"> </argument> - <argument index="1" name="reversed" type="bool" default="false"> + <argument index="1" name="reversed" type="bool" default="null"> </argument> <description> Notify the object of something. </description> </method> <method name="property_list_changed_notify"> + <return type="void"> + </return> <description> </description> </method> <method name="set"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -28263,6 +31439,8 @@ </description> </method> <method name="set_block_signals"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -28270,6 +31448,8 @@ </description> </method> <method name="set_message_translation"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -28277,6 +31457,8 @@ </description> </method> <method name="set_meta"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -28286,7 +31468,9 @@ </description> </method> <method name="set_script"> - <argument index="0" name="script" type="Script"> + <return type="void"> + </return> + <argument index="0" name="script" type="Reference"> </argument> <description> Set a script into the object, scripts extend the object functionality. @@ -28309,10 +31493,10 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_POSTINITIALIZE" value="0"> + <constant name="NOTIFICATION_POSTINITIALIZE" value="0" enum=""> Called right when the object is initialized. Not available in script. </constant> - <constant name="NOTIFICATION_PREDELETE" value="1"> + <constant name="NOTIFICATION_PREDELETE" value="1" enum=""> Called before the object is about to be deleted. </constant> <constant name="CONNECT_DEFERRED" value="1"> @@ -28351,18 +31535,24 @@ </description> </method> <method name="set_closed"> + <return type="void"> + </return> <argument index="0" name="closed" type="bool"> </argument> <description> </description> </method> <method name="set_cull_mode"> - <argument index="0" name="cull_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="cull_mode" type="int" enum="OccluderPolygon2D.CullMode"> </argument> <description> </description> </method> <method name="set_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolVector2Array"> </argument> <description> @@ -28372,7 +31562,7 @@ <members> <member name="closed" type="bool" setter="set_closed" getter="is_closed" brief=""> </member> - <member name="cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" brief=""> + <member name="cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" brief="" enum="OccluderPolygon2D.CullMode"> </member> <member name="polygon" type="PoolVector2Array" setter="set_polygon" getter="get_polygon" brief=""> </member> @@ -28407,13 +31597,17 @@ </description> </method> <method name="set_shadow_detail"> - <argument index="0" name="detail" type="int"> + <return type="void"> + </return> + <argument index="0" name="detail" type="int" enum="OmniLight.ShadowDetail"> </argument> <description> </description> </method> <method name="set_shadow_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="OmniLight.ShadowMode"> </argument> <description> </description> @@ -28424,9 +31618,9 @@ </member> <member name="omni_range" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="omni_shadow_detail" type="int" setter="set_shadow_detail" getter="get_shadow_detail" brief=""> + <member name="omni_shadow_detail" type="int" setter="set_shadow_detail" getter="get_shadow_detail" brief="" enum="OmniLight.ShadowDetail"> </member> - <member name="omni_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" brief=""> + <member name="omni_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" brief="" enum="OmniLight.ShadowMode"> </member> </members> <constants> @@ -28441,6 +31635,8 @@ </description> <methods> <method name="add_icon_item"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="label" type="String"> @@ -28452,31 +31648,28 @@ </description> </method> <method name="add_item"> + <return type="void"> + </return> <argument index="0" name="label" type="String"> </argument> - <argument index="1" name="id" type="int" default="-1"> + <argument index="1" name="id" type="int" default="null"> </argument> <description> Add an item, with text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. </description> </method> <method name="add_separator"> + <return type="void"> + </return> <description> Add a separator to the list of items. Separators help to group items. Separator also takes up an index and is appended at the end. </description> </method> <method name="clear"> - <description> - Clear all the items in the [OptionButton]. - </description> - </method> - <method name="get_item_id" qualifiers="const"> - <return type="int"> + <return type="void"> </return> - <argument index="0" name="idx" type="int"> - </argument> <description> - Return the ID of the item at index "idx". + Clear all the items in the [OptionButton]. </description> </method> <method name="get_item_count" qualifiers="const"> @@ -28495,6 +31688,15 @@ Return the icon of the item at index "idx". </description> </method> + <method name="get_item_id" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <description> + Return the ID of the item at index "idx". + </description> + </method> <method name="get_item_metadata" qualifiers="const"> <return type="Variant"> </return> @@ -28540,45 +31742,57 @@ </description> </method> <method name="remove_item"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> </description> </method> <method name="select"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> Select an item by index and make it the current item. </description> </method> - <method name="set_item_id"> + <method name="set_item_disabled"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="id" type="int"> + <argument index="1" name="disabled" type="bool"> </argument> <description> - Set the ID of an item at index "idx". </description> </method> - <method name="set_item_disabled"> + <method name="set_item_icon"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="disabled" type="bool"> + <argument index="1" name="texture" type="Texture"> </argument> <description> + Set the icon of an item at index "idx". </description> </method> - <method name="set_item_icon"> + <method name="set_item_id"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="texture" type="Texture"> + <argument index="1" name="id" type="int"> </argument> <description> - Set the icon of an item at index "idx". + Set the ID of an item at index "idx". </description> </method> <method name="set_item_metadata"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="metadata" type="Variant"> @@ -28587,6 +31801,8 @@ </description> </method> <method name="set_item_text"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="text" type="String"> @@ -28689,6 +31905,8 @@ </description> <methods> <method name="generate"> + <return type="void"> + </return> <argument index="0" name="from" type="Translation"> </argument> <description> @@ -28705,7 +31923,7 @@ </description> <methods> <method name="pack"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="value" type="Variant"> </argument> @@ -28764,7 +31982,7 @@ <method name="instance" qualifiers="const"> <return type="Node"> </return> - <argument index="0" name="edit_state" type="int" default="0"> + <argument index="0" name="edit_state" type="int" enum="PackedScene.GenEditState" default="0"> </argument> <description> </description> @@ -28815,7 +32033,7 @@ </description> </method> <method name="get_packet_error" qualifiers="const"> - <return type="Error"> + <return type="int"> </return> <description> Return the error state of the last packet received (via [method get_packet] and [method get_var]). @@ -28828,8 +32046,14 @@ Get a Variant. </description> </method> + <method name="is_object_decoding_allowed" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="put_packet"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="buffer" type="PoolByteArray"> </argument> @@ -28846,6 +32070,14 @@ Send a Variant as a packet. </description> </method> + <method name="set_allow_object_decoding"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> </methods> <constants> </constants> @@ -28858,11 +32090,41 @@ PacketStreamPeer provides a wrapper for working using packets over a stream. This allows for using packet based code with StreamPeers. PacketPeerStream implements a custom protocol over the StreamPeer, so the user should not read or write to the wrapped StreamPeer directly. </description> <methods> + <method name="get_input_buffer_max_size" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_output_buffer_max_size" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="set_input_buffer_max_size"> + <return type="void"> + </return> + <argument index="0" name="max_size_bytes" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_output_buffer_max_size"> + <return type="void"> + </return> + <argument index="0" name="max_size_bytes" type="int"> + </argument> + <description> + </description> + </method> <method name="set_stream_peer"> - <argument index="0" name="peer" type="StreamPeer"> + <return type="void"> + </return> + <argument index="0" name="peer" type="Reference"> </argument> <description> - Set the StreamPeer object to be wrapped + Set the [StreamPeer] object to be wrapped. </description> </method> </methods> @@ -28878,6 +32140,8 @@ </description> <methods> <method name="close"> + <return type="void"> + </return> <description> Close the UDP socket the [PacketPeerUDP] is currently listening on. </description> @@ -28904,13 +32168,13 @@ </description> </method> <method name="listen"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="port" type="int"> </argument> <argument index="1" name="bind_address" type="String" default=""*""> </argument> - <argument index="2" name="recv_buf_size" type="int" default="65536"> + <argument index="2" name="recv_buf_size" type="int" default="null"> </argument> <description> Make this [PacketPeerUDP] listen on the "port" binding to "bind_address" with a buffer size "recv_buf_size". @@ -28931,7 +32195,7 @@ </description> </method> <method name="wait"> - <return type="Error"> + <return type="int"> </return> <description> Wait for a packet to arrive on the listening port, see [method listen]. @@ -28990,6 +32254,8 @@ </description> </method> <method name="set_panorama"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> @@ -29053,6 +32319,8 @@ </description> </method> <method name="set_ignore_camera_zoom"> + <return type="void"> + </return> <argument index="0" name="ignore" type="bool"> </argument> <description> @@ -29060,6 +32328,8 @@ </description> </method> <method name="set_limit_begin"> + <return type="void"> + </return> <argument index="0" name="ofs" type="Vector2"> </argument> <description> @@ -29067,6 +32337,8 @@ </description> </method> <method name="set_limit_end"> + <return type="void"> + </return> <argument index="0" name="ofs" type="Vector2"> </argument> <description> @@ -29074,6 +32346,8 @@ </description> </method> <method name="set_scroll_base_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="Vector2"> </argument> <description> @@ -29081,6 +32355,8 @@ </description> </method> <method name="set_scroll_base_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> @@ -29088,6 +32364,8 @@ </description> </method> <method name="set_scroll_offset"> + <return type="void"> + </return> <argument index="0" name="ofs" type="Vector2"> </argument> <description> @@ -29140,6 +32418,8 @@ </description> </method> <method name="set_mirroring"> + <return type="void"> + </return> <argument index="0" name="mirror" type="Vector2"> </argument> <description> @@ -29147,12 +32427,16 @@ </description> </method> <method name="set_motion_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> </description> </method> <method name="set_motion_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector2"> </argument> <description> @@ -29282,22 +32566,30 @@ </description> </method> <method name="restart"> + <return type="void"> + </return> <description> </description> </method> <method name="set_amount"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> </description> </method> <method name="set_draw_order"> - <argument index="0" name="order" type="int"> + <return type="void"> + </return> + <argument index="0" name="order" type="int" enum="Particles.DrawOrder"> </argument> <description> </description> </method> <method name="set_draw_pass_mesh"> + <return type="void"> + </return> <argument index="0" name="pass" type="int"> </argument> <argument index="1" name="mesh" type="Mesh"> @@ -29306,78 +32598,104 @@ </description> </method> <method name="set_draw_passes"> + <return type="void"> + </return> <argument index="0" name="passes" type="int"> </argument> <description> </description> </method> <method name="set_emitting"> + <return type="void"> + </return> <argument index="0" name="emitting" type="bool"> </argument> <description> </description> </method> <method name="set_explosiveness_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> </description> </method> <method name="set_fixed_fps"> + <return type="void"> + </return> <argument index="0" name="fps" type="int"> </argument> <description> </description> </method> <method name="set_fractional_delta"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_lifetime"> + <return type="void"> + </return> <argument index="0" name="secs" type="float"> </argument> <description> </description> </method> <method name="set_one_shot"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_pre_process_time"> + <return type="void"> + </return> <argument index="0" name="secs" type="float"> </argument> <description> </description> </method> <method name="set_process_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> </description> </method> <method name="set_randomness_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> </description> </method> <method name="set_speed_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> </description> </method> <method name="set_use_local_coordinates"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_visibility_aabb"> + <return type="void"> + </return> <argument index="0" name="aabb" type="Rect3"> </argument> <description> @@ -29387,7 +32705,7 @@ <members> <member name="amount" type="int" setter="set_amount" getter="get_amount" brief=""> </member> - <member name="draw_order" type="int" setter="set_draw_order" getter="get_draw_order" brief=""> + <member name="draw_order" type="int" setter="set_draw_order" getter="get_draw_order" brief="" enum="Particles.DrawOrder"> </member> <member name="draw_pass_1" type="Mesh" setter="set_draw_pass_mesh" getter="get_draw_pass_mesh" brief=""> </member> @@ -29415,7 +32733,7 @@ </member> <member name="preprocess" type="float" setter="set_pre_process_time" getter="get_pre_process_time" brief=""> </member> - <member name="process_material" type="ShaderMaterial,ParticlesMaterial" setter="set_process_material" getter="get_process_material" brief=""> + <member name="process_material" type="Material" setter="set_process_material" getter="get_process_material" brief=""> </member> <member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio" brief=""> </member> @@ -29431,7 +32749,7 @@ </constant> <constant name="DRAW_ORDER_VIEW_DEPTH" value="2"> </constant> - <constant name="MAX_DRAW_PASSES" value="4"> + <constant name="MAX_DRAW_PASSES" value="4" enum=""> </constant> </constants> </class> @@ -29562,10 +32880,14 @@ </description> </method> <method name="restart"> + <return type="void"> + </return> <description> </description> </method> <method name="set_amount"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -29573,12 +32895,16 @@ </description> </method> <method name="set_draw_order"> - <argument index="0" name="order" type="int"> + <return type="void"> + </return> + <argument index="0" name="order" type="int" enum="Particles2D.DrawOrder"> </argument> <description> </description> </method> <method name="set_emitting"> + <return type="void"> + </return> <argument index="0" name="emitting" type="bool"> </argument> <description> @@ -29586,30 +32912,40 @@ </description> </method> <method name="set_explosiveness_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> </description> </method> <method name="set_fixed_fps"> + <return type="void"> + </return> <argument index="0" name="fps" type="int"> </argument> <description> </description> </method> <method name="set_fractional_delta"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_h_frames"> + <return type="void"> + </return> <argument index="0" name="frames" type="int"> </argument> <description> </description> </method> <method name="set_lifetime"> + <return type="void"> + </return> <argument index="0" name="secs" type="float"> </argument> <description> @@ -29617,60 +32953,80 @@ </description> </method> <method name="set_normal_map"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_one_shot"> + <return type="void"> + </return> <argument index="0" name="secs" type="bool"> </argument> <description> </description> </method> <method name="set_pre_process_time"> + <return type="void"> + </return> <argument index="0" name="secs" type="float"> </argument> <description> </description> </method> <method name="set_process_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> </description> </method> <method name="set_randomness_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float"> </argument> <description> </description> </method> <method name="set_speed_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="float"> </argument> <description> </description> </method> <method name="set_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_use_local_coordinates"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_v_frames"> + <return type="void"> + </return> <argument index="0" name="frames" type="int"> </argument> <description> </description> </method> <method name="set_visibility_rect"> + <return type="void"> + </return> <argument index="0" name="aabb" type="Rect2"> </argument> <description> @@ -29680,7 +33036,7 @@ <members> <member name="amount" type="int" setter="set_amount" getter="get_amount" brief=""> </member> - <member name="draw_order" type="int" setter="set_draw_order" getter="get_draw_order" brief=""> + <member name="draw_order" type="int" setter="set_draw_order" getter="get_draw_order" brief="" enum="Particles2D.DrawOrder"> </member> <member name="emitting" type="bool" setter="set_emitting" getter="is_emitting" brief=""> </member> @@ -29702,7 +33058,7 @@ </member> <member name="preprocess" type="float" setter="set_pre_process_time" getter="get_pre_process_time" brief=""> </member> - <member name="process_material" type="ShaderMaterial,ParticlesMaterial" setter="set_process_material" getter="get_process_material" brief=""> + <member name="process_material" type="Material" setter="set_process_material" getter="get_process_material" brief=""> </member> <member name="randomness" type="float" setter="set_randomness_ratio" getter="get_randomness_ratio" brief=""> </member> @@ -29712,7 +33068,7 @@ </member> <member name="v_frames" type="int" setter="set_v_frames" getter="get_v_frames" brief=""> </member> - <member name="visibility_rect" type="Rect3" setter="set_visibility_rect" getter="get_visibility_rect" brief=""> + <member name="visibility_rect" type="Rect2" setter="set_visibility_rect" getter="get_visibility_rect" brief=""> </member> </members> <constants> @@ -29785,7 +33141,7 @@ <method name="get_flag" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="ParticlesMaterial.Flags"> </argument> <description> </description> @@ -29805,7 +33161,7 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> <description> </description> @@ -29813,15 +33169,15 @@ <method name="get_param_randomness" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> <description> </description> </method> <method name="get_param_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> <description> </description> @@ -29851,61 +33207,81 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_color_ramp"> + <return type="void"> + </return> <argument index="0" name="ramp" type="Texture"> </argument> <description> </description> </method> <method name="set_emission_box_extents"> + <return type="void"> + </return> <argument index="0" name="extents" type="Vector3"> </argument> <description> </description> </method> <method name="set_emission_color_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_emission_normal_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_emission_point_count"> + <return type="void"> + </return> <argument index="0" name="point_count" type="int"> </argument> <description> </description> </method> <method name="set_emission_point_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_emission_shape"> - <argument index="0" name="shape" type="int"> + <return type="void"> + </return> + <argument index="0" name="shape" type="int" enum="ParticlesMaterial.EmissionShape"> </argument> <description> </description> </method> <method name="set_emission_sphere_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_flag"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="ParticlesMaterial.Flags"> </argument> <argument index="1" name="enable" type="bool"> </argument> @@ -29913,19 +33289,25 @@ </description> </method> <method name="set_flatness"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_gravity"> + <return type="void"> + </return> <argument index="0" name="accel_vec" type="Vector3"> </argument> <description> </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -29933,7 +33315,9 @@ </description> </method> <method name="set_param_randomness"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> <argument index="1" name="randomness" type="float"> </argument> @@ -29941,32 +33325,42 @@ </description> </method> <method name="set_param_texture"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="ParticlesMaterial.Parameter"> </argument> - <argument index="1" name="texture" type="Object"> + <argument index="1" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_spread"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_trail_color_modifier"> + <return type="void"> + </return> <argument index="0" name="texture" type="GradientTexture"> </argument> <description> </description> </method> <method name="set_trail_divisor"> + <return type="void"> + </return> <argument index="0" name="divisor" type="int"> </argument> <description> </description> </method> <method name="set_trail_size_modifier"> + <return type="void"> + </return> <argument index="0" name="texture" type="CurveTexture"> </argument> <description> @@ -29976,13 +33370,13 @@ <members> <member name="angle" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="angle_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="angle_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="angle_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="angular_velocity" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="angular_velocity_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="angular_velocity_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="angular_velocity_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> @@ -29990,23 +33384,23 @@ </member> <member name="anim_offset" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="anim_offset_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="anim_offset_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="anim_offset_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="anim_speed" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="anim_speed_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="anim_speed_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="anim_speed_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="color" type="Color" setter="set_color" getter="get_color" brief=""> </member> - <member name="color_ramp" type="GradientTexture" setter="set_color_ramp" getter="get_color_ramp" brief=""> + <member name="color_ramp" type="Texture" setter="set_color_ramp" getter="get_color_ramp" brief=""> </member> <member name="damping" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="damping_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="damping_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="damping_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> @@ -30020,7 +33414,7 @@ </member> <member name="emission_point_texture" type="Texture" setter="set_emission_point_texture" getter="get_emission_point_texture" brief=""> </member> - <member name="emission_shape" type="int" setter="set_emission_shape" getter="get_emission_shape" brief=""> + <member name="emission_shape" type="int" setter="set_emission_shape" getter="get_emission_shape" brief="" enum="ParticlesMaterial.EmissionShape"> </member> <member name="emission_sphere_radius" type="float" setter="set_emission_sphere_radius" getter="get_emission_sphere_radius" brief=""> </member> @@ -30036,7 +33430,7 @@ </member> <member name="hue_variation" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="hue_variation_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="hue_variation_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="hue_variation_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> @@ -30046,25 +33440,25 @@ </member> <member name="linear_accel" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="linear_accel_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="linear_accel_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="linear_accel_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="orbit_velocity" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="orbit_velocity_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="orbit_velocity_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="orbit_velocity_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="radial_accel" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="radial_accel_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="radial_accel_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="radial_accel_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> <member name="scale" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="scale_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="scale_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="scale_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> @@ -30072,7 +33466,7 @@ </member> <member name="tangential_accel" type="float" setter="set_param" getter="get_param" brief=""> </member> - <member name="tangential_accel_curve" type="CurveTexture" setter="set_param_texture" getter="get_param_texture" brief=""> + <member name="tangential_accel_curve" type="Texture" setter="set_param_texture" getter="get_param_texture" brief=""> </member> <member name="tangential_accel_random" type="float" setter="set_param_randomness" getter="get_param_randomness" brief=""> </member> @@ -30144,6 +33538,8 @@ </description> </method> <method name="set_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="Curve3D"> </argument> <description> @@ -30174,6 +33570,8 @@ </description> </method> <method name="set_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="Curve2D"> </argument> <description> @@ -30247,6 +33645,8 @@ </description> </method> <method name="set_cubic_interpolation"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -30256,6 +33656,8 @@ </description> </method> <method name="set_h_offset"> + <return type="void"> + </return> <argument index="0" name="h_offset" type="float"> </argument> <description> @@ -30264,6 +33666,8 @@ </description> </method> <method name="set_loop"> + <return type="void"> + </return> <argument index="0" name="loop" type="bool"> </argument> <description> @@ -30271,6 +33675,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="float"> </argument> <description> @@ -30278,13 +33684,17 @@ </description> </method> <method name="set_rotation_mode"> - <argument index="0" name="rotation_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="rotation_mode" type="int" enum="PathFollow.RotationMode"> </argument> <description> Allows or forbids rotation on one or more axes, per the constants below. </description> </method> <method name="set_unit_offset"> + <return type="void"> + </return> <argument index="0" name="unit_offset" type="float"> </argument> <description> @@ -30292,6 +33702,8 @@ </description> </method> <method name="set_v_offset"> + <return type="void"> + </return> <argument index="0" name="v_offset" type="float"> </argument> <description> @@ -30373,6 +33785,8 @@ </description> </method> <method name="set_cubic_interpolation"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -30382,6 +33796,8 @@ </description> </method> <method name="set_h_offset"> + <return type="void"> + </return> <argument index="0" name="h_offset" type="float"> </argument> <description> @@ -30390,6 +33806,8 @@ </description> </method> <method name="set_loop"> + <return type="void"> + </return> <argument index="0" name="loop" type="bool"> </argument> <description> @@ -30397,6 +33815,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="float"> </argument> <description> @@ -30404,6 +33824,8 @@ </description> </method> <method name="set_rotate"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -30411,6 +33833,8 @@ </description> </method> <method name="set_unit_offset"> + <return type="void"> + </return> <argument index="0" name="unit_offset" type="float"> </argument> <description> @@ -30418,6 +33842,8 @@ </description> </method> <method name="set_v_offset"> + <return type="void"> + </return> <argument index="0" name="v_offset" type="float"> </argument> <description> @@ -30437,7 +33863,7 @@ <method name="get_monitor" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="monitor" type="int"> + <argument index="0" name="monitor" type="int" enum="Performance.Monitor"> </argument> <description> </description> @@ -30678,6 +34104,8 @@ </description> </method> <method name="integrate_forces"> + <return type="void"> + </return> <description> Call the built-in force integration code. </description> @@ -30690,6 +34118,8 @@ </description> </method> <method name="set_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="velocity" type="float"> </argument> <description> @@ -30697,6 +34127,8 @@ </description> </method> <method name="set_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="velocity" type="Vector2"> </argument> <description> @@ -30704,6 +34136,8 @@ </description> </method> <method name="set_sleep_state"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -30711,6 +34145,8 @@ </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="transform" type="Transform2D"> </argument> <description> @@ -30756,7 +34192,7 @@ </return> <argument index="0" name="shape" type="Physics2DShapeQueryParameters"> </argument> - <argument index="1" name="max_results" type="int" default="32"> + <argument index="1" name="max_results" type="int" default="null"> </argument> <description> Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. The resulting array contains a list of points where the shape intersects another. Like with [method intersect_shape], the number of returned results can be limited to save processing time. @@ -30785,13 +34221,13 @@ </return> <argument index="0" name="point" type="Vector2"> </argument> - <argument index="1" name="max_results" type="int" default="32"> + <argument index="1" name="max_results" type="int" default="2147483647"> </argument> - <argument index="2" name="exclude" type="Array" default="[]"> + <argument index="2" name="exclude" type="Array" default="[ ]"> </argument> - <argument index="3" name="collision_layer" type="int" default="2147483647"> + <argument index="3" name="collision_layer" type="int" default="32"> </argument> - <argument index="4" name="type_mask" type="int" default="15"> + <argument index="4" name="type_mask" type="int" default="null"> </argument> <description> Check whether a point is inside any shape. The shapes the point is inside of are returned in an array containing dictionaries with the following fields: @@ -30810,11 +34246,11 @@ </argument> <argument index="1" name="to" type="Vector2"> </argument> - <argument index="2" name="exclude" type="Array" default="[]"> + <argument index="2" name="exclude" type="Array" default="[ ]"> </argument> - <argument index="3" name="collision_layer" type="int" default="2147483647"> + <argument index="3" name="collision_layer" type="int" default="null"> </argument> - <argument index="4" name="type_mask" type="int" default="15"> + <argument index="4" name="type_mask" type="int" default="null"> </argument> <description> Intersect a ray in a given space. The returned object is a dictionary with the following fields: @@ -30834,7 +34270,7 @@ </return> <argument index="0" name="shape" type="Physics2DShapeQueryParameters"> </argument> - <argument index="1" name="max_results" type="int" default="32"> + <argument index="1" name="max_results" type="int" default="null"> </argument> <description> Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. The intersected shapes are returned in an array containing dictionaries with the following fields: @@ -30877,17 +34313,21 @@ </description> <methods> <method name="area_add_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape" type="RID"> </argument> - <argument index="2" name="transform" type="Transform2D" default="((1, 0), (0, 1), (0, 0))"> + <argument index="2" name="transform" type="Transform2D" default="null"> </argument> <description> Add a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="area_attach_object_instance_id"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="id" type="int"> @@ -30897,6 +34337,8 @@ </description> </method> <method name="area_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <description> @@ -30920,9 +34362,11 @@ </description> </method> <method name="area_get_param" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.AreaParameter"> </argument> <description> Return an area parameter value. @@ -30987,6 +34431,8 @@ </description> </method> <method name="area_remove_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -30996,6 +34442,8 @@ </description> </method> <method name="area_set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="layer" type="int"> @@ -31005,6 +34453,8 @@ </description> </method> <method name="area_set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="mask" type="int"> @@ -31014,6 +34464,8 @@ </description> </method> <method name="area_set_monitor_callback"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="receiver" type="Object"> @@ -31030,9 +34482,11 @@ </description> </method> <method name="area_set_param"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.AreaParameter"> </argument> <argument index="2" name="value" type="Variant"> </argument> @@ -31041,6 +34495,8 @@ </description> </method> <method name="area_set_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31052,6 +34508,8 @@ </description> </method> <method name="area_set_shape_disabled"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31062,6 +34520,8 @@ </description> </method> <method name="area_set_shape_transform"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31073,6 +34533,8 @@ </description> </method> <method name="area_set_space"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="space" type="RID"> @@ -31082,15 +34544,19 @@ </description> </method> <method name="area_set_space_override_mode"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Physics2DServer.AreaSpaceOverrideMode"> </argument> <description> Set the space override mode for the area. The modes are described in the constants AREA_SPACE_OVERRIDE_*. </description> </method> <method name="area_set_transform"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="transform" type="Transform2D"> @@ -31100,6 +34566,8 @@ </description> </method> <method name="body_add_collision_exception"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="excepted_body" type="RID"> @@ -31109,6 +34577,8 @@ </description> </method> <method name="body_add_force"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="offset" type="Vector2"> @@ -31120,17 +34590,21 @@ </description> </method> <method name="body_add_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape" type="RID"> </argument> - <argument index="2" name="transform" type="Transform2D" default="((1, 0), (0, 1), (0, 0))"> + <argument index="2" name="transform" type="Transform2D" default="null"> </argument> <description> Add a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. </description> </method> <method name="body_apply_impulse"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="pos" type="Vector2"> @@ -31142,6 +34616,8 @@ </description> </method> <method name="body_attach_object_instance_id"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="id" type="int"> @@ -31151,6 +34627,8 @@ </description> </method> <method name="body_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <description> @@ -31160,9 +34638,9 @@ <method name="body_create"> <return type="RID"> </return> - <argument index="0" name="mode" type="int" default="2"> + <argument index="0" name="mode" type="int" enum="Physics2DServer.BodyMode" default="false"> </argument> - <argument index="1" name="init_sleeping" type="bool" default="false"> + <argument index="1" name="init_sleeping" type="bool" default="2"> </argument> <description> Create a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time. @@ -31227,7 +34705,7 @@ </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.BodyParameter"> </argument> <description> Return the value of a body parameter. @@ -31254,6 +34732,8 @@ </description> </method> <method name="body_get_shape_metadata" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31283,9 +34763,11 @@ </description> </method> <method name="body_get_state" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="state" type="int"> + <argument index="1" name="state" type="int" enum="Physics2DServer.BodyState"> </argument> <description> Return a body state. @@ -31301,6 +34783,8 @@ </description> </method> <method name="body_remove_collision_exception"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="excepted_body" type="RID"> @@ -31310,6 +34794,8 @@ </description> </method> <method name="body_remove_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31319,6 +34805,8 @@ </description> </method> <method name="body_set_axis_velocity"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="axis_velocity" type="Vector2"> @@ -31328,6 +34816,8 @@ </description> </method> <method name="body_set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="layer" type="int"> @@ -31337,6 +34827,8 @@ </description> </method> <method name="body_set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="mask" type="int"> @@ -31346,9 +34838,11 @@ </description> </method> <method name="body_set_continuous_collision_detection_mode"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Physics2DServer.CCDMode"> </argument> <description> Set the continuous collision detection mode from any of the CCD_MODE_* constants. @@ -31356,19 +34850,23 @@ </description> </method> <method name="body_set_force_integration_callback"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="receiver" type="Object"> </argument> <argument index="2" name="method" type="String"> </argument> - <argument index="3" name="userdata" type="Variant" default="NULL"> + <argument index="3" name="userdata" type="Variant" default="null"> </argument> <description> Set the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]). </description> </method> <method name="body_set_max_contacts_reported"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="amount" type="int"> @@ -31378,15 +34876,19 @@ </description> </method> <method name="body_set_mode"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="Physics2DServer.BodyMode"> </argument> <description> Set the body mode, from one of the constants BODY_MODE*. </description> </method> <method name="body_set_omit_force_integration"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="enable" type="bool"> @@ -31396,9 +34898,11 @@ </description> </method> <method name="body_set_param"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.BodyParameter"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -31407,6 +34911,8 @@ </description> </method> <method name="body_set_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31418,6 +34924,8 @@ </description> </method> <method name="body_set_shape_as_one_way_collision"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31428,6 +34936,8 @@ </description> </method> <method name="body_set_shape_disabled"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31438,6 +34948,8 @@ </description> </method> <method name="body_set_shape_metadata"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31449,6 +34961,8 @@ </description> </method> <method name="body_set_shape_transform"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -31460,6 +34974,8 @@ </description> </method> <method name="body_set_space"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="space" type="RID"> @@ -31469,9 +34985,11 @@ </description> </method> <method name="body_set_state"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="state" type="int"> + <argument index="1" name="state" type="int" enum="Physics2DServer.BodyState"> </argument> <argument index="2" name="value" type="Variant"> </argument> @@ -31488,9 +35006,9 @@ </argument> <argument index="2" name="motion" type="Vector2"> </argument> - <argument index="3" name="margin" type="float" default="0.08"> + <argument index="3" name="margin" type="float" default="null"> </argument> - <argument index="4" name="result" type="Physics2DTestMotionResult" default="NULL"> + <argument index="4" name="result" type="Physics2DTestMotionResult" default="null"> </argument> <description> Return whether a body can move from a given point in a given direction. Apart from the boolean return value, a [Physics2DTestMotionResult] can be passed to return additional information in. @@ -31505,7 +35023,7 @@ </argument> <argument index="2" name="body_a" type="RID"> </argument> - <argument index="3" name="body_b" type="RID" default="[RID]"> + <argument index="3" name="body_b" type="RID" default="null"> </argument> <description> Create a damped spring joint between two bodies. If not specified, the second body is assumed to be the joint itself. @@ -31516,16 +35034,18 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.DampedStringParam"> </argument> <description> Return the value of a damped spring joint parameter. </description> </method> <method name="damped_string_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.DampedStringParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -31534,6 +35054,8 @@ </description> </method> <method name="free_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> @@ -31543,7 +35065,7 @@ <method name="get_process_info"> <return type="int"> </return> - <argument index="0" name="process_info" type="int"> + <argument index="0" name="process_info" type="int" enum="Physics2DServer.ProcessInfo"> </argument> <description> Return information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. @@ -31558,9 +35080,9 @@ </argument> <argument index="2" name="anchor_b" type="Vector2"> </argument> - <argument index="3" name="body_a" type="RID" default="[RID]"> + <argument index="3" name="body_a" type="RID" default="null"> </argument> - <argument index="4" name="body_b" type="RID" default="[RID]"> + <argument index="4" name="body_b" type="RID" default="null"> </argument> <description> Create a groove joint between two bodies. If not specified, the bodyies are assumed to be the joint itself. @@ -31571,7 +35093,7 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.JointParam"> </argument> <description> Return the value of a joint parameter. @@ -31587,9 +35109,11 @@ </description> </method> <method name="joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.JointParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -31604,13 +35128,15 @@ </argument> <argument index="1" name="body_a" type="RID"> </argument> - <argument index="2" name="body_b" type="RID" default="[RID]"> + <argument index="2" name="body_b" type="RID" default="null"> </argument> <description> Create a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself. </description> </method> <method name="set_active"> + <return type="void"> + </return> <argument index="0" name="active" type="bool"> </argument> <description> @@ -31620,13 +35146,15 @@ <method name="shape_create"> <return type="RID"> </return> - <argument index="0" name="type" type="int"> + <argument index="0" name="type" type="int" enum="Physics2DServer.ShapeType"> </argument> <description> Create a shape of type SHAPE_*. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape]. </description> </method> <method name="shape_get_data" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="shape" type="RID"> </argument> <description> @@ -31643,6 +35171,8 @@ </description> </method> <method name="shape_set_data"> + <return type="void"> + </return> <argument index="0" name="shape" type="RID"> </argument> <argument index="1" name="data" type="Variant"> @@ -31672,7 +35202,7 @@ </return> <argument index="0" name="space" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.SpaceParameter"> </argument> <description> Return the value of a space parameter. @@ -31688,6 +35218,8 @@ </description> </method> <method name="space_set_active"> + <return type="void"> + </return> <argument index="0" name="space" type="RID"> </argument> <argument index="1" name="active" type="bool"> @@ -31697,9 +35229,11 @@ </description> </method> <method name="space_set_param"> + <return type="void"> + </return> <argument index="0" name="space" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="Physics2DServer.SpaceParameter"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -31956,6 +35490,8 @@ </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="collision_layer" type="int"> </argument> <description> @@ -31963,6 +35499,8 @@ </description> </method> <method name="set_exclude"> + <return type="void"> + </return> <argument index="0" name="exclude" type="Array"> </argument> <description> @@ -31970,6 +35508,8 @@ </description> </method> <method name="set_margin"> + <return type="void"> + </return> <argument index="0" name="margin" type="float"> </argument> <description> @@ -31977,6 +35517,8 @@ </description> </method> <method name="set_motion"> + <return type="void"> + </return> <argument index="0" name="motion" type="Vector2"> </argument> <description> @@ -31984,6 +35526,8 @@ </description> </method> <method name="set_object_type_mask"> + <return type="void"> + </return> <argument index="0" name="object_type_mask" type="int"> </argument> <description> @@ -31991,13 +35535,17 @@ </description> </method> <method name="set_shape"> - <argument index="0" name="shape" type="Shape2D"> + <return type="void"> + </return> + <argument index="0" name="shape" type="Resource"> </argument> <description> Set the [Shape2D] that will be used for collision/intersection queries. </description> </method> <method name="set_shape_rid"> + <return type="void"> + </return> <argument index="0" name="shape" type="RID"> </argument> <description> @@ -32005,6 +35553,8 @@ </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="transform" type="Transform2D"> </argument> <description> @@ -32136,9 +35686,12 @@ </description> <methods> <method name="add_collision_exception_with"> - <argument index="0" name="body" type="PhysicsBody"> + <return type="void"> + </return> + <argument index="0" name="body" type="Node"> </argument> <description> + Adds a body to the collision exception list. This list contains bodies that this body will not collide with. </description> </method> <method name="get_collision_layer" qualifiers="const"> @@ -32170,18 +35723,25 @@ </description> </method> <method name="remove_collision_exception_with"> - <argument index="0" name="body" type="PhysicsBody"> + <return type="void"> + </return> + <argument index="0" name="body" type="Node"> </argument> <description> + Removes a body from the collision exception list. </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> </description> </method> <method name="set_collision_layer_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -32190,12 +35750,16 @@ </description> </method> <method name="set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> </description> </method> <method name="set_collision_mask_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -32222,10 +35786,11 @@ </description> <methods> <method name="add_collision_exception_with"> - <argument index="0" name="body" type="PhysicsBody2D"> + <return type="void"> + </return> + <argument index="0" name="body" type="Node"> </argument> <description> - Adds a body to the collision exception list. This list contains bodies that this body will not collide with. </description> </method> <method name="get_collision_layer" qualifiers="const"> @@ -32261,13 +35826,16 @@ </description> </method> <method name="remove_collision_exception_with"> - <argument index="0" name="body" type="PhysicsBody2D"> + <return type="void"> + </return> + <argument index="0" name="body" type="Node"> </argument> <description> - Removes a body from the collision exception list. </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -32277,6 +35845,8 @@ </description> </method> <method name="set_collision_layer_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -32286,6 +35856,8 @@ </description> </method> <method name="set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -32293,6 +35865,8 @@ </description> </method> <method name="set_collision_mask_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -32320,6 +35894,8 @@ </description> <methods> <method name="add_force"> + <return type="void"> + </return> <argument index="0" name="force" type="Vector3"> </argument> <argument index="1" name="pos" type="Vector3"> @@ -32328,6 +35904,8 @@ </description> </method> <method name="apply_impulse"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector3"> </argument> <argument index="1" name="j" type="Vector3"> @@ -32336,6 +35914,8 @@ </description> </method> <method name="apply_torqe_impulse"> + <return type="void"> + </return> <argument index="0" name="j" type="Vector3"> </argument> <description> @@ -32492,6 +36072,8 @@ </description> </method> <method name="integrate_forces"> + <return type="void"> + </return> <description> </description> </method> @@ -32502,24 +36084,32 @@ </description> </method> <method name="set_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="velocity" type="Vector3"> </argument> <description> </description> </method> <method name="set_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="velocity" type="Vector3"> </argument> <description> </description> </method> <method name="set_sleep_state"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="transform" type="Transform"> </argument> <description> @@ -32560,7 +36150,7 @@ </return> <argument index="0" name="shape" type="PhysicsShapeQueryParameters"> </argument> - <argument index="1" name="max_results" type="int" default="32"> + <argument index="1" name="max_results" type="int" default="null"> </argument> <description> </description> @@ -32580,11 +36170,11 @@ </argument> <argument index="1" name="to" type="Vector3"> </argument> - <argument index="2" name="exclude" type="Array" default="[]"> + <argument index="2" name="exclude" type="Array" default="[ ]"> </argument> - <argument index="3" name="collision_layer" type="int" default="2147483647"> + <argument index="3" name="collision_layer" type="int" default="null"> </argument> - <argument index="4" name="type_mask" type="int" default="15"> + <argument index="4" name="type_mask" type="int" default="null"> </argument> <description> </description> @@ -32594,7 +36184,7 @@ </return> <argument index="0" name="shape" type="PhysicsShapeQueryParameters"> </argument> - <argument index="1" name="max_results" type="int" default="32"> + <argument index="1" name="max_results" type="int" default="null"> </argument> <description> </description> @@ -32622,16 +36212,20 @@ </description> <methods> <method name="area_add_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape" type="RID"> </argument> - <argument index="2" name="transform" type="Transform" default="Transform()"> + <argument index="2" name="transform" type="Transform" default="null"> </argument> <description> </description> </method> <method name="area_attach_object_instance_id"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="id" type="int"> @@ -32640,6 +36234,8 @@ </description> </method> <method name="area_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <description> @@ -32660,9 +36256,11 @@ </description> </method> <method name="area_get_param" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.AreaParameter"> </argument> <description> </description> @@ -32728,6 +36326,8 @@ </description> </method> <method name="area_remove_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -32736,6 +36336,8 @@ </description> </method> <method name="area_set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="layer" type="int"> @@ -32744,6 +36346,8 @@ </description> </method> <method name="area_set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="mask" type="int"> @@ -32752,6 +36356,8 @@ </description> </method> <method name="area_set_monitor_callback"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="receiver" type="Object"> @@ -32762,9 +36368,11 @@ </description> </method> <method name="area_set_param"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.AreaParameter"> </argument> <argument index="2" name="value" type="Variant"> </argument> @@ -32772,6 +36380,8 @@ </description> </method> <method name="area_set_ray_pickable"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="enable" type="bool"> @@ -32780,6 +36390,8 @@ </description> </method> <method name="area_set_shape"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -32790,6 +36402,8 @@ </description> </method> <method name="area_set_shape_transform"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -32800,6 +36414,8 @@ </description> </method> <method name="area_set_space"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="space" type="RID"> @@ -32808,14 +36424,18 @@ </description> </method> <method name="area_set_space_override_mode"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="PhysicsServer.AreaSpaceOverrideMode"> </argument> <description> </description> </method> <method name="area_set_transform"> + <return type="void"> + </return> <argument index="0" name="area" type="RID"> </argument> <argument index="1" name="transform" type="Transform"> @@ -32824,6 +36444,8 @@ </description> </method> <method name="body_add_collision_exception"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="excepted_body" type="RID"> @@ -32832,16 +36454,20 @@ </description> </method> <method name="body_add_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape" type="RID"> </argument> - <argument index="2" name="transform" type="Transform" default="Transform()"> + <argument index="2" name="transform" type="Transform" default="null"> </argument> <description> </description> </method> <method name="body_apply_impulse"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="pos" type="Vector3"> @@ -32852,6 +36478,8 @@ </description> </method> <method name="body_apply_torque_impulse"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="impulse" type="Vector3"> @@ -32860,6 +36488,8 @@ </description> </method> <method name="body_attach_object_instance_id"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="id" type="int"> @@ -32868,6 +36498,8 @@ </description> </method> <method name="body_clear_shapes"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <description> @@ -32876,9 +36508,9 @@ <method name="body_create"> <return type="RID"> </return> - <argument index="0" name="mode" type="int" default="2"> + <argument index="0" name="mode" type="int" enum="PhysicsServer.BodyMode" default="false"> </argument> - <argument index="1" name="init_sleeping" type="bool" default="false"> + <argument index="1" name="init_sleeping" type="bool" default="2"> </argument> <description> </description> @@ -32936,7 +36568,7 @@ </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.BodyParameter"> </argument> <description> </description> @@ -32978,9 +36610,11 @@ </description> </method> <method name="body_get_state" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="state" type="int"> + <argument index="1" name="state" type="int" enum="PhysicsServer.BodyState"> </argument> <description> </description> @@ -33010,6 +36644,8 @@ </description> </method> <method name="body_remove_collision_exception"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="excepted_body" type="RID"> @@ -33018,6 +36654,8 @@ </description> </method> <method name="body_remove_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -33026,14 +36664,18 @@ </description> </method> <method name="body_set_axis_lock"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="axis" type="int"> + <argument index="1" name="axis" type="int" enum="PhysicsServer.BodyAxisLock"> </argument> <description> </description> </method> <method name="body_set_axis_velocity"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="axis_velocity" type="Vector3"> @@ -33042,6 +36684,8 @@ </description> </method> <method name="body_set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="layer" type="int"> @@ -33050,6 +36694,8 @@ </description> </method> <method name="body_set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="mask" type="int"> @@ -33058,6 +36704,8 @@ </description> </method> <method name="body_set_enable_continuous_collision_detection"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="enable" type="bool"> @@ -33066,18 +36714,22 @@ </description> </method> <method name="body_set_force_integration_callback"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="receiver" type="Object"> </argument> <argument index="2" name="method" type="String"> </argument> - <argument index="3" name="userdata" type="Variant" default="NULL"> + <argument index="3" name="userdata" type="Variant" default="null"> </argument> <description> </description> </method> <method name="body_set_max_contacts_reported"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="amount" type="int"> @@ -33086,14 +36738,18 @@ </description> </method> <method name="body_set_mode"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="PhysicsServer.BodyMode"> </argument> <description> </description> </method> <method name="body_set_omit_force_integration"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="enable" type="bool"> @@ -33102,9 +36758,11 @@ </description> </method> <method name="body_set_param"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.BodyParameter"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33112,6 +36770,8 @@ </description> </method> <method name="body_set_ray_pickable"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="enable" type="bool"> @@ -33120,6 +36780,8 @@ </description> </method> <method name="body_set_shape"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -33130,6 +36792,8 @@ </description> </method> <method name="body_set_shape_transform"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="shape_idx" type="int"> @@ -33140,6 +36804,8 @@ </description> </method> <method name="body_set_space"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> <argument index="1" name="space" type="RID"> @@ -33148,9 +36814,11 @@ </description> </method> <method name="body_set_state"> + <return type="void"> + </return> <argument index="0" name="body" type="RID"> </argument> - <argument index="1" name="state" type="int"> + <argument index="1" name="state" type="int" enum="PhysicsServer.BodyState"> </argument> <argument index="2" name="value" type="Variant"> </argument> @@ -33162,15 +36830,17 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.ConeTwistJointParam"> </argument> <description> </description> </method> <method name="cone_twist_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.ConeTwistJointParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33178,6 +36848,8 @@ </description> </method> <method name="free_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> @@ -33188,9 +36860,9 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="axis" type="int"> + <argument index="1" name="axis" type="int" enum="Vector3.Axis"> </argument> - <argument index="2" name="flag" type="int"> + <argument index="2" name="flag" type="int" enum="PhysicsServer.G6DOFJointAxisFlag"> </argument> <description> </description> @@ -33200,19 +36872,21 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="axis" type="int"> + <argument index="1" name="axis" type="int" enum="Vector3.Axis"> </argument> - <argument index="2" name="param" type="int"> + <argument index="2" name="param" type="int" enum="PhysicsServer.G6DOFJointAxisParam"> </argument> <description> </description> </method> <method name="generic_6dof_joint_set_flag"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="axis" type="int"> + <argument index="1" name="axis" type="int" enum="Vector3.Axis"> </argument> - <argument index="2" name="flag" type="int"> + <argument index="2" name="flag" type="int" enum="PhysicsServer.G6DOFJointAxisFlag"> </argument> <argument index="3" name="enable" type="bool"> </argument> @@ -33220,11 +36894,13 @@ </description> </method> <method name="generic_6dof_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="axis" type="int"> + <argument index="1" name="axis" type="int" enum="Vector3.Axis"> </argument> - <argument index="2" name="param" type="int"> + <argument index="2" name="param" type="int" enum="PhysicsServer.G6DOFJointAxisParam"> </argument> <argument index="3" name="value" type="float"> </argument> @@ -33234,7 +36910,7 @@ <method name="get_process_info"> <return type="int"> </return> - <argument index="0" name="process_info" type="int"> + <argument index="0" name="process_info" type="int" enum="PhysicsServer.ProcessInfo"> </argument> <description> </description> @@ -33244,7 +36920,7 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="flag" type="int"> + <argument index="1" name="flag" type="int" enum="PhysicsServer.HingeJointFlag"> </argument> <description> </description> @@ -33254,15 +36930,17 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.HingeJointParam"> </argument> <description> </description> </method> <method name="hinge_joint_set_flag"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="flag" type="int"> + <argument index="1" name="flag" type="int" enum="PhysicsServer.HingeJointFlag"> </argument> <argument index="2" name="enabled" type="bool"> </argument> @@ -33270,9 +36948,11 @@ </description> </method> <method name="hinge_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.HingeJointParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33366,6 +37046,8 @@ </description> </method> <method name="joint_set_solver_priority"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> <argument index="1" name="priority" type="int"> @@ -33394,12 +37076,14 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.PinJointParam"> </argument> <description> </description> </method> <method name="pin_joint_set_local_a"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> <argument index="1" name="local_A" type="Vector3"> @@ -33408,6 +37092,8 @@ </description> </method> <method name="pin_joint_set_local_b"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> <argument index="1" name="local_B" type="Vector3"> @@ -33416,9 +37102,11 @@ </description> </method> <method name="pin_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.PinJointParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33426,6 +37114,8 @@ </description> </method> <method name="set_active"> + <return type="void"> + </return> <argument index="0" name="active" type="bool"> </argument> <description> @@ -33434,12 +37124,14 @@ <method name="shape_create"> <return type="RID"> </return> - <argument index="0" name="type" type="int"> + <argument index="0" name="type" type="int" enum="PhysicsServer.ShapeType"> </argument> <description> </description> </method> <method name="shape_get_data" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="shape" type="RID"> </argument> <description> @@ -33454,6 +37146,8 @@ </description> </method> <method name="shape_set_data"> + <return type="void"> + </return> <argument index="0" name="shape" type="RID"> </argument> <argument index="1" name="data" type="Variant"> @@ -33466,15 +37160,17 @@ </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.SliderJointParam"> </argument> <description> </description> </method> <method name="slider_joint_set_param"> + <return type="void"> + </return> <argument index="0" name="joint" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.SliderJointParam"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33500,7 +37196,7 @@ </return> <argument index="0" name="space" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.SpaceParameter"> </argument> <description> </description> @@ -33514,6 +37210,8 @@ </description> </method> <method name="space_set_active"> + <return type="void"> + </return> <argument index="0" name="space" type="RID"> </argument> <argument index="1" name="active" type="bool"> @@ -33522,9 +37220,11 @@ </description> </method> <method name="space_set_param"> + <return type="void"> + </return> <argument index="0" name="space" type="RID"> </argument> - <argument index="1" name="param" type="int"> + <argument index="1" name="param" type="int" enum="PhysicsServer.SpaceParameter"> </argument> <argument index="2" name="value" type="float"> </argument> @@ -33805,42 +37505,56 @@ </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="collision_layer" type="int"> </argument> <description> </description> </method> <method name="set_exclude"> + <return type="void"> + </return> <argument index="0" name="exclude" type="Array"> </argument> <description> </description> </method> <method name="set_margin"> + <return type="void"> + </return> <argument index="0" name="margin" type="float"> </argument> <description> </description> </method> <method name="set_object_type_mask"> + <return type="void"> + </return> <argument index="0" name="object_type_mask" type="int"> </argument> <description> </description> </method> <method name="set_shape"> - <argument index="0" name="shape" type="Shape"> + <return type="void"> + </return> + <argument index="0" name="shape" type="Resource"> </argument> <description> </description> </method> <method name="set_shape_rid"> + <return type="void"> + </return> <argument index="0" name="shape" type="RID"> </argument> <description> </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="transform" type="Transform"> </argument> <description> @@ -33908,13 +37622,15 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="PinJoint.Param"> </argument> <description> </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="PinJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -33954,6 +37670,8 @@ </description> </method> <method name="set_softness"> + <return type="void"> + </return> <argument index="0" name="softness" type="float"> </argument> <description> @@ -34147,18 +37865,24 @@ </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="set_subdivide_depth"> + <return type="void"> + </return> <argument index="0" name="subdivide" type="int"> </argument> <description> </description> </method> <method name="set_subdivide_width"> + <return type="void"> + </return> <argument index="0" name="subdivide" type="int"> </argument> <description> @@ -34189,6 +37913,8 @@ </description> </method> <method name="set_plane"> + <return type="void"> + </return> <argument index="0" name="plane" type="Plane"> </argument> <description> @@ -34210,6 +37936,12 @@ A Polygon2D is defined by a set of n vertices connected together by line segments, meaning that the vertex 1 will be connected with vertex 2, vertex 2 with vertex 3 ..., vertex n-1 with vertex n and vertex n with vertex 1 in order to close the loop and define a polygon. </description> <methods> + <method name="get_antialiased" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="get_color" qualifiers="const"> <return type="Color"> </return> @@ -34246,7 +37978,7 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> Return the polygon texture @@ -34287,7 +38019,17 @@ Return the list of vertex colors. </description> </method> + <method name="set_antialiased"> + <return type="void"> + </return> + <argument index="0" name="antialiased" type="bool"> + </argument> + <description> + </description> + </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -34295,6 +38037,8 @@ </description> </method> <method name="set_invert"> + <return type="void"> + </return> <argument index="0" name="invert" type="bool"> </argument> <description> @@ -34302,6 +38046,8 @@ </description> </method> <method name="set_invert_border"> + <return type="void"> + </return> <argument index="0" name="invert_border" type="float"> </argument> <description> @@ -34309,6 +38055,8 @@ </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -34316,6 +38064,8 @@ </description> </method> <method name="set_polygon"> + <return type="void"> + </return> <argument index="0" name="polygon" type="PoolVector2Array"> </argument> <description> @@ -34323,13 +38073,16 @@ </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> - Set the polygon texture. </description> </method> <method name="set_texture_offset"> + <return type="void"> + </return> <argument index="0" name="texture_offset" type="Vector2"> </argument> <description> @@ -34337,6 +38090,8 @@ </description> </method> <method name="set_texture_rotation"> + <return type="void"> + </return> <argument index="0" name="texture_rotation" type="float"> </argument> <description> @@ -34344,6 +38099,8 @@ </description> </method> <method name="set_texture_scale"> + <return type="void"> + </return> <argument index="0" name="texture_scale" type="Vector2"> </argument> <description> @@ -34351,6 +38108,8 @@ </description> </method> <method name="set_uv"> + <return type="void"> + </return> <argument index="0" name="uv" type="PoolVector2Array"> </argument> <description> @@ -34358,6 +38117,8 @@ </description> </method> <method name="set_vertex_colors"> + <return type="void"> + </return> <argument index="0" name="vertex_colors" type="PoolColorArray"> </argument> <description> @@ -34367,6 +38128,8 @@ </method> </methods> <members> + <member name="antialiased" type="bool" setter="set_antialiased" getter="get_antialiased" brief=""> + </member> <member name="color" type="Color" setter="set_color" getter="get_color" brief=""> </member> <member name="invert_border" type="float" setter="set_invert_border" getter="get_invert_border" brief=""> @@ -34450,6 +38213,8 @@ </description> </method> <method name="set_point_penalty"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="penalty" type="float"> @@ -34458,6 +38223,8 @@ </description> </method> <method name="setup"> + <return type="void"> + </return> <argument index="0" name="points" type="PoolVector2Array"> </argument> <argument index="1" name="connections" type="PoolIntArray"> @@ -35157,27 +38924,35 @@ </description> </method> <method name="popup"> - <argument index="0" name="bounds" type="Rect2" default="Rect2(0, 0, 0, 0)"> + <return type="void"> + </return> + <argument index="0" name="bounds" type="Rect2" default="Rect2( 0, 0, 0, 0 )"> </argument> <description> Popup (show the control in modal form). </description> </method> <method name="popup_centered"> - <argument index="0" name="size" type="Vector2" default="Vector2(0, 0)"> + <return type="void"> + </return> + <argument index="0" name="size" type="Vector2" default="Vector2( 0, 0 )"> </argument> <description> Popup (show the control in modal form) in the center of the screen, at the current size, or at a size determined by "size". </description> </method> <method name="popup_centered_minsize"> - <argument index="0" name="minsize" type="Vector2" default="Vector2(0, 0)"> + <return type="void"> + </return> + <argument index="0" name="minsize" type="Vector2" default="Vector2( 0, 0 )"> </argument> <description> Popup (show the control in modal form) in the center of the screen, ensuring the size is never smaller than [code]minsize[/code]. </description> </method> <method name="popup_centered_ratio"> + <return type="void"> + </return> <argument index="0" name="ratio" type="float" default="0.75"> </argument> <description> @@ -35185,6 +38960,8 @@ </description> </method> <method name="set_exclusive"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -35209,10 +38986,10 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_POST_POPUP" value="80"> + <constant name="NOTIFICATION_POST_POPUP" value="80" enum=""> Notification sent right after the popup is shown. </constant> - <constant name="NOTIFICATION_POPUP_HIDE" value="81"> + <constant name="NOTIFICATION_POPUP_HIDE" value="81" enum=""> Notification sent right after the popup is hidden. </constant> </constants> @@ -35238,125 +39015,139 @@ </description> <methods> <method name="add_check_item"> + <return type="void"> + </return> <argument index="0" name="label" type="String"> </argument> <argument index="1" name="id" type="int" default="-1"> </argument> - <argument index="2" name="accel" type="int" default="0"> + <argument index="2" name="accel" type="int" default="null"> </argument> <description> Add a new checkable item with text "label". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. </description> </method> <method name="add_check_shortcut"> + <return type="void"> + </return> <argument index="0" name="shortcut" type="ShortCut"> </argument> <argument index="1" name="id" type="int" default="-1"> </argument> - <argument index="2" name="global" type="bool" default="false"> + <argument index="2" name="global" type="bool" default="null"> </argument> <description> </description> </method> <method name="add_icon_check_item"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="label" type="String"> </argument> - <argument index="2" name="id" type="int" default="-1"> + <argument index="2" name="id" type="int" default="null"> </argument> - <argument index="3" name="accel" type="int" default="0"> + <argument index="3" name="accel" type="int" default="null"> </argument> <description> - Add a new checkable item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. + Add a new checkable item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be + created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. </description> </method> <method name="add_icon_check_shortcut"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="shortcut" type="ShortCut"> </argument> - <argument index="2" name="id" type="int" default="-1"> + <argument index="2" name="id" type="int" default="null"> </argument> - <argument index="3" name="global" type="bool" default="false"> + <argument index="3" name="global" type="bool" default="null"> </argument> <description> </description> </method> <method name="add_icon_item"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="label" type="String"> </argument> - <argument index="2" name="id" type="int" default="-1"> + <argument index="2" name="id" type="int" default="null"> </argument> - <argument index="3" name="accel" type="int" default="0"> + <argument index="3" name="accel" type="int" default="null"> </argument> <description> Add a new item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. </description> </method> <method name="add_icon_shortcut"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <argument index="1" name="shortcut" type="ShortCut"> </argument> - <argument index="2" name="id" type="int" default="-1"> + <argument index="2" name="id" type="int" default="null"> </argument> - <argument index="3" name="global" type="bool" default="false"> + <argument index="3" name="global" type="bool" default="null"> </argument> <description> </description> </method> <method name="add_item"> + <return type="void"> + </return> <argument index="0" name="label" type="String"> </argument> <argument index="1" name="id" type="int" default="-1"> </argument> - <argument index="2" name="accel" type="int" default="0"> + <argument index="2" name="accel" type="int" default="null"> </argument> <description> Add a new item with text "label". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. </description> </method> <method name="add_separator"> + <return type="void"> + </return> <description> Add a separator between items. Separators also occupy an index. </description> </method> <method name="add_shortcut"> + <return type="void"> + </return> <argument index="0" name="shortcut" type="ShortCut"> </argument> <argument index="1" name="id" type="int" default="-1"> </argument> - <argument index="2" name="global" type="bool" default="false"> + <argument index="2" name="global" type="bool" default="null"> </argument> <description> </description> </method> <method name="add_submenu_item"> + <return type="void"> + </return> <argument index="0" name="label" type="String"> </argument> <argument index="1" name="submenu" type="String"> </argument> - <argument index="2" name="id" type="int" default="-1"> + <argument index="2" name="id" type="int" default="null"> </argument> <description> Adds an item with a submenu. The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. An id can optionally be provided, but if is isn't provided, one will be created from the index. </description> </method> <method name="clear"> - <description> - Clear the popup menu, in effect removing all items. - </description> - </method> - <method name="get_item_id" qualifiers="const"> - <return type="int"> + <return type="void"> </return> - <argument index="0" name="idx" type="int"> - </argument> <description> - Return the id of the item at index "idx". + Clear the popup menu, in effect removing all items. </description> </method> <method name="get_item_accelerator" qualifiers="const"> @@ -35376,7 +39167,7 @@ </description> </method> <method name="get_item_icon" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <argument index="0" name="idx" type="int"> </argument> @@ -35384,6 +39175,15 @@ Return the icon of the item at index "idx". </description> </method> + <method name="get_item_id" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <description> + Return the id of the item at index "idx". + </description> + </method> <method name="get_item_index" qualifiers="const"> <return type="int"> </return> @@ -35487,6 +39287,8 @@ </description> </method> <method name="remove_item"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -35494,6 +39296,8 @@ </description> </method> <method name="set_hide_on_checkable_item_selection"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -35501,22 +39305,17 @@ </description> </method> <method name="set_hide_on_item_selection"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> Sets whether or not the PopupMenu will hide on item selection. </description> </method> - <method name="set_item_id"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - Set the id of the item at index "idx". - </description> - </method> <method name="set_item_accelerator"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="accel" type="int"> @@ -35526,6 +39325,8 @@ </description> </method> <method name="set_item_as_checkable"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -35535,6 +39336,8 @@ </description> </method> <method name="set_item_as_separator"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -35544,6 +39347,8 @@ </description> </method> <method name="set_item_checked"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="checked" type="bool"> @@ -35553,6 +39358,8 @@ </description> </method> <method name="set_item_disabled"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="disabled" type="bool"> @@ -35562,15 +39369,29 @@ </description> </method> <method name="set_item_icon"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="icon" type="Object"> + <argument index="1" name="icon" type="Texture"> </argument> <description> - Set the icon of the item at index "idx". + </description> + </method> + <method name="set_item_id"> + <return type="void"> + </return> + <argument index="0" name="idx" type="int"> + </argument> + <argument index="1" name="id" type="int"> + </argument> + <description> + Set the id of the item at index "idx". </description> </method> <method name="set_item_metadata"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="metadata" type="Variant"> @@ -35580,16 +39401,20 @@ </description> </method> <method name="set_item_shortcut"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="shortcut" type="ShortCut"> </argument> - <argument index="2" name="global" type="bool" default="false"> + <argument index="2" name="global" type="bool" default="null"> </argument> <description> </description> </method> <method name="set_item_submenu"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="submenu" type="String"> @@ -35599,6 +39424,8 @@ </description> </method> <method name="set_item_text"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="text" type="String"> @@ -35608,6 +39435,8 @@ </description> </method> <method name="set_item_tooltip"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <argument index="1" name="tooltip" type="String"> @@ -35616,6 +39445,8 @@ </description> </method> <method name="toggle_item_checked"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -35695,88 +39526,6 @@ </theme_item> </theme_items> </class> -<class name="Portal" inherits="VisualInstance" category="Core"> - <brief_description> - Portals provide virtual openings to rooms. - </brief_description> - <description> - Portals provide virtual openings to [VisualInstance] nodes, so cameras can look at them from the outside. Note that portals are a visibility optimization technique, and are in no way related to the game of the same name (as in, they are not used for teleportation). For more information on how rooms and portals work, see [VisualInstance]. Portals are represented as 2D convex polygon shapes (in the X,Y local plane), and are placed on the surface of the areas occupied by a [VisualInstance], to indicate that the room can be accessed or looked-at through them. If two rooms are next to each other, and two similar portals in each of them share the same world position (and are parallel and opposed to each other), they will automatically "connect" and form "doors" (for example, the portals that connect a kitchen to a living room are placed in the door they share). Portals must always have a [VisualInstance] node as a parent, grandparent or far parent, or else they will not be active. - </description> - <methods> - <method name="get_connect_range" qualifiers="const"> - <return type="float"> - </return> - <description> - Return the range for auto-connecting two portals from different rooms sharing the same space. - </description> - </method> - <method name="get_disable_distance" qualifiers="const"> - <return type="float"> - </return> - <description> - Return the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). - </description> - </method> - <method name="get_disabled_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - Return the color for when the portal goes beyond the disable distance (see [method set_disable_distance]) and becomes disabled. - </description> - </method> - <method name="get_shape" qualifiers="const"> - <return type="PoolVector2Array"> - </return> - <description> - Return the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. - </description> - </method> - <method name="is_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - Return whether the portal is active. When disabled it causes the parent [VisualInstance] to not be visible any longer when looking through the portal. - </description> - </method> - <method name="set_connect_range"> - <argument index="0" name="range" type="float"> - </argument> - <description> - Set the range for auto-connecting two portals from different rooms sharing the same space. - </description> - </method> - <method name="set_disable_distance"> - <argument index="0" name="distance" type="float"> - </argument> - <description> - Set the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). - </description> - </method> - <method name="set_disabled_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - When the portal goes beyond the disable distance (see [method set_disable_distance]), it becomes opaque and displayed with color "color". - </description> - </method> - <method name="set_enabled"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Enable the portal (it is enabled by default though), disabling it will cause the parent [VisualInstance] to not be visible any longer when looking through the portal. - </description> - </method> - <method name="set_shape"> - <argument index="0" name="points" type="PoolVector2Array"> - </argument> - <description> - Set the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. - </description> - </method> - </methods> - <constants> - </constants> -</class> <class name="Position2D" inherits="Node2D" category="Core"> <brief_description> Generic 2D Position hint for editing. @@ -35814,6 +39563,8 @@ </description> </method> <method name="set_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> @@ -35864,30 +39615,40 @@ </description> </method> <method name="set_left_to_right"> + <return type="void"> + </return> <argument index="0" name="left_to_right" type="float"> </argument> <description> </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector3"> </argument> <description> </description> </method> <method name="set_subdivide_depth"> + <return type="void"> + </return> <argument index="0" name="segments" type="int"> </argument> <description> </description> </method> <method name="set_subdivide_height"> + <return type="void"> + </return> <argument index="0" name="segments" type="int"> </argument> <description> </description> </method> <method name="set_subdivide_width"> + <return type="void"> + </return> <argument index="0" name="segments" type="int"> </argument> <description> @@ -35897,7 +39658,7 @@ <members> <member name="left_to_right" type="float" setter="set_left_to_right" getter="get_left_to_right" brief=""> </member> - <member name="size" type="Vector2" setter="set_size" getter="get_size" brief=""> + <member name="size" type="Vector3" setter="set_size" getter="get_size" brief=""> </member> <member name="subdivide_depth" type="int" setter="set_subdivide_depth" getter="get_subdivide_depth" brief=""> </member> @@ -36012,97 +39773,129 @@ </description> </method> <method name="set_ground_bottom_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_ground_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_ground_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_ground_horizon_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_sky_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_sky_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_sky_horizon_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_sky_top_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_sun_angle_max"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_sun_angle_min"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_sun_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_sun_curve"> + <return type="void"> + </return> <argument index="0" name="curve" type="float"> </argument> <description> </description> </method> <method name="set_sun_energy"> + <return type="void"> + </return> <argument index="0" name="energy" type="float"> </argument> <description> </description> </method> <method name="set_sun_latitude"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_sun_longitude"> + <return type="void"> + </return> <argument index="0" name="degrees" type="float"> </argument> <description> </description> </method> <method name="set_texture_size"> - <argument index="0" name="size" type="int"> + <return type="void"> + </return> + <argument index="0" name="size" type="int" enum="ProceduralSky.TextureSize"> </argument> <description> </description> @@ -36139,10 +39932,22 @@ </member> <member name="sun_longitude" type="float" setter="set_sun_longitude" getter="get_sun_longitude" brief=""> </member> - <member name="texture_size" type="int" setter="set_texture_size" getter="get_texture_size" brief=""> + <member name="texture_size" type="int" setter="set_texture_size" getter="get_texture_size" brief="" enum="ProceduralSky.TextureSize"> </member> </members> <constants> + <constant name="TEXTURE_SIZE_256" value="0"> + </constant> + <constant name="TEXTURE_SIZE_512" value="1"> + </constant> + <constant name="TEXTURE_SIZE_1024" value="2"> + </constant> + <constant name="TEXTURE_SIZE_2048" value="3"> + </constant> + <constant name="TEXTURE_SIZE_4096" value="4"> + </constant> + <constant name="TEXTURE_SIZE_MAX" value="5"> + </constant> </constants> </class> <class name="ProgressBar" inherits="Range" category="Core"> @@ -36160,6 +39965,8 @@ </description> </method> <method name="set_percent_visible"> + <return type="void"> + </return> <argument index="0" name="visible" type="bool"> </argument> <description> @@ -36185,6 +39992,160 @@ </theme_item> </theme_items> </class> +<class name="ProjectSettings" inherits="Object" category="Core"> + <brief_description> + Contains global variables accessible from everywhere. + </brief_description> + <description> + Contains global variables accessible from everywhere. Use the normal [Object] API, such as "ProjectSettings.get(variable)", "ProjectSettings.set(variable,value)" or "ProjectSettings.has(variable)" to access them. Variables stored in project.godot are also loaded into ProjectSettings, making this object very useful for reading custom game configuration options. + </description> + <methods> + <method name="add_property_info"> + <return type="void"> + </return> + <argument index="0" name="hint" type="Dictionary"> + </argument> + <description> + Add a custom property info to a property. The dictionary must contain: name:[String](the name of the property) and type:[int](see TYPE_* in [@Global Scope]), and optionally hint:[int](see PROPERTY_HINT_* in [@Global Scope]), hint_string:[String]. + Example: + [codeblock] + ProjectSettings.set("category/property_name", 0) + + var property_info = { + "name": "category/property_name", + "type": TYPE_INT, + "hint": PROPERTY_HINT_ENUM, + "hint_string": "one,two,three" + } + + ProjectSettings.add_property_info(property_info) + [/codeblock] + </description> + </method> + <method name="clear"> + <return type="void"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + Clear the whole configuration (not recommended, may break things). + </description> + </method> + <method name="get_order" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + Return the order of a configuration value (influences when saved to the config file). + </description> + </method> + <method name="get_singleton" qualifiers="const"> + <return type="Object"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </method> + <method name="globalize_path" qualifiers="const"> + <return type="String"> + </return> + <argument index="0" name="path" type="String"> + </argument> + <description> + Convert a localized path (res://) to a full native OS path. + </description> + </method> + <method name="has" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + Return true if a configuration value is present. + </description> + </method> + <method name="has_singleton" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </method> + <method name="load_resource_pack"> + <return type="bool"> + </return> + <argument index="0" name="pack" type="String"> + </argument> + <description> + </description> + </method> + <method name="localize_path" qualifiers="const"> + <return type="String"> + </return> + <argument index="0" name="path" type="String"> + </argument> + <description> + Convert a path to a localized path (res:// path). + </description> + </method> + <method name="property_can_revert"> + <return type="bool"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </method> + <method name="property_get_revert"> + <return type="Variant"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <description> + </description> + </method> + <method name="save"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="save_custom"> + <return type="int"> + </return> + <argument index="0" name="file" type="String"> + </argument> + <description> + </description> + </method> + <method name="set_initial_value"> + <return type="void"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <argument index="1" name="value" type="Variant"> + </argument> + <description> + </description> + </method> + <method name="set_order"> + <return type="void"> + </return> + <argument index="0" name="name" type="String"> + </argument> + <argument index="1" name="pos" type="int"> + </argument> + <description> + Set the order of a configuration value (influences when saved to the config file). + </description> + </method> + </methods> + <constants> + </constants> +</class> <class name="ProximityGroup" inherits="Spatial" category="Core"> <brief_description> General purpose proximity-detection node. @@ -36194,6 +40155,8 @@ </description> <methods> <method name="broadcast"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="parameters" type="Variant"> @@ -36208,18 +40171,24 @@ </description> </method> <method name="set_dispatch_mode"> + <return type="void"> + </return> <argument index="0" name="mode" type="int"> </argument> <description> </description> </method> <method name="set_grid_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="Vector3"> </argument> <description> </description> </method> <method name="set_group_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -36486,6 +40455,8 @@ </description> </method> <method name="set_as_ratio"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -36493,18 +40464,24 @@ </description> </method> <method name="set_exp_ratio"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_max"> + <return type="void"> + </return> <argument index="0" name="maximum" type="float"> </argument> <description> </description> </method> <method name="set_min"> + <return type="void"> + </return> <argument index="0" name="minimum" type="float"> </argument> <description> @@ -36512,6 +40489,8 @@ </description> </method> <method name="set_page"> + <return type="void"> + </return> <argument index="0" name="pagesize" type="float"> </argument> <description> @@ -36519,6 +40498,8 @@ </description> </method> <method name="set_step"> + <return type="void"> + </return> <argument index="0" name="step" type="float"> </argument> <description> @@ -36526,24 +40507,32 @@ </description> </method> <method name="set_use_rounded_values"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_value"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> </description> </method> <method name="share"> - <argument index="0" name="with" type="Object"> + <return type="void"> + </return> + <argument index="0" name="with" type="Node"> </argument> <description> </description> </method> <method name="unshare"> + <return type="void"> + </return> <description> </description> </method> @@ -36596,6 +40585,8 @@ </description> <methods> <method name="add_exception"> + <return type="void"> + </return> <argument index="0" name="node" type="Object"> </argument> <description> @@ -36603,17 +40594,23 @@ </description> </method> <method name="add_exception_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> </description> </method> <method name="clear_exceptions"> + <return type="void"> + </return> <description> Removes all collision exception for this ray. </description> </method> <method name="force_raycast_update"> + <return type="void"> + </return> <description> Updates the collision information in case if this object's properties changed during the current frame (for example position, rotation or the cast_point). Note, [code]set_enabled[/code] is not required for this to work. </description> @@ -36682,6 +40679,8 @@ </description> </method> <method name="remove_exception"> + <return type="void"> + </return> <argument index="0" name="node" type="Object"> </argument> <description> @@ -36689,12 +40688,16 @@ </description> </method> <method name="remove_exception_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> </description> </method> <method name="set_cast_to"> + <return type="void"> + </return> <argument index="0" name="local_point" type="Vector3"> </argument> <description> @@ -36702,6 +40705,8 @@ </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -36709,6 +40714,8 @@ </description> </method> <method name="set_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -36716,6 +40723,8 @@ </description> </method> <method name="set_type_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -36751,6 +40760,8 @@ </description> <methods> <method name="add_exception"> + <return type="void"> + </return> <argument index="0" name="node" type="Object"> </argument> <description> @@ -36758,17 +40769,23 @@ </description> </method> <method name="add_exception_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> </description> </method> <method name="clear_exceptions"> + <return type="void"> + </return> <description> Removes all collision exception for this ray. </description> </method> <method name="force_raycast_update"> + <return type="void"> + </return> <description> Updates the collision information in case if this object's properties changed during the current frame (for example position, rotation or the cast_point). Note, [code]set_enabled[/code] is not required for this to work. </description> @@ -36844,6 +40861,8 @@ </description> </method> <method name="remove_exception"> + <return type="void"> + </return> <argument index="0" name="node" type="Object"> </argument> <description> @@ -36851,12 +40870,16 @@ </description> </method> <method name="remove_exception_rid"> + <return type="void"> + </return> <argument index="0" name="rid" type="RID"> </argument> <description> </description> </method> <method name="set_cast_to"> + <return type="void"> + </return> <argument index="0" name="local_point" type="Vector2"> </argument> <description> @@ -36864,6 +40887,8 @@ </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -36871,6 +40896,8 @@ </description> </method> <method name="set_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -36878,6 +40905,8 @@ </description> </method> <method name="set_exclude_parent_body"> + <return type="void"> + </return> <argument index="0" name="mask" type="bool"> </argument> <description> @@ -36885,6 +40914,8 @@ </description> </method> <method name="set_type_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -36920,6 +40951,8 @@ </description> </method> <method name="set_length"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> @@ -36949,6 +40982,8 @@ </description> </method> <method name="set_length"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> @@ -37326,6 +41361,8 @@ </description> </method> <method name="set_extents"> + <return type="void"> + </return> <argument index="0" name="extents" type="Vector2"> </argument> <description> @@ -37355,6 +41392,8 @@ </description> </method> <method name="reference"> + <return type="void"> + </return> <description> Increase the internal reference counter. Use this only if you really know what you are doing. </description> @@ -37465,73 +41504,97 @@ </description> </method> <method name="set_as_interior"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_cull_mask"> + <return type="void"> + </return> <argument index="0" name="layers" type="int"> </argument> <description> </description> </method> <method name="set_enable_box_projection"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_enable_shadows"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_extents"> + <return type="void"> + </return> <argument index="0" name="extents" type="Vector3"> </argument> <description> </description> </method> <method name="set_intensity"> + <return type="void"> + </return> <argument index="0" name="intensity" type="float"> </argument> <description> </description> </method> <method name="set_interior_ambient"> + <return type="void"> + </return> <argument index="0" name="ambient" type="Color"> </argument> <description> </description> </method> <method name="set_interior_ambient_energy"> + <return type="void"> + </return> <argument index="0" name="ambient_energy" type="float"> </argument> <description> </description> </method> <method name="set_interior_ambient_probe_contribution"> + <return type="void"> + </return> <argument index="0" name="ambient_probe_contribution" type="float"> </argument> <description> </description> </method> <method name="set_max_distance"> + <return type="void"> + </return> <argument index="0" name="max_distance" type="float"> </argument> <description> </description> </method> <method name="set_origin_offset"> + <return type="void"> + </return> <argument index="0" name="origin_offset" type="Vector3"> </argument> <description> </description> </method> <method name="set_update_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="ReflectionProbe.UpdateMode"> </argument> <description> </description> @@ -37544,7 +41607,7 @@ </member> <member name="enable_shadows" type="bool" setter="set_enable_shadows" getter="are_shadows_enabled" brief=""> </member> - <member name="extents" type="Vector2" setter="set_extents" getter="get_extents" brief=""> + <member name="extents" type="Vector3" setter="set_extents" getter="get_extents" brief=""> </member> <member name="intensity" type="float" setter="set_intensity" getter="get_intensity" brief=""> </member> @@ -37558,9 +41621,9 @@ </member> <member name="max_distance" type="float" setter="set_max_distance" getter="get_max_distance" brief=""> </member> - <member name="origin_offset" type="Vector2" setter="set_origin_offset" getter="get_origin_offset" brief=""> + <member name="origin_offset" type="Vector3" setter="set_origin_offset" getter="get_origin_offset" brief=""> </member> - <member name="update_mode" type="int" setter="set_update_mode" getter="get_update_mode" brief=""> + <member name="update_mode" type="int" setter="set_update_mode" getter="get_update_mode" brief="" enum="ReflectionProbe.UpdateMode"> </member> </members> <constants> @@ -37570,7 +41633,7 @@ </constant> </constants> </class> -<class name="RegEx" inherits="Resource" category="Core"> +<class name="RegEx" inherits="Reference" category="Core"> <brief_description> Simple regular expression matcher. </brief_description> @@ -37602,6 +41665,8 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> This method resets the state of the object, as it was freshly created. Namely, it unassigns the regular expression of this object. </description> @@ -37646,11 +41711,11 @@ <method name="search" qualifiers="const"> <return type="RegExMatch"> </return> - <argument index="0" name="text" type="String"> + <argument index="0" name="subject" type="String"> </argument> - <argument index="1" name="start" type="int" default="0"> + <argument index="1" name="offset" type="int" default="0"> </argument> - <argument index="2" name="end" type="int" default="-1"> + <argument index="2" name="end" type="int" default="null"> </argument> <description> Searches the text for the compiled pattern. Returns a [RegExMatch] container of the first matching reult if found, otherwise null. The region to search within can be specified without modifying where the start and end anchor would be. @@ -37659,25 +41724,21 @@ <method name="sub" qualifiers="const"> <return type="String"> </return> - <argument index="0" name="text" type="String"> + <argument index="0" name="subject" type="String"> </argument> <argument index="1" name="replacement" type="String"> </argument> <argument index="2" name="all" type="bool" default="false"> </argument> - <argument index="3" name="start" type="int" default="0"> + <argument index="3" name="offset" type="int" default="null"> </argument> - <argument index="4" name="end" type="int" default="-1"> + <argument index="4" name="end" type="int" default="null"> </argument> <description> Searches the text for the compiled pattern and replaces it with the specified string. Escapes and backreferences such as [code]\1[/code] and [code]\g<name>[/code] expanded and resolved. By default only the first instance is replaced but it can be changed for all instances (global replacement). The region to search within can be specified without modifying where the start and end anchor would be. </description> </method> </methods> - <members> - <member name="pattern" type="String" setter="compile" getter="get_pattern" brief=""> - </member> - </members> <constants> </constants> </class> @@ -37687,15 +41748,6 @@ <description> </description> <methods> - <method name="expand" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="template" type="String"> - </argument> - <description> - Using results from the search, returns the specified string with escapes and backreferences such as [code]\1[/code] and [code]\g<name>[/code] expanded and resolved. - </description> - </method> <method name="get_end" qualifiers="const"> <return type="int"> </return> @@ -37705,13 +41757,6 @@ Returns the end position of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn't found or doesn't exist. Defaults to 0 (whole pattern). </description> </method> - <method name="get_group_array" qualifiers="const"> - <return type="Array"> - </return> - <description> - Returns an array of the results of the numeric groups. - </description> - </method> <method name="get_group_count" qualifiers="const"> <return type="int"> </return> @@ -37719,15 +41764,8 @@ Returns the number of numeric capturing groups. </description> </method> - <method name="get_name_dict" qualifiers="const"> - <return type="Dictionary"> - </return> - <description> - Returns a dictionary containing the named capturing groups and their results. - </description> - </method> <method name="get_names" qualifiers="const"> - <return type="Array"> + <return type="Dictionary"> </return> <description> Returns an array of names of named capturing groups. @@ -37751,6 +41789,18 @@ Returns the result of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn't found or doesn't exist. Defaults to 0 (whole pattern). </description> </method> + <method name="get_strings" qualifiers="const"> + <return type="Array"> + </return> + <description> + </description> + </method> + <method name="get_subject" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> </methods> <constants> </constants> @@ -37792,30 +41842,40 @@ </description> </method> <method name="set_remote_node"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> </description> </method> <method name="set_update_position"> + <return type="void"> + </return> <argument index="0" name="update_remote_position" type="bool"> </argument> <description> </description> </method> <method name="set_update_rotation"> + <return type="void"> + </return> <argument index="0" name="update_remote_rotation" type="bool"> </argument> <description> </description> </method> <method name="set_update_scale"> + <return type="void"> + </return> <argument index="0" name="update_remote_scale" type="bool"> </argument> <description> </description> </method> <method name="set_use_global_coordinates"> + <return type="void"> + </return> <argument index="0" name="use_global_coordinates" type="bool"> </argument> <description> @@ -37874,30 +41934,40 @@ </description> </method> <method name="set_remote_node"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> </description> </method> <method name="set_update_position"> + <return type="void"> + </return> <argument index="0" name="update_remote_position" type="bool"> </argument> <description> </description> </method> <method name="set_update_rotation"> + <return type="void"> + </return> <argument index="0" name="update_remote_rotation" type="bool"> </argument> <description> </description> </method> <method name="set_update_scale"> + <return type="void"> + </return> <argument index="0" name="update_remote_scale" type="bool"> </argument> <description> </description> </method> <method name="set_use_global_coordinates"> + <return type="void"> + </return> <argument index="0" name="use_global_coordinates" type="bool"> </argument> <description> @@ -37928,11 +41998,13 @@ </description> <methods> <method name="_setup_local_to_scene" qualifiers="virtual"> + <return type="void"> + </return> <description> </description> </method> <method name="duplicate" qualifiers="const"> - <return type="Object"> + <return type="Resource"> </return> <argument index="0" name="subresources" type="bool" default="false"> </argument> @@ -37973,12 +42045,16 @@ </description> </method> <method name="set_local_to_scene"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -37986,6 +42062,8 @@ </description> </method> <method name="set_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -37993,10 +42071,14 @@ </description> </method> <method name="setup_local_to_scene"> + <return type="void"> + </return> <description> </description> </method> <method name="take_over_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -38050,7 +42132,7 @@ </description> <methods> <method name="get_resource"> - <return type="Object"> + <return type="Resource"> </return> <description> Return the loaded resource (only if loaded). Otherwise, returns null. @@ -38127,7 +42209,7 @@ </argument> <argument index="1" name="type_hint" type="String" default=""""> </argument> - <argument index="2" name="p_no_cache" type="bool" default="false"> + <argument index="2" name="p_no_cache" type="bool" default="null"> </argument> <description> </description> @@ -38137,13 +42219,15 @@ </return> <argument index="0" name="path" type="String"> </argument> - <argument index="1" name="type_hint" type="String" default=""""> + <argument index="1" name="type_hint" type="String" default="null"> </argument> <description> Load a resource interactively, the returned object allows to load with high granularity. </description> </method> <method name="set_abort_on_missing_resources"> + <return type="void"> + </return> <argument index="0" name="abort" type="bool"> </argument> <description> @@ -38163,16 +42247,17 @@ </description> <methods> <method name="add_resource"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="resource" type="Object"> + <argument index="1" name="resource" type="Resource"> </argument> <description> - Add a resource to the preloader. Set the text-id that will be used to identify it (retrieve it/erase it/etc). </description> </method> <method name="get_resource" qualifiers="const"> - <return type="Object"> + <return type="Resource"> </return> <argument index="0" name="name" type="String"> </argument> @@ -38197,6 +42282,8 @@ </description> </method> <method name="remove_resource"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -38204,6 +42291,8 @@ </description> </method> <method name="rename_resource"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="newname" type="String"> @@ -38231,7 +42320,7 @@ <method name="get_recognized_extensions"> <return type="PoolStringArray"> </return> - <argument index="0" name="type" type="Object"> + <argument index="0" name="type" type="Resource"> </argument> <description> Return the list of extensions available for saving a resource of a given type. @@ -38244,7 +42333,7 @@ </argument> <argument index="1" name="resource" type="Resource"> </argument> - <argument index="2" name="flags" type="int" default="0"> + <argument index="2" name="flags" type="int" default="null"> </argument> <description> Save a resource to disk, to a given path. @@ -38275,12 +42364,16 @@ </description> <methods> <method name="add_image"> + <return type="void"> + </return> <argument index="0" name="image" type="Texture"> </argument> <description> </description> </method> <method name="add_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -38295,6 +42388,8 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> </description> </method> @@ -38373,6 +42468,8 @@ </description> </method> <method name="newline"> + <return type="void"> + </return> <description> </description> </method> @@ -38385,104 +42482,138 @@ </description> </method> <method name="pop"> + <return type="void"> + </return> <description> </description> </method> <method name="push_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="RichTextLabel.Align"> </argument> <description> </description> </method> <method name="push_cell"> + <return type="void"> + </return> <description> </description> </method> <method name="push_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="push_font"> + <return type="void"> + </return> <argument index="0" name="font" type="Font"> </argument> <description> </description> </method> <method name="push_indent"> + <return type="void"> + </return> <argument index="0" name="level" type="int"> </argument> <description> </description> </method> <method name="push_list"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="RichTextLabel.ListType"> </argument> <description> </description> </method> <method name="push_meta"> + <return type="void"> + </return> <argument index="0" name="data" type="Variant"> </argument> <description> </description> </method> <method name="push_table"> + <return type="void"> + </return> <argument index="0" name="columns" type="int"> </argument> <description> </description> </method> <method name="push_underline"> + <return type="void"> + </return> <description> </description> </method> <method name="remove_line"> <return type="bool"> </return> - <argument index="0" name="arg0" type="int"> + <argument index="0" name="line" type="int"> </argument> <description> </description> </method> <method name="scroll_to_line"> + <return type="void"> + </return> <argument index="0" name="line" type="int"> </argument> <description> </description> </method> <method name="set_bbcode"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> </description> </method> <method name="set_meta_underline"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_percent_visible"> + <return type="void"> + </return> <argument index="0" name="percent_visible" type="float"> </argument> <description> </description> </method> <method name="set_scroll_active"> + <return type="void"> + </return> <argument index="0" name="active" type="bool"> </argument> <description> </description> </method> <method name="set_scroll_follow"> + <return type="void"> + </return> <argument index="0" name="follow" type="bool"> </argument> <description> </description> </method> <method name="set_selection_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -38490,12 +42621,16 @@ </description> </method> <method name="set_tab_size"> + <return type="void"> + </return> <argument index="0" name="spaces" type="int"> </argument> <description> </description> </method> <method name="set_table_column_expand"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="expand" type="bool"> @@ -38506,18 +42641,24 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> </description> </method> <method name="set_use_bbcode"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_visible_characters"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -38616,6 +42757,8 @@ </description> <methods> <method name="_integrate_forces" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="state" type="PhysicsDirectBodyState"> </argument> <description> @@ -38623,6 +42766,8 @@ </description> </method> <method name="apply_impulse"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector3"> </argument> <argument index="1" name="impulse" type="Vector3"> @@ -38758,6 +42903,8 @@ </description> </method> <method name="set_angular_damp"> + <return type="void"> + </return> <argument index="0" name="angular_damp" type="float"> </argument> <description> @@ -38765,6 +42912,8 @@ </description> </method> <method name="set_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="angular_velocity" type="Vector3"> </argument> <description> @@ -38772,13 +42921,17 @@ </description> </method> <method name="set_axis_lock"> - <argument index="0" name="axis_lock" type="int"> + <return type="void"> + </return> + <argument index="0" name="axis_lock" type="int" enum="RigidBody.AxisLock"> </argument> <description> Set the axis lock of the body, from the AXIS_LOCK_* enum. Axis lock stops the body from moving along the specified axis(X/Y/Z) and rotating along the other two axes. </description> </method> <method name="set_axis_velocity"> + <return type="void"> + </return> <argument index="0" name="axis_velocity" type="Vector3"> </argument> <description> @@ -38786,6 +42939,8 @@ </description> </method> <method name="set_bounce"> + <return type="void"> + </return> <argument index="0" name="bounce" type="float"> </argument> <description> @@ -38793,6 +42948,8 @@ </description> </method> <method name="set_can_sleep"> + <return type="void"> + </return> <argument index="0" name="able_to_sleep" type="bool"> </argument> <description> @@ -38801,6 +42958,8 @@ </description> </method> <method name="set_contact_monitor"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -38808,6 +42967,8 @@ </description> </method> <method name="set_friction"> + <return type="void"> + </return> <argument index="0" name="friction" type="float"> </argument> <description> @@ -38815,6 +42976,8 @@ </description> </method> <method name="set_gravity_scale"> + <return type="void"> + </return> <argument index="0" name="gravity_scale" type="float"> </argument> <description> @@ -38822,6 +42985,8 @@ </description> </method> <method name="set_linear_damp"> + <return type="void"> + </return> <argument index="0" name="linear_damp" type="float"> </argument> <description> @@ -38829,6 +42994,8 @@ </description> </method> <method name="set_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="linear_velocity" type="Vector3"> </argument> <description> @@ -38836,6 +43003,8 @@ </description> </method> <method name="set_mass"> + <return type="void"> + </return> <argument index="0" name="mass" type="float"> </argument> <description> @@ -38843,6 +43012,8 @@ </description> </method> <method name="set_max_contacts_reported"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -38850,13 +43021,17 @@ </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="RigidBody.Mode"> </argument> <description> Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. </description> </method> <method name="set_sleeping"> + <return type="void"> + </return> <argument index="0" name="sleeping" type="bool"> </argument> <description> @@ -38864,6 +43039,8 @@ </description> </method> <method name="set_use_continuous_collision_detection"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -38872,6 +43049,8 @@ </description> </method> <method name="set_use_custom_integrator"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -38879,6 +43058,8 @@ </description> </method> <method name="set_weight"> + <return type="void"> + </return> <argument index="0" name="weight" type="float"> </argument> <description> @@ -38891,7 +43072,7 @@ </member> <member name="angular_velocity" type="Vector3" setter="set_angular_velocity" getter="get_angular_velocity" brief=""> </member> - <member name="axis_lock" type="int" setter="set_axis_lock" getter="get_axis_lock" brief=""> + <member name="axis_lock" type="int" setter="set_axis_lock" getter="get_axis_lock" brief="" enum="RigidBody.AxisLock"> </member> <member name="bounce" type="float" setter="set_bounce" getter="get_bounce" brief=""> </member> @@ -38915,7 +43096,7 @@ </member> <member name="mass" type="float" setter="set_mass" getter="get_mass" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="RigidBody.Mode"> </member> <member name="sleeping" type="bool" setter="set_sleeping" getter="is_sleeping" brief=""> </member> @@ -38997,6 +43178,8 @@ </description> <methods> <method name="_integrate_forces" qualifiers="virtual"> + <return type="void"> + </return> <argument index="0" name="state" type="Physics2DDirectBodyState"> </argument> <description> @@ -39004,6 +43187,8 @@ </description> </method> <method name="add_force"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <argument index="1" name="force" type="Vector2"> @@ -39013,6 +43198,8 @@ </description> </method> <method name="apply_impulse"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <argument index="1" name="impulse" type="Vector2"> @@ -39162,6 +43349,8 @@ </description> </method> <method name="set_angular_damp"> + <return type="void"> + </return> <argument index="0" name="angular_damp" type="float"> </argument> <description> @@ -39169,6 +43358,8 @@ </description> </method> <method name="set_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="angular_velocity" type="float"> </argument> <description> @@ -39176,6 +43367,8 @@ </description> </method> <method name="set_applied_force"> + <return type="void"> + </return> <argument index="0" name="force" type="Vector2"> </argument> <description> @@ -39183,6 +43376,8 @@ </description> </method> <method name="set_applied_torque"> + <return type="void"> + </return> <argument index="0" name="torque" type="float"> </argument> <description> @@ -39190,6 +43385,8 @@ </description> </method> <method name="set_axis_velocity"> + <return type="void"> + </return> <argument index="0" name="axis_velocity" type="Vector2"> </argument> <description> @@ -39197,6 +43394,8 @@ </description> </method> <method name="set_bounce"> + <return type="void"> + </return> <argument index="0" name="bounce" type="float"> </argument> <description> @@ -39204,6 +43403,8 @@ </description> </method> <method name="set_can_sleep"> + <return type="void"> + </return> <argument index="0" name="able_to_sleep" type="bool"> </argument> <description> @@ -39212,6 +43413,8 @@ </description> </method> <method name="set_contact_monitor"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -39219,7 +43422,9 @@ </description> </method> <method name="set_continuous_collision_detection_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="RigidBody2D.CCDMode"> </argument> <description> Set the continuous collision detection mode from the enum CCD_MODE_*. @@ -39227,6 +43432,8 @@ </description> </method> <method name="set_friction"> + <return type="void"> + </return> <argument index="0" name="friction" type="float"> </argument> <description> @@ -39234,6 +43441,8 @@ </description> </method> <method name="set_gravity_scale"> + <return type="void"> + </return> <argument index="0" name="gravity_scale" type="float"> </argument> <description> @@ -39241,6 +43450,8 @@ </description> </method> <method name="set_inertia"> + <return type="void"> + </return> <argument index="0" name="inertia" type="float"> </argument> <description> @@ -39248,6 +43459,8 @@ </description> </method> <method name="set_linear_damp"> + <return type="void"> + </return> <argument index="0" name="linear_damp" type="float"> </argument> <description> @@ -39255,6 +43468,8 @@ </description> </method> <method name="set_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="linear_velocity" type="Vector2"> </argument> <description> @@ -39262,6 +43477,8 @@ </description> </method> <method name="set_mass"> + <return type="void"> + </return> <argument index="0" name="mass" type="float"> </argument> <description> @@ -39269,6 +43486,8 @@ </description> </method> <method name="set_max_contacts_reported"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -39276,13 +43495,17 @@ </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="RigidBody2D.Mode"> </argument> <description> Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. </description> </method> <method name="set_sleeping"> + <return type="void"> + </return> <argument index="0" name="sleeping" type="bool"> </argument> <description> @@ -39290,6 +43513,8 @@ </description> </method> <method name="set_use_custom_integrator"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -39297,6 +43522,8 @@ </description> </method> <method name="set_weight"> + <return type="void"> + </return> <argument index="0" name="weight" type="float"> </argument> <description> @@ -39310,7 +43537,7 @@ </argument> <argument index="1" name="margin" type="float" default="0.08"> </argument> - <argument index="2" name="result" type="Physics2DTestMotionResult" default="NULL"> + <argument index="2" name="result" type="Physics2DTestMotionResult" default="null"> </argument> <description> Return whether the body would collide, if it tried to move in the given vector. This method allows two extra parameters: A margin, which increases slightly the size of the shapes involved in the collision detection, and an object of type [Physics2DTestMotionResult], which will store additional information about the collision (should there be one). @@ -39330,7 +43557,7 @@ </member> <member name="contacts_reported" type="int" setter="set_max_contacts_reported" getter="get_max_contacts_reported" brief=""> </member> - <member name="continuous_cd" type="int" setter="set_continuous_collision_detection_mode" getter="get_continuous_collision_detection_mode" brief=""> + <member name="continuous_cd" type="int" setter="set_continuous_collision_detection_mode" getter="get_continuous_collision_detection_mode" brief="" enum="RigidBody2D.CCDMode"> </member> <member name="custom_integrator" type="bool" setter="set_use_custom_integrator" getter="is_using_custom_integrator" brief=""> </member> @@ -39344,7 +43571,7 @@ </member> <member name="mass" type="float" setter="set_mass" getter="get_mass" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="RigidBody2D.Mode"> </member> <member name="sleeping" type="bool" setter="set_sleeping" getter="is_sleeping" brief=""> </member> @@ -39424,60 +43651,6 @@ </constant> </constants> </class> -<class name="Room" inherits="VisualInstance" category="Core"> - <brief_description> - Room data resource. - </brief_description> - <description> - Room contains the data to define the bounds of a scene (using a BSP Tree). It is instanced by a [VisualInstance] node to create rooms. See that class documentation for more information about rooms. - </description> - <methods> - <method name="get_room" qualifiers="const"> - <return type="Room"> - </return> - <description> - </description> - </method> - <method name="set_room"> - <argument index="0" name="room" type="Room"> - </argument> - <description> - </description> - </method> - </methods> - <members> - <member name="room/room" type="Area" setter="set_room" getter="get_room" brief=""> - </member> - </members> - <constants> - </constants> -</class> -<class name="RoomBounds" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_geometry_hint" qualifiers="const"> - <return type="PoolVector3Array"> - </return> - <description> - </description> - </method> - <method name="set_geometry_hint"> - <argument index="0" name="triangles" type="PoolVector3Array"> - </argument> - <description> - </description> - </method> - </methods> - <members> - <member name="geometry_hint" type="PoolVector3Array" setter="set_geometry_hint" getter="get_geometry_hint" brief=""> - </member> - </members> - <constants> - </constants> -</class> <class name="SceneState" inherits="Reference" category="Core"> <brief_description> </brief_description> @@ -39589,7 +43762,7 @@ </return> <argument index="0" name="idx" type="int"> </argument> - <argument index="1" name="for_parent" type="bool" default="false"> + <argument index="1" name="for_parent" type="bool" default="null"> </argument> <description> </description> @@ -39655,6 +43828,8 @@ </description> <methods> <method name="call_group" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="group" type="String"> </argument> <argument index="1" name="method" type="String"> @@ -39663,6 +43838,8 @@ </description> </method> <method name="call_group_flags" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="flags" type="int"> </argument> <argument index="1" name="group" type="String"> @@ -39693,7 +43870,7 @@ </return> <argument index="0" name="time_sec" type="float"> </argument> - <argument index="1" name="pause_mode_process" type="bool" default="true"> + <argument index="1" name="pause_mode_process" type="bool" default="null"> </argument> <description> </description> @@ -39705,7 +43882,7 @@ </description> </method> <method name="get_edited_scene_root" qualifiers="const"> - <return type="Object"> + <return type="Node"> </return> <description> </description> @@ -39748,6 +43925,12 @@ <description> </description> </method> + <method name="get_rpc_sender_id" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="has_group" qualifiers="const"> <return type="bool"> </return> @@ -39775,12 +43958,6 @@ <description> </description> </method> - <method name="is_editor_hint" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> <method name="is_input_handled"> <return type="bool"> </return> @@ -39807,14 +43984,18 @@ </description> </method> <method name="notify_group"> - <argument index="0" name="call_flags" type="String"> + <return type="void"> + </return> + <argument index="0" name="group" type="String"> </argument> - <argument index="1" name="group" type="int"> + <argument index="1" name="notification" type="int"> </argument> <description> </description> </method> <method name="notify_group_flags"> + <return type="void"> + </return> <argument index="0" name="call_flags" type="int"> </argument> <argument index="1" name="group" type="String"> @@ -39825,12 +44006,16 @@ </description> </method> <method name="queue_delete"> + <return type="void"> + </return> <argument index="0" name="obj" type="Object"> </argument> <description> </description> </method> <method name="quit"> + <return type="void"> + </return> <description> </description> </method> @@ -39841,52 +44026,60 @@ </description> </method> <method name="set_auto_accept_quit"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_current_scene"> + <return type="void"> + </return> <argument index="0" name="child_node" type="Node"> </argument> <description> </description> </method> <method name="set_debug_collisions_hint"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_debug_navigation_hint"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_edited_scene_root"> - <argument index="0" name="scene" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_editor_hint"> - <argument index="0" name="enable" type="bool"> + <return type="void"> + </return> + <argument index="0" name="scene" type="Node"> </argument> <description> </description> </method> <method name="set_group"> - <argument index="0" name="call_flags" type="String"> + <return type="void"> + </return> + <argument index="0" name="group" type="String"> </argument> - <argument index="1" name="group" type="String"> + <argument index="1" name="property" type="String"> </argument> - <argument index="2" name="property" type="Variant"> + <argument index="2" name="value" type="Variant"> </argument> <description> </description> </method> <method name="set_group_flags"> + <return type="void"> + </return> <argument index="0" name="call_flags" type="int"> </argument> <argument index="1" name="group" type="String"> @@ -39899,10 +44092,14 @@ </description> </method> <method name="set_input_as_handled"> + <return type="void"> + </return> <description> </description> </method> <method name="set_network_peer"> + <return type="void"> + </return> <argument index="0" name="peer" type="NetworkedMultiplayerPeer"> </argument> <description> @@ -39910,24 +44107,32 @@ </description> </method> <method name="set_pause"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_refuse_new_network_connections"> + <return type="void"> + </return> <argument index="0" name="refuse" type="bool"> </argument> <description> </description> </method> <method name="set_screen_stretch"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="SceneTree.StretchMode"> </argument> - <argument index="1" name="aspect" type="int"> + <argument index="1" name="aspect" type="int" enum="SceneTree.StretchAspect"> </argument> <argument index="2" name="minsize" type="Vector2"> </argument> + <argument index="3" name="shrink" type="int" default="null"> + </argument> <description> </description> </method> @@ -40032,6 +44237,8 @@ </description> </method> <method name="set_time_left"> + <return type="void"> + </return> <argument index="0" name="time" type="float"> </argument> <description> @@ -40062,6 +44269,12 @@ Return true if this script can be instance (ie not a library). </description> </method> + <method name="get_node_type" qualifiers="const"> + <return type="String"> + </return> + <description> + </description> + </method> <method name="get_source_code" qualifiers="const"> <return type="String"> </return> @@ -40069,6 +44282,14 @@ Return the script source code (if available). </description> </method> + <method name="has_script_signal" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="signal_name" type="String"> + </argument> + <description> + </description> + </method> <method name="has_source_code" qualifiers="const"> <return type="bool"> </return> @@ -40085,6 +44306,12 @@ Return true if a given object uses an instance of this script. </description> </method> + <method name="is_tool" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="reload"> <return type="int"> </return> @@ -40094,6 +44321,8 @@ </description> </method> <method name="set_source_code"> + <return type="void"> + </return> <argument index="0" name="source" type="String"> </argument> <description> @@ -40104,6 +44333,46 @@ <constants> </constants> </class> +<class name="ScriptEditor" inherits="PanelContainer" category="Core"> + <brief_description> + </brief_description> + <description> + </description> + <methods> + <method name="get_current_script"> + <return type="Script"> + </return> + <description> + Returns a [Script] that is currently active in editor. + </description> + </method> + <method name="get_open_scripts" qualifiers="const"> + <return type="Array"> + </return> + <description> + Returns an array with all [Script] objects which are currently open in editor. + </description> + </method> + </methods> + <signals> + <signal name="editor_script_changed"> + <argument index="0" name="script" type="Object"> + </argument> + <description> + Emitted when user changed active script. Argument is a freshly activated [Script]. + </description> + </signal> + <signal name="script_close"> + <argument index="0" name="script" type="Object"> + </argument> + <description> + Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed. + </description> + </signal> + </signals> + <constants> + </constants> +</class> <class name="ScrollBar" inherits="Range" category="Core"> <brief_description> Base class for scroll bars. @@ -40119,6 +44388,8 @@ </description> </method> <method name="set_custom_step"> + <return type="void"> + </return> <argument index="0" name="step" type="float"> </argument> <description> @@ -40129,6 +44400,12 @@ <member name="custom_step" type="float" setter="set_custom_step" getter="get_custom_step" brief=""> </member> </members> + <signals> + <signal name="scrolling"> + <description> + </description> + </signal> + </signals> <constants> </constants> </class> @@ -40169,6 +44446,8 @@ </description> </method> <method name="set_enable_h_scroll"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -40176,6 +44455,8 @@ </description> </method> <method name="set_enable_v_scroll"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -40183,6 +44464,8 @@ </description> </method> <method name="set_h_scroll"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -40190,6 +44473,8 @@ </description> </method> <method name="set_v_scroll"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -40206,44 +44491,6 @@ <constants> </constants> </class> -<class name="ScriptEditor" inherits="PanelContainer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_current_script"> - <return type="Script"> - </return> - <description> - Returns a [Script] that is currently active in editor. - </description> - </method> - <method name="get_open_scripts"> - <return type="Array"> - </return> - <description> - Returns an array with all [Script] objects which are currently open in editor. - </description> - </method> - </methods> - <signals> - <signal name="editor_script_changed"> - <argument index="0" name="script" type="Script"> - </argument> - <description> - Emitted when user changed active script. Argument is a freshly activated [Script]. - </description> - </signal> - <signal name="script_close"> - <argument index="0" name="script" type="Script"> - </argument> - <description> - Emitted when editor is about to close the active script. Argument is a [Script] that is going to be closed. - </description> - </signal> - </signals> -</class> <class name="SegmentShape2D" inherits="Shape2D" category="Core"> <brief_description> Segment Shape for 2D Collision Detection. @@ -40267,6 +44514,8 @@ </description> </method> <method name="set_a"> + <return type="void"> + </return> <argument index="0" name="a" type="Vector2"> </argument> <description> @@ -40274,6 +44523,8 @@ </description> </method> <method name="set_b"> + <return type="void"> + </return> <argument index="0" name="b" type="Vector2"> </argument> <description> @@ -40299,14 +44550,14 @@ </description> <methods> <method name="post"> - <return type="Error"> + <return type="int"> </return> <description> Lowers the [Semaphore], allowing one more thread in. </description> </method> <method name="wait"> - <return type="Error"> + <return type="int"> </return> <description> Tries to wait for the [Semaphore], if its value is zero, blocks until non-zero. @@ -40365,12 +44616,16 @@ </description> </method> <method name="set_code"> + <return type="void"> + </return> <argument index="0" name="code" type="String"> </argument> <description> </description> </method> <method name="set_default_texture_param"> + <return type="void"> + </return> <argument index="0" name="param" type="String"> </argument> <argument index="1" name="texture" type="Texture"> @@ -40413,12 +44668,16 @@ </description> </method> <method name="set_shader"> + <return type="void"> + </return> <argument index="0" name="shader" type="Shader"> </argument> <description> </description> </method> <method name="set_shader_param"> + <return type="void"> + </return> <argument index="0" name="param" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -40520,6 +44779,8 @@ </description> </method> <method name="set_custom_solver_bias"> + <return type="void"> + </return> <argument index="0" name="bias" type="float"> </argument> <description> @@ -40568,6 +44829,8 @@ </description> </method> <method name="set_shortcut"> + <return type="void"> + </return> <argument index="0" name="event" type="InputEvent"> </argument> <description> @@ -40590,6 +44853,8 @@ </description> <methods> <method name="add_bone"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -40597,6 +44862,8 @@ </description> </method> <method name="bind_child_node_to_bone"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="node" type="Node"> @@ -40606,6 +44873,8 @@ </description> </method> <method name="clear_bones"> + <return type="void"> + </return> <description> Clear all the bones in this skeleton. </description> @@ -40704,6 +44973,8 @@ </description> </method> <method name="set_bone_custom_pose"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="custom_pose" type="Transform"> @@ -40712,6 +44983,8 @@ </description> </method> <method name="set_bone_disable_rest"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="disable" type="bool"> @@ -40720,6 +44993,8 @@ </description> </method> <method name="set_bone_global_pose"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="pose" type="Transform"> @@ -40728,6 +45003,8 @@ </description> </method> <method name="set_bone_parent"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="parent_idx" type="int"> @@ -40737,6 +45014,8 @@ </description> </method> <method name="set_bone_pose"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="pose" type="Transform"> @@ -40746,6 +45025,8 @@ </description> </method> <method name="set_bone_rest"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="rest" type="Transform"> @@ -40755,6 +45036,8 @@ </description> </method> <method name="unbind_child_node_from_bone"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <argument index="1" name="node" type="Node"> @@ -40764,6 +45047,8 @@ </description> </method> <method name="unparent_bone_and_rest"> + <return type="void"> + </return> <argument index="0" name="bone_idx" type="int"> </argument> <description> @@ -40771,7 +45056,7 @@ </method> </methods> <constants> - <constant name="NOTIFICATION_UPDATE_SKELETON" value="50"> + <constant name="NOTIFICATION_UPDATE_SKELETON" value="50" enum=""> </constant> </constants> </class> @@ -40788,26 +45073,34 @@ </description> </method> <method name="set_radiance_size"> - <argument index="0" name="size" type="int"> + <return type="void"> + </return> + <argument index="0" name="size" type="int" enum="Sky.RadianceSize"> </argument> <description> </description> </method> </methods> <members> - <member name="radiance_size" type="int" setter="set_radiance_size" getter="get_radiance_size" brief=""> + <member name="radiance_size" type="int" setter="set_radiance_size" getter="get_radiance_size" brief="" enum="Sky.RadianceSize"> </member> </members> <constants> - <constant name="RADIANCE_SIZE_256" value="0"> + <constant name="RADIANCE_SIZE_32" value="0"> + </constant> + <constant name="RADIANCE_SIZE_64" value="1"> + </constant> + <constant name="RADIANCE_SIZE_128" value="2"> </constant> - <constant name="RADIANCE_SIZE_512" value="1"> + <constant name="RADIANCE_SIZE_256" value="3"> </constant> - <constant name="RADIANCE_SIZE_1024" value="2"> + <constant name="RADIANCE_SIZE_512" value="4"> </constant> - <constant name="RADIANCE_SIZE_2048" value="3"> + <constant name="RADIANCE_SIZE_1024" value="5"> </constant> - <constant name="RADIANCE_SIZE_MAX" value="4"> + <constant name="RADIANCE_SIZE_2048" value="6"> + </constant> + <constant name="RADIANCE_SIZE_MAX" value="7"> </constant> </constants> </class> @@ -40840,12 +45133,16 @@ </description> </method> <method name="set_editable"> + <return type="void"> + </return> <argument index="0" name="editable" type="bool"> </argument> <description> </description> </method> <method name="set_ticks"> + <return type="void"> + </return> <argument index="0" name="count" type="int"> </argument> <description> @@ -40853,6 +45150,8 @@ </description> </method> <method name="set_ticks_on_borders"> + <return type="void"> + </return> <argument index="0" name="ticks_on_border" type="bool"> </argument> <description> @@ -40863,7 +45162,7 @@ <members> <member name="editable" type="bool" setter="set_editable" getter="is_editable" brief=""> </member> - <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" brief=""> + <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" brief="" enum="Control.FocusMode"> </member> <member name="tick_count" type="int" setter="set_ticks" getter="get_ticks" brief=""> </member> @@ -40882,13 +45181,15 @@ <method name="get_param" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="param" type="int"> + <argument index="0" name="param" type="int" enum="SliderJoint.Param"> </argument> <description> </description> </method> <method name="set_param"> - <argument index="0" name="param" type="int"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="SliderJoint.Param"> </argument> <argument index="1" name="value" type="float"> </argument> @@ -41013,7 +45314,7 @@ </description> </method> <method name="get_parent_spatial" qualifiers="const"> - <return type="Object"> + <return type="Spatial"> </return> <description> Return the parent [Spatial], or an empty [Object] if no parent exists or parent is not of type [Spatial]. @@ -41059,6 +45360,8 @@ </description> </method> <method name="global_rotate"> + <return type="void"> + </return> <argument index="0" name="normal" type="Vector3"> </argument> <argument index="1" name="radians" type="float"> @@ -41067,12 +45370,16 @@ </description> </method> <method name="global_translate"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector3"> </argument> <description> </description> </method> <method name="hide"> + <return type="void"> + </return> <description> </description> </method> @@ -41107,6 +45414,8 @@ </description> </method> <method name="look_at"> + <return type="void"> + </return> <argument index="0" name="target" type="Vector3"> </argument> <argument index="1" name="up" type="Vector3"> @@ -41115,6 +45424,8 @@ </description> </method> <method name="look_at_from_pos"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector3"> </argument> <argument index="1" name="target" type="Vector3"> @@ -41125,10 +45436,14 @@ </description> </method> <method name="orthonormalize"> + <return type="void"> + </return> <description> </description> </method> <method name="rotate"> + <return type="void"> + </return> <argument index="0" name="normal" type="Vector3"> </argument> <argument index="1" name="radians" type="float"> @@ -41137,36 +45452,48 @@ </description> </method> <method name="rotate_x"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> </description> </method> <method name="rotate_y"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> </description> </method> <method name="rotate_z"> + <return type="void"> + </return> <argument index="0" name="radians" type="float"> </argument> <description> </description> </method> <method name="set_as_toplevel"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_gizmo"> + <return type="void"> + </return> <argument index="0" name="gizmo" type="SpatialGizmo"> </argument> <description> </description> </method> <method name="set_global_transform"> + <return type="void"> + </return> <argument index="0" name="global" type="Transform"> </argument> <description> @@ -41174,28 +45501,38 @@ </description> </method> <method name="set_identity"> + <return type="void"> + </return> <description> </description> </method> <method name="set_ignore_transform_notification"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_notify_local_transform"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_notify_transform"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_rotation"> + <return type="void"> + </return> <argument index="0" name="rotation_rad" type="Vector3"> </argument> <description> @@ -41203,6 +45540,8 @@ </description> </method> <method name="set_rotation_deg"> + <return type="void"> + </return> <argument index="0" name="rotation_deg" type="Vector3"> </argument> <description> @@ -41210,12 +45549,16 @@ </description> </method> <method name="set_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector3"> </argument> <description> </description> </method> <method name="set_transform"> + <return type="void"> + </return> <argument index="0" name="local" type="Transform"> </argument> <description> @@ -41223,28 +45566,54 @@ </description> </method> <method name="set_translation"> + <return type="void"> + </return> <argument index="0" name="translation" type="Vector3"> </argument> <description> </description> </method> <method name="set_visible"> - <argument index="0" name="arg0" type="bool"> + <return type="void"> + </return> + <argument index="0" name="visible" type="bool"> </argument> <description> </description> </method> <method name="show"> + <return type="void"> + </return> + <description> + </description> + </method> + <method name="to_global" qualifiers="const"> + <return type="Vector3"> + </return> + <argument index="0" name="local_point" type="Vector3"> + </argument> + <description> + </description> + </method> + <method name="to_local" qualifiers="const"> + <return type="Vector3"> + </return> + <argument index="0" name="global_point" type="Vector3"> + </argument> <description> </description> </method> <method name="translate"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector3"> </argument> <description> </description> </method> <method name="update_gizmo"> + <return type="void"> + </return> <description> </description> </method> @@ -41272,14 +45641,14 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29"> + <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29" enum=""> Spatial nodes receive this notification with their global transform changes. This means that either the current or a parent node changed its transform. </constant> - <constant name="NOTIFICATION_ENTER_WORLD" value="41"> + <constant name="NOTIFICATION_ENTER_WORLD" value="41" enum=""> </constant> - <constant name="NOTIFICATION_EXIT_WORLD" value="42"> + <constant name="NOTIFICATION_EXIT_WORLD" value="42" enum=""> </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="43"> + <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="43" enum=""> </constant> </constants> </class> @@ -41305,12 +45674,24 @@ <description> </description> </method> + <method name="get_alpha_scissor_threshold" qualifiers="const"> + <return type="float"> + </return> + <description> + </description> + </method> <method name="get_anisotropy" qualifiers="const"> <return type="float"> </return> <description> </description> </method> + <method name="get_ao_texture_channel" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_billboard_mode" qualifiers="const"> <return type="int"> </return> @@ -41398,7 +45779,7 @@ <method name="get_feature" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="feature" type="int"> + <argument index="0" name="feature" type="int" enum="SpatialMaterial.Feature"> </argument> <description> </description> @@ -41406,7 +45787,7 @@ <method name="get_flag" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="arg0" type="int"> + <argument index="0" name="flag" type="int" enum="SpatialMaterial.Flags"> </argument> <description> </description> @@ -41429,6 +45810,12 @@ <description> </description> </method> + <method name="get_metallic_texture_channel" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_normal_scale" qualifiers="const"> <return type="float"> </return> @@ -41465,6 +45852,12 @@ <description> </description> </method> + <method name="get_refraction_texture_channel" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_rim" qualifiers="const"> <return type="float"> </return> @@ -41483,6 +45876,12 @@ <description> </description> </method> + <method name="get_roughness_texture_channel" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_specular" qualifiers="const"> <return type="float"> </return> @@ -41504,7 +45903,7 @@ <method name="get_texture" qualifiers="const"> <return type="Texture"> </return> - <argument index="0" name="param" type="Texture"> + <argument index="0" name="param" type="int" enum="SpatialMaterial.TextureParam"> </argument> <description> </description> @@ -41558,109 +45957,161 @@ </description> </method> <method name="set_albedo"> + <return type="void"> + </return> <argument index="0" name="albedo" type="Color"> </argument> <description> </description> </method> + <method name="set_alpha_scissor_threshold"> + <return type="void"> + </return> + <argument index="0" name="threshold" type="float"> + </argument> + <description> + </description> + </method> <method name="set_anisotropy"> + <return type="void"> + </return> <argument index="0" name="anisotropy" type="float"> </argument> <description> </description> </method> + <method name="set_ao_texture_channel"> + <return type="void"> + </return> + <argument index="0" name="channel" type="int" enum="SpatialMaterial.TextureChannel"> + </argument> + <description> + </description> + </method> <method name="set_billboard_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="SpatialMaterial.BillboardMode"> </argument> <description> </description> </method> <method name="set_blend_mode"> - <argument index="0" name="blend_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="blend_mode" type="int" enum="SpatialMaterial.BlendMode"> </argument> <description> </description> </method> <method name="set_clearcoat"> + <return type="void"> + </return> <argument index="0" name="clearcoat" type="float"> </argument> <description> </description> </method> <method name="set_clearcoat_gloss"> + <return type="void"> + </return> <argument index="0" name="clearcoat_gloss" type="float"> </argument> <description> </description> </method> <method name="set_cull_mode"> - <argument index="0" name="cull_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="cull_mode" type="int" enum="SpatialMaterial.CullMode"> </argument> <description> </description> </method> <method name="set_depth_deep_parallax"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_depth_deep_parallax_max_layers"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> </description> </method> <method name="set_depth_deep_parallax_min_layers"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> </description> </method> <method name="set_depth_draw_mode"> - <argument index="0" name="depth_draw_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="depth_draw_mode" type="int" enum="SpatialMaterial.DepthDrawMode"> </argument> <description> </description> </method> <method name="set_depth_scale"> + <return type="void"> + </return> <argument index="0" name="depth_scale" type="float"> </argument> <description> </description> </method> <method name="set_detail_blend_mode"> - <argument index="0" name="detail_blend_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="detail_blend_mode" type="int" enum="SpatialMaterial.BlendMode"> </argument> <description> </description> </method> <method name="set_detail_uv"> - <argument index="0" name="detail_uv" type="int"> + <return type="void"> + </return> + <argument index="0" name="detail_uv" type="int" enum="SpatialMaterial.DetailUV"> </argument> <description> </description> </method> <method name="set_diffuse_mode"> - <argument index="0" name="diffuse_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="diffuse_mode" type="int" enum="SpatialMaterial.DiffuseMode"> </argument> <description> </description> </method> <method name="set_emission"> + <return type="void"> + </return> <argument index="0" name="emission" type="Color"> </argument> <description> </description> </method> <method name="set_emission_energy"> + <return type="void"> + </return> <argument index="0" name="emission_energy" type="float"> </argument> <description> </description> </method> <method name="set_feature"> - <argument index="0" name="feature" type="int"> + <return type="void"> + </return> + <argument index="0" name="feature" type="int" enum="SpatialMaterial.Feature"> </argument> <argument index="1" name="enable" type="bool"> </argument> @@ -41668,7 +46119,9 @@ </description> </method> <method name="set_flag"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="SpatialMaterial.Flags"> </argument> <argument index="1" name="enable" type="bool"> </argument> @@ -41676,140 +46129,210 @@ </description> </method> <method name="set_grow"> + <return type="void"> + </return> <argument index="0" name="amount" type="float"> </argument> <description> </description> </method> <method name="set_grow_enabled"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_line_width"> + <return type="void"> + </return> <argument index="0" name="line_width" type="float"> </argument> <description> </description> </method> <method name="set_metallic"> + <return type="void"> + </return> <argument index="0" name="metallic" type="float"> </argument> <description> </description> </method> + <method name="set_metallic_texture_channel"> + <return type="void"> + </return> + <argument index="0" name="channel" type="int" enum="SpatialMaterial.TextureChannel"> + </argument> + <description> + </description> + </method> <method name="set_normal_scale"> + <return type="void"> + </return> <argument index="0" name="normal_scale" type="float"> </argument> <description> </description> </method> <method name="set_particles_anim_h_frames"> + <return type="void"> + </return> <argument index="0" name="frames" type="int"> </argument> <description> </description> </method> <method name="set_particles_anim_loop"> + <return type="void"> + </return> <argument index="0" name="frames" type="int"> </argument> <description> </description> </method> <method name="set_particles_anim_v_frames"> + <return type="void"> + </return> <argument index="0" name="frames" type="int"> </argument> <description> </description> </method> <method name="set_point_size"> + <return type="void"> + </return> <argument index="0" name="point_size" type="float"> </argument> <description> </description> </method> <method name="set_refraction"> + <return type="void"> + </return> <argument index="0" name="refraction" type="float"> </argument> <description> </description> </method> + <method name="set_refraction_texture_channel"> + <return type="void"> + </return> + <argument index="0" name="channel" type="int" enum="SpatialMaterial.TextureChannel"> + </argument> + <description> + </description> + </method> <method name="set_rim"> + <return type="void"> + </return> <argument index="0" name="rim" type="float"> </argument> <description> </description> </method> <method name="set_rim_tint"> + <return type="void"> + </return> <argument index="0" name="rim_tint" type="float"> </argument> <description> </description> </method> <method name="set_roughness"> + <return type="void"> + </return> <argument index="0" name="roughness" type="float"> </argument> <description> </description> </method> + <method name="set_roughness_texture_channel"> + <return type="void"> + </return> + <argument index="0" name="channel" type="int" enum="SpatialMaterial.TextureChannel"> + </argument> + <description> + </description> + </method> <method name="set_specular"> + <return type="void"> + </return> <argument index="0" name="specular" type="float"> </argument> <description> </description> </method> <method name="set_specular_mode"> - <argument index="0" name="specular_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="specular_mode" type="int" enum="SpatialMaterial.SpecularMode"> </argument> <description> </description> </method> <method name="set_subsurface_scattering_strength"> + <return type="void"> + </return> <argument index="0" name="strength" type="float"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="param" type="Texture"> + <return type="void"> + </return> + <argument index="0" name="param" type="int" enum="SpatialMaterial.TextureParam"> </argument> - <argument index="1" name="texture" type="Object"> + <argument index="1" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_uv1_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector3"> </argument> <description> </description> </method> <method name="set_uv1_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector3"> </argument> <description> </description> </method> <method name="set_uv1_triplanar_blend_sharpness"> + <return type="void"> + </return> <argument index="0" name="sharpness" type="float"> </argument> <description> </description> </method> <method name="set_uv2_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector3"> </argument> <description> </description> </method> <method name="set_uv2_scale"> + <return type="void"> + </return> <argument index="0" name="scale" type="Vector3"> </argument> <description> </description> </method> <method name="set_uv2_triplanar_blend_sharpness"> + <return type="void"> + </return> <argument index="0" name="sharpness" type="float"> </argument> <description> @@ -41833,6 +46356,8 @@ </member> <member name="ao_texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> + <member name="ao_texture_channel" type="int" setter="set_ao_texture_channel" getter="get_ao_texture_channel" brief="" enum="SpatialMaterial.TextureChannel"> + </member> <member name="clearcoat" type="float" setter="set_clearcoat" getter="get_clearcoat" brief=""> </member> <member name="clearcoat_enabled" type="bool" setter="set_feature" getter="get_feature" brief=""> @@ -41855,7 +46380,7 @@ </member> <member name="detail_albedo" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> - <member name="detail_blend_mode" type="int" setter="set_detail_blend_mode" getter="get_detail_blend_mode" brief=""> + <member name="detail_blend_mode" type="int" setter="set_detail_blend_mode" getter="get_detail_blend_mode" brief="" enum="SpatialMaterial.BlendMode"> </member> <member name="detail_enabled" type="bool" setter="set_feature" getter="get_feature" brief=""> </member> @@ -41863,7 +46388,7 @@ </member> <member name="detail_normal" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> - <member name="detail_uv_layer" type="int" setter="set_detail_uv" getter="get_detail_uv" brief=""> + <member name="detail_uv_layer" type="int" setter="set_detail_uv" getter="get_detail_uv" brief="" enum="SpatialMaterial.DetailUV"> </member> <member name="emission" type="Color" setter="set_emission" getter="get_emission" brief=""> </member> @@ -41875,7 +46400,7 @@ </member> <member name="flags_fixed_size" type="bool" setter="set_flag" getter="get_flag" brief=""> </member> - <member name="flags_on_top" type="bool" setter="set_flag" getter="get_flag" brief=""> + <member name="flags_no_depth_test" type="bool" setter="set_flag" getter="get_flag" brief=""> </member> <member name="flags_transparent" type="bool" setter="set_feature" getter="get_feature" brief=""> </member> @@ -41883,27 +46408,33 @@ </member> <member name="flags_use_point_size" type="bool" setter="set_flag" getter="get_flag" brief=""> </member> + <member name="flags_vertex_lighting" type="bool" setter="set_flag" getter="get_flag" brief=""> + </member> <member name="metallic" type="float" setter="set_metallic" getter="get_metallic" brief=""> </member> <member name="metallic_specular" type="float" setter="set_specular" getter="get_specular" brief=""> </member> <member name="metallic_texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> + <member name="metallic_texture_channel" type="int" setter="set_metallic_texture_channel" getter="get_metallic_texture_channel" brief="" enum="SpatialMaterial.TextureChannel"> + </member> <member name="normal_enabled" type="bool" setter="set_feature" getter="get_feature" brief=""> </member> <member name="normal_scale" type="float" setter="set_normal_scale" getter="get_normal_scale" brief=""> </member> <member name="normal_texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> - <member name="params_billboard_mode" type="int" setter="set_billboard_mode" getter="get_billboard_mode" brief=""> + <member name="params_alpha_scissor_threshold" type="float" setter="set_alpha_scissor_threshold" getter="get_alpha_scissor_threshold" brief=""> + </member> + <member name="params_billboard_mode" type="int" setter="set_billboard_mode" getter="get_billboard_mode" brief="" enum="SpatialMaterial.BillboardMode"> </member> - <member name="params_blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" brief=""> + <member name="params_blend_mode" type="int" setter="set_blend_mode" getter="get_blend_mode" brief="" enum="SpatialMaterial.BlendMode"> </member> - <member name="params_cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" brief=""> + <member name="params_cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" brief="" enum="SpatialMaterial.CullMode"> </member> - <member name="params_depth_draw_mode" type="int" setter="set_depth_draw_mode" getter="get_depth_draw_mode" brief=""> + <member name="params_depth_draw_mode" type="int" setter="set_depth_draw_mode" getter="get_depth_draw_mode" brief="" enum="SpatialMaterial.DepthDrawMode"> </member> - <member name="params_diffuse_mode" type="int" setter="set_diffuse_mode" getter="get_diffuse_mode" brief=""> + <member name="params_diffuse_mode" type="int" setter="set_diffuse_mode" getter="get_diffuse_mode" brief="" enum="SpatialMaterial.DiffuseMode"> </member> <member name="params_grow" type="bool" setter="set_grow_enabled" getter="is_grow_enabled" brief=""> </member> @@ -41913,11 +46444,13 @@ </member> <member name="params_point_size" type="float" setter="set_point_size" getter="get_point_size" brief=""> </member> - <member name="params_specular_mode" type="int" setter="set_specular_mode" getter="get_specular_mode" brief=""> + <member name="params_specular_mode" type="int" setter="set_specular_mode" getter="get_specular_mode" brief="" enum="SpatialMaterial.SpecularMode"> + </member> + <member name="params_use_alpha_scissor" type="bool" setter="set_flag" getter="get_flag" brief=""> </member> <member name="particles_anim_h_frames" type="int" setter="set_particles_anim_h_frames" getter="get_particles_anim_h_frames" brief=""> </member> - <member name="particles_anim_loop" type="bool" setter="set_particles_anim_loop" getter="get_particles_anim_loop" brief=""> + <member name="particles_anim_loop" type="int" setter="set_particles_anim_loop" getter="get_particles_anim_loop" brief=""> </member> <member name="particles_anim_v_frames" type="int" setter="set_particles_anim_v_frames" getter="get_particles_anim_v_frames" brief=""> </member> @@ -41927,6 +46460,8 @@ </member> <member name="refraction_texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> + <member name="refraction_texture_channel" type="int" setter="set_refraction_texture_channel" getter="get_refraction_texture_channel" brief="" enum="SpatialMaterial.TextureChannel"> + </member> <member name="rim" type="float" setter="set_rim" getter="get_rim" brief=""> </member> <member name="rim_enabled" type="bool" setter="set_feature" getter="get_feature" brief=""> @@ -41939,6 +46474,8 @@ </member> <member name="roughness_texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> + <member name="roughness_texture_channel" type="int" setter="set_roughness_texture_channel" getter="get_roughness_texture_channel" brief="" enum="SpatialMaterial.TextureChannel"> + </member> <member name="subsurf_scatter_enabled" type="bool" setter="set_feature" getter="get_feature" brief=""> </member> <member name="subsurf_scatter_strength" type="float" setter="set_subsurface_scattering_strength" getter="get_subsurface_scattering_strength" brief=""> @@ -42051,17 +46588,27 @@ </constant> <constant name="FLAG_UNSHADED" value="0"> </constant> - <constant name="FLAG_ONTOP" value="1"> + <constant name="FLAG_USE_VERTEX_LIGHTING" value="1"> + </constant> + <constant name="FLAG_DISABLE_DEPTH_TEST" value="2"> + </constant> + <constant name="FLAG_ALBEDO_FROM_VERTEX_COLOR" value="3"> + </constant> + <constant name="FLAG_SRGB_VERTEX_COLOR" value="4"> + </constant> + <constant name="FLAG_USE_POINT_SIZE" value="5"> </constant> - <constant name="FLAG_ALBEDO_FROM_VERTEX_COLOR" value="2"> + <constant name="FLAG_FIXED_SIZE" value="6"> </constant> - <constant name="FLAG_SRGB_VERTEX_COLOR" value="3"> + <constant name="FLAG_UV1_USE_TRIPLANAR" value="7"> </constant> - <constant name="FLAG_USE_POINT_SIZE" value="4"> + <constant name="FLAG_UV2_USE_TRIPLANAR" value="8"> </constant> - <constant name="FLAG_FIXED_SIZE" value="5"> + <constant name="FLAG_AO_ON_UV2" value="9"> </constant> - <constant name="FLAG_MAX" value="9"> + <constant name="FLAG_USE_ALPHA_SCISSOR" value="10"> + </constant> + <constant name="FLAG_MAX" value="11"> </constant> <constant name="DIFFUSE_LAMBERT" value="0"> </constant> @@ -42091,6 +46638,16 @@ </constant> <constant name="BILLBOARD_PARTICLES" value="3"> </constant> + <constant name="TEXTURE_CHANNEL_RED" value="0"> + </constant> + <constant name="TEXTURE_CHANNEL_GREEN" value="1"> + </constant> + <constant name="TEXTURE_CHANNEL_BLUE" value="2"> + </constant> + <constant name="TEXTURE_CHANNEL_ALPHA" value="3"> + </constant> + <constant name="TEXTURE_CHANNEL_GRAYSCALE" value="4"> + </constant> </constants> </class> <class name="SpatialVelocityTracker" inherits="Reference" category="Core"> @@ -42112,18 +46669,24 @@ </description> </method> <method name="reset"> + <return type="void"> + </return> <argument index="0" name="position" type="Vector3"> </argument> <description> </description> </method> <method name="set_track_fixed_step"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="update_position"> + <return type="void"> + </return> <argument index="0" name="position" type="Vector3"> </argument> <description> @@ -42170,30 +46733,40 @@ </description> </method> <method name="set_height"> + <return type="void"> + </return> <argument index="0" name="height" type="float"> </argument> <description> </description> </method> <method name="set_is_hemisphere"> + <return type="void"> + </return> <argument index="0" name="is_hemisphere" type="bool"> </argument> <description> </description> </method> <method name="set_radial_segments"> + <return type="void"> + </return> <argument index="0" name="radial_segments" type="int"> </argument> <description> </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> </description> </method> <method name="set_rings"> + <return type="void"> + </return> <argument index="0" name="rings" type="int"> </argument> <description> @@ -42228,6 +46801,8 @@ </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="radius" type="float"> </argument> <description> @@ -42250,7 +46825,7 @@ </description> <methods> <method name="get_line_edit"> - <return type="Object"> + <return type="LineEdit"> </return> <description> </description> @@ -42276,6 +46851,8 @@ </description> </method> <method name="set_editable"> + <return type="void"> + </return> <argument index="0" name="editable" type="bool"> </argument> <description> @@ -42283,6 +46860,8 @@ </description> </method> <method name="set_prefix"> + <return type="void"> + </return> <argument index="0" name="prefix" type="String"> </argument> <description> @@ -42290,6 +46869,8 @@ </description> </method> <method name="set_suffix"> + <return type="void"> + </return> <argument index="0" name="suffix" type="String"> </argument> <description> @@ -42342,6 +46923,8 @@ </description> </method> <method name="set_collapsed"> + <return type="void"> + </return> <argument index="0" name="collapsed" type="bool"> </argument> <description> @@ -42349,13 +46932,17 @@ </description> </method> <method name="set_dragger_visibility"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="SplitContainer.DraggerVisibility"> </argument> <description> Set visibility of the split dragger ([i]mode[/i] must be one of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]). </description> </method> <method name="set_split_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="int"> </argument> <description> @@ -42366,7 +46953,7 @@ <members> <member name="collapsed" type="bool" setter="set_collapsed" getter="is_collapsed" brief=""> </member> - <member name="dragger_visibility" type="int" setter="set_dragger_visibility" getter="get_dragger_visibility" brief=""> + <member name="dragger_visibility" type="int" setter="set_dragger_visibility" getter="get_dragger_visibility" brief="" enum="SplitContainer.DraggerVisibility"> </member> <member name="split_offset" type="int" setter="set_split_offset" getter="get_split_offset" brief=""> </member> @@ -42505,6 +47092,8 @@ </description> </method> <method name="set_centered"> + <return type="void"> + </return> <argument index="0" name="centered" type="bool"> </argument> <description> @@ -42512,6 +47101,8 @@ </description> </method> <method name="set_flip_h"> + <return type="void"> + </return> <argument index="0" name="flip_h" type="bool"> </argument> <description> @@ -42519,6 +47110,8 @@ </description> </method> <method name="set_flip_v"> + <return type="void"> + </return> <argument index="0" name="flip_v" type="bool"> </argument> <description> @@ -42526,6 +47119,8 @@ </description> </method> <method name="set_frame"> + <return type="void"> + </return> <argument index="0" name="frame" type="int"> </argument> <description> @@ -42533,6 +47128,8 @@ </description> </method> <method name="set_hframes"> + <return type="void"> + </return> <argument index="0" name="hframes" type="int"> </argument> <description> @@ -42540,12 +47137,16 @@ </description> </method> <method name="set_normal_map"> + <return type="void"> + </return> <argument index="0" name="normal_map" type="Texture"> </argument> <description> </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> @@ -42553,6 +47154,8 @@ </description> </method> <method name="set_region"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -42560,12 +47163,16 @@ </description> </method> <method name="set_region_filter_clip"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_region_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> @@ -42573,6 +47180,8 @@ </description> </method> <method name="set_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> @@ -42580,6 +47189,8 @@ </description> </method> <method name="set_vframes"> + <return type="void"> + </return> <argument index="0" name="vframes" type="int"> </argument> <description> @@ -42669,36 +47280,48 @@ </description> </method> <method name="set_frame"> + <return type="void"> + </return> <argument index="0" name="frame" type="int"> </argument> <description> </description> </method> <method name="set_hframes"> + <return type="void"> + </return> <argument index="0" name="hframes" type="int"> </argument> <description> </description> </method> <method name="set_region"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_region_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> </description> </method> <method name="set_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_vframes"> + <return type="void"> + </return> <argument index="0" name="vframes" type="int"> </argument> <description> @@ -42749,7 +47372,7 @@ <method name="get_draw_flag" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="flag" type="int"> + <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags"> </argument> <description> </description> @@ -42803,25 +47426,33 @@ </description> </method> <method name="set_alpha_cut_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="SpriteBase3D.AlphaCutMode"> </argument> <description> </description> </method> <method name="set_axis"> - <argument index="0" name="axis" type="int"> + <return type="void"> + </return> + <argument index="0" name="axis" type="int" enum="Vector3.Axis"> </argument> <description> </description> </method> <method name="set_centered"> + <return type="void"> + </return> <argument index="0" name="centered" type="bool"> </argument> <description> </description> </method> <method name="set_draw_flag"> - <argument index="0" name="flag" type="int"> + <return type="void"> + </return> + <argument index="0" name="flag" type="int" enum="SpriteBase3D.DrawFlags"> </argument> <argument index="1" name="enabled" type="bool"> </argument> @@ -42829,36 +47460,48 @@ </description> </method> <method name="set_flip_h"> + <return type="void"> + </return> <argument index="0" name="flip_h" type="bool"> </argument> <description> </description> </method> <method name="set_flip_v"> + <return type="void"> + </return> <argument index="0" name="flip_v" type="bool"> </argument> <description> </description> </method> <method name="set_modulate"> + <return type="void"> + </return> <argument index="0" name="modulate" type="Color"> </argument> <description> </description> </method> <method name="set_offset"> + <return type="void"> + </return> <argument index="0" name="offset" type="Vector2"> </argument> <description> </description> </method> <method name="set_opacity"> + <return type="void"> + </return> <argument index="0" name="opacity" type="float"> </argument> <description> </description> </method> <method name="set_pixel_size"> + <return type="void"> + </return> <argument index="0" name="pixel_size" type="float"> </argument> <description> @@ -42866,9 +47509,9 @@ </method> </methods> <members> - <member name="alpha_cut" type="int" setter="set_alpha_cut_mode" getter="get_alpha_cut_mode" brief=""> + <member name="alpha_cut" type="int" setter="set_alpha_cut_mode" getter="get_alpha_cut_mode" brief="" enum="SpriteBase3D.AlphaCutMode"> </member> - <member name="axis" type="int" setter="set_axis" getter="get_axis" brief=""> + <member name="axis" type="int" setter="set_axis" getter="get_axis" brief="" enum="Vector3.Axis"> </member> <member name="centered" type="bool" setter="set_centered" getter="is_centered" brief=""> </member> @@ -42917,28 +47560,36 @@ </description> <methods> <method name="add_animation"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <description> </description> </method> <method name="add_frame"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> - <argument index="1" name="frame" type="Object"> + <argument index="1" name="frame" type="Texture"> </argument> - <argument index="2" name="atpos" type="int" default="-1"> + <argument index="2" name="atpos" type="int" default="null"> </argument> <description> </description> </method> <method name="clear"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <description> </description> </method> <method name="clear_all"> + <return type="void"> + </return> <description> </description> </method> @@ -42959,7 +47610,7 @@ </description> </method> <method name="get_frame" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <argument index="0" name="anim" type="String"> </argument> @@ -42985,12 +47636,16 @@ </description> </method> <method name="remove_animation"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <description> </description> </method> <method name="remove_frame"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <argument index="1" name="idx" type="int"> @@ -42999,6 +47654,8 @@ </description> </method> <method name="rename_animation"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <argument index="1" name="newname" type="String"> @@ -43007,6 +47664,8 @@ </description> </method> <method name="set_animation_loop"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <argument index="1" name="loop" type="bool"> @@ -43015,6 +47674,8 @@ </description> </method> <method name="set_animation_speed"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <argument index="1" name="speed" type="float"> @@ -43023,11 +47684,13 @@ </description> </method> <method name="set_frame"> + <return type="void"> + </return> <argument index="0" name="anim" type="String"> </argument> <argument index="1" name="idx" type="int"> </argument> - <argument index="2" name="txt" type="Object"> + <argument index="2" name="txt" type="Texture"> </argument> <description> </description> @@ -43081,6 +47744,8 @@ </description> </method> <method name="set_bounce"> + <return type="void"> + </return> <argument index="0" name="bounce" type="float"> </argument> <description> @@ -43088,6 +47753,8 @@ </description> </method> <method name="set_constant_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="vel" type="Vector3"> </argument> <description> @@ -43095,6 +47762,8 @@ </description> </method> <method name="set_constant_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="vel" type="Vector3"> </argument> <description> @@ -43102,6 +47771,8 @@ </description> </method> <method name="set_friction"> + <return type="void"> + </return> <argument index="0" name="friction" type="float"> </argument> <description> @@ -43161,6 +47832,8 @@ </description> </method> <method name="set_bounce"> + <return type="void"> + </return> <argument index="0" name="bounce" type="float"> </argument> <description> @@ -43168,6 +47841,8 @@ </description> </method> <method name="set_constant_angular_velocity"> + <return type="void"> + </return> <argument index="0" name="vel" type="float"> </argument> <description> @@ -43175,6 +47850,8 @@ </description> </method> <method name="set_constant_linear_velocity"> + <return type="void"> + </return> <argument index="0" name="vel" type="Vector2"> </argument> <description> @@ -43182,6 +47859,8 @@ </description> </method> <method name="set_friction"> + <return type="void"> + </return> <argument index="0" name="friction" type="float"> </argument> <description> @@ -43338,6 +48017,8 @@ </description> </method> <method name="put_16"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43345,6 +48026,8 @@ </description> </method> <method name="put_32"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43352,6 +48035,8 @@ </description> </method> <method name="put_64"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43359,6 +48044,8 @@ </description> </method> <method name="put_8"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43375,6 +48062,8 @@ </description> </method> <method name="put_double"> + <return type="void"> + </return> <argument index="0" name="val" type="float"> </argument> <description> @@ -43382,6 +48071,8 @@ </description> </method> <method name="put_float"> + <return type="void"> + </return> <argument index="0" name="val" type="float"> </argument> <description> @@ -43398,6 +48089,8 @@ </description> </method> <method name="put_u16"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43405,6 +48098,8 @@ </description> </method> <method name="put_u32"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43412,6 +48107,8 @@ </description> </method> <method name="put_u64"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43419,6 +48116,8 @@ </description> </method> <method name="put_u8"> + <return type="void"> + </return> <argument index="0" name="val" type="int"> </argument> <description> @@ -43426,6 +48125,8 @@ </description> </method> <method name="put_utf8_string"> + <return type="void"> + </return> <argument index="0" name="val" type="String"> </argument> <description> @@ -43433,6 +48134,8 @@ </description> </method> <method name="put_var"> + <return type="void"> + </return> <argument index="0" name="val" type="Variant"> </argument> <description> @@ -43440,6 +48143,8 @@ </description> </method> <method name="set_big_endian"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -43457,6 +48162,8 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> </description> </method> @@ -43485,18 +48192,24 @@ </description> </method> <method name="resize"> + <return type="void"> + </return> <argument index="0" name="size" type="int"> </argument> <description> </description> </method> <method name="seek"> + <return type="void"> + </return> <argument index="0" name="pos" type="int"> </argument> <description> </description> </method> <method name="set_data_array"> + <return type="void"> + </return> <argument index="0" name="data" type="PoolByteArray"> </argument> <description> @@ -43515,7 +48228,7 @@ </description> <methods> <method name="accept_stream"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="stream" type="StreamPeer"> </argument> @@ -43523,19 +48236,21 @@ </description> </method> <method name="connect_to_stream"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="stream" type="StreamPeer"> </argument> <argument index="1" name="validate_certs" type="bool" default="false"> </argument> - <argument index="2" name="for_hostname" type="String" default=""""> + <argument index="2" name="for_hostname" type="String" default="null"> </argument> <description> Connect to a peer using an underlying [StreamPeer] "stream", when "validate_certs" is true, [StreamPeerSSL] will validate that the certificate presented by the peer matches the "for_hostname". </description> </method> <method name="disconnect_from_stream"> + <return type="void"> + </return> <description> Disconnect from host. </description> @@ -43583,6 +48298,8 @@ </description> </method> <method name="disconnect_from_host"> + <return type="void"> + </return> <description> Disconnect from host. </description> @@ -44392,6 +49109,8 @@ </description> <methods> <method name="draw" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="canvas_item" type="RID"> </argument> <argument index="1" name="rect" type="Rect2"> @@ -44408,7 +49127,7 @@ <method name="get_default_margin" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the default offset of the margin "margin" (see MARGIN_* enum) of a StyleBox, Controls that draw styleboxes with context inside need to know the margin, so the border of the stylebox is not occluded. @@ -44417,7 +49136,7 @@ <method name="get_margin" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return the offset of margin "margin" (see MARGIN_* enum). @@ -44438,7 +49157,9 @@ </description> </method> <method name="set_default_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="offset" type="float"> </argument> @@ -44491,6 +49212,12 @@ Stylebox of a single color. Displays the stylebox of a single color, alternatively a border with light/dark colors can be assigned. </description> <methods> + <method name="get_aa_size" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_bg_color" qualifiers="const"> <return type="Color"> </return> @@ -44503,79 +49230,269 @@ <description> </description> </method> - <method name="get_border_size" qualifiers="const"> + <method name="get_border_color" qualifiers="const"> + <return type="Color"> + </return> + <description> + </description> + </method> + <method name="get_border_width" qualifiers="const"> + <return type="int"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> + </argument> + <description> + </description> + </method> + <method name="get_border_width_min" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_corner_detail" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="get_corner_radius" qualifiers="const"> <return type="int"> </return> + <argument index="0" name="corner" type="int" enum="Corner"> + </argument> <description> </description> </method> - <method name="get_dark_color" qualifiers="const"> + <method name="get_expand_margin" qualifiers="const"> + <return type="float"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> + </argument> + <description> + </description> + </method> + <method name="get_shadow_color" qualifiers="const"> <return type="Color"> </return> <description> </description> </method> + <method name="get_shadow_size" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="is_anti_aliased" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="is_draw_center_enabled" qualifiers="const"> <return type="bool"> </return> <description> </description> </method> - <method name="get_light_color" qualifiers="const"> - <return type="Color"> + <method name="set_aa_size"> + <return type="void"> </return> + <argument index="0" name="size" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_anti_aliased"> + <return type="void"> + </return> + <argument index="0" name="anti_aliased" type="bool"> + </argument> <description> </description> </method> <method name="set_bg_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_border_blend"> + <return type="void"> + </return> <argument index="0" name="blend" type="bool"> </argument> <description> </description> </method> - <method name="set_border_size"> - <argument index="0" name="size" type="int"> + <method name="set_border_color"> + <return type="void"> + </return> + <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> - <method name="set_dark_color"> - <argument index="0" name="color" type="Color"> + <method name="set_border_width"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> + </argument> + <argument index="1" name="width" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_border_width_all"> + <return type="void"> + </return> + <argument index="0" name="width" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_corner_detail"> + <return type="void"> + </return> + <argument index="0" name="detail" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_corner_radius"> + <return type="void"> + </return> + <argument index="0" name="corner" type="int" enum="Corner"> + </argument> + <argument index="1" name="radius" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_corner_radius_all"> + <return type="void"> + </return> + <argument index="0" name="radius" type="int"> + </argument> + <description> + </description> + </method> + <method name="set_corner_radius_individual"> + <return type="void"> + </return> + <argument index="0" name="radius_top_left" type="int"> + </argument> + <argument index="1" name="radius_top_right" type="int"> + </argument> + <argument index="2" name="radius_botton_right" type="int"> + </argument> + <argument index="3" name="radius_bottom_left" type="int"> </argument> <description> </description> </method> <method name="set_draw_center"> - <argument index="0" name="size" type="bool"> + <return type="void"> + </return> + <argument index="0" name="draw_center" type="bool"> + </argument> + <description> + </description> + </method> + <method name="set_expand_margin"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> + </argument> + <argument index="1" name="size" type="float"> + </argument> + <description> + </description> + </method> + <method name="set_expand_margin_all"> + <return type="void"> + </return> + <argument index="0" name="size" type="float"> </argument> <description> </description> </method> - <method name="set_light_color"> + <method name="set_expand_margin_individual"> + <return type="void"> + </return> + <argument index="0" name="size_left" type="float"> + </argument> + <argument index="1" name="size_top" type="float"> + </argument> + <argument index="2" name="size_right" type="float"> + </argument> + <argument index="3" name="size_bottom" type="float"> + </argument> + <description> + </description> + </method> + <method name="set_shadow_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> + <method name="set_shadow_size"> + <return type="void"> + </return> + <argument index="0" name="size" type="int"> + </argument> + <description> + </description> + </method> </methods> <members> + <member name="anti_aliasing" type="bool" setter="set_anti_aliased" getter="is_anti_aliased" brief=""> + </member> + <member name="anti_aliasing_size" type="int" setter="set_aa_size" getter="get_aa_size" brief=""> + </member> <member name="bg_color" type="Color" setter="set_bg_color" getter="get_bg_color" brief=""> </member> <member name="border_blend" type="bool" setter="set_border_blend" getter="get_border_blend" brief=""> </member> - <member name="border_size" type="int" setter="set_border_size" getter="get_border_size" brief=""> + <member name="border_color" type="Color" setter="set_border_color" getter="get_border_color" brief=""> + </member> + <member name="border_width_bottom" type="int" setter="set_border_width" getter="get_border_width" brief=""> </member> - <member name="dark_color" type="Color" setter="set_dark_color" getter="get_dark_color" brief=""> + <member name="border_width_left" type="int" setter="set_border_width" getter="get_border_width" brief=""> </member> - <member name="draw_bg" type="bool" setter="set_draw_center" getter="is_draw_center_enabled" brief=""> + <member name="border_width_right" type="int" setter="set_border_width" getter="get_border_width" brief=""> </member> - <member name="light_color" type="Color" setter="set_light_color" getter="get_light_color" brief=""> + <member name="border_width_top" type="int" setter="set_border_width" getter="get_border_width" brief=""> + </member> + <member name="corner_detail" type="int" setter="set_corner_detail" getter="get_corner_detail" brief=""> + </member> + <member name="corner_radius_bottom_left" type="int" setter="set_corner_radius" getter="get_corner_radius" brief=""> + </member> + <member name="corner_radius_bottom_right" type="int" setter="set_corner_radius" getter="get_corner_radius" brief=""> + </member> + <member name="corner_radius_top_left" type="int" setter="set_corner_radius" getter="get_corner_radius" brief=""> + </member> + <member name="corner_radius_top_right" type="int" setter="set_corner_radius" getter="get_corner_radius" brief=""> + </member> + <member name="draw_center" type="bool" setter="set_draw_center" getter="is_draw_center_enabled" brief=""> + </member> + <member name="expand_margin_bottom" type="float" setter="set_expand_margin" getter="get_expand_margin" brief=""> + </member> + <member name="expand_margin_left" type="float" setter="set_expand_margin" getter="get_expand_margin" brief=""> + </member> + <member name="expand_margin_right" type="float" setter="set_expand_margin" getter="get_expand_margin" brief=""> + </member> + <member name="expand_margin_top" type="float" setter="set_expand_margin" getter="get_expand_margin" brief=""> + </member> + <member name="shadow_color" type="Color" setter="set_shadow_color" getter="get_shadow_color" brief=""> + </member> + <member name="shadow_size" type="int" setter="set_shadow_size" getter="get_shadow_size" brief=""> </member> </members> <constants> @@ -44589,24 +49506,24 @@ Texture Based 3x3 scale style. This stylebox performs a 3x3 scaling of a texture, where only the center cell is fully stretched. This allows for the easy creation of bordered styles. </description> <methods> - <method name="is_draw_center_enabled" qualifiers="const"> - <return type="bool"> + <method name="get_expand_margin_size" qualifiers="const"> + <return type="float"> </return> + <argument index="0" name="margin" type="int" enum="Margin"> + </argument> <description> </description> </method> - <method name="get_expand_margin_size" qualifiers="const"> - <return type="float"> + <method name="get_h_axis_stretch_mode" qualifiers="const"> + <return type="int"> </return> - <argument index="0" name="margin" type="int"> - </argument> <description> </description> </method> <method name="get_margin_size" qualifiers="const"> <return type="float"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> </description> @@ -44618,7 +49535,7 @@ </description> </method> <method name="get_normal_map" qualifiers="const"> - <return type="Texture"> + <return type="Resource"> </return> <description> </description> @@ -44630,27 +49547,75 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Texture"> + <return type="Resource"> + </return> + <description> + </description> + </method> + <method name="get_v_axis_stretch_mode" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> + <method name="is_draw_center_enabled" qualifiers="const"> + <return type="bool"> </return> <description> </description> </method> <method name="set_draw_center"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> + <method name="set_expand_margin_all"> + <return type="void"> + </return> + <argument index="0" name="size" type="float"> + </argument> + <description> + </description> + </method> + <method name="set_expand_margin_individual"> + <return type="void"> + </return> + <argument index="0" name="size_left" type="float"> + </argument> + <argument index="1" name="size_top" type="float"> + </argument> + <argument index="2" name="size_right" type="float"> + </argument> + <argument index="3" name="size_bottom" type="float"> + </argument> + <description> + </description> + </method> <method name="set_expand_margin_size"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="size" type="float"> </argument> <description> </description> </method> + <method name="set_h_axis_stretch_mode"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="StyleBoxTexture.AxisStretchMode"> + </argument> + <description> + </description> + </method> <method name="set_margin_size"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <argument index="1" name="size" type="float"> </argument> @@ -44658,31 +49623,51 @@ </description> </method> <method name="set_modulate"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> </description> </method> <method name="set_normal_map"> - <argument index="0" name="normal_map" type="Texture"> + <return type="void"> + </return> + <argument index="0" name="normal_map" type="Resource"> </argument> <description> </description> </method> <method name="set_region_rect"> + <return type="void"> + </return> <argument index="0" name="region" type="Rect2"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Texture"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Resource"> + </argument> + <description> + </description> + </method> + <method name="set_v_axis_stretch_mode"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="StyleBoxTexture.AxisStretchMode"> </argument> <description> </description> </method> </methods> <members> + <member name="axis_stretch_horizontal" type="int" setter="set_h_axis_stretch_mode" getter="get_h_axis_stretch_mode" brief="" enum="StyleBoxTexture.AxisStretchMode"> + </member> + <member name="axis_stretch_vertical" type="int" setter="set_v_axis_stretch_mode" getter="get_v_axis_stretch_mode" brief="" enum="StyleBoxTexture.AxisStretchMode"> + </member> <member name="draw_center" type="bool" setter="set_draw_center" getter="is_draw_center_enabled" brief=""> </member> <member name="expand_margin_bottom" type="float" setter="set_expand_margin_size" getter="get_expand_margin_size" brief=""> @@ -44703,11 +49688,11 @@ </member> <member name="modulate_color" type="Color" setter="set_modulate" getter="get_modulate" brief=""> </member> - <member name="normal_map" type="Texture" setter="set_normal_map" getter="get_normal_map" brief=""> + <member name="normal_map" type="Resource" setter="set_normal_map" getter="get_normal_map" brief=""> </member> <member name="region_rect" type="Rect2" setter="set_region_rect" getter="get_region_rect" brief=""> </member> - <member name="texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> + <member name="texture" type="Resource" setter="set_texture" getter="get_texture" brief=""> </member> </members> <signals> @@ -44717,6 +49702,12 @@ </signal> </signals> <constants> + <constant name="AXIS_STRETCH_MODE_STRETCH" value="0"> + </constant> + <constant name="AXIS_STRETCH_MODE_TILE" value="1"> + </constant> + <constant name="AXIS_STRETCH_MODE_TILE_FIT" value="2"> + </constant> </constants> </class> <class name="SurfaceTool" inherits="Reference" category="Core"> @@ -44737,6 +49728,8 @@ </description> <methods> <method name="add_bones"> + <return type="void"> + </return> <argument index="0" name="bones" type="PoolIntArray"> </argument> <description> @@ -44744,6 +49737,8 @@ </description> </method> <method name="add_color"> + <return type="void"> + </return> <argument index="0" name="color" type="Color"> </argument> <description> @@ -44751,6 +49746,8 @@ </description> </method> <method name="add_index"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> @@ -44758,6 +49755,8 @@ </description> </method> <method name="add_normal"> + <return type="void"> + </return> <argument index="0" name="normal" type="Vector3"> </argument> <description> @@ -44765,6 +49764,8 @@ </description> </method> <method name="add_smooth_group"> + <return type="void"> + </return> <argument index="0" name="smooth" type="bool"> </argument> <description> @@ -44772,30 +49773,44 @@ </description> </method> <method name="add_tangent"> + <return type="void"> + </return> <argument index="0" name="tangent" type="Plane"> </argument> <description> Specify a Tangent for the next Vertex to use. </description> </method> + <method name="add_to_format"> + <return type="void"> + </return> + <argument index="0" name="flags" type="int"> + </argument> + <description> + </description> + </method> <method name="add_triangle_fan"> + <return type="void"> + </return> <argument index="0" name="vertexes" type="PoolVector3Array"> </argument> - <argument index="1" name="uvs" type="PoolVector2Array" default="PoolVector2Array([])"> + <argument index="1" name="uvs" type="PoolVector2Array" default="PoolVector3Array( )"> </argument> - <argument index="2" name="colors" type="PoolColorArray" default="PoolColorArray([PoolColorArray])"> + <argument index="2" name="colors" type="PoolColorArray" default="PoolVector2Array( )"> </argument> - <argument index="3" name="uv2s" type="PoolVector2Array" default="PoolVector2Array([])"> + <argument index="3" name="uv2s" type="PoolVector2Array" default="PoolColorArray( )"> </argument> - <argument index="4" name="normals" type="PoolVector3Array" default="PoolVector3Array([])"> + <argument index="4" name="normals" type="PoolVector3Array" default="PoolVector2Array( )"> </argument> - <argument index="5" name="tangents" type="Array" default="[]"> + <argument index="5" name="tangents" type="Array" default="null"> </argument> <description> Insert a triangle fan made of array data into [Mesh] being constructed. </description> </method> <method name="add_uv"> + <return type="void"> + </return> <argument index="0" name="uv" type="Vector2"> </argument> <description> @@ -44803,6 +49818,8 @@ </description> </method> <method name="add_uv2"> + <return type="void"> + </return> <argument index="0" name="uv2" type="Vector2"> </argument> <description> @@ -44810,6 +49827,8 @@ </description> </method> <method name="add_vertex"> + <return type="void"> + </return> <argument index="0" name="vertex" type="Vector3"> </argument> <description> @@ -44817,49 +49836,91 @@ </description> </method> <method name="add_weights"> + <return type="void"> + </return> <argument index="0" name="weights" type="PoolRealArray"> </argument> <description> Specify weight value for next Vertex to use. </description> </method> + <method name="append_from"> + <return type="void"> + </return> + <argument index="0" name="existing" type="Mesh"> + </argument> + <argument index="1" name="surface" type="int"> + </argument> + <argument index="2" name="transform" type="Transform"> + </argument> + <description> + </description> + </method> <method name="begin"> - <argument index="0" name="primitive" type="int"> + <return type="void"> + </return> + <argument index="0" name="primitive" type="int" enum="Mesh.PrimitiveType"> </argument> <description> Called before adding any Vertices. Takes the primitive type as an argument (e.g. Mesh.PRIMITIVE_TRIANGLES). </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear all information passed into the surface tool so far. </description> </method> <method name="commit"> - <return type="Mesh"> + <return type="ArrayMesh"> + </return> + <argument index="0" name="existing" type="ArrayMesh" default="null"> + </argument> + <description> + Returns a constructed [ArrayMesh] from current information passed in. If an existing [ArrayMesh] is passed in as an argument, will add an extra surface to the existing [ArrayMesh]. + </description> + </method> + <method name="create_from"> + <return type="void"> </return> - <argument index="0" name="existing" type="Mesh" default="NULL"> + <argument index="0" name="existing" type="Mesh"> + </argument> + <argument index="1" name="surface" type="int"> </argument> <description> - Returns a constructed [Mesh] from current information passed in. If an existing [Mesh] is passed in as an argument, will add an extra surface to the existing [Mesh]. </description> </method> <method name="deindex"> + <return type="void"> + </return> <description> Removes index array by expanding Vertex array. </description> </method> <method name="generate_normals"> + <return type="void"> + </return> <description> Generates normals from Vertices so you do not have to do it manually. </description> </method> + <method name="generate_tangents"> + <return type="void"> + </return> + <description> + </description> + </method> <method name="index"> + <return type="void"> + </return> <description> Shrinks Vertex array by creating an index array. Avoids reusing Vertices. </description> </method> <method name="set_material"> + <return type="void"> + </return> <argument index="0" name="material" type="Material"> </argument> <description> @@ -44890,7 +49951,7 @@ </return> <argument index="0" name="port" type="int"> </argument> - <argument index="1" name="bind_address" type="String" default=""*""> + <argument index="1" name="bind_address" type="String" default="null"> </argument> <description> Listen on the "port" binding to "bind_address". @@ -44900,12 +49961,14 @@ </description> </method> <method name="stop"> + <return type="void"> + </return> <description> Stop listening. </description> </method> <method name="take_connection"> - <return type="Object"> + <return type="StreamPeerTCP"> </return> <description> If a connection is available, return a StreamPeerTCP with the connection/ @@ -45006,6 +50069,8 @@ </description> </method> <method name="set_current_tab"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <description> @@ -45013,19 +50078,25 @@ </description> </method> <method name="set_popup"> - <argument index="0" name="popup" type="Popup"> + <return type="void"> + </return> + <argument index="0" name="popup" type="Node"> </argument> <description> </description> </method> <method name="set_tab_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="TabContainer.TabAlign"> </argument> <description> Set tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center. </description> </method> <method name="set_tab_disabled"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="disabled" type="bool"> @@ -45034,6 +50105,8 @@ </description> </method> <method name="set_tab_icon"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="icon" type="Texture"> @@ -45043,6 +50116,8 @@ </description> </method> <method name="set_tab_title"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="title" type="String"> @@ -45052,6 +50127,8 @@ </description> </method> <method name="set_tabs_visible"> + <return type="void"> + </return> <argument index="0" name="visible" type="bool"> </argument> <description> @@ -45062,7 +50139,7 @@ <members> <member name="current_tab" type="int" setter="set_current_tab" getter="get_current_tab" brief=""> </member> - <member name="tab_align" type="int" setter="set_tab_align" getter="get_tab_align" brief=""> + <member name="tab_align" type="int" setter="set_tab_align" getter="get_tab_align" brief="" enum="TabContainer.TabAlign"> </member> <member name="tabs_visible" type="bool" setter="set_tabs_visible" getter="are_tabs_visible" brief=""> </member> @@ -45137,14 +50214,18 @@ </description> <methods> <method name="add_tab"> - <argument index="0" name="title" type="String"> + <return type="void"> + </return> + <argument index="0" name="title" type="String" default="null"> </argument> - <argument index="1" name="icon" type="Texture"> + <argument index="1" name="icon" type="Texture" default=""""> </argument> <description> </description> </method> <method name="ensure_tab_visible"> + <return type="void"> + </return> <argument index="0" name="idx" type="int"> </argument> <description> @@ -45162,6 +50243,12 @@ <description> </description> </method> + <method name="get_tab_close_display_policy" qualifiers="const"> + <return type="int"> + </return> + <description> + </description> + </method> <method name="get_tab_count" qualifiers="const"> <return type="int"> </return> @@ -45184,7 +50271,7 @@ <description> </description> </method> - <method name="get_tab_rect"> + <method name="get_tab_rect" qualifiers="const"> <return type="Rect2"> </return> <argument index="0" name="tab_idx" type="int"> @@ -45202,6 +50289,8 @@ </description> </method> <method name="move_tab"> + <return type="void"> + </return> <argument index="0" name="from" type="int"> </argument> <argument index="1" name="to" type="int"> @@ -45211,24 +50300,40 @@ </description> </method> <method name="remove_tab"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <description> </description> </method> <method name="set_current_tab"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <description> </description> </method> <method name="set_tab_align"> - <argument index="0" name="align" type="int"> + <return type="void"> + </return> + <argument index="0" name="align" type="int" enum="Tabs.TabAlign"> + </argument> + <description> + </description> + </method> + <method name="set_tab_close_display_policy"> + <return type="void"> + </return> + <argument index="0" name="policy" type="int" enum="Tabs.CloseButtonDisplayPolicy"> </argument> <description> </description> </method> <method name="set_tab_disabled"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="disabled" type="bool"> @@ -45237,6 +50342,8 @@ </description> </method> <method name="set_tab_icon"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="icon" type="Texture"> @@ -45245,6 +50352,8 @@ </description> </method> <method name="set_tab_title"> + <return type="void"> + </return> <argument index="0" name="tab_idx" type="int"> </argument> <argument index="1" name="title" type="String"> @@ -45256,6 +50365,8 @@ <members> <member name="current_tab" type="int" setter="set_current_tab" getter="get_current_tab" brief=""> </member> + <member name="tab_close_display_policy" type="int" setter="set_tab_close_display_policy" getter="get_tab_close_display_policy" brief="" enum="Tabs.CloseButtonDisplayPolicy"> + </member> </members> <signals> <signal name="reposition_active_tab_request"> @@ -45276,6 +50387,12 @@ <description> </description> </signal> + <signal name="tab_clicked"> + <argument index="0" name="tab" type="int"> + </argument> + <description> + </description> + </signal> <signal name="tab_close"> <argument index="0" name="tab" type="int"> </argument> @@ -45296,12 +50413,16 @@ </constant> <constant name="ALIGN_RIGHT" value="2"> </constant> + <constant name="ALIGN_MAX" value="3"> + </constant> <constant name="CLOSE_BUTTON_SHOW_ACTIVE_ONLY" value="1"> </constant> <constant name="CLOSE_BUTTON_SHOW_ALWAYS" value="2"> </constant> <constant name="CLOSE_BUTTON_SHOW_NEVER" value="0"> </constant> + <constant name="CLOSE_BUTTON_MAX" value="3"> + </constant> </constants> <theme_items> <theme_item name="button" type="StyleBox"> @@ -45351,19 +50472,23 @@ </description> <methods> <method name="add_color_region"> + <return type="void"> + </return> <argument index="0" name="begin_key" type="String"> </argument> <argument index="1" name="end_key" type="String"> </argument> <argument index="2" name="color" type="Color"> </argument> - <argument index="3" name="line_only" type="bool" default="false"> + <argument index="3" name="line_only" type="bool" default="null"> </argument> <description> Add color region (given the delimiters) and its colors. </description> </method> <method name="add_keyword_color"> + <return type="void"> + </return> <argument index="0" name="keyword" type="String"> </argument> <argument index="1" name="color" type="Color"> @@ -45373,16 +50498,22 @@ </description> </method> <method name="clear_colors"> + <return type="void"> + </return> <description> Clear all the syntax coloring information. </description> </method> <method name="clear_undo_history"> + <return type="void"> + </return> <description> Clear the undo history. </description> </method> <method name="copy"> + <return type="void"> + </return> <description> Copy the current selection. </description> @@ -45423,6 +50554,8 @@ </description> </method> <method name="cursor_set_blink_enabled"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45430,6 +50563,8 @@ </description> </method> <method name="cursor_set_blink_speed"> + <return type="void"> + </return> <argument index="0" name="blink_speed" type="float"> </argument> <description> @@ -45437,6 +50572,8 @@ </description> </method> <method name="cursor_set_block_mode"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45444,22 +50581,28 @@ </description> </method> <method name="cursor_set_column"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> + <argument index="1" name="adjust_viewport" type="bool" default="null"> </argument> <description> </description> </method> <method name="cursor_set_line"> + <return type="void"> + </return> <argument index="0" name="line" type="int"> </argument> - <argument index="1" name="adjust_viewport" type="bool" default="true"> + <argument index="1" name="adjust_viewport" type="bool" default="null"> </argument> <description> </description> </method> <method name="cut"> + <return type="void"> + </return> <description> Cut the current selection. </description> @@ -45528,6 +50671,12 @@ Return the whole text. </description> </method> + <method name="get_v_scroll_speed" qualifiers="const"> + <return type="float"> + </return> + <description> + </description> + </method> <method name="get_word_under_cursor" qualifiers="const"> <return type="String"> </return> @@ -45535,6 +50684,8 @@ </description> </method> <method name="insert_text_at_cursor"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> @@ -45562,6 +50713,12 @@ Returns true if line numbers are enabled. </description> </method> + <method name="is_smooth_scroll_enabled" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="is_syntax_coloring_enabled" qualifiers="const"> <return type="bool"> </return> @@ -45570,17 +50727,23 @@ </description> </method> <method name="menu_option"> - <argument index="0" name="arg0" type="int"> + <return type="void"> + </return> + <argument index="0" name="option" type="int"> </argument> <description> </description> </method> <method name="paste"> + <return type="void"> + </return> <description> Paste the current selection. </description> </method> <method name="redo"> + <return type="void"> + </return> <description> Perform redo operation. </description> @@ -45588,19 +50751,21 @@ <method name="search" qualifiers="const"> <return type="PoolIntArray"> </return> - <argument index="0" name="flags" type="String"> + <argument index="0" name="key" type="String"> </argument> - <argument index="1" name="from_line" type="int"> + <argument index="1" name="flags" type="int"> </argument> - <argument index="2" name="from_column" type="int"> + <argument index="2" name="from_line" type="int"> </argument> - <argument index="3" name="to_line" type="int"> + <argument index="3" name="from_column" type="int"> </argument> <description> Perform a search inside the text. Search flags can be specified in the SEARCH_* enum. </description> </method> <method name="select"> + <return type="void"> + </return> <argument index="0" name="from_line" type="int"> </argument> <argument index="1" name="from_column" type="int"> @@ -45614,11 +50779,15 @@ </description> </method> <method name="select_all"> + <return type="void"> + </return> <description> Select all the text. </description> </method> <method name="set_highlight_all_occurrences"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45626,6 +50795,8 @@ </description> </method> <method name="set_max_chars"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -45633,6 +50804,8 @@ </description> </method> <method name="set_readonly"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45640,13 +50813,25 @@ </description> </method> <method name="set_show_line_numbers"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> Set to enable showing line numbers. </description> </method> + <method name="set_smooth_scroll_enable"> + <return type="void"> + </return> + <argument index="0" name="enable" type="bool"> + </argument> + <description> + </description> + </method> <method name="set_syntax_coloring"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45654,13 +50839,25 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="text" type="String"> </argument> <description> Set the entire text. </description> </method> + <method name="set_v_scroll_speed"> + <return type="void"> + </return> + <argument index="0" name="speed" type="float"> + </argument> + <description> + </description> + </method> <method name="set_wrap"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -45668,6 +50865,8 @@ </description> </method> <method name="undo"> + <return type="void"> + </return> <description> Perform undo operation. </description> @@ -45684,8 +50883,12 @@ </member> <member name="show_line_numbers" type="bool" setter="set_show_line_numbers" getter="is_show_line_numbers_enabled" brief=""> </member> + <member name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled" brief=""> + </member> <member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled" brief=""> </member> + <member name="v_scroll_speed" type="float" setter="set_v_scroll_speed" getter="get_v_scroll_speed" brief=""> + </member> </members> <signals> <signal name="breakpoint_toggled"> @@ -45817,53 +51020,65 @@ </description> <methods> <method name="draw" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="canvas_item" type="RID"> </argument> <argument index="1" name="pos" type="Vector2"> </argument> - <argument index="2" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="2" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )"> </argument> - <argument index="3" name="transpose" type="bool" default="false"> + <argument index="3" name="transpose" type="bool" default="null"> </argument> - <argument index="4" name="normal_map" type="Texture" default="NULL"> + <argument index="4" name="normal_map" type="Texture" default="null"> </argument> <description> </description> </method> <method name="draw_rect" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="canvas_item" type="RID"> </argument> <argument index="1" name="rect" type="Rect2"> </argument> <argument index="2" name="tile" type="bool"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="null"> </argument> - <argument index="4" name="transpose" type="bool" default="false"> + <argument index="4" name="transpose" type="bool" default="null"> </argument> - <argument index="5" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="normal_map" type="Texture" default="null"> </argument> <description> </description> </method> <method name="draw_rect_region" qualifiers="const"> + <return type="void"> + </return> <argument index="0" name="canvas_item" type="RID"> </argument> <argument index="1" name="rect" type="Rect2"> </argument> <argument index="2" name="src_rect" type="Rect2"> </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> + <argument index="3" name="modulate" type="Color" default="Color( 1, 1, 1, 1 )"> </argument> - <argument index="4" name="transpose" type="bool" default="false"> + <argument index="4" name="transpose" type="bool" default="null"> </argument> - <argument index="5" name="normal_map" type="Texture" default="NULL"> + <argument index="5" name="normal_map" type="Texture" default="null"> </argument> - <argument index="6" name="clip_uv" type="bool" default="true"> + <argument index="6" name="clip_uv" type="bool" default="null"> </argument> <description> </description> </method> + <method name="get_data" qualifiers="const"> + <return type="Image"> + </return> + <description> + </description> + </method> <method name="get_flags" qualifiers="const"> <return type="int"> </return> @@ -45899,6 +51114,8 @@ </description> </method> <method name="set_flags"> + <return type="void"> + </return> <argument index="0" name="flags" type="int"> </argument> <description> @@ -45988,49 +51205,65 @@ </description> </method> <method name="set_click_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="BitMap"> </argument> <description> </description> </method> <method name="set_disabled_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_expand"> + <return type="void"> + </return> <argument index="0" name="p_expand" type="bool"> </argument> <description> </description> </method> <method name="set_focused_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_hover_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_normal_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_pressed_texture"> + <return type="void"> + </return> <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_stretch_mode"> - <argument index="0" name="p_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="p_mode" type="int" enum="TextureButton.StretchMode"> </argument> <description> </description> @@ -46039,7 +51272,7 @@ <members> <member name="expand" type="bool" setter="set_expand" getter="get_expand" brief=""> </member> - <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" brief=""> + <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" brief="" enum="TextureButton.StretchMode"> </member> <member name="texture_click_mask" type="BitMap" setter="set_click_mask" getter="get_click_mask" brief=""> </member> @@ -46091,7 +51324,7 @@ <description> </description> </method> - <method name="get_nine_patch_stretch"> + <method name="get_nine_patch_stretch" qualifiers="const"> <return type="bool"> </return> <description> @@ -46099,13 +51332,13 @@ </description> </method> <method name="get_over_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> </method> <method name="get_progress_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -46125,31 +51358,37 @@ <method name="get_stretch_margin" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="margin" type="int"> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> <description> Return nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). </description> </method> <method name="get_under_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> </method> <method name="set_fill_degrees"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_fill_mode"> + <return type="void"> + </return> <argument index="0" name="mode" type="int"> </argument> <description> </description> </method> <method name="set_nine_patch_stretch"> + <return type="void"> + </return> <argument index="0" name="stretch" type="bool"> </argument> <description> @@ -46157,40 +51396,52 @@ </description> </method> <method name="set_over_texture"> - <argument index="0" name="tex" type="Object"> + <return type="void"> + </return> + <argument index="0" name="tex" type="Texture"> </argument> <description> </description> </method> <method name="set_progress_texture"> - <argument index="0" name="tex" type="Object"> + <return type="void"> + </return> + <argument index="0" name="tex" type="Texture"> </argument> <description> </description> </method> <method name="set_radial_center_offset"> + <return type="void"> + </return> <argument index="0" name="mode" type="Vector2"> </argument> <description> </description> </method> <method name="set_radial_initial_angle"> + <return type="void"> + </return> <argument index="0" name="mode" type="float"> </argument> <description> </description> </method> <method name="set_stretch_margin"> - <argument index="0" name="margin" type="int"> + <return type="void"> + </return> + <argument index="0" name="margin" type="int" enum="Margin"> </argument> - <argument index="1" name="size" type="int"> + <argument index="1" name="value" type="int"> </argument> <description> Set nine-patch texture offset for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). </description> </method> <method name="set_under_texture"> - <argument index="0" name="tex" type="Object"> + <return type="void"> + </return> + <argument index="0" name="tex" type="Texture"> </argument> <description> </description> @@ -46199,27 +51450,27 @@ <members> <member name="fill_mode" type="int" setter="set_fill_mode" getter="get_fill_mode" brief=""> </member> + <member name="nine_patch_stretch" type="bool" setter="set_nine_patch_stretch" getter="get_nine_patch_stretch" brief=""> + </member> <member name="radial_center_offset" type="Vector2" setter="set_radial_center_offset" getter="get_radial_center_offset" brief=""> </member> <member name="radial_fill_degrees" type="float" setter="set_fill_degrees" getter="get_fill_degrees" brief=""> </member> <member name="radial_initial_angle" type="float" setter="set_radial_initial_angle" getter="get_radial_initial_angle" brief=""> </member> - <member name="texture_over" type="Texture" setter="set_over_texture" getter="get_over_texture" brief=""> - </member> - <member name="texture_progress" type="Texture" setter="set_progress_texture" getter="get_progress_texture" brief=""> - </member> - <member name="texture_under" type="Texture" setter="set_under_texture" getter="get_under_texture" brief=""> - </member> - <member name="nine_patch_stretch" type="bool" setter="set_nine_patch_stretch" getter="get_nine_patch_stretch" brief=""> + <member name="stretch_margin_bottom" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> </member> <member name="stretch_margin_left" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> </member> + <member name="stretch_margin_right" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> + </member> <member name="stretch_margin_top" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> </member> - <member name="stretch_margin_right" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> + <member name="texture_over" type="Texture" setter="set_over_texture" getter="get_over_texture" brief=""> </member> - <member name="stretch_margin_bottom" type="int" setter="set_stretch_margin" getter="get_stretch_margin" brief=""> + <member name="texture_progress" type="Texture" setter="set_progress_texture" getter="get_progress_texture" brief=""> + </member> + <member name="texture_under" type="Texture" setter="set_under_texture" getter="get_under_texture" brief=""> </member> </members> <constants> @@ -46252,7 +51503,7 @@ </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -46264,19 +51515,25 @@ </description> </method> <method name="set_expand"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_stretch_mode"> - <argument index="0" name="stretch_mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="stretch_mode" type="int" enum="TextureRect.StretchMode"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> </description> @@ -46285,7 +51542,7 @@ <members> <member name="expand" type="bool" setter="set_expand" getter="has_expand" brief=""> </member> - <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" brief=""> + <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" brief="" enum="TextureRect.StretchMode"> </member> <member name="texture" type="Texture" setter="set_texture" getter="get_texture" brief=""> </member> @@ -46319,6 +51576,8 @@ </description> <methods> <method name="clear_color"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46327,6 +51586,8 @@ </description> </method> <method name="clear_constant"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46335,6 +51596,8 @@ </description> </method> <method name="clear_font"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46343,6 +51606,8 @@ </description> </method> <method name="clear_icon"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46351,6 +51616,8 @@ </description> </method> <method name="clear_stylebox"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46359,6 +51626,8 @@ </description> </method> <method name="copy_default_theme"> + <return type="void"> + </return> <description> </description> </method> @@ -46399,7 +51668,7 @@ </description> </method> <method name="get_default_font" qualifiers="const"> - <return type="Object"> + <return type="Font"> </return> <description> </description> @@ -46523,6 +51792,8 @@ </description> </method> <method name="set_color"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46533,6 +51804,8 @@ </description> </method> <method name="set_constant"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46543,12 +51816,16 @@ </description> </method> <method name="set_default_font"> - <argument index="0" name="font" type="Object"> + <return type="void"> + </return> + <argument index="0" name="font" type="Font"> </argument> <description> </description> </method> <method name="set_font"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46559,6 +51836,8 @@ </description> </method> <method name="set_icon"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46569,6 +51848,8 @@ </description> </method> <method name="set_stylebox"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="type" type="String"> @@ -46609,15 +51890,15 @@ </description> </method> <method name="start"> - <return type="Error"> + <return type="int"> </return> <argument index="0" name="instance" type="Object"> </argument> <argument index="1" name="method" type="String"> </argument> - <argument index="2" name="userdata" type="Variant" default="NULL"> + <argument index="2" name="userdata" type="Variant" default="null"> </argument> - <argument index="3" name="priority" type="int" default="1"> + <argument index="3" name="priority" type="int" default="null"> </argument> <description> Start a new [Thread], it will run "method" on object "instance" using "userdata" as an argument and running with "priority", one of PRIORITY_* enum. @@ -46651,6 +51932,8 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> Clear all cells. </description> @@ -46802,6 +52085,14 @@ Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1). </description> </method> + <method name="get_used_cells_by_id" qualifiers="const"> + <return type="Array"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <description> + </description> + </method> <method name="get_used_rect"> <return type="Rect2"> </return> @@ -46853,7 +52144,7 @@ </return> <argument index="0" name="mappos" type="Vector2"> </argument> - <argument index="1" name="ignore_half_ofs" type="bool" default="false"> + <argument index="1" name="ignore_half_ofs" type="bool" default="null"> </argument> <description> Return the absolute world position corresponding to the tilemap (grid-based) coordinates given as an argument. @@ -46861,17 +52152,19 @@ </description> </method> <method name="set_cell"> + <return type="void"> + </return> <argument index="0" name="x" type="int"> </argument> <argument index="1" name="y" type="int"> </argument> <argument index="2" name="tile" type="int"> </argument> - <argument index="3" name="flip_x" type="bool" default="false"> + <argument index="3" name="flip_x" type="bool" default="null"> </argument> - <argument index="4" name="flip_y" type="bool" default="false"> + <argument index="4" name="flip_y" type="bool" default="null"> </argument> - <argument index="5" name="transpose" type="bool" default="false"> + <argument index="5" name="transpose" type="bool" default="null"> </argument> <description> Set the tile index for the cell referenced by its grid-based X and Y coordinates. @@ -46880,6 +52173,8 @@ </description> </method> <method name="set_cell_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> @@ -46887,15 +52182,17 @@ </description> </method> <method name="set_cellv"> + <return type="void"> + </return> <argument index="0" name="pos" type="Vector2"> </argument> <argument index="1" name="tile" type="int"> </argument> <argument index="2" name="flip_x" type="bool" default="false"> </argument> - <argument index="3" name="flip_y" type="bool" default="false"> + <argument index="3" name="flip_y" type="bool" default="null"> </argument> - <argument index="4" name="transpose" type="bool" default="false"> + <argument index="4" name="transpose" type="bool" default="null"> </argument> <description> Set the tile index for the cell referenced by a Vector2 of grid-based coordinates. @@ -46904,6 +52201,8 @@ </description> </method> <method name="set_center_x"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -46911,6 +52210,8 @@ </description> </method> <method name="set_center_y"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -46918,6 +52219,8 @@ </description> </method> <method name="set_collision_bounce"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -46925,6 +52228,8 @@ </description> </method> <method name="set_collision_friction"> + <return type="void"> + </return> <argument index="0" name="value" type="float"> </argument> <description> @@ -46932,6 +52237,8 @@ </description> </method> <method name="set_collision_layer"> + <return type="void"> + </return> <argument index="0" name="layer" type="int"> </argument> <description> @@ -46940,6 +52247,8 @@ </description> </method> <method name="set_collision_layer_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -46948,6 +52257,8 @@ </description> </method> <method name="set_collision_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -46956,6 +52267,8 @@ </description> </method> <method name="set_collision_mask_bit"> + <return type="void"> + </return> <argument index="0" name="bit" type="int"> </argument> <argument index="1" name="value" type="bool"> @@ -46964,6 +52277,8 @@ </description> </method> <method name="set_collision_use_kinematic"> + <return type="void"> + </return> <argument index="0" name="use_kinematic" type="bool"> </argument> <description> @@ -46971,6 +52286,8 @@ </description> </method> <method name="set_custom_transform"> + <return type="void"> + </return> <argument index="0" name="custom_transform" type="Transform2D"> </argument> <description> @@ -46978,7 +52295,9 @@ </description> </method> <method name="set_half_offset"> - <argument index="0" name="half_offset" type="int"> + <return type="void"> + </return> + <argument index="0" name="half_offset" type="int" enum="TileMap.HalfOffset"> </argument> <description> Set an half offset on the X coordinate, Y coordinate, or none (use HALF_OFFSET_* constants as argument). @@ -46986,19 +52305,25 @@ </description> </method> <method name="set_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="TileMap.Mode"> </argument> <description> Set the orientation mode as square, isometric or custom (use MODE_* constants as argument). </description> </method> <method name="set_occluder_light_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> </description> </method> <method name="set_quadrant_size"> + <return type="void"> + </return> <argument index="0" name="size" type="int"> </argument> <description> @@ -47007,13 +52332,17 @@ </description> </method> <method name="set_tile_origin"> - <argument index="0" name="origin" type="int"> + <return type="void"> + </return> + <argument index="0" name="origin" type="int" enum="TileMap.TileOrigin"> </argument> <description> Set the tile origin to the tile center or its top-left corner (use TILE_ORIGIN_* constants as argument). </description> </method> <method name="set_tileset"> + <return type="void"> + </return> <argument index="0" name="tileset" type="TileSet"> </argument> <description> @@ -47021,6 +52350,8 @@ </description> </method> <method name="set_y_sort_mode"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -47041,13 +52372,13 @@ <members> <member name="cell_custom_transform" type="Transform2D" setter="set_custom_transform" getter="get_custom_transform" brief=""> </member> - <member name="cell_half_offset" type="int" setter="set_half_offset" getter="get_half_offset" brief=""> + <member name="cell_half_offset" type="int" setter="set_half_offset" getter="get_half_offset" brief="" enum="TileMap.HalfOffset"> </member> <member name="cell_quadrant_size" type="int" setter="set_quadrant_size" getter="get_quadrant_size" brief=""> </member> <member name="cell_size" type="Vector2" setter="set_cell_size" getter="get_cell_size" brief=""> </member> - <member name="cell_tile_origin" type="int" setter="set_tile_origin" getter="get_tile_origin" brief=""> + <member name="cell_tile_origin" type="int" setter="set_tile_origin" getter="get_tile_origin" brief="" enum="TileMap.TileOrigin"> </member> <member name="cell_y_sort" type="bool" setter="set_y_sort_mode" getter="is_y_sort_mode_enabled" brief=""> </member> @@ -47061,11 +52392,11 @@ </member> <member name="collision_use_kinematic" type="bool" setter="set_collision_use_kinematic" getter="get_collision_use_kinematic" brief=""> </member> - <member name="mode" type="int" setter="set_mode" getter="get_mode" brief=""> + <member name="mode" type="int" setter="set_mode" getter="get_mode" brief="" enum="TileMap.Mode"> </member> <member name="occluder_light_mask" type="int" setter="set_occluder_light_mask" getter="get_occluder_light_mask" brief=""> </member> - <member name="tile_data" type="Object" setter="_set_tile_data" getter="_get_tile_data" brief=""> + <member name="tile_data" type="PoolIntArray" setter="_set_tile_data" getter="_get_tile_data" brief=""> </member> <member name="tile_set" type="TileSet" setter="set_tileset" getter="get_tileset" brief=""> </member> @@ -47078,7 +52409,7 @@ </signal> </signals> <constants> - <constant name="INVALID_CELL" value="-1"> + <constant name="INVALID_CELL" value="-1" enum=""> Returned when a cell doesn't exist. </constant> <constant name="MODE_SQUARE" value="0"> @@ -47119,11 +52450,15 @@ </description> <methods> <method name="clear"> + <return type="void"> + </return> <description> Clear all tiles. </description> </method> <method name="create_tile"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -47154,6 +52489,8 @@ </description> </method> <method name="remove_tile"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <description> @@ -47161,13 +52498,15 @@ </description> </method> <method name="tile_add_shape"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="shape" type="Shape2D"> </argument> <argument index="2" name="shape_transform" type="Transform2D"> </argument> - <argument index="3" name="one_way" type="bool" default="false"> + <argument index="3" name="one_way" type="bool" default="null"> </argument> <description> </description> @@ -47309,6 +52648,8 @@ </description> </method> <method name="tile_set_light_occluder"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="light_occluder" type="OccluderPolygon2D"> @@ -47318,6 +52659,8 @@ </description> </method> <method name="tile_set_material"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="material" type="ShaderMaterial"> @@ -47327,6 +52670,8 @@ </description> </method> <method name="tile_set_name"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="name" type="String"> @@ -47336,6 +52681,8 @@ </description> </method> <method name="tile_set_navigation_polygon"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="navigation_polygon" type="NavigationPolygon"> @@ -47345,6 +52692,8 @@ </description> </method> <method name="tile_set_navigation_polygon_offset"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="navigation_polygon_offset" type="Vector2"> @@ -47354,6 +52703,8 @@ </description> </method> <method name="tile_set_normal_map"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="normal_map" type="Texture"> @@ -47362,6 +52713,8 @@ </description> </method> <method name="tile_set_occluder_offset"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="occluder_offset" type="Vector2"> @@ -47371,6 +52724,8 @@ </description> </method> <method name="tile_set_region"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="region" type="Rect2"> @@ -47380,6 +52735,8 @@ </description> </method> <method name="tile_set_shape"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="shape_id" type="int"> @@ -47390,6 +52747,8 @@ </description> </method> <method name="tile_set_shape_one_way"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="shape_id" type="int"> @@ -47400,6 +52759,8 @@ </description> </method> <method name="tile_set_shape_transform"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="shape_id" type="int"> @@ -47410,6 +52771,8 @@ </description> </method> <method name="tile_set_shapes"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="shapes" type="Array"> @@ -47419,6 +52782,8 @@ </description> </method> <method name="tile_set_texture"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="texture" type="Texture"> @@ -47428,6 +52793,8 @@ </description> </method> <method name="tile_set_texture_offset"> + <return type="void"> + </return> <argument index="0" name="id" type="int"> </argument> <argument index="1" name="texture_offset" type="Vector2"> @@ -47497,6 +52864,8 @@ </description> </method> <method name="set_autostart"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -47504,6 +52873,8 @@ </description> </method> <method name="set_one_shot"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -47511,6 +52882,8 @@ </description> </method> <method name="set_paused"> + <return type="void"> + </return> <argument index="0" name="paused" type="bool"> </argument> <description> @@ -47518,13 +52891,17 @@ </description> </method> <method name="set_timer_process_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Timer.TimerProcessMode"> </argument> <description> Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument). </description> </method> <method name="set_wait_time"> + <return type="void"> + </return> <argument index="0" name="time_sec" type="float"> </argument> <description> @@ -47532,11 +52909,15 @@ </description> </method> <method name="start"> + <return type="void"> + </return> <description> Start the timer. </description> </method> <method name="stop"> + <return type="void"> + </return> <description> Stop (cancel) the timer. </description> @@ -47547,7 +52928,7 @@ </member> <member name="one_shot" type="bool" setter="set_one_shot" getter="is_one_shot" brief=""> </member> - <member name="process_mode" type="int" setter="set_timer_process_mode" getter="get_timer_process_mode" brief=""> + <member name="process_mode" type="int" setter="set_timer_process_mode" getter="get_timer_process_mode" brief="" enum="Timer.TimerProcessMode"> </member> <member name="wait_time" type="float" setter="set_wait_time" getter="get_wait_time" brief=""> </member> @@ -47615,25 +52996,25 @@ </description> </method> <method name="get_bitmask" qualifiers="const"> - <return type="Object"> + <return type="BitMap"> </return> <description> </description> </method> <method name="get_shape" qualifiers="const"> - <return type="Object"> + <return type="Shape2D"> </return> <description> </description> </method> <method name="get_texture" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> </method> <method name="get_texture_pressed" qualifiers="const"> - <return type="Object"> + <return type="Texture"> </return> <description> </description> @@ -47669,55 +53050,73 @@ </description> </method> <method name="set_action"> + <return type="void"> + </return> <argument index="0" name="action" type="String"> </argument> <description> </description> </method> <method name="set_bitmask"> - <argument index="0" name="bitmask" type="Object"> + <return type="void"> + </return> + <argument index="0" name="bitmask" type="BitMap"> </argument> <description> </description> </method> <method name="set_passby_press"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> </description> </method> <method name="set_shape"> - <argument index="0" name="shape" type="Object"> + <return type="void"> + </return> + <argument index="0" name="shape" type="Shape2D"> </argument> <description> </description> </method> <method name="set_shape_centered"> + <return type="void"> + </return> <argument index="0" name="bool" type="bool"> </argument> <description> </description> </method> <method name="set_shape_visible"> + <return type="void"> + </return> <argument index="0" name="bool" type="bool"> </argument> <description> </description> </method> <method name="set_texture"> - <argument index="0" name="texture" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture" type="Texture"> </argument> <description> </description> </method> <method name="set_texture_pressed"> - <argument index="0" name="texture_pressed" type="Object"> + <return type="void"> + </return> + <argument index="0" name="texture_pressed" type="Texture"> </argument> <description> </description> </method> <method name="set_visibility_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="TouchScreenButton.VisibilityMode"> </argument> <description> </description> @@ -47740,7 +53139,7 @@ </member> <member name="shape_visible" type="bool" setter="set_shape_visible" getter="is_shape_visible" brief=""> </member> - <member name="visibility_mode" type="int" setter="set_visibility_mode" getter="get_visibility_mode" brief=""> + <member name="visibility_mode" type="int" setter="set_visibility_mode" getter="get_visibility_mode" brief="" enum="TouchScreenButton.VisibilityMode"> </member> </members> <signals> @@ -47824,6 +53223,16 @@ Returns the inverse of the transfrom, under the assumption that the transformation is composed of rotation, scaling and translation. </description> </method> + <method name="interpolate_with"> + <return type="Transform"> + </return> + <argument index="0" name="transform" type="Transform"> + </argument> + <argument index="1" name="weight" type="float"> + </argument> + <description> + </description> + </method> <method name="inverse"> <return type="Transform"> </return> @@ -47991,9 +53400,9 @@ <method name="interpolate_with"> <return type="Transform2D"> </return> - <argument index="0" name="m" type="Transform2D"> + <argument index="0" name="transform" type="Transform2D"> </argument> - <argument index="1" name="c" type="float"> + <argument index="1" name="weight" type="float"> </argument> <description> </description> @@ -48071,6 +53480,8 @@ </description> <methods> <method name="add_message"> + <return type="void"> + </return> <argument index="0" name="src_message" type="String"> </argument> <argument index="1" name="xlated_message" type="String"> @@ -48080,6 +53491,8 @@ </description> </method> <method name="erase_message"> + <return type="void"> + </return> <argument index="0" name="src_message" type="String"> </argument> <description> @@ -48116,6 +53529,8 @@ </description> </method> <method name="set_locale"> + <return type="void"> + </return> <argument index="0" name="locale" type="String"> </argument> <description> @@ -48140,12 +53555,16 @@ </description> <methods> <method name="add_translation"> + <return type="void"> + </return> <argument index="0" name="translation" type="Translation"> </argument> <description> </description> </method> <method name="clear"> + <return type="void"> + </return> <description> </description> </method> @@ -48156,12 +53575,16 @@ </description> </method> <method name="remove_translation"> + <return type="void"> + </return> <argument index="0" name="translation" type="Translation"> </argument> <description> </description> </method> <method name="set_locale"> + <return type="void"> + </return> <argument index="0" name="locale" type="String"> </argument> <description> @@ -48206,24 +53629,34 @@ </description> </method> <method name="clear"> + <return type="void"> + </return> <description> Clear the tree. This erases all of the items. </description> </method> <method name="create_item"> - <return type="TreeItem"> + <return type="Object"> </return> - <argument index="0" name="parent" type="TreeItem" default="NULL"> + <argument index="0" name="parent" type="Object" default="null"> </argument> <description> Create an item in the tree and add it as the last child of [code]parent[/code]. If parent is not given, it will be added as the last child of the root, or it'll the be the root itself if the tree is empty. </description> </method> <method name="ensure_cursor_is_visible"> + <return type="void"> + </return> <description> Make the current selected item visible. This will scroll the tree to make sure the selected item is in sight. </description> </method> + <method name="get_allow_reselect" qualifiers="const"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="get_allow_rmb_select" qualifiers="const"> <return type="bool"> </return> @@ -48296,9 +53729,9 @@ <method name="get_item_area_rect" qualifiers="const"> <return type="Rect2"> </return> - <argument index="0" name="item" type="TreeItem"> + <argument index="0" name="item" type="Object"> </argument> - <argument index="1" name="column" type="int" default="-1"> + <argument index="1" name="column" type="int" default="null"> </argument> <description> Get the rectangle area of the the specified item. If column is specified, only get the position and size of that column, otherwise get the rectangle containing all columns. @@ -48316,7 +53749,7 @@ <method name="get_next_selected"> <return type="TreeItem"> </return> - <argument index="0" name="from" type="TreeItem"> + <argument index="0" name="from" type="Object"> </argument> <description> Get the next selected item after the given one. @@ -48357,21 +53790,24 @@ Get the column number of the current selection. </description> </method> - <method name="get_single_select_cell_editing_only_when_already_selected" qualifiers="const"> + <method name="is_folding_hidden" qualifiers="const"> <return type="bool"> </return> <description> - Get whether the editing of a cell should only happen when it is already selected. + Get whether the folding arrow is hidden. </description> </method> - <method name="is_folding_hidden" qualifiers="const"> - <return type="bool"> + <method name="set_allow_reselect"> + <return type="void"> </return> + <argument index="0" name="allow" type="bool"> + </argument> <description> - Get whether the folding arrow is hidden. </description> </method> <method name="set_allow_rmb_select"> + <return type="void"> + </return> <argument index="0" name="allow" type="bool"> </argument> <description> @@ -48379,6 +53815,8 @@ </description> </method> <method name="set_column_expand"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="expand" type="bool"> @@ -48388,6 +53826,8 @@ </description> </method> <method name="set_column_min_width"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="min_width" type="int"> @@ -48397,6 +53837,8 @@ </description> </method> <method name="set_column_title"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="title" type="String"> @@ -48406,6 +53848,8 @@ </description> </method> <method name="set_column_titles_visible"> + <return type="void"> + </return> <argument index="0" name="visible" type="bool"> </argument> <description> @@ -48413,6 +53857,8 @@ </description> </method> <method name="set_columns"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> @@ -48420,6 +53866,8 @@ </description> </method> <method name="set_drop_mode_flags"> + <return type="void"> + </return> <argument index="0" name="flags" type="int"> </argument> <description> @@ -48427,6 +53875,8 @@ </description> </method> <method name="set_hide_folding"> + <return type="void"> + </return> <argument index="0" name="hide" type="bool"> </argument> <description> @@ -48434,6 +53884,8 @@ </description> </method> <method name="set_hide_root"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -48441,19 +53893,14 @@ </description> </method> <method name="set_select_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Tree.SelectMode"> </argument> <description> Set the selection mode. Use one of the [code]SELECT_*[/code] constants. </description> </method> - <method name="set_single_select_cell_editing_only_when_already_selected"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set whether the editing of a cell should only happen when it is already selected. - </description> - </method> </methods> <signals> <signal name="button_pressed"> @@ -48517,6 +53964,10 @@ Emitted when an item is editted. </description> </signal> + <signal name="item_rmb_edited"> + <description> + </description> + </signal> <signal name="item_rmb_selected"> <argument index="0" name="pos" type="Vector2"> </argument> @@ -48640,38 +54091,48 @@ </description> <methods> <method name="add_button"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="button" type="Texture"> </argument> <argument index="2" name="button_idx" type="int" default="-1"> </argument> - <argument index="3" name="disabled" type="bool" default="false"> + <argument index="3" name="disabled" type="bool" default="null"> </argument> - <argument index="4" name="tooltip" type="String" default=""""> + <argument index="4" name="tooltip" type="String" default="null"> </argument> <description> </description> </method> <method name="clear_custom_bg_color"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <description> </description> </method> <method name="clear_custom_color"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <description> </description> </method> <method name="deselect"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <description> </description> </method> <method name="erase_button"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="button_idx" type="int"> @@ -48752,6 +54213,8 @@ </description> </method> <method name="get_metadata" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="column" type="int"> </argument> <description> @@ -48890,15 +54353,19 @@ </description> </method> <method name="move_to_bottom"> + <return type="void"> + </return> <description> </description> </method> <method name="move_to_top"> + <return type="void"> + </return> <description> </description> </method> <method name="remove_child"> - <return type="TreeItem"> + <return type="void"> </return> <argument index="0" name="child" type="Object"> </argument> @@ -48906,12 +54373,16 @@ </description> </method> <method name="select"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <description> </description> </method> <method name="set_button"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="button_idx" type="int"> @@ -48922,14 +54393,18 @@ </description> </method> <method name="set_cell_mode"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> - <argument index="1" name="mode" type="int"> + <argument index="1" name="mode" type="int" enum="TreeItem.TreeCellMode"> </argument> <description> </description> </method> <method name="set_checked"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="checked" type="bool"> @@ -48938,12 +54413,16 @@ </description> </method> <method name="set_collapsed"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_custom_as_button"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -48952,16 +54431,20 @@ </description> </method> <method name="set_custom_bg_color"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="color" type="Color"> </argument> - <argument index="2" name="just_outline" type="bool" default="false"> + <argument index="2" name="just_outline" type="bool" default="null"> </argument> <description> </description> </method> <method name="set_custom_color"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="color" type="Color"> @@ -48970,6 +54453,8 @@ </description> </method> <method name="set_custom_draw"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="object" type="Object"> @@ -48980,12 +54465,16 @@ </description> </method> <method name="set_disable_folding"> + <return type="void"> + </return> <argument index="0" name="disable" type="bool"> </argument> <description> </description> </method> <method name="set_editable"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="enabled" type="bool"> @@ -48994,6 +54483,8 @@ </description> </method> <method name="set_expand_right"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="enable" type="bool"> @@ -49002,6 +54493,8 @@ </description> </method> <method name="set_icon"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="texture" type="Texture"> @@ -49010,6 +54503,8 @@ </description> </method> <method name="set_icon_max_width"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="width" type="int"> @@ -49018,6 +54513,8 @@ </description> </method> <method name="set_icon_region"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="region" type="Rect2"> @@ -49026,6 +54523,8 @@ </description> </method> <method name="set_metadata"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="meta" type="Variant"> @@ -49034,6 +54533,8 @@ </description> </method> <method name="set_range"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="value" type="float"> @@ -49042,6 +54543,8 @@ </description> </method> <method name="set_range_config"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="min" type="float"> @@ -49050,12 +54553,14 @@ </argument> <argument index="3" name="step" type="float"> </argument> - <argument index="4" name="expr" type="bool" default="false"> + <argument index="4" name="expr" type="bool" default="null"> </argument> <description> </description> </method> <method name="set_selectable"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="selectable" type="bool"> @@ -49064,6 +54569,8 @@ </description> </method> <method name="set_text"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="text" type="String"> @@ -49072,14 +54579,18 @@ </description> </method> <method name="set_text_align"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> - <argument index="1" name="text_align" type="int"> + <argument index="1" name="text_align" type="int" enum="TreeItem.TextAlign"> </argument> <description> </description> </method> <method name="set_tooltip"> + <return type="void"> + </return> <argument index="0" name="column" type="int"> </argument> <argument index="1" name="tooltip" type="String"> @@ -49144,11 +54655,11 @@ </argument> <argument index="5" name="duration" type="float"> </argument> - <argument index="6" name="trans_type" type="int"> + <argument index="6" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="7" name="ease_type" type="int"> + <argument index="7" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="8" name="delay" type="float" default="0"> + <argument index="8" name="delay" type="float" default="null"> </argument> <description> Follow [code]method[/code] of [code]object[/code] and apply the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] later. Methods are animated by calling them with consequitive values. @@ -49170,11 +54681,11 @@ </argument> <argument index="5" name="duration" type="float"> </argument> - <argument index="6" name="trans_type" type="int"> + <argument index="6" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="7" name="ease_type" type="int"> + <argument index="7" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="8" name="delay" type="float" default="0"> + <argument index="8" name="delay" type="float" default="null"> </argument> <description> Follow [code]property[/code] of [code]object[/code] and apply it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Note that [code]target:target_property[/code] would equal [code]object:property[/code] at the end of the tween. @@ -49211,15 +54722,15 @@ </argument> <argument index="2" name="callback" type="String"> </argument> - <argument index="3" name="arg1" type="Variant" default="NULL"> + <argument index="3" name="arg1" type="Variant" default="null"> </argument> - <argument index="4" name="arg2" type="Variant" default="NULL"> + <argument index="4" name="arg2" type="Variant" default="null"> </argument> - <argument index="5" name="arg3" type="Variant" default="NULL"> + <argument index="5" name="arg3" type="Variant" default="null"> </argument> - <argument index="6" name="arg4" type="Variant" default="NULL"> + <argument index="6" name="arg4" type="Variant" default="null"> </argument> - <argument index="7" name="arg5" type="Variant" default="NULL"> + <argument index="7" name="arg5" type="Variant" default="null"> </argument> <description> Call [code]callback[/code] of [code]object[/code] after [code]duration[/code]. [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. @@ -49234,15 +54745,15 @@ </argument> <argument index="2" name="callback" type="String"> </argument> - <argument index="3" name="arg1" type="Variant" default="NULL"> + <argument index="3" name="arg1" type="Variant" default="null"> </argument> - <argument index="4" name="arg2" type="Variant" default="NULL"> + <argument index="4" name="arg2" type="Variant" default="null"> </argument> - <argument index="5" name="arg3" type="Variant" default="NULL"> + <argument index="5" name="arg3" type="Variant" default="null"> </argument> - <argument index="6" name="arg4" type="Variant" default="NULL"> + <argument index="6" name="arg4" type="Variant" default="null"> </argument> - <argument index="7" name="arg5" type="Variant" default="NULL"> + <argument index="7" name="arg5" type="Variant" default="null"> </argument> <description> Call [code]callback[/code] of [code]object[/code] after [code]duration[/code] on the main thread (similar to [methog Object.call_deferred). [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. @@ -49261,11 +54772,11 @@ </argument> <argument index="4" name="duration" type="float"> </argument> - <argument index="5" name="trans_type" type="int"> + <argument index="5" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="6" name="ease_type" type="int"> + <argument index="6" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="7" name="delay" type="float" default="0"> + <argument index="7" name="delay" type="float" default="null"> </argument> <description> Animate [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. @@ -49285,11 +54796,11 @@ </argument> <argument index="4" name="duration" type="float"> </argument> - <argument index="5" name="trans_type" type="int"> + <argument index="5" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="6" name="ease_type" type="int"> + <argument index="6" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="7" name="delay" type="float" default="0"> + <argument index="7" name="delay" type="float" default="null"> </argument> <description> Animate [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. @@ -49315,7 +54826,7 @@ </return> <argument index="0" name="object" type="Object"> </argument> - <argument index="1" name="key" type="String" default=""""> + <argument index="1" name="key" type="String" default="null"> </argument> <description> Stop animating and completely remove a tween, given its object and property/method pair. Passing empty String as key will remove all tweens for given object. @@ -49333,7 +54844,7 @@ </return> <argument index="0" name="object" type="Object"> </argument> - <argument index="1" name="key" type="String" default=""""> + <argument index="1" name="key" type="String" default="null"> </argument> <description> Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. Passing empty String as key will reset all tweens for given object. @@ -49351,7 +54862,7 @@ </return> <argument index="0" name="object" type="Object"> </argument> - <argument index="1" name="key" type="String" default=""""> + <argument index="1" name="key" type="String" default="null"> </argument> <description> Continue animating a stopped tween, given its object and property/method pair. Passing empty String as key will resume all tweens for given object. @@ -49374,6 +54885,8 @@ </description> </method> <method name="set_active"> + <return type="void"> + </return> <argument index="0" name="active" type="bool"> </argument> <description> @@ -49381,6 +54894,8 @@ </description> </method> <method name="set_repeat"> + <return type="void"> + </return> <argument index="0" name="repeat" type="bool"> </argument> <description> @@ -49388,6 +54903,8 @@ </description> </method> <method name="set_speed_scale"> + <return type="void"> + </return> <argument index="0" name="speed" type="float"> </argument> <description> @@ -49395,7 +54912,9 @@ </description> </method> <method name="set_tween_process_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Tween.TweenProcessMode"> </argument> <description> Set whether the Tween uses [code]_process[/code] or [code]_fixed_process[/code] (accepts TWEEN_PROCESS_IDLE and TWEEN_PROCESS_FIXED constants, respectively). @@ -49413,7 +54932,7 @@ </return> <argument index="0" name="object" type="Object"> </argument> - <argument index="1" name="key" type="String" default=""""> + <argument index="1" name="key" type="String" default="null"> </argument> <description> Stop animating a tween, given its object and property/method pair. Passing empty String as key will stop all tweens for given object. @@ -49441,11 +54960,11 @@ </argument> <argument index="5" name="duration" type="float"> </argument> - <argument index="6" name="trans_type" type="int"> + <argument index="6" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="7" name="ease_type" type="int"> + <argument index="7" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="8" name="delay" type="float" default="0"> + <argument index="8" name="delay" type="float" default="null"> </argument> <description> Animate [code]method[/code] of [code]object[/code] from the value returned by [code]initial.initial_method[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. @@ -49467,11 +54986,11 @@ </argument> <argument index="5" name="duration" type="float"> </argument> - <argument index="6" name="trans_type" type="int"> + <argument index="6" name="trans_type" type="int" enum="Tween.TransitionType"> </argument> - <argument index="7" name="ease_type" type="int"> + <argument index="7" name="ease_type" type="int" enum="Tween.EaseType"> </argument> - <argument index="8" name="delay" type="float" default="0"> + <argument index="8" name="delay" type="float" default="null"> </argument> <description> Animate [code]property[/code] of [code]object[/code] from the current value of the [code]initial_val[/code] property of [code]initial[/code] to [code]final_val[/code] for [code]duration[/code] seconds, [code]delay[/code] seconds later. @@ -49487,7 +55006,7 @@ </method> </methods> <members> - <member name="playback_process_mode" type="int" setter="set_tween_process_mode" getter="get_tween_process_mode" brief=""> + <member name="playback_process_mode" type="int" setter="set_tween_process_mode" getter="get_tween_process_mode" brief="" enum="Tween.TweenProcessMode"> </member> </members> <signals> @@ -49587,6 +55106,8 @@ </description> <methods> <method name="add_do_method" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="object" type="Object"> </argument> <argument index="1" name="method" type="String"> @@ -49595,6 +55116,8 @@ </description> </method> <method name="add_do_property"> + <return type="void"> + </return> <argument index="0" name="object" type="Object"> </argument> <argument index="1" name="property" type="String"> @@ -49606,6 +55129,8 @@ </description> </method> <method name="add_do_reference"> + <return type="void"> + </return> <argument index="0" name="object" type="Object"> </argument> <description> @@ -49613,6 +55138,8 @@ </description> </method> <method name="add_undo_method" qualifiers="vararg"> + <return type="Variant"> + </return> <argument index="0" name="object" type="Object"> </argument> <argument index="1" name="method" type="String"> @@ -49621,6 +55148,8 @@ </description> </method> <method name="add_undo_property"> + <return type="void"> + </return> <argument index="0" name="object" type="Object"> </argument> <argument index="1" name="property" type="String"> @@ -49632,6 +55161,8 @@ </description> </method> <method name="add_undo_reference"> + <return type="void"> + </return> <argument index="0" name="object" type="Object"> </argument> <description> @@ -49639,19 +55170,25 @@ </description> </method> <method name="clear_history"> + <return type="void"> + </return> <description> Clear the undo/redo history and associated references. </description> </method> <method name="commit_action"> + <return type="void"> + </return> <description> Commit the action. All 'do' methods/properties are called/set when this function is called. </description> </method> <method name="create_action"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="merge_mode" type="int" default="0"> + <argument index="1" name="merge_mode" type="int" enum="UndoRedo.MergeMode" default="null"> </argument> <description> Create a new action. After this is called, do all your calls to [method add_do_method], [method add_undo_method], [method add_do_property] and [method add_undo_property]. @@ -49717,6 +55254,8 @@ </theme_item> <theme_item name="grabber_highlight" type="StyleBox"> </theme_item> + <theme_item name="grabber_pressed" type="StyleBox"> + </theme_item> <theme_item name="increment" type="Texture"> </theme_item> <theme_item name="increment_highlight" type="Texture"> @@ -49757,6 +55296,8 @@ <constants> </constants> <theme_items> + <theme_item name="focus" type="StyleBox"> + </theme_item> <theme_item name="grabber" type="Texture"> </theme_item> <theme_item name="grabber_disabled" type="Texture"> @@ -50262,13 +55803,13 @@ </member> </members> <constants> - <constant name="AXIS_X" value="0"> + <constant name="AXIS_X" value="0" enum=""> Enumerated value for the X axis. Returned by functions like max_axis or min_axis. </constant> - <constant name="AXIS_Y" value="1"> + <constant name="AXIS_Y" value="1" enum=""> Enumerated value for the Y axis. </constant> - <constant name="AXIS_Z" value="2"> + <constant name="AXIS_Z" value="2" enum=""> Enumerated value for the Z axis. </constant> </constants> @@ -50322,30 +55863,40 @@ </description> </method> <method name="set_brake"> + <return type="void"> + </return> <argument index="0" name="brake" type="float"> </argument> <description> </description> </method> <method name="set_engine_force"> + <return type="void"> + </return> <argument index="0" name="engine_force" type="float"> </argument> <description> </description> </method> <method name="set_friction"> + <return type="void"> + </return> <argument index="0" name="friction" type="float"> </argument> <description> </description> </method> <method name="set_mass"> + <return type="void"> + </return> <argument index="0" name="mass" type="float"> </argument> <description> </description> </method> <method name="set_steering"> + <return type="void"> + </return> <argument index="0" name="steering" type="float"> </argument> <description> @@ -50447,66 +55998,88 @@ </description> </method> <method name="set_damping_compression"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_damping_relaxation"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_friction_slip"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_radius"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_roll_influence"> + <return type="void"> + </return> <argument index="0" name="roll_influence" type="float"> </argument> <description> </description> </method> <method name="set_suspension_max_force"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_suspension_rest_length"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_suspension_stiffness"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_suspension_travel"> + <return type="void"> + </return> <argument index="0" name="length" type="float"> </argument> <description> </description> </method> <method name="set_use_as_steering"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_use_as_traction"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -50633,11 +56206,15 @@ </description> </method> <method name="play"> + <return type="void"> + </return> <description> Start the video playback. </description> </method> <method name="set_audio_track"> + <return type="void"> + </return> <argument index="0" name="track" type="int"> </argument> <description> @@ -50645,6 +56222,8 @@ </description> </method> <method name="set_autoplay"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -50652,6 +56231,8 @@ </description> </method> <method name="set_buffering_msec"> + <return type="void"> + </return> <argument index="0" name="msec" type="int"> </argument> <description> @@ -50659,6 +56240,8 @@ </description> </method> <method name="set_expand"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -50666,6 +56249,8 @@ </description> </method> <method name="set_paused"> + <return type="void"> + </return> <argument index="0" name="paused" type="bool"> </argument> <description> @@ -50673,6 +56258,8 @@ </description> </method> <method name="set_stream"> + <return type="void"> + </return> <argument index="0" name="stream" type="VideoStream"> </argument> <description> @@ -50680,6 +56267,8 @@ </description> </method> <method name="set_volume"> + <return type="void"> + </return> <argument index="0" name="volume" type="float"> </argument> <description> @@ -50687,6 +56276,8 @@ </description> </method> <method name="set_volume_db"> + <return type="void"> + </return> <argument index="0" name="db" type="float"> </argument> <description> @@ -50694,6 +56285,8 @@ </description> </method> <method name="stop"> + <return type="void"> + </return> <description> Stop the video playback. </description> @@ -50739,11 +56332,6 @@ Finally, viewports can also behave as render targets, in which case they will not be visible unless the associated texture is used to draw. </description> <methods> - <method name="clear"> - <description> - Clear the viewport manually. - </description> - </method> <method name="find_world" qualifiers="const"> <return type="World"> </return> @@ -50772,11 +56360,10 @@ Get the canvas transform of the viewport. </description> </method> - <method name="get_clear_on_new_frame" qualifiers="const"> - <return type="bool"> + <method name="get_clear_mode" qualifiers="const"> + <return type="int"> </return> <description> - Return whether automatic clearing of the render target on each frame is enabled. </description> </method> <method name="get_debug_draw" qualifiers="const"> @@ -50829,7 +56416,7 @@ <method name="get_render_info"> <return type="int"> </return> - <argument index="0" name="info" type="int"> + <argument index="0" name="info" type="int" enum="Viewport.RenderInfo"> </argument> <description> </description> @@ -50939,7 +56526,9 @@ </description> </method> <method name="input"> - <argument index="0" name="local_event" type="Object"> + <return type="void"> + </return> + <argument index="0" name="local_event" type="InputEvent"> </argument> <description> </description> @@ -50993,6 +56582,8 @@ </description> </method> <method name="set_as_audio_listener"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51000,6 +56591,8 @@ </description> </method> <method name="set_as_audio_listener_2d"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51007,37 +56600,49 @@ </description> </method> <method name="set_attach_to_screen_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> </description> </method> <method name="set_canvas_transform"> + <return type="void"> + </return> <argument index="0" name="xform" type="Transform2D"> </argument> <description> Set the canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]\ s. This is relative to the global canvas transform of the viewport. </description> </method> - <method name="set_clear_on_new_frame"> - <argument index="0" name="enable" type="bool"> + <method name="set_clear_mode"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Viewport.ClearMode"> </argument> <description> </description> </method> <method name="set_debug_draw"> - <argument index="0" name="debug_draw" type="int"> + <return type="void"> + </return> + <argument index="0" name="debug_draw" type="int" enum="Viewport.DebugDraw"> </argument> <description> </description> </method> <method name="set_disable_3d"> + <return type="void"> + </return> <argument index="0" name="disable" type="bool"> </argument> <description> </description> </method> <method name="set_disable_input"> + <return type="void"> + </return> <argument index="0" name="disable" type="bool"> </argument> <description> @@ -51045,6 +56650,8 @@ </description> </method> <method name="set_global_canvas_transform"> + <return type="void"> + </return> <argument index="0" name="xform" type="Transform2D"> </argument> <description> @@ -51052,18 +56659,24 @@ </description> </method> <method name="set_hdr"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_msaa"> - <argument index="0" name="msaa" type="int"> + <return type="void"> + </return> + <argument index="0" name="msaa" type="int" enum="Viewport.MSAA"> </argument> <description> </description> </method> <method name="set_physics_object_picking"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51071,20 +56684,26 @@ </description> </method> <method name="set_shadow_atlas_quadrant_subdiv"> + <return type="void"> + </return> <argument index="0" name="quadrant" type="int"> </argument> - <argument index="1" name="subdiv" type="int"> + <argument index="1" name="subdiv" type="int" enum="Viewport.ShadowAtlasQuadrantSubdiv"> </argument> <description> </description> </method> <method name="set_shadow_atlas_size"> + <return type="void"> + </return> <argument index="0" name="size" type="int"> </argument> <description> </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> @@ -51092,17 +56711,21 @@ </description> </method> <method name="set_size_override"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> - <argument index="1" name="size" type="Vector2" default="Vector2(-1, -1)"> + <argument index="1" name="size" type="Vector2" default="Vector2( -1, -1 )"> </argument> - <argument index="2" name="margin" type="Vector2" default="Vector2(0, 0)"> + <argument index="2" name="margin" type="Vector2" default="null"> </argument> <description> Set the size override of the viewport. If the enable parameter is true, it would use the override, otherwise it would use the default size. If the size parameter is equal to [code](-1, -1)[/code], it won't update the size. </description> </method> <method name="set_size_override_stretch"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> @@ -51110,6 +56733,8 @@ </description> </method> <method name="set_transparent_background"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51117,19 +56742,33 @@ </description> </method> <method name="set_update_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="Viewport.UpdateMode"> </argument> <description> Set when the render target would be updated, using the [code]UPDATE_*[/code] constants </description> </method> <method name="set_usage"> - <argument index="0" name="usage" type="int"> + <return type="void"> + </return> + <argument index="0" name="usage" type="int" enum="Viewport.Usage"> + </argument> + <description> + </description> + </method> + <method name="set_use_arvr"> + <return type="void"> + </return> + <argument index="0" name="use" type="bool"> </argument> <description> </description> </method> <method name="set_use_own_world"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51137,6 +56776,8 @@ </description> </method> <method name="set_vflip"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51144,6 +56785,8 @@ </description> </method> <method name="set_world"> + <return type="void"> + </return> <argument index="0" name="world" type="World"> </argument> <description> @@ -51151,23 +56794,37 @@ </description> </method> <method name="set_world_2d"> + <return type="void"> + </return> <argument index="0" name="world_2d" type="World2D"> </argument> <description> </description> </method> <method name="unhandled_input"> - <argument index="0" name="local_event" type="Object"> + <return type="void"> + </return> + <argument index="0" name="local_event" type="InputEvent"> </argument> <description> </description> </method> <method name="update_worlds"> + <return type="void"> + </return> <description> Force update of the 2D and 3D worlds. </description> </method> + <method name="use_arvr"> + <return type="bool"> + </return> + <description> + </description> + </method> <method name="warp_mouse"> + <return type="void"> + </return> <argument index="0" name="to_pos" type="Vector2"> </argument> <description> @@ -51176,11 +56833,13 @@ </method> </methods> <members> + <member name="arvr" type="bool" setter="set_use_arvr" getter="use_arvr" brief=""> + </member> <member name="audio_listener_enable_2d" type="bool" setter="set_as_audio_listener_2d" getter="is_audio_listener_2d" brief=""> </member> <member name="audio_listener_enable_3d" type="bool" setter="set_as_audio_listener" getter="is_audio_listener" brief=""> </member> - <member name="debug_draw" type="int" setter="set_debug_draw" getter="get_debug_draw" brief=""> + <member name="debug_draw" type="int" setter="set_debug_draw" getter="get_debug_draw" brief="" enum="Viewport.DebugDraw"> </member> <member name="disable_3d" type="bool" setter="set_disable_3d" getter="is_3d_disabled" brief=""> </member> @@ -51188,33 +56847,33 @@ </member> <member name="hdr" type="bool" setter="set_hdr" getter="get_hdr" brief=""> </member> - <member name="msaa" type="int" setter="set_msaa" getter="get_msaa" brief=""> + <member name="msaa" type="int" setter="set_msaa" getter="get_msaa" brief="" enum="Viewport.MSAA"> </member> <member name="own_world" type="bool" setter="set_use_own_world" getter="is_using_own_world" brief=""> </member> <member name="physics_object_picking" type="bool" setter="set_physics_object_picking" getter="get_physics_object_picking" brief=""> </member> - <member name="render_target_clear_on_new_frame" type="bool" setter="set_clear_on_new_frame" getter="get_clear_on_new_frame" brief=""> + <member name="render_target_clear_mode" type="int" setter="set_clear_mode" getter="get_clear_mode" brief="" enum="Viewport.ClearMode"> </member> - <member name="render_target_update_mode" type="int" setter="set_update_mode" getter="get_update_mode" brief=""> + <member name="render_target_update_mode" type="int" setter="set_update_mode" getter="get_update_mode" brief="" enum="Viewport.UpdateMode"> </member> <member name="render_target_v_flip" type="bool" setter="set_vflip" getter="get_vflip" brief=""> </member> - <member name="shadow_atlas_quad_0" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief=""> + <member name="shadow_atlas_quad_0" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief="" enum="Viewport.ShadowAtlasQuadrantSubdiv"> </member> - <member name="shadow_atlas_quad_1" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief=""> + <member name="shadow_atlas_quad_1" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief="" enum="Viewport.ShadowAtlasQuadrantSubdiv"> </member> - <member name="shadow_atlas_quad_2" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief=""> + <member name="shadow_atlas_quad_2" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief="" enum="Viewport.ShadowAtlasQuadrantSubdiv"> </member> - <member name="shadow_atlas_quad_3" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief=""> + <member name="shadow_atlas_quad_3" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" brief="" enum="Viewport.ShadowAtlasQuadrantSubdiv"> </member> <member name="shadow_atlas_size" type="int" setter="set_shadow_atlas_size" getter="get_shadow_atlas_size" brief=""> </member> - <member name="size" type="Rect2" setter="set_size" getter="get_size" brief=""> + <member name="size" type="Vector2" setter="set_size" getter="get_size" brief=""> </member> <member name="transparent_bg" type="bool" setter="set_transparent_background" getter="has_transparent_background" brief=""> </member> - <member name="usage" type="int" setter="set_usage" getter="get_usage" brief=""> + <member name="usage" type="int" setter="set_usage" getter="get_usage" brief="" enum="Viewport.Usage"> </member> <member name="world" type="World" setter="set_world" getter="get_world" brief=""> </member> @@ -51301,6 +56960,8 @@ </description> </method> <method name="set_stretch"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -51327,6 +56988,8 @@ </description> </method> <method name="set_viewport_path_in_scene"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> @@ -51351,14 +57014,16 @@ <method name="is_enabler_enabled" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="enabler" type="int"> + <argument index="0" name="enabler" type="int" enum="VisibilityEnabler.Enabler"> </argument> <description> Returns whether the specified enabler was set to true or not. </description> </method> <method name="set_enabler"> - <argument index="0" name="enabler" type="int"> + <return type="void"> + </return> + <argument index="0" name="enabler" type="int" enum="VisibilityEnabler.Enabler"> </argument> <argument index="1" name="enabled" type="bool"> </argument> @@ -51395,14 +57060,16 @@ <method name="is_enabler_enabled" qualifiers="const"> <return type="bool"> </return> - <argument index="0" name="enabler" type="int"> + <argument index="0" name="enabler" type="int" enum="VisibilityEnabler2D.Enabler"> </argument> <description> Returns whether the specified enabler was set to true or not. </description> </method> <method name="set_enabler"> - <argument index="0" name="enabler" type="int"> + <return type="void"> + </return> + <argument index="0" name="enabler" type="int" enum="VisibilityEnabler2D.Enabler"> </argument> <argument index="1" name="enabled" type="bool"> </argument> @@ -51470,6 +57137,8 @@ </description> </method> <method name="set_aabb"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect3"> </argument> <description> @@ -51533,6 +57202,8 @@ </description> </method> <method name="set_rect"> + <return type="void"> + </return> <argument index="0" name="rect" type="Rect2"> </argument> <description> @@ -51598,12 +57269,16 @@ </description> </method> <method name="set_base"> + <return type="void"> + </return> <argument index="0" name="base" type="RID"> </argument> <description> </description> </method> <method name="set_layer_mask"> + <return type="void"> + </return> <argument index="0" name="mask" type="int"> </argument> <description> @@ -51624,47 +57299,57 @@ </description> <methods> <method name="add_custom_signal"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="add_function"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="add_node"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="id" type="int"> </argument> - <argument index="2" name="node" type="Object"> + <argument index="2" name="node" type="VisualScriptNode"> </argument> - <argument index="3" name="pos" type="Vector2" default="Vector2(0, 0)"> + <argument index="3" name="pos" type="Vector2" default="null"> </argument> <description> </description> </method> <method name="add_variable"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="default_value" type="Variant" default="NULL"> + <argument index="1" name="default_value" type="Variant" default="null"> </argument> - <argument index="2" name="export" type="bool" default="false"> + <argument index="2" name="export" type="bool" default="null"> </argument> <description> </description> </method> <method name="custom_signal_add_argument"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="type" type="int"> + <argument index="1" name="type" type="int" enum="Variant.Type"> </argument> <argument index="2" name="argname" type="String"> </argument> - <argument index="3" name="index" type="int" default="-1"> + <argument index="3" name="index" type="int" default="null"> </argument> <description> </description> @@ -51698,14 +57383,18 @@ </description> </method> <method name="custom_signal_remove_argument"> - <argument index="0" name="argidx" type="String"> + <return type="void"> + </return> + <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="arg1" type="int"> + <argument index="1" name="argidx" type="int"> </argument> <description> </description> </method> <method name="custom_signal_set_argument_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="argidx" type="int"> @@ -51716,16 +57405,20 @@ </description> </method> <method name="custom_signal_set_argument_type"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="argidx" type="int"> </argument> - <argument index="2" name="type" type="int"> + <argument index="2" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="custom_signal_swap_argument"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="argidx" type="int"> @@ -51736,6 +57429,8 @@ </description> </method> <method name="data_connect"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="from_node" type="int"> @@ -51750,6 +57445,8 @@ </description> </method> <method name="data_disconnect"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="from_node" type="int"> @@ -51774,13 +57471,13 @@ <method name="get_function_scroll" qualifiers="const"> <return type="Vector2"> </return> - <argument index="0" name="arg0" type="String"> + <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="get_node" qualifiers="const"> - <return type="Object"> + <return type="VisualScriptNode"> </return> <argument index="0" name="func" type="String"> </argument> @@ -51800,6 +57497,8 @@ </description> </method> <method name="get_variable_default_value" qualifiers="const"> + <return type="Variant"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -51886,18 +57585,24 @@ </description> </method> <method name="remove_custom_signal"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="remove_function"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="remove_node"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="id" type="int"> @@ -51906,12 +57611,16 @@ </description> </method> <method name="remove_variable"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="rename_custom_signal"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="new_name" type="String"> @@ -51920,6 +57629,8 @@ </description> </method> <method name="rename_function"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="new_name" type="String"> @@ -51928,6 +57639,8 @@ </description> </method> <method name="rename_variable"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="new_name" type="String"> @@ -51936,6 +57649,8 @@ </description> </method> <method name="sequence_connect"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="from_node" type="int"> @@ -51948,6 +57663,8 @@ </description> </method> <method name="sequence_disconnect"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="from_node" type="int"> @@ -51960,20 +57677,26 @@ </description> </method> <method name="set_function_scroll"> - <argument index="0" name="ofs" type="String"> + <return type="void"> + </return> + <argument index="0" name="name" type="String"> </argument> - <argument index="1" name="arg1" type="Vector2"> + <argument index="1" name="ofs" type="Vector2"> </argument> <description> </description> </method> <method name="set_instance_base_type"> + <return type="void"> + </return> <argument index="0" name="type" type="String"> </argument> <description> </description> </method> <method name="set_node_pos"> + <return type="void"> + </return> <argument index="0" name="func" type="String"> </argument> <argument index="1" name="id" type="int"> @@ -51984,6 +57707,8 @@ </description> </method> <method name="set_variable_default_value"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="value" type="Variant"> @@ -51992,6 +57717,8 @@ </description> </method> <method name="set_variable_export"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="enable" type="bool"> @@ -52000,6 +57727,8 @@ </description> </method> <method name="set_variable_info"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <argument index="1" name="value" type="Dictionary"> @@ -52044,12 +57773,16 @@ </description> </method> <method name="set_basic_type"> - <argument index="0" name="name" type="int"> + <return type="void"> + </return> + <argument index="0" name="name" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="set_basic_type_constant"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -52057,9 +57790,9 @@ </method> </methods> <members> - <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief=""> + <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief="" enum="Variant.Type"> </member> - <member name="constant" type="String" setter="set_basic_type_constant" getter="get_basic_type_constant" brief=""> + <member name="constant/constant" type="String" setter="set_basic_type_constant" getter="get_basic_type_constant" brief=""> </member> </members> <constants> @@ -52078,14 +57811,16 @@ </description> </method> <method name="set_func"> - <argument index="0" name="which" type="int"> + <return type="void"> + </return> + <argument index="0" name="which" type="int" enum="VisualScriptBuiltinFunc.BuiltinFunc"> </argument> <description> </description> </method> </methods> <members> - <member name="function" type="int" setter="set_func" getter="get_func" brief=""> + <member name="function" type="int" setter="set_func" getter="get_func" brief="" enum="VisualScriptBuiltinFunc.BuiltinFunc"> </member> </members> <constants> @@ -52110,12 +57845,16 @@ </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_class_constant"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -52125,7 +57864,7 @@ <members> <member name="base_type" type="String" setter="set_base_type" getter="get_base_type" brief=""> </member> - <member name="constant" type="String" setter="set_class_constant" getter="get_class_constant" brief=""> + <member name="constant/constant" type="String" setter="set_class_constant" getter="get_class_constant" brief=""> </member> </members> <constants> @@ -52156,18 +57895,24 @@ </description> </method> <method name="set_description"> + <return type="void"> + </return> <argument index="0" name="description" type="String"> </argument> <description> </description> </method> <method name="set_size"> + <return type="void"> + </return> <argument index="0" name="size" type="Vector2"> </argument> <description> </description> </method> <method name="set_title"> + <return type="void"> + </return> <argument index="0" name="title" type="String"> </argument> <description> @@ -52214,12 +57959,16 @@ </description> </method> <method name="set_constant_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="set_constant_value"> + <return type="void"> + </return> <argument index="0" name="value" type="Variant"> </argument> <description> @@ -52227,9 +57976,9 @@ </method> </methods> <members> - <member name="type" type="int" setter="set_constant_type" getter="get_constant_type" brief=""> + <member name="type" type="int" setter="set_constant_type" getter="get_constant_type" brief="" enum="Variant.Type"> </member> - <member name="value" type="Nil" setter="set_constant_value" getter="get_constant_value" brief=""> + <member name="value" type="Variant" setter="set_constant_value" getter="get_constant_value" brief=""> </member> </members> <constants> @@ -52254,13 +58003,17 @@ </description> </method> <method name="set_constructor"> + <return type="void"> + </return> <argument index="0" name="constructor" type="Dictionary"> </argument> <description> </description> </method> <method name="set_constructor_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> @@ -52269,7 +58022,7 @@ <members> <member name="constructor" type="Dictionary" setter="set_constructor" getter="get_constructor" brief=""> </member> - <member name="type" type="int" setter="set_constructor_type" getter="get_constructor_type" brief=""> + <member name="type" type="int" setter="set_constructor_type" getter="get_constructor_type" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -52391,15 +58144,15 @@ </constant> <constant name="START_MODE_RESUME_YIELD" value="2"> </constant> - <constant name="STEP_PUSH_STACK_BIT" value="16777216"> + <constant name="STEP_PUSH_STACK_BIT" value="16777216" enum=""> </constant> - <constant name="STEP_GO_BACK_BIT" value="33554432"> + <constant name="STEP_GO_BACK_BIT" value="33554432" enum=""> </constant> - <constant name="STEP_NO_ADVANCE_BIT" value="67108864"> + <constant name="STEP_NO_ADVANCE_BIT" value="67108864" enum=""> </constant> - <constant name="STEP_EXIT_FUNCTION_BIT" value="134217728"> + <constant name="STEP_EXIT_FUNCTION_BIT" value="134217728" enum=""> </constant> - <constant name="STEP_YIELD_BIT" value="268435456"> + <constant name="STEP_YIELD_BIT" value="268435456" enum=""> </constant> </constants> </class> @@ -52416,7 +58169,9 @@ </description> </method> <method name="set_deconstruct_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> @@ -52425,7 +58180,7 @@ <members> <member name="elem_cache" type="Array" setter="_set_elem_cache" getter="_get_elem_cache" brief=""> </member> - <member name="type" type="int" setter="set_deconstruct_type" getter="get_deconstruct_type" brief=""> + <member name="type" type="int" setter="set_deconstruct_type" getter="get_deconstruct_type" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -52444,6 +58199,8 @@ </description> </method> <method name="set_signal"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -52470,6 +58227,8 @@ </description> </method> <method name="set_singleton"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -52477,7 +58236,7 @@ </method> </methods> <members> - <member name="constant" type="String" setter="set_singleton" getter="get_singleton" brief=""> + <member name="constant/constant" type="String" setter="set_singleton" getter="get_singleton" brief=""> </member> </members> <constants> @@ -52570,60 +58329,80 @@ </description> </method> <method name="set_base_path"> + <return type="void"> + </return> <argument index="0" name="base_path" type="NodePath"> </argument> <description> </description> </method> <method name="set_base_script"> + <return type="void"> + </return> <argument index="0" name="base_script" type="String"> </argument> <description> </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="base_type" type="String"> </argument> <description> </description> </method> <method name="set_basic_type"> - <argument index="0" name="basic_type" type="int"> + <return type="void"> + </return> + <argument index="0" name="basic_type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="set_call_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptFunctionCall.CallMode"> </argument> <description> </description> </method> <method name="set_function"> + <return type="void"> + </return> <argument index="0" name="function" type="String"> </argument> <description> </description> </method> <method name="set_rpc_call_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptFunctionCall.RPCCallMode"> </argument> <description> </description> </method> <method name="set_singleton"> + <return type="void"> + </return> <argument index="0" name="singleton" type="String"> </argument> <description> </description> </method> <method name="set_use_default_args"> + <return type="void"> + </return> <argument index="0" name="amount" type="int"> </argument> <description> </description> </method> <method name="set_validate"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> @@ -52637,15 +58416,15 @@ </member> <member name="base_type" type="String" setter="set_base_type" getter="get_base_type" brief=""> </member> - <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief=""> + <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief="" enum="Variant.Type"> </member> - <member name="call_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief=""> + <member name="call_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief="" enum="VisualScriptFunctionCall.CallMode"> </member> <member name="function" type="String" setter="set_function" getter="get_function" brief=""> </member> <member name="node_path" type="NodePath" setter="set_base_path" getter="get_base_path" brief=""> </member> - <member name="rpc_call_mode" type="int" setter="set_rpc_call_mode" getter="get_rpc_call_mode" brief=""> + <member name="rpc_call_mode" type="int" setter="set_rpc_call_mode" getter="get_rpc_call_mode" brief="" enum="VisualScriptFunctionCall.RPCCallMode"> </member> <member name="singleton" type="String" setter="set_singleton" getter="get_singleton" brief=""> </member> @@ -52672,6 +58451,8 @@ </description> <methods> <method name="connect_to_signal"> + <return type="void"> + </return> <argument index="0" name="obj" type="Object"> </argument> <argument index="1" name="signals" type="String"> @@ -52688,9 +58469,9 @@ </description> </method> <method name="resume"> - <return type="Array"> + <return type="Variant"> </return> - <argument index="0" name="args" type="Array" default="NULL"> + <argument index="0" name="args" type="Array" default="null"> </argument> <description> </description> @@ -52712,6 +58493,8 @@ </description> </method> <method name="set_global_constant"> + <return type="void"> + </return> <argument index="0" name="index" type="int"> </argument> <description> @@ -52719,7 +58502,7 @@ </method> </methods> <members> - <member name="constant" type="int" setter="set_global_constant" getter="get_global_constant" brief=""> + <member name="constant/constant" type="int" setter="set_global_constant" getter="get_global_constant" brief=""> </member> </members> <constants> @@ -52764,12 +58547,16 @@ </description> </method> <method name="set_action_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptInputAction.Mode"> </argument> <description> </description> </method> <method name="set_action_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -52779,7 +58566,7 @@ <members> <member name="action" type="String" setter="set_action_name" getter="get_action_name" brief=""> </member> - <member name="mode" type="int" setter="set_action_mode" getter="get_action_mode" brief=""> + <member name="mode" type="int" setter="set_action_mode" getter="get_action_mode" brief="" enum="VisualScriptInputAction.Mode"> </member> </members> <constants> @@ -52814,20 +58601,24 @@ </description> </method> <method name="set_var_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_var_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> </methods> <members> - <member name="type" type="int" setter="set_var_type" getter="get_var_type" brief=""> + <member name="type" type="int" setter="set_var_type" getter="get_var_type" brief="" enum="Variant.Type"> </member> <member name="var_name" type="String" setter="set_var_name" getter="get_var_name" brief=""> </member> @@ -52854,20 +58645,24 @@ </description> </method> <method name="set_var_name"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> </description> </method> <method name="set_var_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> </methods> <members> - <member name="type" type="int" setter="set_var_type" getter="get_var_type" brief=""> + <member name="type" type="int" setter="set_var_type" getter="get_var_type" brief="" enum="Variant.Type"> </member> <member name="var_name" type="String" setter="set_var_name" getter="get_var_name" brief=""> </member> @@ -52888,14 +58683,16 @@ </description> </method> <method name="set_math_constant"> - <argument index="0" name="which" type="int"> + <return type="void"> + </return> + <argument index="0" name="which" type="int" enum="VisualScriptMathConstant.MathConstant"> </argument> <description> </description> </method> </methods> <members> - <member name="constant" type="int" setter="set_math_constant" getter="get_math_constant" brief=""> + <member name="constant/constant" type="int" setter="set_math_constant" getter="get_math_constant" brief="" enum="VisualScriptMathConstant.MathConstant"> </member> </members> <constants> @@ -52922,6 +58719,8 @@ </description> </method> <method name="set_default_input_value"> + <return type="void"> + </return> <argument index="0" name="port_idx" type="int"> </argument> <argument index="1" name="value" type="Variant"> @@ -52962,22 +58761,26 @@ </description> </method> <method name="set_operator"> - <argument index="0" name="op" type="int"> + <return type="void"> + </return> + <argument index="0" name="op" type="int" enum="Variant.Operator"> </argument> <description> </description> </method> <method name="set_typed"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> </methods> <members> - <member name="operator" type="int" setter="set_operator" getter="get_operator" brief=""> + <member name="operator" type="int" setter="set_operator" getter="get_operator" brief="" enum="Variant.Operator"> </member> - <member name="type" type="int" setter="set_typed" getter="get_typed" brief=""> + <member name="type" type="int" setter="set_typed" getter="get_typed" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -52990,13 +58793,15 @@ </description> <methods> <method name="get_preload" qualifiers="const"> - <return type="Object"> + <return type="Resource"> </return> <description> </description> </method> <method name="set_preload"> - <argument index="0" name="resource" type="Object"> + <return type="void"> + </return> + <argument index="0" name="resource" type="Resource"> </argument> <description> </description> @@ -53058,42 +58863,56 @@ </description> </method> <method name="set_base_path"> + <return type="void"> + </return> <argument index="0" name="base_path" type="NodePath"> </argument> <description> </description> </method> <method name="set_base_script"> + <return type="void"> + </return> <argument index="0" name="base_script" type="String"> </argument> <description> </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="base_type" type="String"> </argument> <description> </description> </method> <method name="set_basic_type"> - <argument index="0" name="basic_type" type="int"> + <return type="void"> + </return> + <argument index="0" name="basic_type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="set_call_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptPropertyGet.CallMode"> </argument> <description> </description> </method> <method name="set_index"> + <return type="void"> + </return> <argument index="0" name="index" type="String"> </argument> <description> </description> </method> <method name="set_property"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <description> @@ -53105,7 +58924,7 @@ </member> <member name="base_type" type="String" setter="set_base_type" getter="get_base_type" brief=""> </member> - <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief=""> + <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief="" enum="Variant.Type"> </member> <member name="index" type="String" setter="set_index" getter="get_index" brief=""> </member> @@ -53113,9 +58932,9 @@ </member> <member name="property" type="String" setter="set_property" getter="get_property" brief=""> </member> - <member name="set_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief=""> + <member name="set_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief="" enum="VisualScriptPropertyGet.CallMode"> </member> - <member name="type_cache" type="int" setter="_set_type_cache" getter="_get_type_cache" brief=""> + <member name="type_cache" type="int" setter="_set_type_cache" getter="_get_type_cache" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -53182,48 +59001,64 @@ </description> </method> <method name="set_assign_op"> - <argument index="0" name="assign_op" type="int"> + <return type="void"> + </return> + <argument index="0" name="assign_op" type="int" enum="VisualScriptPropertySet.AssignOp"> </argument> <description> </description> </method> <method name="set_base_path"> + <return type="void"> + </return> <argument index="0" name="base_path" type="NodePath"> </argument> <description> </description> </method> <method name="set_base_script"> + <return type="void"> + </return> <argument index="0" name="base_script" type="String"> </argument> <description> </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="base_type" type="String"> </argument> <description> </description> </method> <method name="set_basic_type"> - <argument index="0" name="basic_type" type="int"> + <return type="void"> + </return> + <argument index="0" name="basic_type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> <method name="set_call_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptPropertySet.CallMode"> </argument> <description> </description> </method> <method name="set_index"> + <return type="void"> + </return> <argument index="0" name="index" type="String"> </argument> <description> </description> </method> <method name="set_property"> + <return type="void"> + </return> <argument index="0" name="property" type="String"> </argument> <description> @@ -53231,13 +59066,13 @@ </method> </methods> <members> - <member name="assign_op" type="int" setter="set_assign_op" getter="get_assign_op" brief=""> + <member name="assign_op" type="int" setter="set_assign_op" getter="get_assign_op" brief="" enum="VisualScriptPropertySet.AssignOp"> </member> <member name="base_script" type="String" setter="set_base_script" getter="get_base_script" brief=""> </member> <member name="base_type" type="String" setter="set_base_type" getter="get_base_type" brief=""> </member> - <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief=""> + <member name="basic_type" type="int" setter="set_basic_type" getter="get_basic_type" brief="" enum="Variant.Type"> </member> <member name="index" type="String" setter="set_index" getter="get_index" brief=""> </member> @@ -53245,9 +59080,9 @@ </member> <member name="property" type="String" setter="set_property" getter="get_property" brief=""> </member> - <member name="set_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief=""> + <member name="set_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief="" enum="VisualScriptPropertySet.CallMode"> </member> - <member name="type_cache" type="int" setter="_set_type_cache" getter="_get_type_cache" brief=""> + <member name="type_cache" type="Dictionary" setter="_set_type_cache" getter="_get_type_cache" brief=""> </member> </members> <constants> @@ -53272,6 +59107,8 @@ </description> </method> <method name="set_resource_path"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> @@ -53304,13 +59141,17 @@ </description> </method> <method name="set_enable_return_value"> + <return type="void"> + </return> <argument index="0" name="enable" type="bool"> </argument> <description> </description> </method> <method name="set_return_type"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> @@ -53319,7 +59160,7 @@ <members> <member name="return_enabled" type="bool" setter="set_enable_return_value" getter="is_return_value_enabled" brief=""> </member> - <member name="return_type" type="int" setter="set_return_type" getter="get_return_type" brief=""> + <member name="return_type" type="int" setter="set_return_type" getter="get_return_type" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -53338,6 +59179,8 @@ </description> </method> <method name="set_node_path"> + <return type="void"> + </return> <argument index="0" name="path" type="NodePath"> </argument> <description> @@ -53374,14 +59217,16 @@ </description> </method> <method name="set_typed"> - <argument index="0" name="type" type="int"> + <return type="void"> + </return> + <argument index="0" name="type" type="int" enum="Variant.Type"> </argument> <description> </description> </method> </methods> <members> - <member name="type" type="int" setter="set_typed" getter="get_typed" brief=""> + <member name="type" type="int" setter="set_typed" getter="get_typed" brief="" enum="Variant.Type"> </member> </members> <constants> @@ -53410,6 +59255,8 @@ </description> </method> <method name="set_steps"> + <return type="void"> + </return> <argument index="0" name="steps" type="int"> </argument> <description> @@ -53430,6 +59277,8 @@ </description> <methods> <method name="_subcall" qualifiers="virtual"> + <return type="Variant"> + </return> <argument index="0" name="arguments" type="Variant"> </argument> <description> @@ -53468,12 +59317,16 @@ </description> </method> <method name="set_base_script"> + <return type="void"> + </return> <argument index="0" name="path" type="String"> </argument> <description> </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="type" type="String"> </argument> <description> @@ -53502,6 +59355,8 @@ </description> </method> <method name="set_variable"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -53528,6 +59383,8 @@ </description> </method> <method name="set_variable"> + <return type="void"> + </return> <argument index="0" name="name" type="String"> </argument> <description> @@ -53570,20 +59427,24 @@ </description> </method> <method name="set_wait_time"> + <return type="void"> + </return> <argument index="0" name="sec" type="float"> </argument> <description> </description> </method> <method name="set_yield_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptYield.YieldMode"> </argument> <description> </description> </method> </methods> <members> - <member name="mode" type="int" setter="set_yield_mode" getter="get_yield_mode" brief=""> + <member name="mode" type="int" setter="set_yield_mode" getter="get_yield_mode" brief="" enum="VisualScriptYield.YieldMode"> </member> <member name="wait_time" type="float" setter="set_wait_time" getter="get_wait_time" brief=""> </member> @@ -53628,24 +59489,32 @@ </description> </method> <method name="set_base_path"> + <return type="void"> + </return> <argument index="0" name="base_path" type="NodePath"> </argument> <description> </description> </method> <method name="set_base_type"> + <return type="void"> + </return> <argument index="0" name="base_type" type="String"> </argument> <description> </description> </method> <method name="set_call_mode"> - <argument index="0" name="mode" type="int"> + <return type="void"> + </return> + <argument index="0" name="mode" type="int" enum="VisualScriptYieldSignal.CallMode"> </argument> <description> </description> </method> <method name="set_signal"> + <return type="void"> + </return> <argument index="0" name="signal" type="String"> </argument> <description> @@ -53655,7 +59524,7 @@ <members> <member name="base_type" type="String" setter="set_base_type" getter="get_base_type" brief=""> </member> - <member name="call_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief=""> + <member name="call_mode" type="int" setter="set_call_mode" getter="get_call_mode" brief="" enum="VisualScriptYieldSignal.CallMode"> </member> <member name="node_path" type="NodePath" setter="set_base_path" getter="get_base_path" brief=""> </member> @@ -53680,6 +59549,12 @@ The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed. </description> <methods> + <method name="force_draw"> + <return type="void"> + </return> + <description> + </description> + </method> <method name="texture_create"> <return type="RID"> </return> @@ -53689,9 +59564,9 @@ <method name="texture_create_from_image"> <return type="RID"> </return> - <argument index="0" name="arg0" type="Object"> + <argument index="0" name="image" type="Image"> </argument> - <argument index="1" name="arg1" type="int" default="7"> + <argument index="1" name="flags" type="int" default="null"> </argument> <description> </description> @@ -53699,7 +59574,7 @@ <method name="texture_get_flags" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="arg0" type="RID"> + <argument index="0" name="texture" type="RID"> </argument> <description> </description> @@ -53707,7 +59582,7 @@ <method name="texture_get_height" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="arg0" type="RID"> + <argument index="0" name="texture" type="RID"> </argument> <description> </description> @@ -53715,20 +59590,24 @@ <method name="texture_get_width" qualifiers="const"> <return type="int"> </return> - <argument index="0" name="arg0" type="RID"> + <argument index="0" name="texture" type="RID"> </argument> <description> </description> </method> <method name="texture_set_flags"> - <argument index="0" name="arg0" type="RID"> + <return type="void"> + </return> + <argument index="0" name="texture" type="RID"> </argument> - <argument index="1" name="arg1" type="int"> + <argument index="1" name="flags" type="int"> </argument> <description> </description> </method> <method name="texture_set_shrink_all_x2_on_set_data"> + <return type="void"> + </return> <argument index="0" name="shrink" type="bool"> </argument> <description> @@ -53747,7 +59626,7 @@ </description> <methods> <method name="get_ref" qualifiers="const"> - <return type="Object"> + <return type="Variant"> </return> <description> Returns the [Object] this weakref is referring to. @@ -53786,12 +59665,16 @@ </description> </method> <method name="set_resizable"> + <return type="void"> + </return> <argument index="0" name="resizable" type="bool"> </argument> <description> </description> </method> <method name="set_title"> + <return type="void"> + </return> <argument index="0" name="title" type="String"> </argument> <description> @@ -53867,12 +59750,16 @@ </description> </method> <method name="set_environment"> + <return type="void"> + </return> <argument index="0" name="env" type="Environment"> </argument> <description> </description> </method> <method name="set_fallback_environment"> + <return type="void"> + </return> <argument index="0" name="env" type="Environment"> </argument> <description> @@ -53937,6 +59824,8 @@ </description> </method> <method name="set_environment"> + <return type="void"> + </return> <argument index="0" name="env" type="Environment"> </argument> <description> @@ -54088,6 +59977,8 @@ </description> </method> <method name="skip_section"> + <return type="void"> + </return> <description> Skips the current section. If the node contains other elements, they will be ignored and the cursor will go to the closing of the current element. </description> @@ -54133,6 +60024,8 @@ </description> </method> <method name="set_sort_enabled"> + <return type="void"> + </return> <argument index="0" name="enabled" type="bool"> </argument> <description> diff --git a/drivers/alsa/audio_driver_alsa.cpp b/drivers/alsa/audio_driver_alsa.cpp index 40c66b0bc5..216100bac6 100644 --- a/drivers/alsa/audio_driver_alsa.cpp +++ b/drivers/alsa/audio_driver_alsa.cpp @@ -31,6 +31,7 @@ #ifdef ALSA_ENABLED +#include "os/os.h" #include "project_settings.h" #include <errno.h> @@ -44,7 +45,7 @@ Error AudioDriverALSA::init() { samples_in = NULL; samples_out = NULL; - mix_rate = GLOBAL_DEF("audio/mix_rate", 44100); + mix_rate = GLOBAL_DEF("audio/mix_rate", DEFAULT_MIX_RATE); speaker_mode = SPEAKER_MODE_STEREO; channels = 2; @@ -86,19 +87,25 @@ Error AudioDriverALSA::init() { status = snd_pcm_hw_params_set_rate_near(pcm_handle, hwparams, &mix_rate, NULL); CHECK_FAIL(status < 0); - int latency = GLOBAL_DEF("audio/output_latency", 25); - buffer_size = closest_power_of_2(latency * mix_rate / 1000); + // In ALSA the period size seems to be the one that will determine the actual latency + // Ref: https://www.alsa-project.org/main/index.php/FramesPeriods + unsigned int periods = 2; + int latency = GLOBAL_DEF("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + buffer_frames = closest_power_of_2(latency * mix_rate / 1000); + buffer_size = buffer_frames * periods; + period_size = buffer_frames; // set buffer size from project settings status = snd_pcm_hw_params_set_buffer_size_near(pcm_handle, hwparams, &buffer_size); CHECK_FAIL(status < 0); - // make period size 1/8 - period_size = buffer_size >> 3; status = snd_pcm_hw_params_set_period_size_near(pcm_handle, hwparams, &period_size, NULL); CHECK_FAIL(status < 0); - unsigned int periods = 2; + if (OS::get_singleton()->is_stdout_verbose()) { + print_line("audio buffer frames: " + itos(period_size) + " calculated latency: " + itos(period_size * 1000 / mix_rate) + "ms"); + } + status = snd_pcm_hw_params_set_periods_near(pcm_handle, hwparams, &periods, NULL); CHECK_FAIL(status < 0); diff --git a/drivers/alsa/audio_driver_alsa.h b/drivers/alsa/audio_driver_alsa.h index 83601be41b..c76ec0da61 100644 --- a/drivers/alsa/audio_driver_alsa.h +++ b/drivers/alsa/audio_driver_alsa.h @@ -51,6 +51,7 @@ class AudioDriverALSA : public AudioDriver { unsigned int mix_rate; SpeakerMode speaker_mode; + snd_pcm_uframes_t buffer_frames; snd_pcm_uframes_t buffer_size; snd_pcm_uframes_t period_size; int channels; diff --git a/drivers/convex_decomp/b2d_decompose.cpp b/drivers/convex_decomp/b2d_decompose.cpp index 14ab4d1072..97d312983f 100644 --- a/drivers/convex_decomp/b2d_decompose.cpp +++ b/drivers/convex_decomp/b2d_decompose.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* b2d_decompose.cpp */ +/* b2d_decompose.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index a492629dae..6bef039dd1 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* rasterizer_storage_gles3.cpp */ +/* rasterizer_scene_gles3.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ @@ -247,7 +247,7 @@ bool RasterizerSceneGLES3::_shadow_atlas_find_shadow(ShadowAtlas *shadow_atlas, int qidx = p_in_quadrants[i]; - if (shadow_atlas->quadrants[qidx].subdivision == p_current_subdiv) { + if (shadow_atlas->quadrants[qidx].subdivision == (uint32_t)p_current_subdiv) { return false; } @@ -257,7 +257,7 @@ bool RasterizerSceneGLES3::_shadow_atlas_find_shadow(ShadowAtlas *shadow_atlas, int found_free_idx = -1; //found a free one int found_used_idx = -1; //found existing one, must steal it - uint64_t min_pass; // pass of the existing one, try to use the least recently used one (LRU fashion) + uint64_t min_pass = 0; // pass of the existing one, try to use the least recently used one (LRU fashion) for (int j = 0; j < sc; j++) { if (!sarr[j].owner.is_valid()) { @@ -349,7 +349,7 @@ bool RasterizerSceneGLES3::shadow_atlas_update_light(RID p_atlas, RID p_light_in uint32_t q = (key >> ShadowAtlas::QUADRANT_SHIFT) & 0x3; uint32_t s = key & ShadowAtlas::SHADOW_INDEX_MASK; - bool should_realloc = shadow_atlas->quadrants[q].subdivision != best_subdiv && (shadow_atlas->quadrants[q].shadows[s].alloc_tick - tick > shadow_atlas_realloc_tolerance_msec); + bool should_realloc = shadow_atlas->quadrants[q].subdivision != (uint32_t)best_subdiv && (shadow_atlas->quadrants[q].shadows[s].alloc_tick - tick > shadow_atlas_realloc_tolerance_msec); bool should_redraw = shadow_atlas->quadrants[q].shadows[s].version != p_light_version; if (!should_realloc) { @@ -554,7 +554,7 @@ void RasterizerSceneGLES3::reflection_atlas_set_subdivision(RID p_ref_atlas, int ReflectionAtlas *reflection_atlas = reflection_atlas_owner.getornull(p_ref_atlas); ERR_FAIL_COND(!reflection_atlas); - uint32_t subdiv = next_power_of_2(p_subdiv); + int subdiv = next_power_of_2(p_subdiv); if (subdiv & 0xaaaaaaaa) { //sqrt(subdiv) must be integer subdiv <<= 1; } @@ -1100,15 +1100,15 @@ bool RasterizerSceneGLES3::_setup_material(RasterizerStorageGLES3::Material *p_m state.current_line_width = p_material->line_width; } - if (state.current_depth_test != (!p_material->shader->spatial.ontop)) { - if (p_material->shader->spatial.ontop) { + if (state.current_depth_test != (!p_material->shader->spatial.no_depth_test)) { + if (p_material->shader->spatial.no_depth_test) { glDisable(GL_DEPTH_TEST); } else { glEnable(GL_DEPTH_TEST); } - state.current_depth_test = !p_material->shader->spatial.ontop; + state.current_depth_test = !p_material->shader->spatial.no_depth_test; } if (state.current_depth_draw != p_material->shader->spatial.depth_draw_mode) { @@ -2195,7 +2195,7 @@ void RasterizerSceneGLES3::_add_geometry(RasterizerStorageGLES3::Geometry *p_geo void RasterizerSceneGLES3::_add_geometry_with_material(RasterizerStorageGLES3::Geometry *p_geometry, InstanceBase *p_instance, RasterizerStorageGLES3::GeometryOwner *p_owner, RasterizerStorageGLES3::Material *p_material, bool p_shadow) { bool has_base_alpha = (p_material->shader->spatial.uses_alpha && !p_material->shader->spatial.uses_alpha_scissor) || p_material->shader->spatial.uses_screen_texture; - bool has_blend_alpha = p_material->shader->spatial.blend_mode != RasterizerStorageGLES3::Shader::Spatial::BLEND_MODE_MIX || p_material->shader->spatial.ontop; + bool has_blend_alpha = p_material->shader->spatial.blend_mode != RasterizerStorageGLES3::Shader::Spatial::BLEND_MODE_MIX; bool has_alpha = has_base_alpha || has_blend_alpha; bool shadow = false; @@ -2267,7 +2267,7 @@ void RasterizerSceneGLES3::_add_geometry_with_material(RasterizerStorageGLES3::G } e->sort_key |= uint64_t(e->material->index) << RenderList::SORT_KEY_MATERIAL_INDEX_SHIFT; - e->sort_key |= uint64_t(e->instance->depth_layer) << RenderList::SORT_KEY_DEPTH_LAYER_SHIFT; + e->sort_key |= uint64_t(e->instance->depth_layer) << RenderList::SORT_KEY_OPAQUE_DEPTH_LAYER_SHIFT; if (!has_blend_alpha && has_alpha && p_material->shader->spatial.depth_draw_mode == RasterizerStorageGLES3::Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS) { @@ -2283,6 +2283,8 @@ void RasterizerSceneGLES3::_add_geometry_with_material(RasterizerStorageGLES3::G if (e->instance->gi_probe_instances.size()) { e->sort_key |= SORT_KEY_GI_PROBES_FLAG; } + + e->sort_key |= uint64_t(p_material->render_priority + 128) << RenderList::SORT_KEY_PRIORITY_SHIFT; } /* @@ -2700,7 +2702,7 @@ void RasterizerSceneGLES3::_setup_lights(RID *p_light_cull_result, int p_light_c uint32_t quadrant = (key >> ShadowAtlas::QUADRANT_SHIFT) & 0x3; uint32_t shadow = key & ShadowAtlas::SHADOW_INDEX_MASK; - ERR_CONTINUE(shadow >= shadow_atlas->quadrants[quadrant].shadows.size()); + ERR_CONTINUE(shadow >= (uint32_t)shadow_atlas->quadrants[quadrant].shadows.size()); uint32_t atlas_size = shadow_atlas->size; uint32_t quadrant_size = atlas_size >> 1; @@ -2787,7 +2789,7 @@ void RasterizerSceneGLES3::_setup_lights(RID *p_light_cull_result, int p_light_c uint32_t quadrant = (key >> ShadowAtlas::QUADRANT_SHIFT) & 0x3; uint32_t shadow = key & ShadowAtlas::SHADOW_INDEX_MASK; - ERR_CONTINUE(shadow >= shadow_atlas->quadrants[quadrant].shadows.size()); + ERR_CONTINUE(shadow >= (uint32_t)shadow_atlas->quadrants[quadrant].shadows.size()); uint32_t atlas_size = shadow_atlas->size; uint32_t quadrant_size = atlas_size >> 1; @@ -4282,7 +4284,7 @@ void RasterizerSceneGLES3::render_scene(const Transform &p_cam_transform, const glEnable(GL_DEPTH_TEST); glDisable(GL_SCISSOR_TEST); - render_list.sort_by_reverse_depth(true); + render_list.sort_by_reverse_depth_and_priority(true); if (state.directional_light_count == 0) { directional_light = NULL; @@ -4467,7 +4469,7 @@ void RasterizerSceneGLES3::render_shadow(RID p_light, RID p_shadow_atlas, int p_ uint32_t quadrant = (key >> ShadowAtlas::QUADRANT_SHIFT) & 0x3; uint32_t shadow = key & ShadowAtlas::SHADOW_INDEX_MASK; - ERR_FAIL_INDEX(shadow, shadow_atlas->quadrants[quadrant].shadows.size()); + ERR_FAIL_INDEX((int)shadow, shadow_atlas->quadrants[quadrant].shadows.size()); uint32_t quadrant_size = shadow_atlas->size >> 1; diff --git a/drivers/gles3/rasterizer_scene_gles3.h b/drivers/gles3/rasterizer_scene_gles3.h index 659408b455..5503dba5c4 100644 --- a/drivers/gles3/rasterizer_scene_gles3.h +++ b/drivers/gles3/rasterizer_scene_gles3.h @@ -244,7 +244,7 @@ public: GLuint fbo_id[6]; GLuint cubemap; - int size; + uint32_t size; }; Vector<ShadowCubeMap> shadow_cubemaps; @@ -531,7 +531,7 @@ public: virtual void environment_set_fog(RID p_env, bool p_enable, float p_begin, float p_end, RID p_gradient_texture); virtual void environment_set_ssr(RID p_env, bool p_enable, int p_max_steps, float p_fade_in, float p_fade_out, float p_depth_tolerance, bool p_roughness); - virtual void environment_set_ssao(RID p_env, bool p_enable, float p_radius, float p_radius2, float p_intensity2, float p_intensity, float p_bias, float p_light_affect, const Color &p_color, bool p_blur); + virtual void environment_set_ssao(RID p_env, bool p_enable, float p_radius, float p_intensity, float p_radius2, float p_intensity2, float p_bias, float p_light_affect, const Color &p_color, bool p_blur); virtual void environment_set_tonemap(RID p_env, VS::EnvironmentToneMapper p_tone_mapper, float p_exposure, float p_white, bool p_auto_exposure, float p_min_luminance, float p_max_luminance, float p_auto_exp_speed, float p_auto_exp_scale); @@ -645,17 +645,25 @@ public: MAX_LIGHTS = 4096, MAX_REFLECTIONS = 1024, - SORT_KEY_DEPTH_LAYER_SHIFT = 60, + SORT_KEY_PRIORITY_SHIFT = 56, + SORT_KEY_PRIORITY_MASK = 0xFF, + //depth layer for opaque (56-52) + SORT_KEY_OPAQUE_DEPTH_LAYER_SHIFT = 52, + SORT_KEY_OPAQUE_DEPTH_LAYER_MASK = 0xF, //64 bits unsupported in MSVC -#define SORT_KEY_UNSHADED_FLAG (uint64_t(1) << 59) -#define SORT_KEY_NO_DIRECTIONAL_FLAG (uint64_t(1) << 58) -#define SORT_KEY_GI_PROBES_FLAG (uint64_t(1) << 57) -#define SORT_KEY_VERTEX_LIT_FLAG (uint64_t(1) << 56) - SORT_KEY_SHADING_SHIFT = 56, +#define SORT_KEY_UNSHADED_FLAG (uint64_t(1) << 51) +#define SORT_KEY_NO_DIRECTIONAL_FLAG (uint64_t(1) << 50) +#define SORT_KEY_GI_PROBES_FLAG (uint64_t(1) << 49) +#define SORT_KEY_VERTEX_LIT_FLAG (uint64_t(1) << 48) + SORT_KEY_SHADING_SHIFT = 48, SORT_KEY_SHADING_MASK = 15, - SORT_KEY_MATERIAL_INDEX_SHIFT = 40, - SORT_KEY_GEOMETRY_INDEX_SHIFT = 20, - SORT_KEY_GEOMETRY_TYPE_SHIFT = 15, + //48-32 material index + SORT_KEY_MATERIAL_INDEX_SHIFT = 32, + //32-12 geometry index + SORT_KEY_GEOMETRY_INDEX_SHIFT = 12, + //bits 12-8 geometry type + SORT_KEY_GEOMETRY_TYPE_SHIFT = 8, + //bits 0-7 for flags SORT_KEY_CULL_DISABLED_FLAG = 4, SORT_KEY_SKELETON_FLAG = 2, SORT_KEY_MIRROR_FLAG = 1 @@ -721,16 +729,22 @@ public: } } - struct SortByReverseDepth { + struct SortByReverseDepthAndPriority { _FORCE_INLINE_ bool operator()(const Element *A, const Element *B) const { - return A->instance->depth > B->instance->depth; + uint32_t layer_A = uint32_t(A->sort_key >> SORT_KEY_PRIORITY_SHIFT); + uint32_t layer_B = uint32_t(B->sort_key >> SORT_KEY_PRIORITY_SHIFT); + if (layer_A == layer_B) { + return A->instance->depth > B->instance->depth; + } else { + return layer_A < layer_B; + } } }; - void sort_by_reverse_depth(bool p_alpha) { //used for alpha + void sort_by_reverse_depth_and_priority(bool p_alpha) { //used for alpha - SortArray<Element *, SortByReverseDepth> sorter; + SortArray<Element *, SortByReverseDepthAndPriority> sorter; if (p_alpha) { sorter.sort(&elements[max_elements - alpha_element_count], alpha_element_count); } else { diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index a66a3d020b..91ba3aa702 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -1599,7 +1599,7 @@ void RasterizerStorageGLES3::_update_shader(Shader *p_shader) const { p_shader->spatial.uses_alpha_scissor = false; p_shader->spatial.uses_discard = false; p_shader->spatial.unshaded = false; - p_shader->spatial.ontop = false; + p_shader->spatial.no_depth_test = false; p_shader->spatial.uses_sss = false; p_shader->spatial.uses_vertex_lighting = false; p_shader->spatial.uses_screen_texture = false; @@ -1621,7 +1621,7 @@ void RasterizerStorageGLES3::_update_shader(Shader *p_shader) const { shaders.actions_scene.render_mode_values["cull_disabled"] = Pair<int *, int>(&p_shader->spatial.cull_mode, Shader::Spatial::CULL_MODE_DISABLED); shaders.actions_scene.render_mode_flags["unshaded"] = &p_shader->spatial.unshaded; - shaders.actions_scene.render_mode_flags["ontop"] = &p_shader->spatial.ontop; + shaders.actions_scene.render_mode_flags["depth_test_disable"] = &p_shader->spatial.no_depth_test; shaders.actions_scene.render_mode_flags["vertex_lighting"] = &p_shader->spatial.uses_vertex_lighting; @@ -1948,6 +1948,17 @@ void RasterizerStorageGLES3::material_remove_instance_owner(RID p_material, Rast } } +void RasterizerStorageGLES3::material_set_render_priority(RID p_material, int priority) { + + ERR_FAIL_COND(priority < VS::MATERIAL_RENDER_PRIORITY_MIN); + ERR_FAIL_COND(priority > VS::MATERIAL_RENDER_PRIORITY_MAX); + + Material *material = material_owner.get(p_material); + ERR_FAIL_COND(!material); + + material->render_priority = priority; +} + _FORCE_INLINE_ static void _fill_std140_variant_ubo_value(ShaderLanguage::DataType type, const Variant &value, uint8_t *data, bool p_linear_color) { switch (type) { case ShaderLanguage::TYPE_BOOL: { diff --git a/drivers/gles3/rasterizer_storage_gles3.h b/drivers/gles3/rasterizer_storage_gles3.h index c74b127b23..f75b77aabe 100644 --- a/drivers/gles3/rasterizer_storage_gles3.h +++ b/drivers/gles3/rasterizer_storage_gles3.h @@ -444,7 +444,7 @@ public: bool uses_alpha; bool uses_alpha_scissor; bool unshaded; - bool ontop; + bool no_depth_test; bool uses_vertex; bool uses_discard; bool uses_sss; @@ -502,6 +502,7 @@ public: SelfList<Material> dirty_list; Vector<RID> textures; float line_width; + int render_priority; RID next_pass; @@ -523,6 +524,7 @@ public: ubo_id = 0; ubo_size = 0; last_pass = 0; + render_priority = 0; } }; @@ -550,6 +552,8 @@ public: virtual void material_add_instance_owner(RID p_material, RasterizerScene::InstanceBase *p_instance); virtual void material_remove_instance_owner(RID p_material, RasterizerScene::InstanceBase *p_instance); + virtual void material_set_render_priority(RID p_material, int priority); + void _update_material(Material *material); void update_dirty_materials(); diff --git a/drivers/png/image_loader_png.cpp b/drivers/png/image_loader_png.cpp index 46c9442ffc..246d4d7650 100644 --- a/drivers/png/image_loader_png.cpp +++ b/drivers/png/image_loader_png.cpp @@ -216,8 +216,8 @@ void ImageLoaderPNG::get_recognized_extensions(List<String> *p_extensions) const struct PNGReadStatus { - int offset; - int size; + uint32_t offset; + uint32_t size; const unsigned char *image; }; diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.cpp b/drivers/pulseaudio/audio_driver_pulseaudio.cpp index 356b1ad958..1798c84d85 100644 --- a/drivers/pulseaudio/audio_driver_pulseaudio.cpp +++ b/drivers/pulseaudio/audio_driver_pulseaudio.cpp @@ -33,6 +33,7 @@ #include <pulse/error.h> +#include "os/os.h" #include "project_settings.h" Error AudioDriverPulseAudio::init() { @@ -44,7 +45,7 @@ Error AudioDriverPulseAudio::init() { samples_in = NULL; samples_out = NULL; - mix_rate = GLOBAL_DEF("audio/mix_rate", 44100); + mix_rate = GLOBAL_DEF("audio/mix_rate", DEFAULT_MIX_RATE); speaker_mode = SPEAKER_MODE_STEREO; channels = 2; @@ -53,12 +54,17 @@ Error AudioDriverPulseAudio::init() { spec.channels = channels; spec.rate = mix_rate; - int latency = GLOBAL_DEF("audio/output_latency", 25); - buffer_size = closest_power_of_2(latency * mix_rate / 1000); + int latency = GLOBAL_DEF("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + buffer_frames = closest_power_of_2(latency * mix_rate / 1000); + buffer_size = buffer_frames * channels; + + if (OS::get_singleton()->is_stdout_verbose()) { + print_line("audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms"); + } pa_buffer_attr attr; - // set to appropriate buffer size from global settings - attr.tlength = buffer_size; + // set to appropriate buffer length (in bytes) from global settings + attr.tlength = buffer_size * sizeof(int16_t); // set them to be automatically chosen attr.prebuf = (uint32_t)-1; attr.maxlength = (uint32_t)-1; @@ -80,8 +86,8 @@ Error AudioDriverPulseAudio::init() { ERR_FAIL_COND_V(pulse == NULL, ERR_CANT_OPEN); } - samples_in = memnew_arr(int32_t, buffer_size * channels); - samples_out = memnew_arr(int16_t, buffer_size * channels); + samples_in = memnew_arr(int32_t, buffer_size); + samples_out = memnew_arr(int16_t, buffer_size); mutex = Mutex::create(); thread = Thread::create(AudioDriverPulseAudio::thread_func, this); @@ -106,18 +112,18 @@ void AudioDriverPulseAudio::thread_func(void *p_udata) { while (!ad->exit_thread) { if (!ad->active) { - for (unsigned int i = 0; i < ad->buffer_size * ad->channels; i++) { + for (unsigned int i = 0; i < ad->buffer_size; i++) { ad->samples_out[i] = 0; } } else { ad->lock(); - ad->audio_server_process(ad->buffer_size, ad->samples_in); + ad->audio_server_process(ad->buffer_frames, ad->samples_in); ad->unlock(); - for (unsigned int i = 0; i < ad->buffer_size * ad->channels; i++) { + for (unsigned int i = 0; i < ad->buffer_size; i++) { ad->samples_out[i] = ad->samples_in[i] >> 16; } } @@ -125,7 +131,7 @@ void AudioDriverPulseAudio::thread_func(void *p_udata) { // pa_simple_write always consumes the entire buffer int error_code; - int byte_size = ad->buffer_size * sizeof(int16_t) * ad->channels; + int byte_size = ad->buffer_size * sizeof(int16_t); if (pa_simple_write(ad->pulse, ad->samples_out, byte_size, &error_code) < 0) { // can't recover here fprintf(stderr, "PulseAudio failed and can't recover: %s\n", pa_strerror(error_code)); @@ -175,13 +181,20 @@ void AudioDriverPulseAudio::finish() { exit_thread = true; Thread::wait_to_finish(thread); - if (pulse) + if (pulse) { pa_simple_free(pulse); + pulse = NULL; + } if (samples_in) { memdelete_arr(samples_in); + samples_in = NULL; + } + + if (samples_out) { memdelete_arr(samples_out); - }; + samples_out = NULL; + } memdelete(thread); if (mutex) { @@ -194,10 +207,15 @@ void AudioDriverPulseAudio::finish() { AudioDriverPulseAudio::AudioDriverPulseAudio() { + samples_in = NULL; + samples_out = NULL; mutex = NULL; thread = NULL; pulse = NULL; latency = 0; + buffer_frames = 0; + buffer_size = 0; + channels = 0; } AudioDriverPulseAudio::~AudioDriverPulseAudio() { diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.h b/drivers/pulseaudio/audio_driver_pulseaudio.h index 2f56726617..9ae0b7e50c 100644 --- a/drivers/pulseaudio/audio_driver_pulseaudio.h +++ b/drivers/pulseaudio/audio_driver_pulseaudio.h @@ -51,6 +51,7 @@ class AudioDriverPulseAudio : public AudioDriver { unsigned int mix_rate; SpeakerMode speaker_mode; + unsigned int buffer_frames; unsigned int buffer_size; int channels; diff --git a/drivers/rtaudio/audio_driver_rtaudio.cpp b/drivers/rtaudio/audio_driver_rtaudio.cpp index 7de3ff192e..ae5fdd28b6 100644 --- a/drivers/rtaudio/audio_driver_rtaudio.cpp +++ b/drivers/rtaudio/audio_driver_rtaudio.cpp @@ -107,14 +107,13 @@ Error AudioDriverRtAudio::init() { options.numberOfBuffers = 4; parameters.firstChannel = 0; - mix_rate = GLOBAL_DEF("audio/mix_rate", 44100); + mix_rate = GLOBAL_DEF("audio/mix_rate", DEFAULT_MIX_RATE); - int latency = GLOBAL_DEF("audio/output_latency", 25); - // calculate desired buffer_size - unsigned int buffer_size = closest_power_of_2(latency * mix_rate / 1000); + int latency = GLOBAL_DEF("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + unsigned int buffer_frames = closest_power_of_2(latency * mix_rate / 1000); if (OS::get_singleton()->is_stdout_verbose()) { - print_line("audio buffer size: " + itos(buffer_size)); + print_line("audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms"); } short int tries = 2; @@ -127,7 +126,7 @@ Error AudioDriverRtAudio::init() { }; try { - dac->openStream(¶meters, NULL, RTAUDIO_SINT32, mix_rate, &buffer_size, &callback, this, &options); + dac->openStream(¶meters, NULL, RTAUDIO_SINT32, mix_rate, &buffer_frames, &callback, this, &options); active = true; break; @@ -199,7 +198,7 @@ AudioDriverRtAudio::AudioDriverRtAudio() { active = false; mutex = NULL; dac = NULL; - mix_rate = 44100; + mix_rate = DEFAULT_MIX_RATE; speaker_mode = SPEAKER_MODE_STEREO; } diff --git a/drivers/unix/packet_peer_udp_posix.cpp b/drivers/unix/packet_peer_udp_posix.cpp index b743990b92..61d2737555 100644 --- a/drivers/unix/packet_peer_udp_posix.cpp +++ b/drivers/unix/packet_peer_udp_posix.cpp @@ -73,8 +73,8 @@ Error PacketPeerUDPPosix::get_packet(const uint8_t **r_buffer, int &r_buffer_siz if (queue_count == 0) return ERR_UNAVAILABLE; - uint32_t size; - uint8_t type; + uint32_t size = 0; + uint8_t type = IP::TYPE_NONE; rb.read(&type, 1, true); if (type == IP::TYPE_IPV4) { uint8_t ip[4]; diff --git a/drivers/unix/tcp_server_posix.cpp b/drivers/unix/tcp_server_posix.cpp index f3f9ab82f1..5062a74b63 100644 --- a/drivers/unix/tcp_server_posix.cpp +++ b/drivers/unix/tcp_server_posix.cpp @@ -165,7 +165,7 @@ Ref<StreamPeerTCP> TCPServerPosix::take_connection() { Ref<StreamPeerTCPPosix> conn = memnew(StreamPeerTCPPosix); IP_Address ip; - int port; + int port = 0; _set_ip_addr_port(ip, port, &their_addr); conn->set_socket(fd, ip, port, sock_type); diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp index 6e01b5f524..29d1e5deed 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* audio_driver_wasapi.cpp */ +/* audio_driver_wasapi.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ @@ -65,6 +65,18 @@ Error AudioDriverWASAPI::init_device() { format_tag = pwfex->wFormatTag; bits_per_sample = pwfex->wBitsPerSample; + switch (channels) { + case 2: // Stereo + case 6: // Surround 5.1 + case 8: // Surround 7.1 + break; + + default: + ERR_PRINT("WASAPI: Unsupported number of channels"); + ERR_FAIL_V(ERR_CANT_OPEN); + break; + } + if (format_tag == WAVE_FORMAT_EXTENSIBLE) { WAVEFORMATEXTENSIBLE *wfex = (WAVEFORMATEXTENSIBLE *)pwfex; @@ -83,13 +95,6 @@ Error AudioDriverWASAPI::init_device() { } } - int latency = GLOBAL_DEF("audio/output_latency", 25); - buffer_size = closest_power_of_2(latency * mix_rate / 1000); - - if (OS::get_singleton()->is_stdout_verbose()) { - print_line("audio buffer size: " + itos(buffer_size)); - } - hr = audio_client->Initialize(AUDCLNT_SHAREMODE_SHARED, AUDCLNT_STREAMFLAGS_EVENTCALLBACK, 0, 0, pwfex, NULL); ERR_FAIL_COND_V(hr != S_OK, ERR_CANT_OPEN); @@ -102,11 +107,20 @@ Error AudioDriverWASAPI::init_device() { hr = audio_client->GetService(IID_IAudioRenderClient, (void **)&render_client); ERR_FAIL_COND_V(hr != S_OK, ERR_CANT_OPEN); + UINT32 max_frames; hr = audio_client->GetBufferSize(&max_frames); ERR_FAIL_COND_V(hr != S_OK, ERR_CANT_OPEN); + // Due to WASAPI Shared Mode we have no control of the buffer size + buffer_frames = max_frames; + + // Sample rate is independent of channels (ref: https://stackoverflow.com/questions/11048825/audio-sample-frequency-rely-on-channels) + buffer_size = buffer_frames * channels; samples_in.resize(buffer_size); - buffer_frames = buffer_size / channels; + + if (OS::get_singleton()->is_stdout_verbose()) { + print_line("audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms"); + } return OK; } @@ -200,7 +214,7 @@ void AudioDriverWASAPI::thread_func(void *p_udata) { HRESULT hr = ad->audio_client->GetCurrentPadding(&cur_frames); if (hr == S_OK) { // Check how much frames are available on the WASAPI buffer - UINT32 avail_frames = ad->max_frames - cur_frames; + UINT32 avail_frames = ad->buffer_frames - cur_frames; UINT32 write_frames = avail_frames > left_frames ? left_frames : avail_frames; BYTE *buffer = NULL; @@ -332,7 +346,6 @@ AudioDriverWASAPI::AudioDriverWASAPI() { mutex = NULL; thread = NULL; - max_frames = 0; format_tag = 0; bits_per_sample = 0; diff --git a/drivers/wasapi/audio_driver_wasapi.h b/drivers/wasapi/audio_driver_wasapi.h index b91751f87e..fab8ab3250 100644 --- a/drivers/wasapi/audio_driver_wasapi.h +++ b/drivers/wasapi/audio_driver_wasapi.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* audio_driver_wasapi.h */ +/* audio_driver_wasapi.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ @@ -48,7 +48,6 @@ class AudioDriverWASAPI : public AudioDriver { Mutex *mutex; Thread *thread; - UINT32 max_frames; WORD format_tag; WORD bits_per_sample; diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index b3eb3e23a9..6937f74316 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -70,11 +70,14 @@ void EditorAudioBus::_notification(int p_what) { float real_peak[2] = { -100, -100 }; bool activity_found = false; - int cc; + int cc = 0; switch (AudioServer::get_singleton()->get_speaker_mode()) { case AudioServer::SPEAKER_MODE_STEREO: cc = 1; break; case AudioServer::SPEAKER_SURROUND_51: cc = 4; break; case AudioServer::SPEAKER_SURROUND_71: cc = 5; break; + default: + ERR_PRINT("Unknown speaker_mode"); + break; } for (int i = 0; i < cc; i++) { diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index cb74a7b852..2cb5340b8b 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -141,7 +141,7 @@ ObjectID EditorHistory::get_history_obj(int p_obj) const { return history[p_obj].path[history[p_obj].level].object; } -bool EditorHistory::is_at_begining() const { +bool EditorHistory::is_at_beginning() const { return current <= 0; } bool EditorHistory::is_at_end() const { diff --git a/editor/editor_data.h b/editor/editor_data.h index cbba4d60ad..33a4091a65 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -74,7 +74,7 @@ class EditorHistory { void _add_object(ObjectID p_object, const String &p_property, int p_level_change); public: - bool is_at_begining() const; + bool is_at_beginning() const; bool is_at_end() const; void add_object(ObjectID p_object); diff --git a/editor/editor_export.cpp b/editor/editor_export.cpp index e761dce8ab..915fb7e5db 100644 --- a/editor/editor_export.cpp +++ b/editor/editor_export.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* editor_import_export.cpp */ +/* editor_export.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/editor_export.h b/editor/editor_export.h index feff9678af..3b99c68c85 100644 --- a/editor/editor_export.h +++ b/editor/editor_export.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* editor_import_export.h */ +/* editor_export.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 8575cd164f..e39895e4d8 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -1373,7 +1373,7 @@ void EditorNode::_edit_current() { uint32_t current = editor_history.get_current(); Object *current_obj = current > 0 ? ObjectDB::get_instance(current) : NULL; - property_back->set_disabled(editor_history.is_at_begining()); + property_back->set_disabled(editor_history.is_at_beginning()); property_forward->set_disabled(editor_history.is_at_end()); this->current = current_obj; diff --git a/editor/export_template_manager.h b/editor/export_template_manager.h index ce6d8024ae..c77f85688f 100644 --- a/editor/export_template_manager.h +++ b/editor/export_template_manager.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* export_template_manager.cpp */ +/* export_template_manager.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index 2f03e72851..21cf08f524 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -474,7 +474,7 @@ Error EditorSceneImporterGLTF::_decode_buffer_view(GLTFState &state, int p_buffe int buffer_end = (stride * (count - 1)) + element_size; ERR_FAIL_COND_V(buffer_end > bv.byte_length, ERR_PARSE_ERROR); - ERR_FAIL_COND_V((offset + buffer_end) > buffer.size(), ERR_PARSE_ERROR); + ERR_FAIL_COND_V((int)(offset + buffer_end) > buffer.size(), ERR_PARSE_ERROR); //fill everything as doubles @@ -1434,6 +1434,8 @@ Error EditorSceneImporterGLTF::_parse_cameras(GLTFState &state) { } print_line("total cameras: " + itos(state.cameras.size())); + + return OK; } Error EditorSceneImporterGLTF::_parse_animations(GLTFState &state) { diff --git a/editor/import/resource_importer_wav.cpp b/editor/import/resource_importer_wav.cpp index 25185149b1..e2bacd70e4 100644 --- a/editor/import/resource_importer_wav.cpp +++ b/editor/import/resource_importer_wav.cpp @@ -129,7 +129,7 @@ Error ResourceImporterWAV::import(const String &p_source_file, const String &p_s int format_freq = 0; int loop_begin = 0; int loop_end = 0; - int frames; + int frames = 0; Vector<float> data; diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 4f3472bf03..3b74601e78 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -409,7 +409,7 @@ bool CanvasItemEditor::_is_part_of_subscene(CanvasItem *p_item) { return item_owner && item_owner != scene_node && p_item != scene_node && item_owner->get_filename() != ""; } -void CanvasItemEditor::_find_canvas_items_at_pos(const Point2 &p_pos, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, Vector<_SelectResult> &r_items, unsigned int limit) { +void CanvasItemEditor::_find_canvas_items_at_pos(const Point2 &p_pos, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, Vector<_SelectResult> &r_items, int limit) { if (!p_node) return; if (Object::cast_to<Viewport>(p_node)) @@ -1881,7 +1881,7 @@ void CanvasItemEditor::_viewport_draw() { if (snap_show_grid) { //Draw the grid Size2 s = viewport->get_size(); - int last_cell; + int last_cell = 0; Transform2D xform = transform.affine_inverse(); Vector2 grid_offset; @@ -2257,17 +2257,17 @@ void CanvasItemEditor::_notification(int p_what) { anchors[MARGIN_RIGHT] = Object::cast_to<Control>(canvas_item)->get_anchor(MARGIN_RIGHT); anchors[MARGIN_TOP] = Object::cast_to<Control>(canvas_item)->get_anchor(MARGIN_TOP); anchors[MARGIN_BOTTOM] = Object::cast_to<Control>(canvas_item)->get_anchor(MARGIN_BOTTOM); - } - if (r != se->prev_rect || xform != se->prev_xform || pivot != se->prev_pivot || anchors[MARGIN_LEFT] != se->prev_anchors[MARGIN_LEFT] || anchors[MARGIN_RIGHT] != se->prev_anchors[MARGIN_RIGHT] || anchors[MARGIN_TOP] != se->prev_anchors[MARGIN_TOP] || anchors[MARGIN_BOTTOM] != se->prev_anchors[MARGIN_BOTTOM]) { - viewport->update(); - se->prev_rect = r; - se->prev_xform = xform; - se->prev_pivot = pivot; - se->prev_anchors[MARGIN_LEFT] = anchors[MARGIN_LEFT]; - se->prev_anchors[MARGIN_RIGHT] = anchors[MARGIN_RIGHT]; - se->prev_anchors[MARGIN_TOP] = anchors[MARGIN_TOP]; - se->prev_anchors[MARGIN_BOTTOM] = anchors[MARGIN_BOTTOM]; + if (r != se->prev_rect || xform != se->prev_xform || pivot != se->prev_pivot || anchors[MARGIN_LEFT] != se->prev_anchors[MARGIN_LEFT] || anchors[MARGIN_RIGHT] != se->prev_anchors[MARGIN_RIGHT] || anchors[MARGIN_TOP] != se->prev_anchors[MARGIN_TOP] || anchors[MARGIN_BOTTOM] != se->prev_anchors[MARGIN_BOTTOM]) { + viewport->update(); + se->prev_rect = r; + se->prev_xform = xform; + se->prev_pivot = pivot; + se->prev_anchors[MARGIN_LEFT] = anchors[MARGIN_LEFT]; + se->prev_anchors[MARGIN_RIGHT] = anchors[MARGIN_RIGHT]; + se->prev_anchors[MARGIN_TOP] = anchors[MARGIN_TOP]; + se->prev_anchors[MARGIN_BOTTOM] = anchors[MARGIN_BOTTOM]; + } } } diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index 8f67d641f5..da217007ea 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -291,7 +291,7 @@ class CanvasItemEditor : public VBoxContainer { int handle_len; bool _is_part_of_subscene(CanvasItem *p_item); - void _find_canvas_items_at_pos(const Point2 &p_pos, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, Vector<_SelectResult> &r_items, unsigned int limit = 0); + void _find_canvas_items_at_pos(const Point2 &p_pos, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, Vector<_SelectResult> &r_items, int limit = 0); void _find_canvas_items_at_rect(const Rect2 &p_rect, Node *p_node, const Transform2D &p_parent_xform, const Transform2D &p_canvas_xform, List<CanvasItem *> *r_items); void _select_click_on_empty_area(Point2 p_click_pos, bool p_append, bool p_box_selection); diff --git a/editor/plugins/gradient_editor_plugin.cpp b/editor/plugins/gradient_editor_plugin.cpp index abd2559d1f..51f00e5751 100644 --- a/editor/plugins/gradient_editor_plugin.cpp +++ b/editor/plugins/gradient_editor_plugin.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* color_ramp_editor_plugin.cpp */ +/* gradient_editor_plugin.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/plugins/gradient_editor_plugin.h b/editor/plugins/gradient_editor_plugin.h index c169fa0947..ff7bf858c7 100644 --- a/editor/plugins/gradient_editor_plugin.h +++ b/editor/plugins/gradient_editor_plugin.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* color_ramp_editor_plugin.h */ +/* gradient_editor_plugin.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/plugins/line_2d_editor_plugin.cpp b/editor/plugins/line_2d_editor_plugin.cpp index a5f854e1b1..84620a75a5 100644 --- a/editor/plugins/line_2d_editor_plugin.cpp +++ b/editor/plugins/line_2d_editor_plugin.cpp @@ -211,7 +211,7 @@ void Line2DEditor::_bind_methods() { } void Line2DEditor::_mode_selected(int p_mode) { - for (unsigned int i = 0; i < _MODE_COUNT; ++i) { + for (int i = 0; i < _MODE_COUNT; ++i) { toolbar_buttons[i]->set_pressed(i == p_mode); } mode = Mode(p_mode); diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp index a3195c05d6..f7008298f0 100644 --- a/editor/plugins/polygon_2d_editor_plugin.cpp +++ b/editor/plugins/polygon_2d_editor_plugin.cpp @@ -659,7 +659,7 @@ void Polygon2DEditor::_uv_draw() { if (snap_show_grid) { Size2 s = uv_edit_draw->get_size(); - int last_cell; + int last_cell = 0; if (snap_step.x != 0) { for (int i = 0; i < s.width; i++) { diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index bc5c700959..d9fc2f32f7 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2958,7 +2958,7 @@ void SpatialEditor::update_transform_gizmo() { gizmo.transform.origin = pcenter; gizmo.transform.basis = gizmo_basis; - for (int i = 0; i < VIEWPORTS_COUNT; i++) { + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { viewports[i]->update_transform_gizmo_view(); } } @@ -3108,7 +3108,7 @@ void SpatialEditor::set_state(const Dictionary &p_state) { Array vp = d["viewports"]; ERR_FAIL_COND(vp.size() > 4); - for (int i = 0; i < VIEWPORTS_COUNT; i++) { + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { viewports[i]->set_state(vp[i]); } } @@ -3505,7 +3505,7 @@ void SpatialEditor::_init_indicators() { gizmo_hl = Ref<SpatialMaterial>(memnew(SpatialMaterial)); gizmo_hl->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - gizmo_hl->set_flag(SpatialMaterial::FLAG_ONTOP, true); + gizmo_hl->set_on_top_of_alpha(); gizmo_hl->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); gizmo_hl->set_albedo(Color(1, 1, 1, gizmo_alph + 0.2f)); gizmo_hl->set_cull_mode(SpatialMaterial::CULL_DISABLED); @@ -3518,7 +3518,7 @@ void SpatialEditor::_init_indicators() { Ref<SpatialMaterial> mat = memnew(SpatialMaterial); mat->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - mat->set_flag(SpatialMaterial::FLAG_ONTOP, true); + mat->set_on_top_of_alpha(); mat->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); Color col; col[i] = 1.0; @@ -3613,7 +3613,7 @@ void SpatialEditor::_init_indicators() { Ref<SpatialMaterial> plane_mat = memnew(SpatialMaterial); plane_mat->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - plane_mat->set_flag(SpatialMaterial::FLAG_ONTOP, true); + plane_mat->set_on_top_of_alpha(); plane_mat->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); plane_mat->set_cull_mode(SpatialMaterial::CULL_DISABLED); Color col; @@ -3852,15 +3852,15 @@ void SpatialEditor::_toggle_maximize_view(Object *p_viewport) { if (!maximized) { - for (int i = 0; i < VIEWPORTS_COUNT; i++) { - if (i == index) + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { + if (i == (uint32_t)index) viewports[i]->set_area_as_parent_rect(); else viewports[i]->hide(); } } else { - for (int i = 0; i < VIEWPORTS_COUNT; i++) + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) viewports[i]->show(); if (view_menu->get_popup()->is_item_checked(view_menu->get_popup()->get_item_index(MENU_VIEW_USE_1_VIEWPORT))) @@ -3904,7 +3904,7 @@ void SpatialEditor::clear() { settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.1)); settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500.0)); - for (int i = 0; i < VIEWPORTS_COUNT; i++) { + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { viewports[i]->reset(); } @@ -3917,7 +3917,7 @@ void SpatialEditor::clear() { } } - for (int i = 0; i < VIEWPORTS_COUNT; i++) { + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { viewports[i]->view_menu->get_popup()->set_item_checked(view_menu->get_popup()->get_item_index(SpatialEditorViewport::VIEW_AUDIO_LISTENER), i == 0); viewports[i]->viewport->set_as_audio_listener(i == 0); @@ -4074,7 +4074,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { viewport_base = memnew(SpatialEditorViewportContainer); shader_split->add_child(viewport_base); viewport_base->set_v_size_flags(SIZE_EXPAND_FILL); - for (int i = 0; i < VIEWPORTS_COUNT; i++) { + for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { viewports[i] = memnew(SpatialEditorViewport(this, editor, i)); viewports[i]->connect("toggle_maximize_view", this, "_toggle_maximize_view"); diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index 82b507bd49..38d1350b07 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -67,7 +67,7 @@ void TextureRegionEditor::_region_draw() { if (snap_mode == SNAP_GRID) { Size2 s = edit_draw->get_size(); - int last_cell; + int last_cell = 0; if (snap_step.x != 0) { if (snap_separation.x == 0) @@ -406,7 +406,7 @@ void TextureRegionEditor::_region_input(const Ref<InputEvent> &p_input) { } else if (drag) { if (edited_margin >= 0) { - float new_margin; + float new_margin = 0; if (edited_margin == 0) new_margin = prev_margin + (mm->get_position().y - drag_from.y) / draw_zoom; else if (edited_margin == 1) @@ -415,6 +415,9 @@ void TextureRegionEditor::_region_input(const Ref<InputEvent> &p_input) { new_margin = prev_margin + (mm->get_position().x - drag_from.x) / draw_zoom; else if (edited_margin == 3) new_margin = prev_margin - (mm->get_position().x - drag_from.x) / draw_zoom; + else + ERR_PRINT("Unexpected edited_margin"); + if (new_margin < 0) new_margin = 0; static Margin m[4] = { MARGIN_TOP, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT }; diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 94fce45733..9817ab176e 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* project_settings.cpp */ +/* project_settings_editor.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/project_settings_editor.h b/editor/project_settings_editor.h index e4e2345692..ceec089953 100644 --- a/editor/project_settings_editor.h +++ b/editor/project_settings_editor.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* project_settings.h */ +/* project_settings_editor.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index d0e2e0c240..089c054b59 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -352,9 +352,16 @@ void ScriptCreateDialog::_path_changed(const String &p_path) { /* Does file already exist */ DirAccess *f = DirAccess::create(DirAccess::ACCESS_RESOURCES); - if (f->file_exists(p) && !(f->current_is_dir())) { + if (f->dir_exists(p)) { + is_new_script_created = false; + is_path_valid = false; + _msg_path_valid(false, TTR("Directory of the same name exists")); + } else if (f->file_exists(p)) { is_new_script_created = false; is_path_valid = true; + _msg_path_valid(true, TTR("File exists, will be reused")); + } else { + path_error_label->set_text(""); } memdelete(f); _update_dialog(); diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index c127b9a2f1..9c7ea506aa 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -580,7 +580,7 @@ Ref<SpatialMaterial> EditorSpatialGizmo::create_material(const String &p_name, c } if (p_on_top && is_selected()) { - line_material->set_flag(SpatialMaterial::FLAG_ONTOP, true); + line_material->set_on_top_of_alpha(); } line_material->set_albedo(color); @@ -624,7 +624,7 @@ Ref<SpatialMaterial> EditorSpatialGizmo::create_icon_material(const String &p_na icon->set_billboard_mode(SpatialMaterial::BILLBOARD_ENABLED); if (p_on_top && is_selected()) { - icon->set_flag(SpatialMaterial::FLAG_ONTOP, true); + icon->set_on_top_of_alpha(); } SpatialEditorGizmos::singleton->material_cache[name] = icon; @@ -3411,7 +3411,7 @@ SpatialEditorGizmos::SpatialEditorGizmos() { handle_material = Ref<SpatialMaterial>(memnew(SpatialMaterial)); handle_material->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - handle_material->set_flag(SpatialMaterial::FLAG_ONTOP, true); + handle_material->set_on_top_of_alpha(); handle_material->set_albedo(Color(0.8, 0.8, 0.8)); handle_material_billboard = handle_material->duplicate(); handle_material_billboard->set_billboard_mode(SpatialMaterial::BILLBOARD_ENABLED); @@ -3426,11 +3426,11 @@ SpatialEditorGizmos::SpatialEditorGizmos() { handle2_material->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); handle2_material->set_flag(SpatialMaterial::FLAG_ALBEDO_FROM_VERTEX_COLOR, true); handle2_material->set_flag(SpatialMaterial::FLAG_SRGB_VERTEX_COLOR, true); - handle2_material->set_flag(SpatialMaterial::FLAG_ONTOP, true); + handle2_material->set_on_top_of_alpha(); handle2_material_billboard = handle2_material->duplicate(); handle2_material_billboard->set_billboard_mode(SpatialMaterial::BILLBOARD_ENABLED); handle2_material_billboard->set_billboard_mode(SpatialMaterial::BILLBOARD_ENABLED); - handle2_material_billboard->set_flag(SpatialMaterial::FLAG_ONTOP, true); + handle2_material_billboard->set_on_top_of_alpha(); EDITOR_DEF("editors/3d_gizmos/gizmo_colors/light", Color(1, 1, 0.2)); EDITOR_DEF("editors/3d_gizmos/gizmo_colors/stream_player_3d", Color(0.4, 0.8, 1)); @@ -3490,7 +3490,7 @@ SpatialEditorGizmos::SpatialEditorGizmos() { skeleton_material = create_line_material(Color(0.6, 1.0, 0.3)); skeleton_material->set_cull_mode(SpatialMaterial::CULL_DISABLED); skeleton_material->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - skeleton_material->set_flag(SpatialMaterial::FLAG_ONTOP, true); + skeleton_material->set_on_top_of_alpha(); skeleton_material->set_depth_draw_mode(SpatialMaterial::DEPTH_DRAW_DISABLED); //position 3D Shared mesh diff --git a/modules/etc/SCsub b/modules/etc/SCsub index f0c1ee64b9..9c3e703f11 100644 --- a/modules/etc/SCsub +++ b/modules/etc/SCsub @@ -34,7 +34,7 @@ env_etc.Append(CPPPATH=[thirdparty_dir]) env_etc.add_source_files(env.modules_sources, "*.cpp") # upstream uses c++11 -env_etc.Append(CXXFLAGS="-std=gnu++11") +env_etc.Append(CCFLAGS="-std=gnu++11") # -ffast-math seems to be incompatible with ec2comp on recent versions of # GCC and Clang if '-ffast-math' in env_etc['CCFLAGS']: diff --git a/modules/etc/image_etc.cpp b/modules/etc/image_etc.cpp index 9a15beb6eb..e86fd06d81 100644 --- a/modules/etc/image_etc.cpp +++ b/modules/etc/image_etc.cpp @@ -117,7 +117,7 @@ static void _compress_etc(Image *p_img, float p_lossy_quality, bool force_etc1_f return; } - int imgw = p_img->get_width(), imgh = p_img->get_height(); + uint32_t imgw = p_img->get_width(), imgh = p_img->get_height(); ERR_FAIL_COND(next_power_of_2(imgw) != imgw || next_power_of_2(imgh) != imgh); Image::Format etc_format = force_etc1_format ? Image::FORMAT_ETC : _get_etc2_mode(detected_channels); diff --git a/modules/gdnative/godot/array.cpp b/modules/gdnative/godot/array.cpp index c15ba30ca2..c3fde0e954 100644 --- a/modules/gdnative/godot/array.cpp +++ b/modules/gdnative/godot/array.cpp @@ -61,7 +61,7 @@ void GDAPI godot_array_new_pool_color_array(godot_array *r_dest, const godot_poo memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -73,7 +73,7 @@ void GDAPI godot_array_new_pool_vector3_array(godot_array *r_dest, const godot_p memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -85,7 +85,7 @@ void GDAPI godot_array_new_pool_vector2_array(godot_array *r_dest, const godot_p memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -97,7 +97,7 @@ void GDAPI godot_array_new_pool_string_array(godot_array *r_dest, const godot_po memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -109,7 +109,7 @@ void GDAPI godot_array_new_pool_real_array(godot_array *r_dest, const godot_pool memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -121,7 +121,7 @@ void GDAPI godot_array_new_pool_int_array(godot_array *r_dest, const godot_pool_ memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } @@ -133,7 +133,7 @@ void GDAPI godot_array_new_pool_byte_array(godot_array *r_dest, const godot_pool memnew_placement(dest, Array); dest->resize(pca->size()); - for (size_t i = 0; i < dest->size(); i++) { + for (int i = 0; i < dest->size(); i++) { Variant v = pca->operator[](i); dest->operator[](i) = v; } diff --git a/modules/gdnative/godot/pool_arrays.cpp b/modules/gdnative/godot/pool_arrays.cpp index 2e533077f6..49bf851051 100644 --- a/modules/gdnative/godot/pool_arrays.cpp +++ b/modules/gdnative/godot/pool_arrays.cpp @@ -65,7 +65,7 @@ void GDAPI godot_pool_byte_array_new_with_array(godot_pool_byte_array *r_dest, c memnew_placement(dest, PoolVector<uint8_t>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -144,7 +144,7 @@ void GDAPI godot_pool_int_array_new_with_array(godot_pool_int_array *r_dest, con memnew_placement(dest, PoolVector<godot_int>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -223,7 +223,7 @@ void GDAPI godot_pool_real_array_new_with_array(godot_pool_real_array *r_dest, c memnew_placement(dest, PoolVector<godot_real>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -302,7 +302,7 @@ void GDAPI godot_pool_string_array_new_with_array(godot_pool_string_array *r_des memnew_placement(dest, PoolVector<String>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -389,7 +389,7 @@ void GDAPI godot_pool_vector2_array_new_with_array(godot_pool_vector2_array *r_d memnew_placement(dest, PoolVector<Vector2>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -475,7 +475,7 @@ void GDAPI godot_pool_vector3_array_new_with_array(godot_pool_vector3_array *r_d memnew_placement(dest, PoolVector<Vector3>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } @@ -561,7 +561,7 @@ void GDAPI godot_pool_color_array_new_with_array(godot_pool_color_array *r_dest, memnew_placement(dest, PoolVector<Color>); dest->resize(a->size()); - for (size_t i = 0; i < a->size(); i++) { + for (int i = 0; i < a->size(); i++) { dest->set(i, (*a)[i]); } } diff --git a/modules/gdscript/gd_function.cpp b/modules/gdscript/gd_function.cpp index e6f65fe0c2..cba1baaca3 100644 --- a/modules/gdscript/gd_function.cpp +++ b/modules/gdscript/gd_function.cpp @@ -290,8 +290,8 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a #ifdef DEBUG_ENABLED - uint64_t function_start_time; - uint64_t function_call_time; + uint64_t function_start_time = 0; + uint64_t function_call_time = 0; if (GDScriptLanguage::get_singleton()->profiling) { function_start_time = OS::get_singleton()->get_ticks_usec(); @@ -691,7 +691,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a } #ifdef DEBUG_ENABLED - uint64_t call_time; + uint64_t call_time = 0; if (GDScriptLanguage::get_singleton()->profiling) { call_time = OS::get_singleton()->get_ticks_usec(); diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp index 6f0a13e07f..f6a76ad2a1 100644 --- a/modules/gridmap/grid_map_editor_plugin.cpp +++ b/modules/gridmap/grid_map_editor_plugin.cpp @@ -1159,14 +1159,14 @@ GridMapEditor::GridMapEditor(EditorNode *p_editor) { outer_mat.instance(); outer_mat->set_albedo(Color(0.7, 0.7, 1.0, 0.8)); - outer_mat->set_flag(SpatialMaterial::FLAG_ONTOP, true); + outer_mat->set_on_top_of_alpha(); outer_mat->set_flag(SpatialMaterial::FLAG_UNSHADED, true); outer_mat->set_line_width(3.0); outer_mat->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); selection_floor_mat.instance(); selection_floor_mat->set_albedo(Color(0.80, 0.80, 1.0, 1)); - selection_floor_mat->set_flag(SpatialMaterial::FLAG_ONTOP, true); + selection_floor_mat->set_on_top_of_alpha(); selection_floor_mat->set_flag(SpatialMaterial::FLAG_UNSHADED, true); selection_floor_mat->set_line_width(3.0); //selection_floor_mat->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); diff --git a/modules/hdr/image_loader_hdr.cpp b/modules/hdr/image_loader_hdr.cpp index d883b0f280..92d88207b3 100644 --- a/modules/hdr/image_loader_hdr.cpp +++ b/modules/hdr/image_loader_hdr.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.cpp */ +/* image_loader_hdr.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/hdr/image_loader_hdr.h b/modules/hdr/image_loader_hdr.h index e6703dc142..569978d28d 100644 --- a/modules/hdr/image_loader_hdr.h +++ b/modules/hdr/image_loader_hdr.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.h */ +/* image_loader_hdr.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/nativescript/godot_nativescript.h b/modules/nativescript/godot_nativescript.h index d263c61464..d1cbf221ec 100644 --- a/modules/nativescript/godot_nativescript.h +++ b/modules/nativescript/godot_nativescript.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* godot.h */ +/* godot_nativescript.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/regex/regex.cpp b/modules/regex/regex.cpp index 8afd01e20b..00e8ce0f54 100644 --- a/modules/regex/regex.cpp +++ b/modules/regex/regex.cpp @@ -309,7 +309,7 @@ Ref<RegExMatch> RegEx::search(const String &p_subject, int p_offset, int p_end) _pattern_info(PCRE2_INFO_NAMETABLE, &table); _pattern_info(PCRE2_INFO_NAMEENTRYSIZE, &entry_size); - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { CharType id = table[i * entry_size]; if (result->data[id].start == -1) @@ -338,7 +338,7 @@ String RegEx::sub(const String &p_subject, const String &p_replacement, bool p_a PCRE2_SIZE olength = output.length(); PCRE2_SIZE length = p_subject.length(); - if (p_end >= 0 && p_end < length) + if (p_end >= 0 && (uint32_t)p_end < length) length = p_end; if (sizeof(CharType) == 2) { @@ -430,7 +430,7 @@ Array RegEx::get_names() const { _pattern_info(PCRE2_INFO_NAMETABLE, &table); _pattern_info(PCRE2_INFO_NAMEENTRYSIZE, &entry_size); - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { String name = &table[i * entry_size + 1]; if (result.find(name) < 0) { diff --git a/modules/squish/image_compress_squish.cpp b/modules/squish/image_compress_squish.cpp index 29073a8499..072f18b990 100644 --- a/modules/squish/image_compress_squish.cpp +++ b/modules/squish/image_compress_squish.cpp @@ -91,7 +91,7 @@ void image_compress_squish(Image *p_image, Image::CompressSource p_source) { if (p_image->get_format() <= Image::FORMAT_RGBA8) { int squish_comp = squish::kColourRangeFit; - Image::Format target_format; + Image::Format target_format = Image::FORMAT_RGBA8; Image::DetectChannels dc = p_image->get_detected_channels(); @@ -140,6 +140,10 @@ void image_compress_squish(Image *p_image, Image::CompressSource p_source) { squish_comp |= squish::kDxt5; } break; + default: { + ERR_PRINT("Unknown image format, defaulting to RGBA8"); + break; + } } PoolVector<uint8_t> data; diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp index 49d959203c..df427907f8 100644 --- a/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp +++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.cpp @@ -31,7 +31,10 @@ #include "os/file_access.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #include "thirdparty/misc/stb_vorbis.c" +#pragma GCC diagnostic pop void AudioStreamPlaybackOGGVorbis::_mix_internal(AudioFrame *p_buffer, int p_frames) { @@ -112,8 +115,8 @@ float AudioStreamPlaybackOGGVorbis::get_length() const { AudioStreamPlaybackOGGVorbis::~AudioStreamPlaybackOGGVorbis() { if (ogg_alloc.alloc_buffer) { - AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer); stb_vorbis_close(ogg_stream); + AudioServer::get_singleton()->audio_data_free(ogg_alloc.alloc_buffer); } } diff --git a/modules/stb_vorbis/audio_stream_ogg_vorbis.h b/modules/stb_vorbis/audio_stream_ogg_vorbis.h index a459e6f31d..bcd829a56a 100644 --- a/modules/stb_vorbis/audio_stream_ogg_vorbis.h +++ b/modules/stb_vorbis/audio_stream_ogg_vorbis.h @@ -34,7 +34,10 @@ #include "servers/audio/audio_stream.h" #define STB_VORBIS_HEADER_ONLY +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" #include "thirdparty/misc/stb_vorbis.c" +#pragma GCC diagnostic pop #undef STB_VORBIS_HEADER_ONLY class AudioStreamOGGVorbis; diff --git a/modules/tga/image_loader_tga.cpp b/modules/tga/image_loader_tga.cpp index 379c894550..7c7cf5bcbe 100644 --- a/modules/tga/image_loader_tga.cpp +++ b/modules/tga/image_loader_tga.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.cpp */ +/* image_loader_tga.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ @@ -53,19 +53,19 @@ Error ImageLoaderTGA::decode_tga_rle(const uint8_t *p_compressed_buffer, size_t count = (c & 0x7f) + 1; if (c & 0x80) { - for (int i = 0; i < p_pixel_size; i++) { + for (size_t i = 0; i < p_pixel_size; i++) { pixels_w.ptr()[i] = p_compressed_buffer[compressed_pos]; compressed_pos += 1; } - for (int i = 0; i < count; i++) { - for (int j = 0; j < p_pixel_size; j++) { + for (size_t i = 0; i < count; i++) { + for (size_t j = 0; j < p_pixel_size; j++) { p_uncompressed_buffer[output_pos + j] = pixels_w.ptr()[j]; } output_pos += p_pixel_size; } } else { count *= p_pixel_size; - for (int i = 0; i < count; i++) { + for (size_t i = 0; i < count; i++) { p_uncompressed_buffer[output_pos] = p_compressed_buffer[compressed_pos]; compressed_pos += 1; output_pos += 1; @@ -208,7 +208,7 @@ Error ImageLoaderTGA::load_image(Ref<Image> p_image, FileAccess *f, bool p_force PoolVector<uint8_t> src_image; int src_image_len = f->get_len(); ERR_FAIL_COND_V(src_image_len == 0, ERR_FILE_CORRUPT); - ERR_FAIL_COND_V(src_image_len < sizeof(tga_header_s), ERR_FILE_CORRUPT); + ERR_FAIL_COND_V(src_image_len < (int)sizeof(tga_header_s), ERR_FILE_CORRUPT); src_image.resize(src_image_len); Error err = OK; diff --git a/modules/tga/image_loader_tga.h b/modules/tga/image_loader_tga.h index 8689a1773b..7905ab37a7 100644 --- a/modules/tga/image_loader_tga.h +++ b/modules/tga/image_loader_tga.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.h */ +/* image_loader_tga.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/tinyexr/image_loader_tinyexr.cpp b/modules/tinyexr/image_loader_tinyexr.cpp index 57826d69fb..49a4db237a 100644 --- a/modules/tinyexr/image_loader_tinyexr.cpp +++ b/modules/tinyexr/image_loader_tinyexr.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.cpp */ +/* image_loader_tinyexr.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/tinyexr/image_loader_tinyexr.h b/modules/tinyexr/image_loader_tinyexr.h index adecba5d9d..53a81597af 100644 --- a/modules/tinyexr/image_loader_tinyexr.h +++ b/modules/tinyexr/image_loader_tinyexr.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* image_loader_jpegd.h */ +/* image_loader_tinyexr.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 05ceb7a38f..8386687c9f 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* visual_script_editor.h */ +/* visual_script_editor.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/visual_script/visual_script_nodes.h b/modules/visual_script/visual_script_nodes.h index 694fb96cfa..421409b265 100644 --- a/modules/visual_script/visual_script_nodes.h +++ b/modules/visual_script/visual_script_nodes.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* visual_script_nodes.h */ +/* visual_script_nodes.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/visual_script/visual_script_yield_nodes.cpp b/modules/visual_script/visual_script_yield_nodes.cpp index 4b8e17421b..b6d4021ca3 100644 --- a/modules/visual_script/visual_script_yield_nodes.cpp +++ b/modules/visual_script/visual_script_yield_nodes.cpp @@ -516,7 +516,7 @@ public: } else { //yield - Object *object; + Object *object = NULL; switch (call_mode) { diff --git a/modules/webm/video_stream_webm.cpp b/modules/webm/video_stream_webm.cpp index 26344877de..0178ebab84 100644 --- a/modules/webm/video_stream_webm.cpp +++ b/modules/webm/video_stream_webm.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* av_stream_webm.cpp.cpp */ +/* video_stream_webm.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/modules/webm/video_stream_webm.h b/modules/webm/video_stream_webm.h index a48a6c6b9a..9a331849be 100644 --- a/modules/webm/video_stream_webm.h +++ b/modules/webm/video_stream_webm.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* av_stream_webm.cpp.cpp */ +/* video_stream_webm.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/android/audio_driver_opensl.cpp b/platform/android/audio_driver_opensl.cpp index e774f5bb7d..9ebed84ace 100644 --- a/platform/android/audio_driver_opensl.cpp +++ b/platform/android/audio_driver_opensl.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* audio_driver_opensl.cpp */ +/* audio_driver_opensl.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 3c5c0fda23..d691bd7629 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -540,14 +540,14 @@ class EditorExportAndroid : public EditorExportPlatform { //print_line("FILESIZE: "+itos(filesize)+" ACTUAL: "+itos(p_manifest.size())); - uint32_t string_count; - uint32_t styles_count; - uint32_t string_flags; - uint32_t string_data_offset; - - uint32_t styles_offset; - uint32_t string_table_begins; - uint32_t string_table_ends; + uint32_t string_count = 0; + uint32_t styles_count = 0; + uint32_t string_flags = 0; + uint32_t string_data_offset = 0; + + uint32_t styles_offset = 0; + uint32_t string_table_begins = 0; + uint32_t string_table_ends = 0; Vector<uint8_t> stable_extra; String version_name = p_preset->get("version/name"); diff --git a/platform/iphone/icloud.h b/platform/iphone/icloud.h index 7ab3e04bb8..6944ee6749 100644 --- a/platform/iphone/icloud.h +++ b/platform/iphone/icloud.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* icloud.h */ +/* icloud.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/iphone/icloud.mm b/platform/iphone/icloud.mm index 84458ed79f..097018f296 100644 --- a/platform/iphone/icloud.mm +++ b/platform/iphone/icloud.mm @@ -1,5 +1,5 @@ /*************************************************************************/ -/* icloud.mm */ +/* icloud.mm */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/osx/audio_driver_osx.cpp b/platform/osx/audio_driver_osx.cpp index 8c5a734f76..78c52af201 100644 --- a/platform/osx/audio_driver_osx.cpp +++ b/platform/osx/audio_driver_osx.cpp @@ -77,7 +77,7 @@ Error AudioDriverOSX::initDevice() { break; }*/ - mix_rate = GLOBAL_DEF("audio/mix_rate", 44100); + mix_rate = GLOBAL_DEF("audio/mix_rate", DEFAULT_MIX_RATE); zeromem(&strdesc, sizeof(strdesc)); strdesc.mFormatID = kAudioFormatLinearPCM; @@ -92,15 +92,19 @@ Error AudioDriverOSX::initDevice() { result = AudioUnitSetProperty(audio_unit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, kOutputBus, &strdesc, sizeof(strdesc)); ERR_FAIL_COND_V(result != noErr, FAILED); - int latency = GLOBAL_DEF("audio/output_latency", 25); - unsigned int buffer_size = closest_power_of_2(latency * mix_rate / 1000); + int latency = GLOBAL_DEF("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + // Sample rate is independent of channels (ref: https://stackoverflow.com/questions/11048825/audio-sample-frequency-rely-on-channels) + buffer_frames = closest_power_of_2(latency * mix_rate / 1000); - if (OS::get_singleton()->is_stdout_verbose()) { - print_line("audio buffer size: " + itos(buffer_size) + " calculated latency: " + itos(buffer_size * 1000 / mix_rate)); - } + result = AudioUnitSetProperty(audio_unit, kAudioDevicePropertyBufferFrameSize, kAudioUnitScope_Global, kOutputBus, &buffer_frames, sizeof(UInt32)); + ERR_FAIL_COND_V(result != noErr, FAILED); + buffer_size = buffer_frames * channels; samples_in.resize(buffer_size); - buffer_frames = buffer_size / channels; + + if (OS::get_singleton()->is_stdout_verbose()) { + print_line("audio buffer frames: " + itos(buffer_frames) + " calculated latency: " + itos(buffer_frames * 1000 / mix_rate) + "ms"); + } AURenderCallbackStruct callback; zeromem(&callback, sizeof(AURenderCallbackStruct)); @@ -234,7 +238,7 @@ void AudioDriverOSX::start() { }; int AudioDriverOSX::get_mix_rate() const { - return 44100; + return mix_rate; }; AudioDriver::SpeakerMode AudioDriverOSX::get_speaker_mode() const { @@ -282,8 +286,12 @@ AudioDriverOSX::AudioDriverOSX() { active = false; mutex = NULL; - mix_rate = 44100; + mix_rate = 0; channels = 2; + + buffer_size = 0; + buffer_frames = 0; + samples_in.clear(); }; diff --git a/platform/osx/audio_driver_osx.h b/platform/osx/audio_driver_osx.h index ac178b89f3..a7e68c8141 100644 --- a/platform/osx/audio_driver_osx.h +++ b/platform/osx/audio_driver_osx.h @@ -45,8 +45,9 @@ class AudioDriverOSX : public AudioDriver { Mutex *mutex; int mix_rate; - int channels; - int buffer_frames; + unsigned int channels; + unsigned int buffer_frames; + unsigned int buffer_size; Vector<int32_t> samples_in; diff --git a/platform/osx/joypad_osx.h b/platform/osx/joypad_osx.h index e271f4b947..4bdef8eb83 100644 --- a/platform/osx/joypad_osx.h +++ b/platform/osx/joypad_osx.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* joypad_osx.h */ +/* joypad_osx.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/osx/power_osx.cpp b/platform/osx/power_osx.cpp index 24591e48b1..5f3938cb91 100644 --- a/platform/osx/power_osx.cpp +++ b/platform/osx/power_osx.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* power_osx.cpp */ +/* power_osx.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index c129743507..a2be126c58 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -501,7 +501,7 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t size_t block_size = (p_len - step) > BLOCK_SIZE ? BLOCK_SIZE : (p_len - step); - for (int i = 0; i < block_size; i++) { + for (uint32_t i = 0; i < block_size; i++) { strm_in[i] = p_buffer[step + i]; } @@ -523,14 +523,14 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t //package->store_buffer(strm_out.ptr(), strm.total_out - total_out_before); int start = file_buffer.size(); file_buffer.resize(file_buffer.size() + bh.compressed_size); - for (int i = 0; i < bh.compressed_size; i++) + for (uint32_t i = 0; i < bh.compressed_size; i++) file_buffer[start + i] = strm_out[i]; } else { bh.compressed_size = block_size; //package->store_buffer(strm_in.ptr(), block_size); int start = file_buffer.size(); file_buffer.resize(file_buffer.size() + block_size); - for (int i = 0; i < bh.compressed_size; i++) + for (uint32_t i = 0; i < bh.compressed_size; i++) file_buffer[start + i] = strm_in[i]; } @@ -553,7 +553,7 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t //package->store_buffer(strm_out.ptr(), strm.total_out - total_out_before); int start = file_buffer.size(); file_buffer.resize(file_buffer.size() + (strm.total_out - total_out_before)); - for (int i = 0; i < (strm.total_out - total_out_before); i++) + for (uint32_t i = 0; i < (strm.total_out - total_out_before); i++) file_buffer[start + i] = strm_out[i]; deflateEnd(&strm); @@ -866,7 +866,7 @@ class EditorExportUWP : public EditorExportPlatform { Vector<uint8_t> _get_image_data(const Ref<EditorExportPreset> &p_preset, const String &p_path) { Vector<uint8_t> data; - StreamTexture *image; + StreamTexture *image = NULL; if (p_path.find("StoreLogo") != -1) { image = p_preset->get("images/store_logo").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/store_logo"))); @@ -882,6 +882,8 @@ class EditorExportUWP : public EditorExportPlatform { image = p_preset->get("images/wide310x150_logo").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/wide310x150_logo"))); } else if (p_path.find("SplashScreen") != -1) { image = p_preset->get("images/splash_screen").is_zero() ? NULL : Object::cast_to<StreamTexture>(((Object *)p_preset->get("images/splash_screen"))); + } else { + ERR_PRINT("Unable to load logo"); } if (!image) return data; diff --git a/platform/windows/joypad.cpp b/platform/windows/joypad.cpp index cde72c98c9..00cfa812de 100644 --- a/platform/windows/joypad.cpp +++ b/platform/windows/joypad.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* joypad.cpp */ +/* joypad.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/platform/windows/joypad.h b/platform/windows/joypad.h index 059c577bb6..a76caf6fac 100644 --- a/platform/windows/joypad.h +++ b/platform/windows/joypad.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* joypad.h */ +/* joypad.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp index eb186a8e1f..39d3f2d6bf 100644 --- a/scene/2d/audio_stream_player_2d.cpp +++ b/scene/2d/audio_stream_player_2d.cpp @@ -246,12 +246,14 @@ void AudioStreamPlayer2D::set_stream(Ref<AudioStream> p_stream) { stream = p_stream; stream_playback = p_stream->instance_playback(); + AudioServer::get_singleton()->unlock(); + if (stream_playback.is_null()) { stream.unref(); ERR_FAIL_COND(stream_playback.is_null()); } - AudioServer::get_singleton()->unlock(); + } Ref<AudioStream> AudioStreamPlayer2D::get_stream() const { diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index 9eea5191b9..1235013af4 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -139,7 +139,7 @@ void LineBuilder::build() { float current_distance0 = 0.f; float current_distance1 = 0.f; - float total_distance; + float total_distance = 0.f; _interpolate_color = gradient != NULL; bool distance_required = _interpolate_color || texture_mode == LINE_TEXTURE_TILE; if (distance_required) diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index 6efdf25f0d..a69bec2fc8 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -183,7 +183,7 @@ void AudioStreamPlayer3D::_mix_audio() { float AudioStreamPlayer3D::_get_attenuation_db(float p_distance) const { - float att; + float att = 0; switch (attenuation_model) { case ATTENUATION_INVERSE_DISTANCE: { att = Math::linear2db(1.0 / ((p_distance / unit_size) + 000001)); @@ -196,6 +196,10 @@ float AudioStreamPlayer3D::_get_attenuation_db(float p_distance) const { case ATTENUATION_LOGARITHMIC: { att = -20 * Math::log(p_distance / unit_size + 000001); } break; + default: { + ERR_PRINT("Unknown attenuation type"); + break; + } } att += unit_db; @@ -555,12 +559,12 @@ void AudioStreamPlayer3D::set_stream(Ref<AudioStream> p_stream) { stream = p_stream; stream_playback = p_stream->instance_playback(); + AudioServer::get_singleton()->unlock(); + if (stream_playback.is_null()) { stream.unref(); ERR_FAIL_COND(stream_playback.is_null()); } - - AudioServer::get_singleton()->unlock(); } Ref<AudioStream> AudioStreamPlayer3D::get_stream() const { diff --git a/scene/3d/collision_shape.cpp b/scene/3d/collision_shape.cpp index 4d4ed30d03..5f1151f8e9 100644 --- a/scene/3d/collision_shape.cpp +++ b/scene/3d/collision_shape.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* body_shape.cpp */ +/* collision_shape.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/3d/collision_shape.h b/scene/3d/collision_shape.h index 6d849f42af..94621177cb 100644 --- a/scene/3d/collision_shape.h +++ b/scene/3d/collision_shape.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* body_shape.h */ +/* collision_shape.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/3d/gi_probe.cpp b/scene/3d/gi_probe.cpp index 0232ce7653..bb54a43028 100644 --- a/scene/3d/gi_probe.cpp +++ b/scene/3d/gi_probe.cpp @@ -548,8 +548,8 @@ void GIProbe::_plot_face(int p_idx, int p_level, int p_x, int p_y, int p_z, cons //plot the face by guessing it's albedo and emission value //find best axis to map to, for scanning values - int closest_axis; - float closest_dot; + int closest_axis = 0; + float closest_dot = 0; Plane plane = Plane(p_vtx[0], p_vtx[1], p_vtx[2]); Vector3 normal = plane.normal; diff --git a/scene/3d/immediate_geometry.h b/scene/3d/immediate_geometry.h index b2bcb5af1a..6db825bf54 100644 --- a/scene/3d/immediate_geometry.h +++ b/scene/3d/immediate_geometry.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* immediate_geometry.h */ +/* immediate_geometry.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/3d/remote_transform.cpp b/scene/3d/remote_transform.cpp index 3d402fa5af..8faf985b11 100644 --- a/scene/3d/remote_transform.cpp +++ b/scene/3d/remote_transform.cpp @@ -1,6 +1,5 @@ - /*************************************************************************/ -/* remote_transform.cpp */ +/* remote_transform.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/animation/animation_tree_player.h b/scene/animation/animation_tree_player.h index 71d7277118..609430340b 100644 --- a/scene/animation/animation_tree_player.h +++ b/scene/animation/animation_tree_player.h @@ -347,7 +347,7 @@ public: void animation_node_set_master_animation(const StringName &p_node, const String &p_master_animation); String animation_node_get_master_animation(const StringName &p_node) const; - void animation_node_set_filter_path(const StringName &p_node, const NodePath &p_filter, bool p_enable); + void animation_node_set_filter_path(const StringName &p_node, const NodePath &p_track_path, bool p_filter); void animation_node_set_get_filtered_paths(const StringName &p_node, List<NodePath> *r_paths) const; bool animation_node_is_path_filtered(const StringName &p_node, const NodePath &p_path) const; diff --git a/scene/audio/audio_player.cpp b/scene/audio/audio_player.cpp index 5d71f702df..8bd924e7ce 100644 --- a/scene/audio/audio_player.cpp +++ b/scene/audio/audio_player.cpp @@ -139,12 +139,12 @@ void AudioStreamPlayer::set_stream(Ref<AudioStream> p_stream) { stream = p_stream; stream_playback = p_stream->instance_playback(); + AudioServer::get_singleton()->unlock(); + if (stream_playback.is_null()) { stream.unref(); ERR_FAIL_COND(stream_playback.is_null()); } - - AudioServer::get_singleton()->unlock(); } Ref<AudioStream> AudioStreamPlayer::get_stream() const { diff --git a/scene/gui/check_box.h b/scene/gui/check_box.h index 4a1adb5f2f..4da06be8d1 100644 --- a/scene/gui/check_box.h +++ b/scene/gui/check_box.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* check_box.h */ +/* check_box.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp index 9bad871ef9..f8d82a339c 100644 --- a/scene/gui/item_list.cpp +++ b/scene/gui/item_list.cpp @@ -534,7 +534,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) { uint64_t now = OS::get_singleton()->get_ticks_msec(); uint64_t diff = now - search_time_msec; - if (diff < int(ProjectSettings::get_singleton()->get("gui/timers/incremental_search_max_interval_msec")) * 2) { + if (diff < uint64_t(ProjectSettings::get_singleton()->get("gui/timers/incremental_search_max_interval_msec")) * 2) { for (int i = current - 1; i >= 0; i--) { @@ -569,7 +569,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) { uint64_t now = OS::get_singleton()->get_ticks_msec(); uint64_t diff = now - search_time_msec; - if (diff < int(ProjectSettings::get_singleton()->get("gui/timers/incremental_search_max_interval_msec")) * 2) { + if (diff < uint64_t(ProjectSettings::get_singleton()->get("gui/timers/incremental_search_max_interval_msec")) * 2) { for (int i = current + 1; i < items.size(); i++) { diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index 5ed5463f65..e1f77594da 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -401,7 +401,7 @@ void Label::regenerate_word_cache() { bool separatable = (current >= 0x2E08 && current <= 0xFAFF) || (current >= 0xFE30 && current <= 0xFE4F); //current>=33 && (current < 65||current >90) && (current<97||current>122) && (current<48||current>57); bool insert_newline = false; - int char_width; + int char_width = 0; if (current < 33) { diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 7b93393851..cd7e1b2ed8 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4531,7 +4531,7 @@ String TextEdit::get_word_at_pos(const Vector2 &p_pos) const { bool symbol = beg < s.length() && _is_symbol(s[beg]); //not sure if right but most editors behave like this bool inside_quotes = false; - int qbegin, qend; + int qbegin = 0, qend = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == '"') { if (inside_quotes) { diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 766b7923d3..a71b491bae 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1,5 +1,5 @@ /*************************************************************************/ -/* scene_main_loop.cpp */ +/* scene_tree.cpp */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/main/scene_tree.h b/scene/main/scene_tree.h index 594b806cef..c116bec4fc 100644 --- a/scene/main/scene_tree.h +++ b/scene/main/scene_tree.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* scene_main_loop.h */ +/* scene_tree.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 36dbd14b40..c71a280755 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -491,7 +491,7 @@ void Viewport::_notification(int p_what) { if (physics_object_picking && (to_screen_rect == Rect2() || Input::get_singleton()->get_mouse_mode() != Input::MOUSE_MODE_CAPTURED)) { Vector2 last_pos(1e20, 1e20); - CollisionObject *last_object; + CollisionObject *last_object = NULL; ObjectID last_id = 0; PhysicsDirectSpaceState::RayResult result; Physics2DDirectSpaceState *ss2d = Physics2DServer::get_singleton()->space_get_direct_state(find_world_2d()->get_space()); @@ -604,7 +604,7 @@ void Viewport::_notification(int p_what) { } else if (pos == last_pos) { if (last_id) { - if (ObjectDB::get_instance(last_id)) { + if (ObjectDB::get_instance(last_id) && last_object) { //good, exists last_object->_input_event(camera, ev, result.position, result.normal, result.shape); if (last_object->get_capture_input_on_drag() && mb.is_valid() && mb->get_button_index() == 1 && mb->is_pressed()) { diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index 1a2c8333ef..eae95d9247 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -970,7 +970,12 @@ int Animation::_find(const Vector<K> &p_keys, float p_time) const { int low = 0; int high = len - 1; - int middle; + int middle = 0; + +#if DEBUG_ENABLED + if (low > high) + ERR_PRINT("low > high, this may be a bug"); +#endif const K *keys = &p_keys[0]; @@ -1289,7 +1294,7 @@ Error Animation::transform_track_interpolate(int p_track, float p_time, Vector3 TransformTrack *tt = static_cast<TransformTrack *>(t); - bool ok; + bool ok = false; TransformKey tk = _interpolate(tt->transforms, p_time, tt->interpolation, tt->loop_wrap, &ok); @@ -1315,7 +1320,7 @@ Variant Animation::value_track_interpolate(int p_track, float p_time) const { ERR_FAIL_COND_V(t->type != TYPE_VALUE, Variant()); ValueTrack *vt = static_cast<ValueTrack *>(t); - bool ok; + bool ok = false; Variant res = _interpolate(vt->values, p_time, vt->update_mode == UPDATE_CONTINUOUS ? vt->interpolation : INTERPOLATION_NEAREST, vt->loop_wrap, &ok); diff --git a/scene/resources/color_ramp.h b/scene/resources/color_ramp.h index 816152d51f..316c188d59 100644 --- a/scene/resources/color_ramp.h +++ b/scene/resources/color_ramp.h @@ -88,7 +88,12 @@ public: //binary search int low = 0; int high = points.size() - 1; - int middle; + int middle = 0; + +#if DEBUG_ENABLED + if (low > high) + ERR_PRINT("low > high, this may be a bug"); +#endif while (low <= high) { middle = (low + high) / 2; diff --git a/scene/resources/default_theme/default_theme.h b/scene/resources/default_theme/default_theme.h index 9032b71775..f2a4b2616d 100644 --- a/scene/resources/default_theme/default_theme.h +++ b/scene/resources/default_theme/default_theme.h @@ -1,5 +1,5 @@ /*************************************************************************/ -/* default_theme.cpp */ +/* default_theme.h */ /*************************************************************************/ /* This file is part of: */ /* GODOT ENGINE */ diff --git a/scene/resources/font.cpp b/scene/resources/font.cpp index d9ccd31f88..ea75748b3d 100644 --- a/scene/resources/font.cpp +++ b/scene/resources/font.cpp @@ -40,7 +40,7 @@ void Font::draw_halign(RID p_canvas_item, const Point2 &p_pos, HAlign p_align, f return; } - float ofs; + float ofs = 0.f; switch (p_align) { case HALIGN_LEFT: { ofs = 0; @@ -51,6 +51,9 @@ void Font::draw_halign(RID p_canvas_item, const Point2 &p_pos, HAlign p_align, f case HALIGN_RIGHT: { ofs = p_width - length; } break; + default: { + ERR_PRINT("Unknown halignment type"); + } break; } draw(p_canvas_item, p_pos + Point2(ofs, 0), p_text, p_modulate, p_width); } diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp index 315351d039..63b7fe4a86 100644 --- a/scene/resources/material.cpp +++ b/scene/resources/material.cpp @@ -48,6 +48,19 @@ Ref<Material> Material::get_next_pass() const { return next_pass; } +void Material::set_render_priority(int p_priority) { + + ERR_FAIL_COND(p_priority < RENDER_PRIORITY_MIN); + ERR_FAIL_COND(p_priority > RENDER_PRIORITY_MAX); + render_priority = p_priority; + VS::get_singleton()->material_set_render_priority(material, p_priority); +} + +int Material::get_render_priority() const { + + return render_priority; +} + RID Material::get_rid() const { return material; @@ -58,12 +71,20 @@ void Material::_bind_methods() { ClassDB::bind_method(D_METHOD("set_next_pass", "next_pass"), &Material::set_next_pass); ClassDB::bind_method(D_METHOD("get_next_pass"), &Material::get_next_pass); + ClassDB::bind_method(D_METHOD("set_render_priority", "priority"), &Material::set_render_priority); + ClassDB::bind_method(D_METHOD("get_render_priority"), &Material::get_render_priority); + + ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "render_priority", PROPERTY_HINT_RANGE, itos(RENDER_PRIORITY_MIN) + "," + itos(RENDER_PRIORITY_MAX) + ",1"), "set_render_priority", "get_render_priority"); ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "next_pass", PROPERTY_HINT_RESOURCE_TYPE, "Material"), "set_next_pass", "get_next_pass"); + + BIND_CONSTANT(RENDER_PRIORITY_MAX); + BIND_CONSTANT(RENDER_PRIORITY_MIN); } Material::Material() { material = VisualServer::get_singleton()->material_create(); + render_priority = 0; } Material::~Material() { @@ -347,8 +368,8 @@ void SpatialMaterial::_update_shader() { if (flags[FLAG_UNSHADED]) { code += ",unshaded"; } - if (flags[FLAG_ONTOP]) { - code += ",ontop"; + if (flags[FLAG_DISABLE_DEPTH_TEST]) { + code += ",depth_test_disable"; } if (flags[FLAG_USE_VERTEX_LIGHTING]) { code += ",vertex_lighting"; @@ -1459,6 +1480,12 @@ RID SpatialMaterial::get_material_rid_for_2d(bool p_shaded, bool p_transparent, return materials_for_2d[version]->get_rid(); } +void SpatialMaterial::set_on_top_of_alpha() { + set_feature(FEATURE_TRANSPARENT, true); + set_render_priority(RENDER_PRIORITY_MAX); + set_flag(FLAG_DISABLE_DEPTH_TEST, true); +} + void SpatialMaterial::_bind_methods() { ClassDB::bind_method(D_METHOD("set_albedo", "albedo"), &SpatialMaterial::set_albedo); @@ -1606,7 +1633,7 @@ void SpatialMaterial::_bind_methods() { ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_transparent"), "set_feature", "get_feature", FEATURE_TRANSPARENT); ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_unshaded"), "set_flag", "get_flag", FLAG_UNSHADED); ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_vertex_lighting"), "set_flag", "get_flag", FLAG_USE_VERTEX_LIGHTING); - ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_on_top"), "set_flag", "get_flag", FLAG_ONTOP); + ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_no_depth_test"), "set_flag", "get_flag", FLAG_DISABLE_DEPTH_TEST); ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_use_point_size"), "set_flag", "get_flag", FLAG_USE_POINT_SIZE); ADD_PROPERTYI(PropertyInfo(Variant::BOOL, "flags_fixed_size"), "set_flag", "get_flag", FLAG_FIXED_SIZE); ADD_GROUP("Vertex Color", "vertex_color"); @@ -1768,7 +1795,7 @@ void SpatialMaterial::_bind_methods() { BIND_ENUM_CONSTANT(FLAG_UNSHADED); BIND_ENUM_CONSTANT(FLAG_USE_VERTEX_LIGHTING); - BIND_ENUM_CONSTANT(FLAG_ONTOP); + BIND_ENUM_CONSTANT(FLAG_DISABLE_DEPTH_TEST); BIND_ENUM_CONSTANT(FLAG_ALBEDO_FROM_VERTEX_COLOR); BIND_ENUM_CONSTANT(FLAG_SRGB_VERTEX_COLOR); BIND_ENUM_CONSTANT(FLAG_USE_POINT_SIZE); diff --git a/scene/resources/material.h b/scene/resources/material.h index 6a0eead708..4977e5dd70 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -48,15 +48,23 @@ class Material : public Resource { RID material; Ref<Material> next_pass; + int render_priority; protected: _FORCE_INLINE_ RID _get_material() const { return material; } static void _bind_methods(); public: + enum { + RENDER_PRIORITY_MAX = VS::MATERIAL_RENDER_PRIORITY_MAX, + RENDER_PRIORITY_MIN = VS::MATERIAL_RENDER_PRIORITY_MIN, + }; void set_next_pass(const Ref<Material> &p_pass); Ref<Material> get_next_pass() const; + void set_render_priority(int p_priority); + int get_render_priority() const; + virtual RID get_rid() const; Material(); virtual ~Material(); @@ -156,7 +164,7 @@ public: enum Flags { FLAG_UNSHADED, FLAG_USE_VERTEX_LIGHTING, - FLAG_ONTOP, + FLAG_DISABLE_DEPTH_TEST, FLAG_ALBEDO_FROM_VERTEX_COLOR, FLAG_SRGB_VERTEX_COLOR, FLAG_USE_POINT_SIZE, @@ -511,6 +519,8 @@ public: void set_alpha_scissor_threshold(float p_treshold); float get_alpha_scissor_threshold() const; + void set_on_top_of_alpha(); + void set_metallic_texture_channel(TextureChannel p_channel); TextureChannel get_metallic_texture_channel() const; void set_roughness_texture_channel(TextureChannel p_channel); diff --git a/scene/resources/texture.cpp b/scene/resources/texture.cpp index 9751d6e711..6a9ded9ea3 100644 --- a/scene/resources/texture.cpp +++ b/scene/resources/texture.cpp @@ -501,9 +501,9 @@ Error StreamTexture::_load_data(const String &p_path, int &tw, int &th, int &fla Vector<Ref<Image> > mipmap_images; int total_size = 0; - for (int i = 0; i < mipmaps; i++) { + for (uint32_t i = 0; i < mipmaps; i++) { - if (i > 0) { + if (i) { size = f->get_32(); } diff --git a/servers/audio/audio_driver_dummy.cpp b/servers/audio/audio_driver_dummy.cpp index 992fece85f..1ae0e7b96b 100644 --- a/servers/audio/audio_driver_dummy.cpp +++ b/servers/audio/audio_driver_dummy.cpp @@ -37,17 +37,16 @@ Error AudioDriverDummy::init() { active = false; thread_exited = false; exit_thread = false; - pcm_open = false; samples_in = NULL; - mix_rate = 44100; + mix_rate = DEFAULT_MIX_RATE; speaker_mode = SPEAKER_MODE_STEREO; channels = 2; - int latency = GLOBAL_DEF("audio/output_latency", 25); - buffer_size = next_power_of_2(latency * mix_rate / 1000); + int latency = GLOBAL_DEF("audio/output_latency", DEFAULT_OUTPUT_LATENCY); + buffer_frames = closest_power_of_2(latency * mix_rate / 1000); - samples_in = memnew_arr(int32_t, buffer_size * channels); + samples_in = memnew_arr(int32_t, buffer_frames * channels); mutex = Mutex::create(); thread = Thread::create(AudioDriverDummy::thread_func, this); @@ -59,17 +58,15 @@ void AudioDriverDummy::thread_func(void *p_udata) { AudioDriverDummy *ad = (AudioDriverDummy *)p_udata; - uint64_t usdelay = (ad->buffer_size / float(ad->mix_rate)) * 1000000; + uint64_t usdelay = (ad->buffer_frames / float(ad->mix_rate)) * 1000000; while (!ad->exit_thread) { - if (!ad->active) { - - } else { + if (ad->active) { ad->lock(); - ad->audio_server_process(ad->buffer_size, ad->samples_in); + ad->audio_server_process(ad->buffer_frames, ad->samples_in); ad->unlock(); }; diff --git a/servers/audio/audio_driver_dummy.h b/servers/audio/audio_driver_dummy.h index b3fea59389..90af1961b7 100644 --- a/servers/audio/audio_driver_dummy.h +++ b/servers/audio/audio_driver_dummy.h @@ -43,8 +43,8 @@ class AudioDriverDummy : public AudioDriver { int32_t *samples_in; static void thread_func(void *p_udata); - int buffer_size; + unsigned int buffer_frames; unsigned int mix_rate; SpeakerMode speaker_mode; @@ -53,7 +53,6 @@ class AudioDriverDummy : public AudioDriver { bool active; bool thread_exited; mutable bool exit_thread; - bool pcm_open; public: const char *get_name() const { diff --git a/servers/audio/audio_rb_resampler.cpp b/servers/audio/audio_rb_resampler.cpp index 2f160fd7cd..113e356612 100644 --- a/servers/audio/audio_rb_resampler.cpp +++ b/servers/audio/audio_rb_resampler.cpp @@ -176,7 +176,7 @@ bool AudioRBResampler::mix(int32_t *p_dest, int p_frames) { { - uint32_t read = 0; + int read = 0; switch (channels) { case 1: read = _resample<1>(p_dest, todo, increment); break; case 2: read = _resample<2>(p_dest, todo, increment); break; @@ -189,7 +189,7 @@ bool AudioRBResampler::mix(int32_t *p_dest, int p_frames) { if (remaining && todo > 0) { //print_line("fadeout"); - for (int c = 0; c < channels; c++) { + for (uint32_t c = 0; c < channels; c++) { for (int i = 0; i < todo; i++) { @@ -202,7 +202,7 @@ bool AudioRBResampler::mix(int32_t *p_dest, int p_frames) { } //zero out what remains there to avoid glitches - for (int i = todo * channels; i < int(p_frames) * channels; i++) { + for (uint32_t i = todo * channels; i < int(p_frames) * channels; i++) { p_dest[i] = 0; } @@ -250,7 +250,7 @@ Error AudioRBResampler::setup(int p_channels, int p_src_mix_rate, int p_target_m rb_write_pos = 0; //avoid maybe strange noises upon load - for (int i = 0; i < (rb_len * channels); i++) { + for (unsigned int i = 0; i < (rb_len * channels); i++) { rb[i] = 0; read_buf[i] = 0; diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 4075bc3e63..76dd585ffa 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -78,7 +78,7 @@ void AudioEffectChorusInstance::_process_chunk(const AudioFrame *p_src_frames, A uint64_t increment = llrint(cycles_to_mix / (double)p_frame_count * (double)(1 << AudioEffectChorus::CYCLES_FRAC)); //check the LFO doesn't read ahead of the write pos - if ((((int)max_depth_frames) + 10) > delay_frames) { //10 as some threshold to avoid precision stuff + if ((((unsigned int)max_depth_frames) + 10) > delay_frames) { //10 as some threshold to avoid precision stuff delay_frames += (int)max_depth_frames - delay_frames; delay_frames += 10; //threshold to avoid precision stuff } diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index c0343399c3..3139c6bb7a 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -155,6 +155,29 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) { todo -= to_copy; to_mix -= to_copy; } + +#ifdef DEBUG_ENABLED + if (OS::get_singleton() && OS::get_singleton()->is_stdout_verbose()) { + static uint64_t first_ticks = 0; + static uint64_t last_ticks = 0; + static uint64_t ticks = 0; + static int count = 0; + static int total = 0; + + ticks = OS::get_singleton()->get_ticks_msec(); + if ((ticks - first_ticks) > 10 * 1000) { + print_line("Audio Driver " + String(AudioDriver::get_singleton()->get_name()) + " average latency: " + itos(total / count) + "ms (frame=" + itos(p_frames) + ")"); + first_ticks = ticks; + total = 0; + count = 0; + } + + total += ticks - last_ticks; + count++; + + last_ticks = ticks; + } +#endif } void AudioServer::_mix_step() { diff --git a/servers/audio_server.h b/servers/audio_server.h index 05e92ceaf0..13a74856c8 100644 --- a/servers/audio_server.h +++ b/servers/audio_server.h @@ -54,6 +54,9 @@ public: SPEAKER_SURROUND_71, }; + static const int DEFAULT_MIX_RATE = 44100; + static const int DEFAULT_OUTPUT_LATENCY = 15; + static AudioDriver *get_singleton(); void set_singleton(); diff --git a/servers/physics/collision_solver_sw.cpp b/servers/physics/collision_solver_sw.cpp index c7f66cb7fc..7bef208237 100644 --- a/servers/physics/collision_solver_sw.cpp +++ b/servers/physics/collision_solver_sw.cpp @@ -271,7 +271,7 @@ bool CollisionSolverSW::solve_distance_plane(const ShapeSW *p_shape_A, const Tra bool collided = false; Vector3 closest; - real_t closest_d; + real_t closest_d = 0; for (int i = 0; i < support_count; i++) { diff --git a/servers/physics/gjk_epa.cpp b/servers/physics/gjk_epa.cpp index 6cea5b003d..0f03bd917a 100644 --- a/servers/physics/gjk_epa.cpp +++ b/servers/physics/gjk_epa.cpp @@ -410,8 +410,8 @@ struct GJK if(l>GJK_SIMPLEX3_EPS) { real_t mindist=-1; - real_t subw[2]; - U subm; + real_t subw[2] = { 0 , 0}; + U subm = 0; for(U i=0;i<3;++i) { if(vec3_dot(*vt[i],vec3_cross(dl[i],n))>0) @@ -458,7 +458,7 @@ struct GJK { real_t mindist=-1; real_t subw[3]; - U subm; + U subm=0; for(U i=0;i<3;++i) { const U j=imd3[i]; diff --git a/servers/physics/shape_sw.cpp b/servers/physics/shape_sw.cpp index f02ff03fcf..1845188089 100644 --- a/servers/physics/shape_sw.cpp +++ b/servers/physics/shape_sw.cpp @@ -734,7 +734,7 @@ Vector3 ConvexPolygonShapeSW::get_support(const Vector3 &p_normal) const { Vector3 n = p_normal; int vert_support_idx = -1; - real_t support_max; + real_t support_max = 0; int vertex_count = mesh.vertices.size(); if (vertex_count == 0) @@ -767,8 +767,8 @@ void ConvexPolygonShapeSW::get_supports(const Vector3 &p_normal, int p_max, Vect int vc = mesh.vertices.size(); //find vertex first - real_t max; - int vtx; + real_t max = 0; + int vtx = 0; for (int i = 0; i < vc; i++) { @@ -1000,7 +1000,7 @@ void FaceShapeSW::project_range(const Vector3 &p_normal, const Transform &p_tran Vector3 FaceShapeSW::get_support(const Vector3 &p_normal) const { int vert_support_idx = -1; - real_t support_max; + real_t support_max = 0; for (int i = 0; i < 3; i++) { @@ -1154,7 +1154,7 @@ Vector3 ConcavePolygonShapeSW::get_support(const Vector3 &p_normal) const { Vector3 n = p_normal; int vert_support_idx = -1; - real_t support_max; + real_t support_max = 0; for (int i = 0; i < count; i++) { diff --git a/servers/physics_2d/broad_phase_2d_hash_grid.cpp b/servers/physics_2d/broad_phase_2d_hash_grid.cpp index 6c800a4b49..db18995bee 100644 --- a/servers/physics_2d/broad_phase_2d_hash_grid.cpp +++ b/servers/physics_2d/broad_phase_2d_hash_grid.cpp @@ -640,7 +640,7 @@ BroadPhase2DHashGrid::BroadPhase2DHashGrid() { cell_size = GLOBAL_DEF("physics/2d/cell_size", 128); large_object_min_surface = GLOBAL_DEF("physics/2d/large_object_surface_threshold_in_cells", 512); - for (int i = 0; i < hash_table_size; i++) + for (uint32_t i = 0; i < hash_table_size; i++) hash_table[i] = NULL; pass = 1; @@ -649,7 +649,7 @@ BroadPhase2DHashGrid::BroadPhase2DHashGrid() { BroadPhase2DHashGrid::~BroadPhase2DHashGrid() { - for (int i = 0; i < hash_table_size; i++) { + for (uint32_t i = 0; i < hash_table_size; i++) { while (hash_table[i]) { PosBin *pb = hash_table[i]; hash_table[i] = pb->next; diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h index 9e4acac25d..187a0b180b 100644 --- a/servers/visual/rasterizer.h +++ b/servers/visual/rasterizer.h @@ -213,6 +213,7 @@ public: virtual RID material_create() = 0; + virtual void material_set_render_priority(RID p_material, int priority) = 0; virtual void material_set_shader(RID p_shader_material, RID p_shader) = 0; virtual RID material_get_shader(RID p_shader_material) const = 0; diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index d17cf472b3..c7b537c8ea 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -2586,7 +2586,7 @@ ShaderLanguage::Node *ShaderLanguage::_parse_expression(BlockNode *p_block, cons } bool index_valid = false; - DataType member_type; + DataType member_type = TYPE_VOID; switch (expr->get_datatype()) { case TYPE_BVEC2: @@ -3349,7 +3349,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct Token tk = _get_token(); if (tk.type != TK_SHADER_TYPE) { - _set_error("Expected 'shader_type' at the begining of shader."); + _set_error("Expected 'shader_type' at the beginning of shader."); return ERR_PARSE_ERROR; } diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp index d8d1b1c1b1..ef0d063f83 100644 --- a/servers/visual/shader_types.cpp +++ b/servers/visual/shader_types.cpp @@ -128,12 +128,13 @@ ShaderTypes::ShaderTypes() { shader_modes[VS::SHADER_SPATIAL].modes.insert("depth_draw_never"); shader_modes[VS::SHADER_SPATIAL].modes.insert("depth_draw_alpha_prepass"); + shader_modes[VS::SHADER_SPATIAL].modes.insert("depth_test_disable"); + shader_modes[VS::SHADER_SPATIAL].modes.insert("cull_front"); shader_modes[VS::SHADER_SPATIAL].modes.insert("cull_back"); shader_modes[VS::SHADER_SPATIAL].modes.insert("cull_disabled"); shader_modes[VS::SHADER_SPATIAL].modes.insert("unshaded"); - shader_modes[VS::SHADER_SPATIAL].modes.insert("ontop"); shader_modes[VS::SHADER_SPATIAL].modes.insert("diffuse_lambert"); shader_modes[VS::SHADER_SPATIAL].modes.insert("diffuse_half_lambert"); diff --git a/servers/visual/visual_server_raster.h b/servers/visual/visual_server_raster.h index 774b692a22..3953bc5f48 100644 --- a/servers/visual/visual_server_raster.h +++ b/servers/visual/visual_server_raster.h @@ -690,6 +690,7 @@ public: BIND3(material_set_param, RID, const StringName &, const Variant &) BIND2RC(Variant, material_get_param, RID, const StringName &) + BIND2(material_set_render_priority, RID, int) BIND2(material_set_line_width, RID, float) BIND2(material_set_next_pass, RID, RID) diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index cd68c14de8..0d70b7fc0e 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -948,13 +948,13 @@ void VisualServerScene::_light_instance_update_shadow(Instance *p_instance, cons Vector3 z_vec = transform.basis.get_axis(Vector3::AXIS_Z).normalized(); //z_vec points agsint the camera, like in default opengl - float x_min, x_max; - float y_min, y_max; - float z_min, z_max; + float x_min = 0.f, x_max = 0.f; + float y_min = 0.f, y_max = 0.f; + float z_min = 0.f, z_max = 0.f; - float x_min_cam, x_max_cam; - float y_min_cam, y_max_cam; - float z_min_cam, z_max_cam; + float x_min_cam = 0.f, x_max_cam = 0.f; + float y_min_cam = 0.f, y_max_cam = 0.f; + float z_min_cam = 0.f, z_max_cam = 0.f; float bias_scale = 1.0; @@ -1434,7 +1434,7 @@ void VisualServerScene::_render_scene(const Transform p_cam_transform, const Cam } ins->depth = near_plane.distance_to(ins->transform.origin); - ins->depth_layer = CLAMP(int(ins->depth * 8 / z_far), 0, 7); + ins->depth_layer = CLAMP(int(ins->depth * 16 / z_far), 0, 15); } if (!keep) { @@ -1503,7 +1503,7 @@ void VisualServerScene::_render_scene(const Transform p_cam_transform, const Cam InstanceLightData *light = static_cast<InstanceLightData *>(ins->base_data); - float coverage; + float coverage = 0.f; { //compute coverage @@ -1687,7 +1687,7 @@ bool VisualServerScene::_render_reflection_probe_step(Instance *p_instance, int void VisualServerScene::_gi_probe_fill_local_data(int p_idx, int p_level, int p_x, int p_y, int p_z, const GIProbeDataCell *p_cell, const GIProbeDataHeader *p_header, InstanceGIProbeData::LocalData *p_local_data, Vector<uint32_t> *prev_cell) { - if (p_level == p_header->cell_subdiv - 1) { + if ((uint32_t)p_level == p_header->cell_subdiv - 1) { Vector3 emission; emission.x = (p_cell[p_idx].emission >> 24) / 255.0; @@ -1798,9 +1798,9 @@ void VisualServerScene::_setup_gi_probe(Instance *p_instance) { } for (int i = 0; i < (int)header->cell_subdiv; i++) { - uint32_t x = header->width >> i; - uint32_t y = header->height >> i; - uint32_t z = header->depth >> i; + int x = header->width >> i; + int y = header->height >> i; + int z = header->depth >> i; //create and clear mipmap PoolVector<uint8_t> mipmap; @@ -1896,7 +1896,7 @@ void VisualServerScene::_setup_gi_probe(Instance *p_instance) { uint8_t alpha_block[4][4] = { { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 }, { 0, 0, 0, 0 } }; - for (int j = 0; j < k.source_count; j++) { + for (uint32_t j = 0; j < k.source_count; j++) { int alpha = (cells[k.sources[j]].level_alpha >> 8) & 0xFF; if (alpha < min_alpha) @@ -2389,7 +2389,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { Vector3 colors[16]; - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { colors[j].x = (local_data[b.sources[j]].energy[0] / float(probe_data->dynamic.bake_dynamic_range)) / 1024.0; colors[j].y = (local_data[b.sources[j]].energy[1] / float(probe_data->dynamic.bake_dynamic_range)) / 1024.0; @@ -2403,8 +2403,8 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { if (b.source_count == 16) { //all cells are used so, find minmax between them int further_apart[2] = { 0, 0 }; - for (int j = 0; j < b.source_count; j++) { - for (int k = j + 1; k < b.source_count; k++) { + for (uint32_t j = 0; j < b.source_count; j++) { + for (uint32_t k = j + 1; k < b.source_count; k++) { float d = colors[j].distance_squared_to(colors[k]); if (d > distance) { distance = d; @@ -2424,12 +2424,12 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { //average all colors first Vector3 average; - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { average += colors[j]; } average.normalize(); //find max distance in normal from average - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { float d = average.dot(colors[j]); distance = MAX(d, distance); } @@ -2459,7 +2459,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { Vector3 dir = (to - from).normalized(); - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { float d = (colors[j] - from).dot(dir) / distance; indices[j] = int(d * 3 + 0.5); @@ -2469,7 +2469,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { indices[j] = index_swap[CLAMP(indices[j], 0, 3)]; } } else { - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { indices[j] = 0; } } @@ -2478,7 +2478,7 @@ void VisualServerScene::_bake_gi_probe(Instance *p_gi_probe) { uint32_t index_block[16] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; - for (int j = 0; j < b.source_count; j++) { + for (uint32_t j = 0; j < b.source_count; j++) { int x = local_data[b.sources[j]].pos[0] % 4; int y = local_data[b.sources[j]].pos[1] % 4; diff --git a/servers/visual/visual_server_wrap_mt.h b/servers/visual/visual_server_wrap_mt.h index 7143178b04..f24049be92 100644 --- a/servers/visual/visual_server_wrap_mt.h +++ b/servers/visual/visual_server_wrap_mt.h @@ -128,6 +128,7 @@ public: FUNC3(material_set_param, RID, const StringName &, const Variant &) FUNC2RC(Variant, material_get_param, RID, const StringName &) + FUNC2(material_set_render_priority, RID, int) FUNC2(material_set_line_width, RID, float) FUNC2(material_set_next_pass, RID, RID) diff --git a/servers/visual_server.h b/servers/visual_server.h index db557ddab5..d516013ee2 100644 --- a/servers/visual_server.h +++ b/servers/visual_server.h @@ -166,6 +166,11 @@ public: /* COMMON MATERIAL API */ + enum { + MATERIAL_RENDER_PRIORITY_MIN = -128, + MATERIAL_RENDER_PRIORITY_MAX = 127, + + }; virtual RID material_create() = 0; virtual void material_set_shader(RID p_shader_material, RID p_shader) = 0; @@ -174,6 +179,8 @@ public: virtual void material_set_param(RID p_material, const StringName &p_param, const Variant &p_value) = 0; virtual Variant material_get_param(RID p_material, const StringName &p_param) const = 0; + virtual void material_set_render_priority(RID p_material, int priority) = 0; + virtual void material_set_line_width(RID p_material, float p_width) = 0; virtual void material_set_next_pass(RID p_material, RID p_next_material) = 0; |