diff options
216 files changed, 2350 insertions, 2298 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index dbd56ab7e0..e31e29e0d8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,7 +1,9 @@ os: Visual Studio 2015 environment: + HOME: "%HOMEDRIVE%%HOMEPATH%" PYTHON: C:\Python27 + SCONS_CACHE: "%HOME%\\scons_cache" matrix: - VS: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat GD_PLATFORM: windows @@ -9,6 +11,9 @@ environment: TARGET: release_debug ARCH: amd64 +cache: + - "%SCONS_CACHE%" + install: - SET "PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" - pip install --egg scons # it will fail on AppVeyor without --egg flag diff --git a/.travis.yml b/.travis.yml index 974ef93d3f..6747905292 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,13 @@ dist: trusty sudo: false -cache: ccache +env: + global: + - SCONS_CACHE=$HOME/.scons_cache + +cache: + directories: + - $SCONS_CACHE matrix: include: @@ -67,20 +73,12 @@ install: fi - if [ "$TRAVIS_OS_NAME" = "osx" ]; then misc/travis/scons-local-osx.sh; - misc/travis/ccache-osx.sh; fi - if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "$GODOT_TARGET" = "android" ]; then misc/travis/android-tools-osx.sh; fi before_script: - - if [ "$TRAVIS_OS_NAME" = "linux" ]; then - export CCACHE="/usr/bin/ccache"; - fi - - if [ "$TRAVIS_OS_NAME" = "osx" ]; then - export CCACHE="/usr/local/bin/ccache"; - export PATH="/usr/local/opt/ccache/libexec:$PATH"; - fi - if [ "$GODOT_TARGET" = "android" ]; then export ANDROID_HOME=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-sdk; export ANDROID_NDK_ROOT=$TRAVIS_BUILD_DIR/godot-dev/build-tools/android-ndk; @@ -92,10 +90,3 @@ script: else scons -j2 CC=$CC CXX=$CXX platform=$GODOT_TARGET TOOLS=$TOOLS verbose=yes progress=no; fi - -after_success: - - if [ "$STATIC_CHECKS" != "yes" ] && [ $(command -v ccache) ]; then - which ccache; - ccache --version | grep "ccache version"; - ccache -s; - fi; diff --git a/AUTHORS.md b/AUTHORS.md index 588ce97322..73712bbfc4 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -68,7 +68,7 @@ name is available. Juan Linietsky (reduz) Julian Murgia (StraToN) Kostadin Damyanov (Max-Might) - L. Krause (eska014) + Leon Krause (eska014) Marc Gilleron (Zylann) Marcelo Fernandez (marcelofg55) Mariano Javier Suligoy (MarianoGnu) diff --git a/SConstruct b/SConstruct index 61edb1233b..b5885f896f 100644 --- a/SConstruct +++ b/SConstruct @@ -434,6 +434,11 @@ if selected_platform in platform_list: if (True): # FIXME: detect GLES3 env.Append( BUILDERS = { 'GLES3_GLSL' : env.Builder(action = methods.build_gles3_headers, suffix = 'glsl.gen.h',src_suffix = '.glsl') } ) + scons_cache_path = os.environ.get("SCONS_CACHE") + if scons_cache_path != None: + CacheDir(scons_cache_path) + print("Scons cache enabled... (path: '" + scons_cache_path + "')") + Export('env') # build subdirs, the build order is dependent on link order. diff --git a/core/array.cpp b/core/array.cpp index b7d4ae413a..1ccbbae147 100644 --- a/core/array.cpp +++ b/core/array.cpp @@ -261,7 +261,7 @@ Array &Array::sort_custom(Object *p_obj, const StringName &p_function) { SortArray<Variant, _ArrayVariantSortCustom> avs; avs.compare.obj = p_obj; avs.compare.func = p_function; - avs.sort(_p->array.ptr(), _p->array.size()); + avs.sort(_p->array.ptrw(), _p->array.size()); return *this; } diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp index 74565d2e32..5c7b793590 100644 --- a/core/compressed_translation.cpp +++ b/core/compressed_translation.cpp @@ -288,7 +288,7 @@ StringName PHashTranslation::get_message(const StringName &p_src_text) const { CharString uncomp; uncomp.resize(bucket.elem[idx].uncomp_size + 1); - smaz_decompress(&sptr[bucket.elem[idx].str_offset], bucket.elem[idx].comp_size, uncomp.ptr(), bucket.elem[idx].uncomp_size); + smaz_decompress(&sptr[bucket.elem[idx].str_offset], bucket.elem[idx].comp_size, uncomp.ptrw(), bucket.elem[idx].uncomp_size); String rstr; rstr.parse_utf8(uncomp.get_data()); //print_line("Compressed, size: "+itos(bucket.elem[idx].comp_size)); diff --git a/core/io/file_access_compressed.cpp b/core/io/file_access_compressed.cpp index 514e3c65f0..c6f31dc8f0 100644 --- a/core/io/file_access_compressed.cpp +++ b/core/io/file_access_compressed.cpp @@ -51,7 +51,7 @@ void FileAccessCompressed::configure(const String &p_magic, Compression::Mode p_ if (write_max > write_buffer_size) { \ write_buffer_size = next_power_of_2(write_max); \ buffer.resize(write_buffer_size); \ - write_ptr = buffer.ptr(); \ + write_ptr = buffer.ptrw(); \ } \ } @@ -76,14 +76,14 @@ Error FileAccessCompressed::open_after_magic(FileAccess *p_base) { comp_buffer.resize(max_bs); buffer.resize(block_size); - read_ptr = buffer.ptr(); - f->get_buffer(comp_buffer.ptr(), read_blocks[0].csize); + read_ptr = buffer.ptrw(); + f->get_buffer(comp_buffer.ptrw(), read_blocks[0].csize); at_end = false; read_eof = false; read_block_count = bc; read_block_size = read_blocks.size() == 1 ? read_total : block_size; - Compression::decompress(buffer.ptr(), read_block_size, comp_buffer.ptr(), read_blocks[0].csize, cmode); + Compression::decompress(buffer.ptrw(), read_block_size, comp_buffer.ptr(), read_blocks[0].csize, cmode); read_block = 0; read_pos = 0; @@ -114,7 +114,7 @@ Error FileAccessCompressed::_open(const String &p_path, int p_mode_flags) { write_buffer_size = 256; buffer.resize(256); write_max = 0; - write_ptr = buffer.ptr(); + write_ptr = buffer.ptrw(); //don't store anything else unless it's done saving! } else { @@ -160,7 +160,7 @@ void FileAccessCompressed::close() { Vector<uint8_t> cblock; cblock.resize(Compression::get_max_compressed_buffer_size(bl, cmode)); - int s = Compression::compress(cblock.ptr(), bp, bl, cmode); + int s = Compression::compress(cblock.ptrw(), bp, bl, cmode); f->store_buffer(cblock.ptr(), s); block_sizes.push_back(s); @@ -211,8 +211,8 @@ void FileAccessCompressed::seek(size_t p_position) { read_block = block_idx; f->seek(read_blocks[read_block].offset); - f->get_buffer(comp_buffer.ptr(), read_blocks[read_block].csize); - Compression::decompress(buffer.ptr(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); + f->get_buffer(comp_buffer.ptrw(), read_blocks[read_block].csize); + Compression::decompress(buffer.ptrw(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); read_block_size = read_block == read_block_count - 1 ? read_total % block_size : block_size; } @@ -282,8 +282,8 @@ uint8_t FileAccessCompressed::get_8() const { if (read_block < read_block_count) { //read another block of compressed data - f->get_buffer(comp_buffer.ptr(), read_blocks[read_block].csize); - Compression::decompress(buffer.ptr(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); + f->get_buffer(comp_buffer.ptrw(), read_blocks[read_block].csize); + Compression::decompress(buffer.ptrw(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); read_block_size = read_block == read_block_count - 1 ? read_total % block_size : block_size; read_pos = 0; @@ -315,8 +315,8 @@ int FileAccessCompressed::get_buffer(uint8_t *p_dst, int p_length) const { if (read_block < read_block_count) { //read another block of compressed data - f->get_buffer(comp_buffer.ptr(), read_blocks[read_block].csize); - Compression::decompress(buffer.ptr(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); + f->get_buffer(comp_buffer.ptrw(), read_blocks[read_block].csize); + Compression::decompress(buffer.ptrw(), read_blocks.size() == 1 ? read_total : block_size, comp_buffer.ptr(), read_blocks[read_block].csize, cmode); read_block_size = read_block == read_block_count - 1 ? read_total % block_size : block_size; read_pos = 0; diff --git a/core/io/file_access_encrypted.cpp b/core/io/file_access_encrypted.cpp index e5da307153..71ebf57508 100644 --- a/core/io/file_access_encrypted.cpp +++ b/core/io/file_access_encrypted.cpp @@ -80,11 +80,11 @@ Error FileAccessEncrypted::open_and_parse(FileAccess *p_base, const Vector<uint8 data.resize(ds); - uint32_t blen = p_base->get_buffer(data.ptr(), ds); + uint32_t blen = p_base->get_buffer(data.ptrw(), ds); ERR_FAIL_COND_V(blen != ds, ERR_FILE_CORRUPT); aes256_context ctx; - aes256_init(&ctx, key.ptr()); + aes256_init(&ctx, key.ptrw()); for (size_t i = 0; i < ds; i += 16) { @@ -97,7 +97,7 @@ Error FileAccessEncrypted::open_and_parse(FileAccess *p_base, const Vector<uint8 MD5_CTX md5; MD5Init(&md5); - MD5Update(&md5, data.ptr(), data.size()); + MD5Update(&md5, (uint8_t *)data.ptr(), data.size()); MD5Final(&md5); ERR_FAIL_COND_V(String::md5(md5.digest) != String::md5(md5d), ERR_FILE_CORRUPT); @@ -141,17 +141,17 @@ void FileAccessEncrypted::close() { MD5_CTX md5; MD5Init(&md5); - MD5Update(&md5, data.ptr(), data.size()); + MD5Update(&md5, (uint8_t *)data.ptr(), data.size()); MD5Final(&md5); compressed.resize(len); - zeromem(compressed.ptr(), len); + zeromem(compressed.ptrw(), len); for (int i = 0; i < data.size(); i++) { compressed[i] = data[i]; } aes256_context ctx; - aes256_init(&ctx, key.ptr()); + aes256_init(&ctx, key.ptrw()); for (size_t i = 0; i < len; i += 16) { diff --git a/core/io/file_access_network.cpp b/core/io/file_access_network.cpp index a224abd9e7..61a0521cae 100644 --- a/core/io/file_access_network.cpp +++ b/core/io/file_access_network.cpp @@ -147,7 +147,7 @@ void FileAccessNetworkClient::_thread_func() { Vector<uint8_t> block; block.resize(len); - client->get_data(block.ptr(), len); + client->get_data(block.ptrw(), len); if (fa) //may have been queued fa->_set_block(offset, block); @@ -434,12 +434,12 @@ int FileAccessNetwork::get_buffer(uint8_t *p_dst, int p_length) const { _queue_page(page + j); } - buff = pages[page].buffer.ptr(); + buff = pages[page].buffer.ptrw(); //queue pages buffer_mutex->unlock(); } - buff = pages[page].buffer.ptr(); + buff = pages[page].buffer.ptrw(); last_page_buff = buff; last_page = page; } diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index 2583eb369d..42a258a10d 100644 --- a/core/io/stream_peer.cpp +++ b/core/io/stream_peer.cpp @@ -220,7 +220,7 @@ void StreamPeer::put_var(const Variant &p_variant) { encode_variant(p_variant, NULL, len); buf.resize(len); put_32(len); - encode_variant(p_variant, buf.ptr(), len); + encode_variant(p_variant, buf.ptrw(), len); put_data(buf.ptr(), buf.size()); } @@ -340,7 +340,7 @@ String StreamPeer::get_utf8_string(int p_bytes) { Vector<uint8_t> buf; Error err = buf.resize(p_bytes); ERR_FAIL_COND_V(err != OK, String()); - err = get_data(buf.ptr(), p_bytes); + err = get_data(buf.ptrw(), p_bytes); ERR_FAIL_COND_V(err != OK, String()); String ret; @@ -353,7 +353,7 @@ Variant StreamPeer::get_var() { Vector<uint8_t> var; Error err = var.resize(len); ERR_FAIL_COND_V(err != OK, Variant()); - err = get_data(var.ptr(), len); + err = get_data(var.ptrw(), len); ERR_FAIL_COND_V(err != OK, Variant()); Variant ret; diff --git a/core/object.cpp b/core/object.cpp index cb6ecefa9d..1be7337d96 100644 --- a/core/object.cpp +++ b/core/object.cpp @@ -818,7 +818,7 @@ Variant Object::callv(const StringName &p_method, const Array &p_args) { } Variant::CallError ce; - return call(p_method, argptrs.ptr(), p_args.size(), ce); + return call(p_method, (const Variant **)argptrs.ptr(), p_args.size(), ce); } Variant Object::call(const StringName &p_name, VARIANT_ARG_DECLARE) { @@ -1183,7 +1183,7 @@ Error Object::emit_signal(const StringName &p_name, const Variant **p_args, int bind_mem[p_argcount + j] = &c.binds[j]; } - args = bind_mem.ptr(); + args = (const Variant **)bind_mem.ptr(); argc = bind_mem.size(); } diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 5fdd2b9135..7b2062936b 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -481,7 +481,7 @@ Vector<uint8_t> FileAccess::get_file_as_array(const String &p_path) { ERR_FAIL_COND_V(!f, Vector<uint8_t>()); Vector<uint8_t> data; data.resize(f->get_len()); - f->get_buffer(data.ptr(), data.size()); + f->get_buffer(data.ptrw(), data.size()); memdelete(f); return data; } diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 361464ee1f..13340535b5 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -429,7 +429,7 @@ Error ProjectSettings::_load_settings_binary(const String p_path) { uint32_t vlen = f->get_32(); Vector<uint8_t> d; d.resize(vlen); - f->get_buffer(d.ptr(), vlen); + f->get_buffer(d.ptrw(), vlen); Variant value; Error err = decode_variant(value, d.ptr(), d.size()); ERR_EXPLAIN("Error decoding property: " + key); diff --git a/core/script_debugger_local.cpp b/core/script_debugger_local.cpp index 8d2600e52d..94c48f1c8f 100644 --- a/core/script_debugger_local.cpp +++ b/core/script_debugger_local.cpp @@ -212,7 +212,7 @@ void ScriptDebuggerLocal::idle_poll() { } SortArray<ScriptLanguage::ProfilingInfo, _ScriptDebuggerLocalProfileInfoSort> sort; - sort.sort(pinfo.ptr(), ofs); + sort.sort(pinfo.ptrw(), ofs); //falta el frame time @@ -264,7 +264,7 @@ void ScriptDebuggerLocal::profiling_end() { } SortArray<ScriptLanguage::ProfilingInfo, _ScriptDebuggerLocalProfileInfoSort> sort; - sort.sort(pinfo.ptr(), ofs); + sort.sort(pinfo.ptrw(), ofs); uint64_t total_us = 0; for (int i = 0; i < ofs; i++) { diff --git a/core/script_debugger_remote.cpp b/core/script_debugger_remote.cpp index 5e06339b9e..495c99c122 100644 --- a/core/script_debugger_remote.cpp +++ b/core/script_debugger_remote.cpp @@ -749,7 +749,7 @@ void ScriptDebuggerRemote::_send_profiling_data(bool p_for_frame) { } SortArray<ScriptLanguage::ProfilingInfo *, ProfileInfoSort> sa; - sa.sort(profile_info_ptrs.ptr(), ofs); + sa.sort(profile_info_ptrs.ptrw(), ofs); int to_send = MIN(ofs, max_frame_functions); diff --git a/core/string_buffer.cpp b/core/string_buffer.cpp index 195068f887..8489df2599 100644 --- a/core/string_buffer.cpp +++ b/core/string_buffer.cpp @@ -71,7 +71,7 @@ StringBuffer &StringBuffer::reserve(int p_size) { bool need_copy = string_length > 0 && buffer.empty(); buffer.resize(next_power_of_2(p_size)); if (need_copy) { - memcpy(buffer.ptr(), short_buffer, string_length * sizeof(CharType)); + memcpy(buffer.ptrw(), short_buffer, string_length * sizeof(CharType)); } return *this; diff --git a/core/string_buffer.h b/core/string_buffer.h index 3f36249148..b6ccd4af20 100644 --- a/core/string_buffer.h +++ b/core/string_buffer.h @@ -40,7 +40,7 @@ class StringBuffer { int string_length = 0; _FORCE_INLINE_ CharType *current_buffer_ptr() { - return static_cast<Vector<CharType> &>(buffer).empty() ? short_buffer : buffer.ptr(); + return static_cast<Vector<CharType> &>(buffer).empty() ? short_buffer : buffer.ptrw(); } public: diff --git a/core/ustring.cpp b/core/ustring.cpp index 8d40f56386..a86fb46c8a 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -115,7 +115,7 @@ void String::copy_from(const char *p_cstr) { resize(len + 1); // include 0 - CharType *dst = this->ptr(); + CharType *dst = this->ptrw(); for (int i = 0; i < len + 1; i++) { @@ -1119,7 +1119,7 @@ String String::num_int64(int64_t p_num, int base, bool capitalize_hex) { chars++; String s; s.resize(chars + 1); - CharType *c = s.ptr(); + CharType *c = s.ptrw(); c[chars] = 0; n = num; do { diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 4a140bdb99..10f5ca0ce1 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -499,7 +499,7 @@ struct _VariantCall { PoolByteArray::Read r = ba->read(); CharString cs; cs.resize(ba->size() + 1); - copymem(cs.ptr(), r.ptr(), ba->size()); + copymem(cs.ptrw(), r.ptr(), ba->size()); cs[ba->size()] = 0; s = cs.get_data(); diff --git a/core/vector.h b/core/vector.h index 03eaf65099..a5c4b3b155 100644 --- a/core/vector.h +++ b/core/vector.h @@ -96,7 +96,7 @@ class Vector { void _copy_on_write(); public: - _FORCE_INLINE_ T *ptr() { + _FORCE_INLINE_ T *ptrw() { if (!_ptr) return NULL; _copy_on_write(); return (T *)_get_data(); @@ -361,7 +361,7 @@ template <class T> void Vector<T>::remove(int p_index) { ERR_FAIL_INDEX(p_index, size()); - T *p = ptr(); + T *p = ptrw(); int len = size(); for (int i = p_index; i < len - 1; i++) { diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml index f9b4ec2544..bee2cdf387 100644 --- a/doc/classes/@GDScript.xml +++ b/doc/classes/@GDScript.xml @@ -1138,16 +1138,16 @@ </method> </methods> <constants> - <constant name="PI" value="3.141593" enum=""> + <constant name="PI" value="3.141593"> Constant that represents how many times the diameter of a circle fits around its perimeter. </constant> - <constant name="TAU" value="6.283185" enum=""> + <constant name="TAU" value="6.283185"> The circle constant, the circumference of the unit circle. </constant> - <constant name="INF" value="inf" enum=""> + <constant name="INF" value="inf"> A positive infinity. (For negative infinity, use -INF). </constant> - <constant name="NAN" value="nan" enum=""> + <constant name="NAN" value="nan"> 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> diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index 69d4e8ad17..5655578459 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -81,1311 +81,1311 @@ </member> </members> <constants> - <constant name="MARGIN_LEFT" value="0"> + <constant name="MARGIN_LEFT" value="0" enum="Margin"> Left margin, used usually for [Control] or [StyleBox] derived classes. </constant> - <constant name="MARGIN_TOP" value="1"> + <constant name="MARGIN_TOP" value="1" enum="Margin"> Top margin, used usually for [Control] or [StyleBox] derived classes. </constant> - <constant name="MARGIN_RIGHT" value="2"> + <constant name="MARGIN_RIGHT" value="2" enum="Margin"> Right margin, used usually for [Control] or [StyleBox] derived classes. </constant> - <constant name="MARGIN_BOTTOM" value="3"> + <constant name="MARGIN_BOTTOM" value="3" enum="Margin"> Bottom margin, used usually for [Control] or [StyleBox] derived classes. </constant> - <constant name="VERTICAL" value="1"> + <constant name="VERTICAL" value="1" enum="Orientation"> General vertical alignment, used usually for [Separator], [ScrollBar], [Slider], etc. </constant> - <constant name="HORIZONTAL" value="0"> + <constant name="HORIZONTAL" value="0" enum="Orientation"> General horizontal alignment, used usually for [Separator], [ScrollBar], [Slider], etc. </constant> - <constant name="HALIGN_LEFT" value="0"> + <constant name="HALIGN_LEFT" value="0" enum="HAlign"> Horizontal left alignment, usually for text-derived classes. </constant> - <constant name="HALIGN_CENTER" value="1"> + <constant name="HALIGN_CENTER" value="1" enum="HAlign"> Horizontal center alignment, usually for text-derived classes. </constant> - <constant name="HALIGN_RIGHT" value="2"> + <constant name="HALIGN_RIGHT" value="2" enum="HAlign"> Horizontal right alignment, usually for text-derived classes. </constant> - <constant name="VALIGN_TOP" value="0"> + <constant name="VALIGN_TOP" value="0" enum="VAlign"> Vertical top alignment, usually for text-derived classes. </constant> - <constant name="VALIGN_CENTER" value="1"> + <constant name="VALIGN_CENTER" value="1" enum="VAlign"> Vertical center alignment, usually for text-derived classes. </constant> - <constant name="VALIGN_BOTTOM" value="2"> + <constant name="VALIGN_BOTTOM" value="2" enum="VAlign"> Vertical bottom alignment, usually for text-derived classes. </constant> - <constant name="SPKEY" value="16777216" enum=""> + <constant name="SPKEY" value="16777216"> Scancodes with this bit applied are non printable. </constant> - <constant name="KEY_ESCAPE" value="16777217"> + <constant name="KEY_ESCAPE" value="16777217" enum="KeyList"> Escape Key </constant> - <constant name="KEY_TAB" value="16777218"> + <constant name="KEY_TAB" value="16777218" enum="KeyList"> Tab Key </constant> - <constant name="KEY_BACKTAB" value="16777219"> + <constant name="KEY_BACKTAB" value="16777219" enum="KeyList"> Shift-Tab Key </constant> - <constant name="KEY_BACKSPACE" value="16777220"> + <constant name="KEY_BACKSPACE" value="16777220" enum="KeyList"> Backspace Key </constant> - <constant name="KEY_ENTER" value="16777221"> + <constant name="KEY_ENTER" value="16777221" enum="KeyList"> Return Key (On Main Keyboard) </constant> - <constant name="KEY_KP_ENTER" value="16777222"> + <constant name="KEY_KP_ENTER" value="16777222" enum="KeyList"> Enter Key (On Numpad) </constant> - <constant name="KEY_INSERT" value="16777223"> + <constant name="KEY_INSERT" value="16777223" enum="KeyList"> Insert Key </constant> - <constant name="KEY_DELETE" value="16777224"> + <constant name="KEY_DELETE" value="16777224" enum="KeyList"> Delete Key </constant> - <constant name="KEY_PAUSE" value="16777225"> + <constant name="KEY_PAUSE" value="16777225" enum="KeyList"> Pause Key </constant> - <constant name="KEY_PRINT" value="16777226"> + <constant name="KEY_PRINT" value="16777226" enum="KeyList"> Printscreen Key </constant> - <constant name="KEY_SYSREQ" value="16777227"> + <constant name="KEY_SYSREQ" value="16777227" enum="KeyList"> System Request Key </constant> - <constant name="KEY_CLEAR" value="16777228"> + <constant name="KEY_CLEAR" value="16777228" enum="KeyList"> Clear Key </constant> - <constant name="KEY_HOME" value="16777229"> + <constant name="KEY_HOME" value="16777229" enum="KeyList"> Home Key </constant> - <constant name="KEY_END" value="16777230"> + <constant name="KEY_END" value="16777230" enum="KeyList"> End Key </constant> - <constant name="KEY_LEFT" value="16777231"> + <constant name="KEY_LEFT" value="16777231" enum="KeyList"> Left Arrow Key </constant> - <constant name="KEY_UP" value="16777232"> + <constant name="KEY_UP" value="16777232" enum="KeyList"> Up Arrow Key </constant> - <constant name="KEY_RIGHT" value="16777233"> + <constant name="KEY_RIGHT" value="16777233" enum="KeyList"> Right Arrow Key </constant> - <constant name="KEY_DOWN" value="16777234"> + <constant name="KEY_DOWN" value="16777234" enum="KeyList"> Down Arrow Key </constant> - <constant name="KEY_PAGEUP" value="16777235"> + <constant name="KEY_PAGEUP" value="16777235" enum="KeyList"> Pageup Key </constant> - <constant name="KEY_PAGEDOWN" value="16777236"> + <constant name="KEY_PAGEDOWN" value="16777236" enum="KeyList"> Pagedown Key </constant> - <constant name="KEY_SHIFT" value="16777237"> + <constant name="KEY_SHIFT" value="16777237" enum="KeyList"> Shift Key </constant> - <constant name="KEY_CONTROL" value="16777238"> + <constant name="KEY_CONTROL" value="16777238" enum="KeyList"> Control Key </constant> - <constant name="KEY_META" value="16777239"> + <constant name="KEY_META" value="16777239" enum="KeyList"> Meta Key </constant> - <constant name="KEY_ALT" value="16777240"> + <constant name="KEY_ALT" value="16777240" enum="KeyList"> Alt Key </constant> - <constant name="KEY_CAPSLOCK" value="16777241"> + <constant name="KEY_CAPSLOCK" value="16777241" enum="KeyList"> Capslock Key </constant> - <constant name="KEY_NUMLOCK" value="16777242"> + <constant name="KEY_NUMLOCK" value="16777242" enum="KeyList"> Numlock Key </constant> - <constant name="KEY_SCROLLLOCK" value="16777243"> + <constant name="KEY_SCROLLLOCK" value="16777243" enum="KeyList"> Scrolllock Key </constant> - <constant name="KEY_F1" value="16777244"> + <constant name="KEY_F1" value="16777244" enum="KeyList"> F1 Key </constant> - <constant name="KEY_F2" value="16777245"> + <constant name="KEY_F2" value="16777245" enum="KeyList"> F2 Key </constant> - <constant name="KEY_F3" value="16777246"> + <constant name="KEY_F3" value="16777246" enum="KeyList"> F3 Key </constant> - <constant name="KEY_F4" value="16777247"> + <constant name="KEY_F4" value="16777247" enum="KeyList"> F4 Key </constant> - <constant name="KEY_F5" value="16777248"> + <constant name="KEY_F5" value="16777248" enum="KeyList"> F5 Key </constant> - <constant name="KEY_F6" value="16777249"> + <constant name="KEY_F6" value="16777249" enum="KeyList"> F6 Key </constant> - <constant name="KEY_F7" value="16777250"> + <constant name="KEY_F7" value="16777250" enum="KeyList"> F7 Key </constant> - <constant name="KEY_F8" value="16777251"> + <constant name="KEY_F8" value="16777251" enum="KeyList"> F8 Key </constant> - <constant name="KEY_F9" value="16777252"> + <constant name="KEY_F9" value="16777252" enum="KeyList"> F9 Key </constant> - <constant name="KEY_F10" value="16777253"> + <constant name="KEY_F10" value="16777253" enum="KeyList"> F10 Key </constant> - <constant name="KEY_F11" value="16777254"> + <constant name="KEY_F11" value="16777254" enum="KeyList"> F11 Key </constant> - <constant name="KEY_F12" value="16777255"> + <constant name="KEY_F12" value="16777255" enum="KeyList"> F12 Key </constant> - <constant name="KEY_F13" value="16777256"> + <constant name="KEY_F13" value="16777256" enum="KeyList"> F13 Key </constant> - <constant name="KEY_F14" value="16777257"> + <constant name="KEY_F14" value="16777257" enum="KeyList"> F14 Key </constant> - <constant name="KEY_F15" value="16777258"> + <constant name="KEY_F15" value="16777258" enum="KeyList"> F15 Key </constant> - <constant name="KEY_F16" value="16777259"> + <constant name="KEY_F16" value="16777259" enum="KeyList"> F16 Key </constant> - <constant name="KEY_KP_MULTIPLY" value="16777345"> + <constant name="KEY_KP_MULTIPLY" value="16777345" enum="KeyList"> Multiply Key on Numpad </constant> - <constant name="KEY_KP_DIVIDE" value="16777346"> + <constant name="KEY_KP_DIVIDE" value="16777346" enum="KeyList"> Divide Key on Numpad </constant> - <constant name="KEY_KP_SUBTRACT" value="16777347"> + <constant name="KEY_KP_SUBTRACT" value="16777347" enum="KeyList"> Subtract Key on Numpad </constant> - <constant name="KEY_KP_PERIOD" value="16777348"> + <constant name="KEY_KP_PERIOD" value="16777348" enum="KeyList"> Period Key on Numpad </constant> - <constant name="KEY_KP_ADD" value="16777349"> + <constant name="KEY_KP_ADD" value="16777349" enum="KeyList"> Add Key on Numpad </constant> - <constant name="KEY_KP_0" value="16777350"> + <constant name="KEY_KP_0" value="16777350" enum="KeyList"> Number 0 on Numpad </constant> - <constant name="KEY_KP_1" value="16777351"> + <constant name="KEY_KP_1" value="16777351" enum="KeyList"> Number 1 on Numpad </constant> - <constant name="KEY_KP_2" value="16777352"> + <constant name="KEY_KP_2" value="16777352" enum="KeyList"> Number 2 on Numpad </constant> - <constant name="KEY_KP_3" value="16777353"> + <constant name="KEY_KP_3" value="16777353" enum="KeyList"> Number 3 on Numpad </constant> - <constant name="KEY_KP_4" value="16777354"> + <constant name="KEY_KP_4" value="16777354" enum="KeyList"> Number 4 on Numpad </constant> - <constant name="KEY_KP_5" value="16777355"> + <constant name="KEY_KP_5" value="16777355" enum="KeyList"> Number 5 on Numpad </constant> - <constant name="KEY_KP_6" value="16777356"> + <constant name="KEY_KP_6" value="16777356" enum="KeyList"> Number 6 on Numpad </constant> - <constant name="KEY_KP_7" value="16777357"> + <constant name="KEY_KP_7" value="16777357" enum="KeyList"> Number 7 on Numpad </constant> - <constant name="KEY_KP_8" value="16777358"> + <constant name="KEY_KP_8" value="16777358" enum="KeyList"> Number 8 on Numpad </constant> - <constant name="KEY_KP_9" value="16777359"> + <constant name="KEY_KP_9" value="16777359" enum="KeyList"> Number 9 on Numpad </constant> - <constant name="KEY_SUPER_L" value="16777260"> + <constant name="KEY_SUPER_L" value="16777260" enum="KeyList"> Left Super Key (Windows Key) </constant> - <constant name="KEY_SUPER_R" value="16777261"> + <constant name="KEY_SUPER_R" value="16777261" enum="KeyList"> Right Super Key (Windows Key) </constant> - <constant name="KEY_MENU" value="16777262"> + <constant name="KEY_MENU" value="16777262" enum="KeyList"> Context menu key </constant> - <constant name="KEY_HYPER_L" value="16777263"> + <constant name="KEY_HYPER_L" value="16777263" enum="KeyList"> Left Hyper Key </constant> - <constant name="KEY_HYPER_R" value="16777264"> + <constant name="KEY_HYPER_R" value="16777264" enum="KeyList"> Right Hyper Key </constant> - <constant name="KEY_HELP" value="16777265"> + <constant name="KEY_HELP" value="16777265" enum="KeyList"> Help key </constant> - <constant name="KEY_DIRECTION_L" value="16777266"> + <constant name="KEY_DIRECTION_L" value="16777266" enum="KeyList"> Left Direction Key </constant> - <constant name="KEY_DIRECTION_R" value="16777267"> + <constant name="KEY_DIRECTION_R" value="16777267" enum="KeyList"> Right Direction Key </constant> - <constant name="KEY_BACK" value="16777280"> + <constant name="KEY_BACK" value="16777280" enum="KeyList"> Back key </constant> - <constant name="KEY_FORWARD" value="16777281"> + <constant name="KEY_FORWARD" value="16777281" enum="KeyList"> Forward key </constant> - <constant name="KEY_STOP" value="16777282"> + <constant name="KEY_STOP" value="16777282" enum="KeyList"> Stop key </constant> - <constant name="KEY_REFRESH" value="16777283"> + <constant name="KEY_REFRESH" value="16777283" enum="KeyList"> Refresh key </constant> - <constant name="KEY_VOLUMEDOWN" value="16777284"> + <constant name="KEY_VOLUMEDOWN" value="16777284" enum="KeyList"> Volume down key </constant> - <constant name="KEY_VOLUMEMUTE" value="16777285"> + <constant name="KEY_VOLUMEMUTE" value="16777285" enum="KeyList"> Mute volume key </constant> - <constant name="KEY_VOLUMEUP" value="16777286"> + <constant name="KEY_VOLUMEUP" value="16777286" enum="KeyList"> Volume up key </constant> - <constant name="KEY_BASSBOOST" value="16777287"> + <constant name="KEY_BASSBOOST" value="16777287" enum="KeyList"> Bass Boost Key </constant> - <constant name="KEY_BASSUP" value="16777288"> + <constant name="KEY_BASSUP" value="16777288" enum="KeyList"> Bass Up Key </constant> - <constant name="KEY_BASSDOWN" value="16777289"> + <constant name="KEY_BASSDOWN" value="16777289" enum="KeyList"> Bass Down Key </constant> - <constant name="KEY_TREBLEUP" value="16777290"> + <constant name="KEY_TREBLEUP" value="16777290" enum="KeyList"> Treble Up Key </constant> - <constant name="KEY_TREBLEDOWN" value="16777291"> + <constant name="KEY_TREBLEDOWN" value="16777291" enum="KeyList"> Treble Down Key </constant> - <constant name="KEY_MEDIAPLAY" value="16777292"> + <constant name="KEY_MEDIAPLAY" value="16777292" enum="KeyList"> Media play key </constant> - <constant name="KEY_MEDIASTOP" value="16777293"> + <constant name="KEY_MEDIASTOP" value="16777293" enum="KeyList"> Media stop key </constant> - <constant name="KEY_MEDIAPREVIOUS" value="16777294"> + <constant name="KEY_MEDIAPREVIOUS" value="16777294" enum="KeyList"> Previous song key </constant> - <constant name="KEY_MEDIANEXT" value="16777295"> + <constant name="KEY_MEDIANEXT" value="16777295" enum="KeyList"> Next song key </constant> - <constant name="KEY_MEDIARECORD" value="16777296"> + <constant name="KEY_MEDIARECORD" value="16777296" enum="KeyList"> Media record key </constant> - <constant name="KEY_HOMEPAGE" value="16777297"> + <constant name="KEY_HOMEPAGE" value="16777297" enum="KeyList"> Home page key </constant> - <constant name="KEY_FAVORITES" value="16777298"> + <constant name="KEY_FAVORITES" value="16777298" enum="KeyList"> Favorites key </constant> - <constant name="KEY_SEARCH" value="16777299"> + <constant name="KEY_SEARCH" value="16777299" enum="KeyList"> Search key </constant> - <constant name="KEY_STANDBY" value="16777300"> + <constant name="KEY_STANDBY" value="16777300" enum="KeyList"> Standby Key </constant> - <constant name="KEY_OPENURL" value="16777301"> + <constant name="KEY_OPENURL" value="16777301" enum="KeyList"> Open URL / Launch Browser Key </constant> - <constant name="KEY_LAUNCHMAIL" value="16777302"> + <constant name="KEY_LAUNCHMAIL" value="16777302" enum="KeyList"> Launch Mail Key </constant> - <constant name="KEY_LAUNCHMEDIA" value="16777303"> + <constant name="KEY_LAUNCHMEDIA" value="16777303" enum="KeyList"> Launch Media Key </constant> - <constant name="KEY_LAUNCH0" value="16777304"> + <constant name="KEY_LAUNCH0" value="16777304" enum="KeyList"> Launch Shortcut 0 Key </constant> - <constant name="KEY_LAUNCH1" value="16777305"> + <constant name="KEY_LAUNCH1" value="16777305" enum="KeyList"> Launch Shortcut 1 Key </constant> - <constant name="KEY_LAUNCH2" value="16777306"> + <constant name="KEY_LAUNCH2" value="16777306" enum="KeyList"> Launch Shortcut 2 Key </constant> - <constant name="KEY_LAUNCH3" value="16777307"> + <constant name="KEY_LAUNCH3" value="16777307" enum="KeyList"> Launch Shortcut 3 Key </constant> - <constant name="KEY_LAUNCH4" value="16777308"> + <constant name="KEY_LAUNCH4" value="16777308" enum="KeyList"> Launch Shortcut 4 Key </constant> - <constant name="KEY_LAUNCH5" value="16777309"> + <constant name="KEY_LAUNCH5" value="16777309" enum="KeyList"> Launch Shortcut 5 Key </constant> - <constant name="KEY_LAUNCH6" value="16777310"> + <constant name="KEY_LAUNCH6" value="16777310" enum="KeyList"> Launch Shortcut 6 Key </constant> - <constant name="KEY_LAUNCH7" value="16777311"> + <constant name="KEY_LAUNCH7" value="16777311" enum="KeyList"> Launch Shortcut 7 Key </constant> - <constant name="KEY_LAUNCH8" value="16777312"> + <constant name="KEY_LAUNCH8" value="16777312" enum="KeyList"> Launch Shortcut 8 Key </constant> - <constant name="KEY_LAUNCH9" value="16777313"> + <constant name="KEY_LAUNCH9" value="16777313" enum="KeyList"> Launch Shortcut 9 Key </constant> - <constant name="KEY_LAUNCHA" value="16777314"> + <constant name="KEY_LAUNCHA" value="16777314" enum="KeyList"> Launch Shortcut A Key </constant> - <constant name="KEY_LAUNCHB" value="16777315"> + <constant name="KEY_LAUNCHB" value="16777315" enum="KeyList"> Launch Shortcut B Key </constant> - <constant name="KEY_LAUNCHC" value="16777316"> + <constant name="KEY_LAUNCHC" value="16777316" enum="KeyList"> Launch Shortcut C Key </constant> - <constant name="KEY_LAUNCHD" value="16777317"> + <constant name="KEY_LAUNCHD" value="16777317" enum="KeyList"> Launch Shortcut D Key </constant> - <constant name="KEY_LAUNCHE" value="16777318"> + <constant name="KEY_LAUNCHE" value="16777318" enum="KeyList"> Launch Shortcut E Key </constant> - <constant name="KEY_LAUNCHF" value="16777319"> + <constant name="KEY_LAUNCHF" value="16777319" enum="KeyList"> Launch Shortcut F Key </constant> - <constant name="KEY_UNKNOWN" value="33554431"> + <constant name="KEY_UNKNOWN" value="33554431" enum="KeyList"> Unknown Key </constant> - <constant name="KEY_SPACE" value="32"> + <constant name="KEY_SPACE" value="32" enum="KeyList"> Space Key </constant> - <constant name="KEY_EXCLAM" value="33"> + <constant name="KEY_EXCLAM" value="33" enum="KeyList"> ! key </constant> - <constant name="KEY_QUOTEDBL" value="34"> + <constant name="KEY_QUOTEDBL" value="34" enum="KeyList"> " key </constant> - <constant name="KEY_NUMBERSIGN" value="35"> + <constant name="KEY_NUMBERSIGN" value="35" enum="KeyList"> # key </constant> - <constant name="KEY_DOLLAR" value="36"> + <constant name="KEY_DOLLAR" value="36" enum="KeyList"> $ key </constant> - <constant name="KEY_PERCENT" value="37"> + <constant name="KEY_PERCENT" value="37" enum="KeyList"> % key </constant> - <constant name="KEY_AMPERSAND" value="38"> + <constant name="KEY_AMPERSAND" value="38" enum="KeyList"> & key </constant> - <constant name="KEY_APOSTROPHE" value="39"> + <constant name="KEY_APOSTROPHE" value="39" enum="KeyList"> ' key </constant> - <constant name="KEY_PARENLEFT" value="40"> + <constant name="KEY_PARENLEFT" value="40" enum="KeyList"> ( key </constant> - <constant name="KEY_PARENRIGHT" value="41"> + <constant name="KEY_PARENRIGHT" value="41" enum="KeyList"> ) key </constant> - <constant name="KEY_ASTERISK" value="42"> + <constant name="KEY_ASTERISK" value="42" enum="KeyList"> * key </constant> - <constant name="KEY_PLUS" value="43"> + <constant name="KEY_PLUS" value="43" enum="KeyList"> + key </constant> - <constant name="KEY_COMMA" value="44"> + <constant name="KEY_COMMA" value="44" enum="KeyList"> , key </constant> - <constant name="KEY_MINUS" value="45"> + <constant name="KEY_MINUS" value="45" enum="KeyList"> - key </constant> - <constant name="KEY_PERIOD" value="46"> + <constant name="KEY_PERIOD" value="46" enum="KeyList"> . key </constant> - <constant name="KEY_SLASH" value="47"> + <constant name="KEY_SLASH" value="47" enum="KeyList"> / key </constant> - <constant name="KEY_0" value="48"> + <constant name="KEY_0" value="48" enum="KeyList"> Number 0 </constant> - <constant name="KEY_1" value="49"> + <constant name="KEY_1" value="49" enum="KeyList"> Number 1 </constant> - <constant name="KEY_2" value="50"> + <constant name="KEY_2" value="50" enum="KeyList"> Number 2 </constant> - <constant name="KEY_3" value="51"> + <constant name="KEY_3" value="51" enum="KeyList"> Number 3 </constant> - <constant name="KEY_4" value="52"> + <constant name="KEY_4" value="52" enum="KeyList"> Number 4 </constant> - <constant name="KEY_5" value="53"> + <constant name="KEY_5" value="53" enum="KeyList"> Number 5 </constant> - <constant name="KEY_6" value="54"> + <constant name="KEY_6" value="54" enum="KeyList"> Number 6 </constant> - <constant name="KEY_7" value="55"> + <constant name="KEY_7" value="55" enum="KeyList"> Number 7 </constant> - <constant name="KEY_8" value="56"> + <constant name="KEY_8" value="56" enum="KeyList"> Number 8 </constant> - <constant name="KEY_9" value="57"> + <constant name="KEY_9" value="57" enum="KeyList"> Number 9 </constant> - <constant name="KEY_COLON" value="58"> + <constant name="KEY_COLON" value="58" enum="KeyList"> : key </constant> - <constant name="KEY_SEMICOLON" value="59"> + <constant name="KEY_SEMICOLON" value="59" enum="KeyList"> ; key </constant> - <constant name="KEY_LESS" value="60"> + <constant name="KEY_LESS" value="60" enum="KeyList"> Lower than key </constant> - <constant name="KEY_EQUAL" value="61"> + <constant name="KEY_EQUAL" value="61" enum="KeyList"> = key </constant> - <constant name="KEY_GREATER" value="62"> + <constant name="KEY_GREATER" value="62" enum="KeyList"> Greater than key </constant> - <constant name="KEY_QUESTION" value="63"> + <constant name="KEY_QUESTION" value="63" enum="KeyList"> ? key </constant> - <constant name="KEY_AT" value="64"> + <constant name="KEY_AT" value="64" enum="KeyList"> @ key </constant> - <constant name="KEY_A" value="65"> + <constant name="KEY_A" value="65" enum="KeyList"> A Key </constant> - <constant name="KEY_B" value="66"> + <constant name="KEY_B" value="66" enum="KeyList"> B Key </constant> - <constant name="KEY_C" value="67"> + <constant name="KEY_C" value="67" enum="KeyList"> C Key </constant> - <constant name="KEY_D" value="68"> + <constant name="KEY_D" value="68" enum="KeyList"> D Key </constant> - <constant name="KEY_E" value="69"> + <constant name="KEY_E" value="69" enum="KeyList"> E Key </constant> - <constant name="KEY_F" value="70"> + <constant name="KEY_F" value="70" enum="KeyList"> F Key </constant> - <constant name="KEY_G" value="71"> + <constant name="KEY_G" value="71" enum="KeyList"> G Key </constant> - <constant name="KEY_H" value="72"> + <constant name="KEY_H" value="72" enum="KeyList"> H Key </constant> - <constant name="KEY_I" value="73"> + <constant name="KEY_I" value="73" enum="KeyList"> I Key </constant> - <constant name="KEY_J" value="74"> + <constant name="KEY_J" value="74" enum="KeyList"> J Key </constant> - <constant name="KEY_K" value="75"> + <constant name="KEY_K" value="75" enum="KeyList"> K Key </constant> - <constant name="KEY_L" value="76"> + <constant name="KEY_L" value="76" enum="KeyList"> L Key </constant> - <constant name="KEY_M" value="77"> + <constant name="KEY_M" value="77" enum="KeyList"> M Key </constant> - <constant name="KEY_N" value="78"> + <constant name="KEY_N" value="78" enum="KeyList"> N Key </constant> - <constant name="KEY_O" value="79"> + <constant name="KEY_O" value="79" enum="KeyList"> O Key </constant> - <constant name="KEY_P" value="80"> + <constant name="KEY_P" value="80" enum="KeyList"> P Key </constant> - <constant name="KEY_Q" value="81"> + <constant name="KEY_Q" value="81" enum="KeyList"> Q Key </constant> - <constant name="KEY_R" value="82"> + <constant name="KEY_R" value="82" enum="KeyList"> R Key </constant> - <constant name="KEY_S" value="83"> + <constant name="KEY_S" value="83" enum="KeyList"> S Key </constant> - <constant name="KEY_T" value="84"> + <constant name="KEY_T" value="84" enum="KeyList"> T Key </constant> - <constant name="KEY_U" value="85"> + <constant name="KEY_U" value="85" enum="KeyList"> U Key </constant> - <constant name="KEY_V" value="86"> + <constant name="KEY_V" value="86" enum="KeyList"> V Key </constant> - <constant name="KEY_W" value="87"> + <constant name="KEY_W" value="87" enum="KeyList"> W Key </constant> - <constant name="KEY_X" value="88"> + <constant name="KEY_X" value="88" enum="KeyList"> X Key </constant> - <constant name="KEY_Y" value="89"> + <constant name="KEY_Y" value="89" enum="KeyList"> Y Key </constant> - <constant name="KEY_Z" value="90"> + <constant name="KEY_Z" value="90" enum="KeyList"> Z Key </constant> - <constant name="KEY_BRACKETLEFT" value="91"> + <constant name="KEY_BRACKETLEFT" value="91" enum="KeyList"> [ key </constant> - <constant name="KEY_BACKSLASH" value="92"> + <constant name="KEY_BACKSLASH" value="92" enum="KeyList"> \ key </constant> - <constant name="KEY_BRACKETRIGHT" value="93"> + <constant name="KEY_BRACKETRIGHT" value="93" enum="KeyList"> ] key </constant> - <constant name="KEY_ASCIICIRCUM" value="94"> + <constant name="KEY_ASCIICIRCUM" value="94" enum="KeyList"> ^ key </constant> - <constant name="KEY_UNDERSCORE" value="95"> + <constant name="KEY_UNDERSCORE" value="95" enum="KeyList"> _ key </constant> - <constant name="KEY_QUOTELEFT" value="96"> + <constant name="KEY_QUOTELEFT" value="96" enum="KeyList"> Left Quote Key </constant> - <constant name="KEY_BRACELEFT" value="123"> + <constant name="KEY_BRACELEFT" value="123" enum="KeyList"> { key </constant> - <constant name="KEY_BAR" value="124"> + <constant name="KEY_BAR" value="124" enum="KeyList"> | key </constant> - <constant name="KEY_BRACERIGHT" value="125"> + <constant name="KEY_BRACERIGHT" value="125" enum="KeyList"> } key </constant> - <constant name="KEY_ASCIITILDE" value="126"> + <constant name="KEY_ASCIITILDE" value="126" enum="KeyList"> ~ key </constant> - <constant name="KEY_NOBREAKSPACE" value="160"> + <constant name="KEY_NOBREAKSPACE" value="160" enum="KeyList"> </constant> - <constant name="KEY_EXCLAMDOWN" value="161"> + <constant name="KEY_EXCLAMDOWN" value="161" enum="KeyList"> </constant> - <constant name="KEY_CENT" value="162"> + <constant name="KEY_CENT" value="162" enum="KeyList"> ¢ key </constant> - <constant name="KEY_STERLING" value="163"> + <constant name="KEY_STERLING" value="163" enum="KeyList"> </constant> - <constant name="KEY_CURRENCY" value="164"> + <constant name="KEY_CURRENCY" value="164" enum="KeyList"> </constant> - <constant name="KEY_YEN" value="165"> + <constant name="KEY_YEN" value="165" enum="KeyList"> Yen Key </constant> - <constant name="KEY_BROKENBAR" value="166"> + <constant name="KEY_BROKENBAR" value="166" enum="KeyList"> ¦ key </constant> - <constant name="KEY_SECTION" value="167"> + <constant name="KEY_SECTION" value="167" enum="KeyList"> § key </constant> - <constant name="KEY_DIAERESIS" value="168"> + <constant name="KEY_DIAERESIS" value="168" enum="KeyList"> ¨ key </constant> - <constant name="KEY_COPYRIGHT" value="169"> + <constant name="KEY_COPYRIGHT" value="169" enum="KeyList"> © key </constant> - <constant name="KEY_ORDFEMININE" value="170"> + <constant name="KEY_ORDFEMININE" value="170" enum="KeyList"> </constant> - <constant name="KEY_GUILLEMOTLEFT" value="171"> + <constant name="KEY_GUILLEMOTLEFT" value="171" enum="KeyList"> « key </constant> - <constant name="KEY_NOTSIGN" value="172"> + <constant name="KEY_NOTSIGN" value="172" enum="KeyList"> » key </constant> - <constant name="KEY_HYPHEN" value="173"> + <constant name="KEY_HYPHEN" value="173" enum="KeyList"> ‐ key </constant> - <constant name="KEY_REGISTERED" value="174"> + <constant name="KEY_REGISTERED" value="174" enum="KeyList"> ® key </constant> - <constant name="KEY_MACRON" value="175"> + <constant name="KEY_MACRON" value="175" enum="KeyList"> Macron Key </constant> - <constant name="KEY_DEGREE" value="176"> + <constant name="KEY_DEGREE" value="176" enum="KeyList"> ° key </constant> - <constant name="KEY_PLUSMINUS" value="177"> + <constant name="KEY_PLUSMINUS" value="177" enum="KeyList"> ± key </constant> - <constant name="KEY_TWOSUPERIOR" value="178"> + <constant name="KEY_TWOSUPERIOR" value="178" enum="KeyList"> ² key </constant> - <constant name="KEY_THREESUPERIOR" value="179"> + <constant name="KEY_THREESUPERIOR" value="179" enum="KeyList"> ³ key </constant> - <constant name="KEY_ACUTE" value="180"> + <constant name="KEY_ACUTE" value="180" enum="KeyList"> ´ key </constant> - <constant name="KEY_MU" value="181"> + <constant name="KEY_MU" value="181" enum="KeyList"> µ key </constant> - <constant name="KEY_PARAGRAPH" value="182"> + <constant name="KEY_PARAGRAPH" value="182" enum="KeyList"> Paragraph Key </constant> - <constant name="KEY_PERIODCENTERED" value="183"> + <constant name="KEY_PERIODCENTERED" value="183" enum="KeyList"> · key </constant> - <constant name="KEY_CEDILLA" value="184"> + <constant name="KEY_CEDILLA" value="184" enum="KeyList"> ¬ key </constant> - <constant name="KEY_ONESUPERIOR" value="185"> + <constant name="KEY_ONESUPERIOR" value="185" enum="KeyList"> ¹ key </constant> - <constant name="KEY_MASCULINE" value="186"> + <constant name="KEY_MASCULINE" value="186" enum="KeyList"> ♂ key </constant> - <constant name="KEY_GUILLEMOTRIGHT" value="187"> + <constant name="KEY_GUILLEMOTRIGHT" value="187" enum="KeyList"> » key </constant> - <constant name="KEY_ONEQUARTER" value="188"> + <constant name="KEY_ONEQUARTER" value="188" enum="KeyList"> ¼ key </constant> - <constant name="KEY_ONEHALF" value="189"> + <constant name="KEY_ONEHALF" value="189" enum="KeyList"> ½ key </constant> - <constant name="KEY_THREEQUARTERS" value="190"> + <constant name="KEY_THREEQUARTERS" value="190" enum="KeyList"> ¾ key </constant> - <constant name="KEY_QUESTIONDOWN" value="191"> + <constant name="KEY_QUESTIONDOWN" value="191" enum="KeyList"> ¿ key </constant> - <constant name="KEY_AGRAVE" value="192"> + <constant name="KEY_AGRAVE" value="192" enum="KeyList"> à key </constant> - <constant name="KEY_AACUTE" value="193"> + <constant name="KEY_AACUTE" value="193" enum="KeyList"> á key </constant> - <constant name="KEY_ACIRCUMFLEX" value="194"> + <constant name="KEY_ACIRCUMFLEX" value="194" enum="KeyList"> â key </constant> - <constant name="KEY_ATILDE" value="195"> + <constant name="KEY_ATILDE" value="195" enum="KeyList"> ã key </constant> - <constant name="KEY_ADIAERESIS" value="196"> + <constant name="KEY_ADIAERESIS" value="196" enum="KeyList"> ä key </constant> - <constant name="KEY_ARING" value="197"> + <constant name="KEY_ARING" value="197" enum="KeyList"> å key </constant> - <constant name="KEY_AE" value="198"> + <constant name="KEY_AE" value="198" enum="KeyList"> æ key </constant> - <constant name="KEY_CCEDILLA" value="199"> + <constant name="KEY_CCEDILLA" value="199" enum="KeyList"> ç key </constant> - <constant name="KEY_EGRAVE" value="200"> + <constant name="KEY_EGRAVE" value="200" enum="KeyList"> è key </constant> - <constant name="KEY_EACUTE" value="201"> + <constant name="KEY_EACUTE" value="201" enum="KeyList"> é key </constant> - <constant name="KEY_ECIRCUMFLEX" value="202"> + <constant name="KEY_ECIRCUMFLEX" value="202" enum="KeyList"> ê key </constant> - <constant name="KEY_EDIAERESIS" value="203"> + <constant name="KEY_EDIAERESIS" value="203" enum="KeyList"> ë key </constant> - <constant name="KEY_IGRAVE" value="204"> + <constant name="KEY_IGRAVE" value="204" enum="KeyList"> ì key </constant> - <constant name="KEY_IACUTE" value="205"> + <constant name="KEY_IACUTE" value="205" enum="KeyList"> í key </constant> - <constant name="KEY_ICIRCUMFLEX" value="206"> + <constant name="KEY_ICIRCUMFLEX" value="206" enum="KeyList"> î key </constant> - <constant name="KEY_IDIAERESIS" value="207"> + <constant name="KEY_IDIAERESIS" value="207" enum="KeyList"> ë key </constant> - <constant name="KEY_ETH" value="208"> + <constant name="KEY_ETH" value="208" enum="KeyList"> ð key </constant> - <constant name="KEY_NTILDE" value="209"> + <constant name="KEY_NTILDE" value="209" enum="KeyList"> ñ key </constant> - <constant name="KEY_OGRAVE" value="210"> + <constant name="KEY_OGRAVE" value="210" enum="KeyList"> ò key </constant> - <constant name="KEY_OACUTE" value="211"> + <constant name="KEY_OACUTE" value="211" enum="KeyList"> ó key </constant> - <constant name="KEY_OCIRCUMFLEX" value="212"> + <constant name="KEY_OCIRCUMFLEX" value="212" enum="KeyList"> ô key </constant> - <constant name="KEY_OTILDE" value="213"> + <constant name="KEY_OTILDE" value="213" enum="KeyList"> õ key </constant> - <constant name="KEY_ODIAERESIS" value="214"> + <constant name="KEY_ODIAERESIS" value="214" enum="KeyList"> ö key </constant> - <constant name="KEY_MULTIPLY" value="215"> + <constant name="KEY_MULTIPLY" value="215" enum="KeyList"> × key </constant> - <constant name="KEY_OOBLIQUE" value="216"> + <constant name="KEY_OOBLIQUE" value="216" enum="KeyList"> ø key </constant> - <constant name="KEY_UGRAVE" value="217"> + <constant name="KEY_UGRAVE" value="217" enum="KeyList"> ù key </constant> - <constant name="KEY_UACUTE" value="218"> + <constant name="KEY_UACUTE" value="218" enum="KeyList"> ú key </constant> - <constant name="KEY_UCIRCUMFLEX" value="219"> + <constant name="KEY_UCIRCUMFLEX" value="219" enum="KeyList"> û key </constant> - <constant name="KEY_UDIAERESIS" value="220"> + <constant name="KEY_UDIAERESIS" value="220" enum="KeyList"> ü key </constant> - <constant name="KEY_YACUTE" value="221"> + <constant name="KEY_YACUTE" value="221" enum="KeyList"> ý key </constant> - <constant name="KEY_THORN" value="222"> + <constant name="KEY_THORN" value="222" enum="KeyList"> þ key </constant> - <constant name="KEY_SSHARP" value="223"> + <constant name="KEY_SSHARP" value="223" enum="KeyList"> ß key </constant> - <constant name="KEY_DIVISION" value="247"> + <constant name="KEY_DIVISION" value="247" enum="KeyList"> ÷ key </constant> - <constant name="KEY_YDIAERESIS" value="255"> + <constant name="KEY_YDIAERESIS" value="255" enum="KeyList"> ÿ key </constant> - <constant name="KEY_CODE_MASK" value="33554431"> + <constant name="KEY_CODE_MASK" value="33554431" enum="KeyModifierMask"> Key Code Mask </constant> - <constant name="KEY_MODIFIER_MASK" value="-16777216"> + <constant name="KEY_MODIFIER_MASK" value="-16777216" enum="KeyModifierMask"> Modifier Key Mask </constant> - <constant name="KEY_MASK_SHIFT" value="33554432"> + <constant name="KEY_MASK_SHIFT" value="33554432" enum="KeyModifierMask"> Shift Key Mask </constant> - <constant name="KEY_MASK_ALT" value="67108864"> + <constant name="KEY_MASK_ALT" value="67108864" enum="KeyModifierMask"> Alt Key Mask </constant> - <constant name="KEY_MASK_META" value="134217728"> + <constant name="KEY_MASK_META" value="134217728" enum="KeyModifierMask"> Meta Key Mask </constant> - <constant name="KEY_MASK_CTRL" value="268435456"> + <constant name="KEY_MASK_CTRL" value="268435456" enum="KeyModifierMask"> CTRL Key Mask </constant> - <constant name="KEY_MASK_CMD" value="268435456"> + <constant name="KEY_MASK_CMD" value="268435456" enum="KeyModifierMask"> CMD Key Mask </constant> - <constant name="KEY_MASK_KPAD" value="536870912"> + <constant name="KEY_MASK_KPAD" value="536870912" enum="KeyModifierMask"> Keypad Key Mask </constant> - <constant name="KEY_MASK_GROUP_SWITCH" value="1073741824"> + <constant name="KEY_MASK_GROUP_SWITCH" value="1073741824" enum="KeyModifierMask"> Group Switch Key Mask </constant> - <constant name="BUTTON_LEFT" value="1"> + <constant name="BUTTON_LEFT" value="1" enum="ButtonList"> Left Mouse Button </constant> - <constant name="BUTTON_RIGHT" value="2"> + <constant name="BUTTON_RIGHT" value="2" enum="ButtonList"> Right Mouse Button </constant> - <constant name="BUTTON_MIDDLE" value="3"> + <constant name="BUTTON_MIDDLE" value="3" enum="ButtonList"> Middle Mouse Button </constant> - <constant name="BUTTON_WHEEL_UP" value="4"> + <constant name="BUTTON_WHEEL_UP" value="4" enum="ButtonList"> Mouse wheel up </constant> - <constant name="BUTTON_WHEEL_DOWN" value="5"> + <constant name="BUTTON_WHEEL_DOWN" value="5" enum="ButtonList"> Mouse wheel down </constant> - <constant name="BUTTON_WHEEL_LEFT" value="6"> + <constant name="BUTTON_WHEEL_LEFT" value="6" enum="ButtonList"> Mouse wheel left button </constant> - <constant name="BUTTON_WHEEL_RIGHT" value="7"> + <constant name="BUTTON_WHEEL_RIGHT" value="7" enum="ButtonList"> Mouse wheel right button </constant> - <constant name="BUTTON_MASK_LEFT" value="1"> + <constant name="BUTTON_MASK_LEFT" value="1" enum="ButtonList"> Left Mouse Button Mask </constant> - <constant name="BUTTON_MASK_RIGHT" value="2"> + <constant name="BUTTON_MASK_RIGHT" value="2" enum="ButtonList"> Right Mouse Button Mask </constant> - <constant name="BUTTON_MASK_MIDDLE" value="4"> + <constant name="BUTTON_MASK_MIDDLE" value="4" enum="ButtonList"> Middle Mouse Button Mask </constant> - <constant name="JOY_BUTTON_0" value="0"> + <constant name="JOY_BUTTON_0" value="0" enum="JoystickList"> Joypad Button 0 </constant> - <constant name="JOY_BUTTON_1" value="1"> + <constant name="JOY_BUTTON_1" value="1" enum="JoystickList"> Joypad Button 1 </constant> - <constant name="JOY_BUTTON_2" value="2"> + <constant name="JOY_BUTTON_2" value="2" enum="JoystickList"> Joypad Button 2 </constant> - <constant name="JOY_BUTTON_3" value="3"> + <constant name="JOY_BUTTON_3" value="3" enum="JoystickList"> Joypad Button 3 </constant> - <constant name="JOY_BUTTON_4" value="4"> + <constant name="JOY_BUTTON_4" value="4" enum="JoystickList"> Joypad Button 4 </constant> - <constant name="JOY_BUTTON_5" value="5"> + <constant name="JOY_BUTTON_5" value="5" enum="JoystickList"> Joypad Button 5 </constant> - <constant name="JOY_BUTTON_6" value="6"> + <constant name="JOY_BUTTON_6" value="6" enum="JoystickList"> Joypad Button 6 </constant> - <constant name="JOY_BUTTON_7" value="7"> + <constant name="JOY_BUTTON_7" value="7" enum="JoystickList"> Joypad Button 7 </constant> - <constant name="JOY_BUTTON_8" value="8"> + <constant name="JOY_BUTTON_8" value="8" enum="JoystickList"> Joypad Button 8 </constant> - <constant name="JOY_BUTTON_9" value="9"> + <constant name="JOY_BUTTON_9" value="9" enum="JoystickList"> Joypad Button 9 </constant> - <constant name="JOY_BUTTON_10" value="10"> + <constant name="JOY_BUTTON_10" value="10" enum="JoystickList"> Joypad Button 10 </constant> - <constant name="JOY_BUTTON_11" value="11"> + <constant name="JOY_BUTTON_11" value="11" enum="JoystickList"> Joypad Button 11 </constant> - <constant name="JOY_BUTTON_12" value="12"> + <constant name="JOY_BUTTON_12" value="12" enum="JoystickList"> Joypad Button 12 </constant> - <constant name="JOY_BUTTON_13" value="13"> + <constant name="JOY_BUTTON_13" value="13" enum="JoystickList"> Joypad Button 13 </constant> - <constant name="JOY_BUTTON_14" value="14"> + <constant name="JOY_BUTTON_14" value="14" enum="JoystickList"> Joypad Button 14 </constant> - <constant name="JOY_BUTTON_15" value="15"> + <constant name="JOY_BUTTON_15" value="15" enum="JoystickList"> Joypad Button 15 </constant> - <constant name="JOY_BUTTON_MAX" value="16"> + <constant name="JOY_BUTTON_MAX" value="16" enum="JoystickList"> Joypad Button 16 </constant> - <constant name="JOY_SONY_CIRCLE" value="1"> + <constant name="JOY_SONY_CIRCLE" value="1" enum="JoystickList"> DUALSHOCK circle button </constant> - <constant name="JOY_SONY_X" value="0"> + <constant name="JOY_SONY_X" value="0" enum="JoystickList"> DUALSHOCK X button </constant> - <constant name="JOY_SONY_SQUARE" value="2"> + <constant name="JOY_SONY_SQUARE" value="2" enum="JoystickList"> DUALSHOCK square button </constant> - <constant name="JOY_SONY_TRIANGLE" value="3"> + <constant name="JOY_SONY_TRIANGLE" value="3" enum="JoystickList"> DUALSHOCK triangle button </constant> - <constant name="JOY_XBOX_B" value="1"> + <constant name="JOY_XBOX_B" value="1" enum="JoystickList"> XBOX controller B button </constant> - <constant name="JOY_XBOX_A" value="0"> + <constant name="JOY_XBOX_A" value="0" enum="JoystickList"> XBOX controller A button </constant> - <constant name="JOY_XBOX_X" value="2"> + <constant name="JOY_XBOX_X" value="2" enum="JoystickList"> XBOX controller X button </constant> - <constant name="JOY_XBOX_Y" value="3"> + <constant name="JOY_XBOX_Y" value="3" enum="JoystickList"> XBOX controller Y button </constant> - <constant name="JOY_DS_A" value="1"> + <constant name="JOY_DS_A" value="1" enum="JoystickList"> DualShock controller A button </constant> - <constant name="JOY_DS_B" value="0"> + <constant name="JOY_DS_B" value="0" enum="JoystickList"> DualShock controller B button </constant> - <constant name="JOY_DS_X" value="3"> + <constant name="JOY_DS_X" value="3" enum="JoystickList"> DualShock controller X button </constant> - <constant name="JOY_DS_Y" value="2"> + <constant name="JOY_DS_Y" value="2" enum="JoystickList"> DualShock controller Y button </constant> - <constant name="JOY_SELECT" value="10"> + <constant name="JOY_SELECT" value="10" enum="JoystickList"> Joypad Button Select </constant> - <constant name="JOY_START" value="11"> + <constant name="JOY_START" value="11" enum="JoystickList"> Joypad Button Start </constant> - <constant name="JOY_DPAD_UP" value="12"> + <constant name="JOY_DPAD_UP" value="12" enum="JoystickList"> Joypad DPad Up </constant> - <constant name="JOY_DPAD_DOWN" value="13"> + <constant name="JOY_DPAD_DOWN" value="13" enum="JoystickList"> Joypad DPad Down </constant> - <constant name="JOY_DPAD_LEFT" value="14"> + <constant name="JOY_DPAD_LEFT" value="14" enum="JoystickList"> Joypad DPad Left </constant> - <constant name="JOY_DPAD_RIGHT" value="15"> + <constant name="JOY_DPAD_RIGHT" value="15" enum="JoystickList"> Joypad DPad Right </constant> - <constant name="JOY_L" value="4"> + <constant name="JOY_L" value="4" enum="JoystickList"> Joypad Left Shoulder Button </constant> - <constant name="JOY_L2" value="6"> + <constant name="JOY_L2" value="6" enum="JoystickList"> Joypad Left Trigger </constant> - <constant name="JOY_L3" value="8"> + <constant name="JOY_L3" value="8" enum="JoystickList"> Joypad Left Stick Click </constant> - <constant name="JOY_R" value="5"> + <constant name="JOY_R" value="5" enum="JoystickList"> Joypad Right Shoulder Button </constant> - <constant name="JOY_R2" value="7"> + <constant name="JOY_R2" value="7" enum="JoystickList"> Joypad Right Trigger </constant> - <constant name="JOY_R3" value="9"> + <constant name="JOY_R3" value="9" enum="JoystickList"> Joypad Right Stick Click </constant> - <constant name="JOY_AXIS_0" value="0"> + <constant name="JOY_AXIS_0" value="0" enum="JoystickList"> Joypad Left Stick Horizontal Axis </constant> - <constant name="JOY_AXIS_1" value="1"> + <constant name="JOY_AXIS_1" value="1" enum="JoystickList"> Joypad Left Stick Vertical Axis </constant> - <constant name="JOY_AXIS_2" value="2"> + <constant name="JOY_AXIS_2" value="2" enum="JoystickList"> Joypad Right Stick Horizontal Axis </constant> - <constant name="JOY_AXIS_3" value="3"> + <constant name="JOY_AXIS_3" value="3" enum="JoystickList"> Joypad Right Stick Vertical Axis </constant> - <constant name="JOY_AXIS_4" value="4"> + <constant name="JOY_AXIS_4" value="4" enum="JoystickList"> </constant> - <constant name="JOY_AXIS_5" value="5"> + <constant name="JOY_AXIS_5" value="5" enum="JoystickList"> </constant> - <constant name="JOY_AXIS_6" value="6"> + <constant name="JOY_AXIS_6" value="6" enum="JoystickList"> Joypad Left Trigger Analog Axis </constant> - <constant name="JOY_AXIS_7" value="7"> + <constant name="JOY_AXIS_7" value="7" enum="JoystickList"> Joypad Right Trigger Analog Axis </constant> - <constant name="JOY_AXIS_8" value="8"> + <constant name="JOY_AXIS_8" value="8" enum="JoystickList"> </constant> - <constant name="JOY_AXIS_9" value="9"> + <constant name="JOY_AXIS_9" value="9" enum="JoystickList"> </constant> - <constant name="JOY_AXIS_MAX" value="10"> + <constant name="JOY_AXIS_MAX" value="10" enum="JoystickList"> </constant> - <constant name="JOY_ANALOG_LX" value="0"> + <constant name="JOY_ANALOG_LX" value="0" enum="JoystickList"> Joypad Left Stick Horizontal Axis </constant> - <constant name="JOY_ANALOG_LY" value="1"> + <constant name="JOY_ANALOG_LY" value="1" enum="JoystickList"> Joypad Left Stick Vertical Axis </constant> - <constant name="JOY_ANALOG_RX" value="2"> + <constant name="JOY_ANALOG_RX" value="2" enum="JoystickList"> Joypad Right Stick Horizontal Axis </constant> - <constant name="JOY_ANALOG_RY" value="3"> + <constant name="JOY_ANALOG_RY" value="3" enum="JoystickList"> Joypad Right Stick Vertical Axis </constant> - <constant name="JOY_ANALOG_L2" value="6"> + <constant name="JOY_ANALOG_L2" value="6" enum="JoystickList"> Joypad Left Analog Trigger </constant> - <constant name="JOY_ANALOG_R2" value="7"> + <constant name="JOY_ANALOG_R2" value="7" enum="JoystickList"> Joypad Right Analog Trigger </constant> - <constant name="OK" value="0"> + <constant name="OK" value="0" enum="Error"> Functions that return Error return OK when no error occured. Most functions don't return errors and/or just print errors to STDOUT. </constant> - <constant name="FAILED" value="1"> + <constant name="FAILED" value="1" enum="Error"> Generic error. </constant> - <constant name="ERR_UNAVAILABLE" value="2"> + <constant name="ERR_UNAVAILABLE" value="2" enum="Error"> Unavailable error </constant> - <constant name="ERR_UNCONFIGURED" value="3"> + <constant name="ERR_UNCONFIGURED" value="3" enum="Error"> Unconfigured error </constant> - <constant name="ERR_UNAUTHORIZED" value="4"> + <constant name="ERR_UNAUTHORIZED" value="4" enum="Error"> Unauthorized error </constant> - <constant name="ERR_PARAMETER_RANGE_ERROR" value="5"> + <constant name="ERR_PARAMETER_RANGE_ERROR" value="5" enum="Error"> Parameter range error </constant> - <constant name="ERR_OUT_OF_MEMORY" value="6"> + <constant name="ERR_OUT_OF_MEMORY" value="6" enum="Error"> Out of memory (OOM) error </constant> - <constant name="ERR_FILE_NOT_FOUND" value="7"> + <constant name="ERR_FILE_NOT_FOUND" value="7" enum="Error"> File: Not found error </constant> - <constant name="ERR_FILE_BAD_DRIVE" value="8"> + <constant name="ERR_FILE_BAD_DRIVE" value="8" enum="Error"> File: Bad drive error </constant> - <constant name="ERR_FILE_BAD_PATH" value="9"> + <constant name="ERR_FILE_BAD_PATH" value="9" enum="Error"> File: Bad path error </constant> - <constant name="ERR_FILE_NO_PERMISSION" value="10"> + <constant name="ERR_FILE_NO_PERMISSION" value="10" enum="Error"> File: No permission error </constant> - <constant name="ERR_FILE_ALREADY_IN_USE" value="11"> + <constant name="ERR_FILE_ALREADY_IN_USE" value="11" enum="Error"> File: Already in use error </constant> - <constant name="ERR_FILE_CANT_OPEN" value="12"> + <constant name="ERR_FILE_CANT_OPEN" value="12" enum="Error"> File: Can't open error </constant> - <constant name="ERR_FILE_CANT_WRITE" value="13"> + <constant name="ERR_FILE_CANT_WRITE" value="13" enum="Error"> File: Can't write error </constant> - <constant name="ERR_FILE_CANT_READ" value="14"> + <constant name="ERR_FILE_CANT_READ" value="14" enum="Error"> File: Can't read error </constant> - <constant name="ERR_FILE_UNRECOGNIZED" value="15"> + <constant name="ERR_FILE_UNRECOGNIZED" value="15" enum="Error"> File: Unrecognized error </constant> - <constant name="ERR_FILE_CORRUPT" value="16"> + <constant name="ERR_FILE_CORRUPT" value="16" enum="Error"> File: Corrupt error </constant> - <constant name="ERR_FILE_MISSING_DEPENDENCIES" value="17"> + <constant name="ERR_FILE_MISSING_DEPENDENCIES" value="17" enum="Error"> File: Missing dependencies error </constant> - <constant name="ERR_FILE_EOF" value="18"> + <constant name="ERR_FILE_EOF" value="18" enum="Error"> File: End of file (EOF) error </constant> - <constant name="ERR_CANT_OPEN" value="19"> + <constant name="ERR_CANT_OPEN" value="19" enum="Error"> Can't open error </constant> - <constant name="ERR_CANT_CREATE" value="20"> + <constant name="ERR_CANT_CREATE" value="20" enum="Error"> Can't create error </constant> - <constant name="ERR_PARSE_ERROR" value="43"> + <constant name="ERR_PARSE_ERROR" value="43" enum="Error"> Parse error </constant> - <constant name="ERR_QUERY_FAILED" value="21"> + <constant name="ERR_QUERY_FAILED" value="21" enum="Error"> Query failed error </constant> - <constant name="ERR_ALREADY_IN_USE" value="22"> + <constant name="ERR_ALREADY_IN_USE" value="22" enum="Error"> Already in use error </constant> - <constant name="ERR_LOCKED" value="23"> + <constant name="ERR_LOCKED" value="23" enum="Error"> Locked error </constant> - <constant name="ERR_TIMEOUT" value="24"> + <constant name="ERR_TIMEOUT" value="24" enum="Error"> Timeout error </constant> - <constant name="ERR_CANT_ACQUIRE_RESOURCE" value="28"> + <constant name="ERR_CANT_ACQUIRE_RESOURCE" value="28" enum="Error"> Can't acquire resource error </constant> - <constant name="ERR_INVALID_DATA" value="30"> + <constant name="ERR_INVALID_DATA" value="30" enum="Error"> Invalid data error </constant> - <constant name="ERR_INVALID_PARAMETER" value="31"> + <constant name="ERR_INVALID_PARAMETER" value="31" enum="Error"> Invalid parameter error </constant> - <constant name="ERR_ALREADY_EXISTS" value="32"> + <constant name="ERR_ALREADY_EXISTS" value="32" enum="Error"> Already exists error </constant> - <constant name="ERR_DOES_NOT_EXIST" value="33"> + <constant name="ERR_DOES_NOT_EXIST" value="33" enum="Error"> Does not exist error </constant> - <constant name="ERR_DATABASE_CANT_READ" value="34"> + <constant name="ERR_DATABASE_CANT_READ" value="34" enum="Error"> Database: Read error </constant> - <constant name="ERR_DATABASE_CANT_WRITE" value="35"> + <constant name="ERR_DATABASE_CANT_WRITE" value="35" enum="Error"> Database: Write error </constant> - <constant name="ERR_COMPILATION_FAILED" value="36"> + <constant name="ERR_COMPILATION_FAILED" value="36" enum="Error"> Compilation failed error </constant> - <constant name="ERR_METHOD_NOT_FOUND" value="37"> + <constant name="ERR_METHOD_NOT_FOUND" value="37" enum="Error"> Method not found error </constant> - <constant name="ERR_LINK_FAILED" value="38"> + <constant name="ERR_LINK_FAILED" value="38" enum="Error"> Linking failed error </constant> - <constant name="ERR_SCRIPT_FAILED" value="39"> + <constant name="ERR_SCRIPT_FAILED" value="39" enum="Error"> Script failed error </constant> - <constant name="ERR_CYCLIC_LINK" value="40"> + <constant name="ERR_CYCLIC_LINK" value="40" enum="Error"> Cycling link (import cycle) error </constant> - <constant name="ERR_BUSY" value="44"> + <constant name="ERR_BUSY" value="44" enum="Error"> Busy error </constant> - <constant name="ERR_HELP" value="46"> + <constant name="ERR_HELP" value="46" enum="Error"> Help error </constant> - <constant name="ERR_BUG" value="47"> + <constant name="ERR_BUG" value="47" enum="Error"> Bug error </constant> - <constant name="ERR_WTF" value="49"> + <constant name="ERR_WTF" value="49" enum="Error"> WTF error (something probably went really wrong) </constant> - <constant name="PROPERTY_HINT_NONE" value="0"> + <constant name="PROPERTY_HINT_NONE" value="0" enum="PropertyHint"> No hint for edited property. </constant> - <constant name="PROPERTY_HINT_RANGE" value="1"> + <constant name="PROPERTY_HINT_RANGE" value="1" enum="PropertyHint"> Hints that the string is a range, defined as "min,max" or "min,max,step". This is valid for integers and floats. </constant> - <constant name="PROPERTY_HINT_EXP_RANGE" value="2"> + <constant name="PROPERTY_HINT_EXP_RANGE" value="2" enum="PropertyHint"> Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats. </constant> - <constant name="PROPERTY_HINT_ENUM" value="3"> + <constant name="PROPERTY_HINT_ENUM" value="3" enum="PropertyHint"> Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties. </constant> - <constant name="PROPERTY_HINT_EXP_EASING" value="4"> + <constant name="PROPERTY_HINT_EXP_EASING" value="4" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_LENGTH" value="5"> + <constant name="PROPERTY_HINT_LENGTH" value="5" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_KEY_ACCEL" value="7"> + <constant name="PROPERTY_HINT_KEY_ACCEL" value="7" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_FLAGS" value="8"> + <constant name="PROPERTY_HINT_FLAGS" value="8" enum="PropertyHint"> Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers. </constant> - <constant name="PROPERTY_HINT_LAYERS_2D_RENDER" value="9"> + <constant name="PROPERTY_HINT_LAYERS_2D_RENDER" value="9" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_LAYERS_2D_PHYSICS" value="10"> + <constant name="PROPERTY_HINT_LAYERS_2D_PHYSICS" value="10" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_LAYERS_3D_RENDER" value="11"> + <constant name="PROPERTY_HINT_LAYERS_3D_RENDER" value="11" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_LAYERS_3D_PHYSICS" value="12"> + <constant name="PROPERTY_HINT_LAYERS_3D_PHYSICS" value="12" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_FILE" value="13"> + <constant name="PROPERTY_HINT_FILE" value="13" enum="PropertyHint"> String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "*.doc". </constant> - <constant name="PROPERTY_HINT_DIR" value="14"> + <constant name="PROPERTY_HINT_DIR" value="14" enum="PropertyHint"> String property is a directory (so pop up a file dialog when edited). </constant> - <constant name="PROPERTY_HINT_GLOBAL_FILE" value="15"> + <constant name="PROPERTY_HINT_GLOBAL_FILE" value="15" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_GLOBAL_DIR" value="16"> + <constant name="PROPERTY_HINT_GLOBAL_DIR" value="16" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_RESOURCE_TYPE" value="17"> + <constant name="PROPERTY_HINT_RESOURCE_TYPE" value="17" enum="PropertyHint"> String property is a resource, so open the resource popup menu when edited. </constant> - <constant name="PROPERTY_HINT_MULTILINE_TEXT" value="18"> + <constant name="PROPERTY_HINT_MULTILINE_TEXT" value="18" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_COLOR_NO_ALPHA" value="19"> + <constant name="PROPERTY_HINT_COLOR_NO_ALPHA" value="19" enum="PropertyHint"> </constant> - <constant name="PROPERTY_HINT_IMAGE_COMPRESS_LOSSY" value="20"> + <constant name="PROPERTY_HINT_IMAGE_COMPRESS_LOSSY" value="20" enum="PropertyHint"> Hints that the image is compressed using lossy compression. </constant> - <constant name="PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS" value="21"> + <constant name="PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS" value="21" enum="PropertyHint"> Hints that the image is compressed using lossless compression. </constant> - <constant name="PROPERTY_USAGE_STORAGE" value="1"> + <constant name="PROPERTY_USAGE_STORAGE" value="1" enum="PropertyUsageFlags"> Property will be used as storage (default). </constant> - <constant name="PROPERTY_USAGE_EDITOR" value="2"> + <constant name="PROPERTY_USAGE_EDITOR" value="2" enum="PropertyUsageFlags"> Property will be visible in editor (default). </constant> - <constant name="PROPERTY_USAGE_NETWORK" value="4"> + <constant name="PROPERTY_USAGE_NETWORK" value="4" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_EDITOR_HELPER" value="8"> + <constant name="PROPERTY_USAGE_EDITOR_HELPER" value="8" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_CHECKABLE" value="16"> + <constant name="PROPERTY_USAGE_CHECKABLE" value="16" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_CHECKED" value="32"> + <constant name="PROPERTY_USAGE_CHECKED" value="32" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_INTERNATIONALIZED" value="64"> + <constant name="PROPERTY_USAGE_INTERNATIONALIZED" value="64" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_GROUP" value="128"> + <constant name="PROPERTY_USAGE_GROUP" value="128" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_CATEGORY" value="256"> + <constant name="PROPERTY_USAGE_CATEGORY" value="256" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_STORE_IF_NONZERO" value="512"> + <constant name="PROPERTY_USAGE_STORE_IF_NONZERO" value="512" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_STORE_IF_NONONE" value="1024"> + <constant name="PROPERTY_USAGE_STORE_IF_NONONE" value="1024" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_NO_INSTANCE_STATE" value="2048"> + <constant name="PROPERTY_USAGE_NO_INSTANCE_STATE" value="2048" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_RESTART_IF_CHANGED" value="4096"> + <constant name="PROPERTY_USAGE_RESTART_IF_CHANGED" value="4096" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_SCRIPT_VARIABLE" value="8192"> + <constant name="PROPERTY_USAGE_SCRIPT_VARIABLE" value="8192" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_DEFAULT" value="7"> + <constant name="PROPERTY_USAGE_DEFAULT" value="7" enum="PropertyUsageFlags"> Default usage (storage and editor). </constant> - <constant name="PROPERTY_USAGE_DEFAULT_INTL" value="71"> + <constant name="PROPERTY_USAGE_DEFAULT_INTL" value="71" enum="PropertyUsageFlags"> </constant> - <constant name="PROPERTY_USAGE_NOEDITOR" value="5"> + <constant name="PROPERTY_USAGE_NOEDITOR" value="5" enum="PropertyUsageFlags"> </constant> - <constant name="METHOD_FLAG_NORMAL" value="1"> + <constant name="METHOD_FLAG_NORMAL" value="1" enum="MethodFlags"> Flag for normal method </constant> - <constant name="METHOD_FLAG_EDITOR" value="2"> + <constant name="METHOD_FLAG_EDITOR" value="2" enum="MethodFlags"> Flag for editor method </constant> - <constant name="METHOD_FLAG_NOSCRIPT" value="4"> + <constant name="METHOD_FLAG_NOSCRIPT" value="4" enum="MethodFlags"> </constant> - <constant name="METHOD_FLAG_CONST" value="8"> + <constant name="METHOD_FLAG_CONST" value="8" enum="MethodFlags"> Flag for constant method </constant> - <constant name="METHOD_FLAG_REVERSE" value="16"> + <constant name="METHOD_FLAG_REVERSE" value="16" enum="MethodFlags"> </constant> - <constant name="METHOD_FLAG_VIRTUAL" value="32"> + <constant name="METHOD_FLAG_VIRTUAL" value="32" enum="MethodFlags"> Flag for virtual method </constant> - <constant name="METHOD_FLAG_FROM_SCRIPT" value="64"> + <constant name="METHOD_FLAG_FROM_SCRIPT" value="64" enum="MethodFlags"> Flag for method from script </constant> - <constant name="METHOD_FLAGS_DEFAULT" value="1"> + <constant name="METHOD_FLAGS_DEFAULT" value="1" enum="MethodFlags"> Default method flags </constant> - <constant name="TYPE_NIL" value="0"> + <constant name="TYPE_NIL" value="0" enum="Variant.Type"> Variable is of type nil (only applied for null). </constant> - <constant name="TYPE_BOOL" value="1"> + <constant name="TYPE_BOOL" value="1" enum="Variant.Type"> Variable is of type [bool]. </constant> - <constant name="TYPE_INT" value="2"> + <constant name="TYPE_INT" value="2" enum="Variant.Type"> Variable is of type [int]. </constant> - <constant name="TYPE_REAL" value="3"> + <constant name="TYPE_REAL" value="3" enum="Variant.Type"> Variable is of type [float]/real. </constant> - <constant name="TYPE_STRING" value="4"> + <constant name="TYPE_STRING" value="4" enum="Variant.Type"> Variable is of type [String]. </constant> - <constant name="TYPE_VECTOR2" value="5"> + <constant name="TYPE_VECTOR2" value="5" enum="Variant.Type"> Variable is of type [Vector2]. </constant> - <constant name="TYPE_RECT2" value="6"> + <constant name="TYPE_RECT2" value="6" enum="Variant.Type"> Variable is of type [Rect2]. </constant> - <constant name="TYPE_VECTOR3" value="7"> + <constant name="TYPE_VECTOR3" value="7" enum="Variant.Type"> Variable is of type [Vector3]. </constant> - <constant name="TYPE_TRANSFORM2D" value="8"> + <constant name="TYPE_TRANSFORM2D" value="8" enum="Variant.Type"> Variable is of type [Transform2D]. </constant> - <constant name="TYPE_PLANE" value="9"> + <constant name="TYPE_PLANE" value="9" enum="Variant.Type"> Variable is of type [Plane]. </constant> - <constant name="TYPE_QUAT" value="10"> + <constant name="TYPE_QUAT" value="10" enum="Variant.Type"> Variable is of type [Quat]. </constant> - <constant name="TYPE_AABB" value="11"> + <constant name="TYPE_AABB" value="11" enum="Variant.Type"> Variable is of type [AABB]. </constant> - <constant name="TYPE_BASIS" value="12"> + <constant name="TYPE_BASIS" value="12" enum="Variant.Type"> Variable is of type [Basis]. </constant> - <constant name="TYPE_TRANSFORM" value="13"> + <constant name="TYPE_TRANSFORM" value="13" enum="Variant.Type"> Variable is of type [Transform]. </constant> - <constant name="TYPE_COLOR" value="14"> + <constant name="TYPE_COLOR" value="14" enum="Variant.Type"> Variable is of type [Color]. </constant> - <constant name="TYPE_NODE_PATH" value="15"> + <constant name="TYPE_NODE_PATH" value="15" enum="Variant.Type"> Variable is of type [NodePath]. </constant> - <constant name="TYPE_RID" value="16"> + <constant name="TYPE_RID" value="16" enum="Variant.Type"> Variable is of type [RID]. </constant> - <constant name="TYPE_OBJECT" value="17"> + <constant name="TYPE_OBJECT" value="17" enum="Variant.Type"> Variable is of type [Object]. </constant> - <constant name="TYPE_DICTIONARY" value="18"> + <constant name="TYPE_DICTIONARY" value="18" enum="Variant.Type"> Variable is of type [Dictionary]. </constant> - <constant name="TYPE_ARRAY" value="19"> + <constant name="TYPE_ARRAY" value="19" enum="Variant.Type"> Variable is of type [Array]. </constant> - <constant name="TYPE_RAW_ARRAY" value="20"> + <constant name="TYPE_RAW_ARRAY" value="20" enum="Variant.Type"> Variable is of type [PoolByteArray]. </constant> - <constant name="TYPE_INT_ARRAY" value="21"> + <constant name="TYPE_INT_ARRAY" value="21" enum="Variant.Type"> Variable is of type [PoolIntArray]. </constant> - <constant name="TYPE_REAL_ARRAY" value="22"> + <constant name="TYPE_REAL_ARRAY" value="22" enum="Variant.Type"> Variable is of type [PoolRealArray]. </constant> - <constant name="TYPE_STRING_ARRAY" value="23"> + <constant name="TYPE_STRING_ARRAY" value="23" enum="Variant.Type"> Variable is of type [PoolStringArray]. </constant> - <constant name="TYPE_VECTOR2_ARRAY" value="24"> + <constant name="TYPE_VECTOR2_ARRAY" value="24" enum="Variant.Type"> Variable is of type [PoolVector2Array]. </constant> - <constant name="TYPE_VECTOR3_ARRAY" value="25"> + <constant name="TYPE_VECTOR3_ARRAY" value="25" enum="Variant.Type"> Variable is of type [PoolVector3Array]. </constant> - <constant name="TYPE_COLOR_ARRAY" value="26"> + <constant name="TYPE_COLOR_ARRAY" value="26" enum="Variant.Type"> Variable is of type [PoolColorArray]. </constant> - <constant name="TYPE_MAX" value="27"> + <constant name="TYPE_MAX" value="27" enum="Variant.Type"> Marker for end of type constants. </constant> </constants> diff --git a/doc/classes/ARVRInterface.xml b/doc/classes/ARVRInterface.xml index 00d799fe14..d00b5eeaf4 100644 --- a/doc/classes/ARVRInterface.xml +++ b/doc/classes/ARVRInterface.xml @@ -78,43 +78,43 @@ </member> </members> <constants> - <constant name="ARVR_NONE" value="0"> + <constant name="ARVR_NONE" value="0" enum="Capabilities"> No ARVR capabilities. </constant> - <constant name="ARVR_MONO" value="1"> + <constant name="ARVR_MONO" value="1" enum="Capabilities"> This interface can work with normal rendering output (non-HMD based AR). </constant> - <constant name="ARVR_STEREO" value="2"> + <constant name="ARVR_STEREO" value="2" enum="Capabilities"> This interface supports stereoscopic rendering. </constant> - <constant name="ARVR_AR" value="4"> + <constant name="ARVR_AR" value="4" enum="Capabilities"> This interface support AR (video background and real world tracking). </constant> - <constant name="ARVR_EXTERNAL" value="8"> + <constant name="ARVR_EXTERNAL" value="8" enum="Capabilities"> This interface outputs to an external device, if the main viewport is used the on screen output is an unmodified buffer of either the left or right eye (stretched if the viewport size is not changed to the same aspect ratio of get_render_targetsize. Using a seperate viewport node frees up the main viewport for other purposes. </constant> - <constant name="EYE_MONO" value="0"> + <constant name="EYE_MONO" value="0" enum="Eyes"> Mono output, this is mostly used internally when retrieving positioning information for our camera node or when stereo scopic rendering is not supported. </constant> - <constant name="EYE_LEFT" value="1"> + <constant name="EYE_LEFT" value="1" enum="Eyes"> Left eye output, this is mostly used internally when rendering the image for the left eye and obtaining positioning and projection information. </constant> - <constant name="EYE_RIGHT" value="2"> + <constant name="EYE_RIGHT" value="2" enum="Eyes"> Right eye output, this is mostly used internally when rendering the image for the right eye and obtaining positioning and projection information. </constant> - <constant name="ARVR_NORMAL_TRACKING" value="0"> + <constant name="ARVR_NORMAL_TRACKING" value="0" enum="Tracking_status"> Tracking is behaving as expected. </constant> - <constant name="ARVR_EXCESSIVE_MOTION" value="1"> + <constant name="ARVR_EXCESSIVE_MOTION" value="1" enum="Tracking_status"> Tracking is hindered by excessive motion, player is moving faster then tracking can keep up. </constant> - <constant name="ARVR_INSUFFICIENT_FEATURES" value="2"> + <constant name="ARVR_INSUFFICIENT_FEATURES" value="2" enum="Tracking_status"> Tracking is hindered by insufficient features, it's too dark (for camera based tracking), player is blocked, etc. </constant> - <constant name="ARVR_UNKNOWN_TRACKING" value="3"> + <constant name="ARVR_UNKNOWN_TRACKING" value="3" enum="Tracking_status"> We don't know the status of the tracking or this interface does not provide feedback. </constant> - <constant name="ARVR_NOT_TRACKING" value="4"> + <constant name="ARVR_NOT_TRACKING" value="4" enum="Tracking_status"> Tracking is not functional (camera not plugged in or obscured, lighthouses turned off, etc.) </constant> </constants> diff --git a/doc/classes/ARVRPositionalTracker.xml b/doc/classes/ARVRPositionalTracker.xml index aa329d56ab..f171e4fc5a 100644 --- a/doc/classes/ARVRPositionalTracker.xml +++ b/doc/classes/ARVRPositionalTracker.xml @@ -84,13 +84,13 @@ </member> </members> <constants> - <constant name="TRACKER_HAND_UNKNOWN" value="0"> + <constant name="TRACKER_HAND_UNKNOWN" value="0" enum="TrackerHand"> The hand this tracker is held in is unknown or not applicable. </constant> - <constant name="TRACKER_LEFT_HAND" value="1"> + <constant name="TRACKER_LEFT_HAND" value="1" enum="TrackerHand"> This tracker is the left hand controller. </constant> - <constant name="TRACKER_RIGHT_HAND" value="2"> + <constant name="TRACKER_RIGHT_HAND" value="2" enum="TrackerHand"> This tracker is the right hand controller. </constant> </constants> diff --git a/doc/classes/ARVRServer.xml b/doc/classes/ARVRServer.xml index 289a8c022e..17202c8c2c 100644 --- a/doc/classes/ARVRServer.xml +++ b/doc/classes/ARVRServer.xml @@ -136,22 +136,22 @@ </signal> </signals> <constants> - <constant name="TRACKER_CONTROLLER" value="1"> + <constant name="TRACKER_CONTROLLER" value="1" enum="TrackerType"> Our tracker tracks the location of a controller. </constant> - <constant name="TRACKER_BASESTATION" value="2"> + <constant name="TRACKER_BASESTATION" value="2" enum="TrackerType"> Our tracker tracks the location of a base station. </constant> - <constant name="TRACKER_ANCHOR" value="4"> + <constant name="TRACKER_ANCHOR" value="4" enum="TrackerType"> Our tracker tracks the location and size of an AR anchor. </constant> - <constant name="TRACKER_ANY_KNOWN" value="127"> + <constant name="TRACKER_ANY_KNOWN" value="127" enum="TrackerType"> Used internally to filter trackers of any known type. </constant> - <constant name="TRACKER_UNKNOWN" value="128"> + <constant name="TRACKER_UNKNOWN" value="128" enum="TrackerType"> Used internally if we haven't set the tracker type yet. </constant> - <constant name="TRACKER_ANY" value="255"> + <constant name="TRACKER_ANY" value="255" enum="TrackerType"> Used internally to select all trackers. </constant> </constants> diff --git a/doc/classes/Animation.xml b/doc/classes/Animation.xml index 9e466799cd..ac547d20b7 100644 --- a/doc/classes/Animation.xml +++ b/doc/classes/Animation.xml @@ -424,31 +424,31 @@ </method> </methods> <constants> - <constant name="TYPE_VALUE" value="0"> + <constant name="TYPE_VALUE" value="0" enum="TrackType"> Value tracks set values in node properties, but only those which can be Interpolated. </constant> - <constant name="TYPE_TRANSFORM" value="1"> + <constant name="TYPE_TRANSFORM" value="1" enum="TrackType"> Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are Interpolated. </constant> - <constant name="TYPE_METHOD" value="2"> + <constant name="TYPE_METHOD" value="2" enum="TrackType"> Method tracks call functions with given arguments per key. </constant> - <constant name="INTERPOLATION_NEAREST" value="0"> + <constant name="INTERPOLATION_NEAREST" value="0" enum="InterpolationType"> No interpolation (nearest value). </constant> - <constant name="INTERPOLATION_LINEAR" value="1"> + <constant name="INTERPOLATION_LINEAR" value="1" enum="InterpolationType"> Linear interpolation. </constant> - <constant name="INTERPOLATION_CUBIC" value="2"> + <constant name="INTERPOLATION_CUBIC" value="2" enum="InterpolationType"> Cubic interpolation. </constant> - <constant name="UPDATE_CONTINUOUS" value="0"> + <constant name="UPDATE_CONTINUOUS" value="0" enum="UpdateMode"> Update between keyframes. </constant> - <constant name="UPDATE_DISCRETE" value="1"> + <constant name="UPDATE_DISCRETE" value="1" enum="UpdateMode"> Update at the keyframes and hold the value. </constant> - <constant name="UPDATE_TRIGGER" value="2"> + <constant name="UPDATE_TRIGGER" value="2" enum="UpdateMode"> Update at the keyframes. </constant> </constants> diff --git a/doc/classes/AnimationPlayer.xml b/doc/classes/AnimationPlayer.xml index 3a7651d6ab..e724f24498 100644 --- a/doc/classes/AnimationPlayer.xml +++ b/doc/classes/AnimationPlayer.xml @@ -332,10 +332,10 @@ </signal> </signals> <constants> - <constant name="ANIMATION_PROCESS_PHYSICS" value="0"> + <constant name="ANIMATION_PROCESS_PHYSICS" value="0" enum="AnimationProcessMode"> Process animation during the physics process. This is especially useful when animating physics bodies. </constant> - <constant name="ANIMATION_PROCESS_IDLE" value="1"> + <constant name="ANIMATION_PROCESS_IDLE" value="1" enum="AnimationProcessMode"> Process animation during the idle process. </constant> </constants> diff --git a/doc/classes/AnimationTreePlayer.xml b/doc/classes/AnimationTreePlayer.xml index 584e289ec2..4fb33eb5a3 100644 --- a/doc/classes/AnimationTreePlayer.xml +++ b/doc/classes/AnimationTreePlayer.xml @@ -613,39 +613,39 @@ </member> </members> <constants> - <constant name="NODE_OUTPUT" value="0"> + <constant name="NODE_OUTPUT" value="0" enum="NodeType"> Output node. </constant> - <constant name="NODE_ANIMATION" value="1"> + <constant name="NODE_ANIMATION" value="1" enum="NodeType"> Animation node. </constant> - <constant name="NODE_ONESHOT" value="2"> + <constant name="NODE_ONESHOT" value="2" enum="NodeType"> OneShot node. </constant> - <constant name="NODE_MIX" value="3"> + <constant name="NODE_MIX" value="3" enum="NodeType"> Mix node. </constant> - <constant name="NODE_BLEND2" value="4"> + <constant name="NODE_BLEND2" value="4" enum="NodeType"> Blend2 node. </constant> - <constant name="NODE_BLEND3" value="5"> + <constant name="NODE_BLEND3" value="5" enum="NodeType"> Blend3 node. </constant> - <constant name="NODE_BLEND4" value="6"> + <constant name="NODE_BLEND4" value="6" enum="NodeType"> Blend4 node. </constant> - <constant name="NODE_TIMESCALE" value="7"> + <constant name="NODE_TIMESCALE" value="7" enum="NodeType"> TimeScale node. </constant> - <constant name="NODE_TIMESEEK" value="8"> + <constant name="NODE_TIMESEEK" value="8" enum="NodeType"> TimeSeek node. </constant> - <constant name="NODE_TRANSITION" value="9"> + <constant name="NODE_TRANSITION" value="9" enum="NodeType"> Transition node. </constant> - <constant name="ANIMATION_PROCESS_PHYSICS" value="0"> + <constant name="ANIMATION_PROCESS_PHYSICS" value="0" enum="AnimationProcessMode"> </constant> - <constant name="ANIMATION_PROCESS_IDLE" value="1"> + <constant name="ANIMATION_PROCESS_IDLE" value="1" enum="AnimationProcessMode"> </constant> </constants> </class> diff --git a/doc/classes/Area.xml b/doc/classes/Area.xml index cbb2d37a0d..f58aa3cc0a 100644 --- a/doc/classes/Area.xml +++ b/doc/classes/Area.xml @@ -219,19 +219,19 @@ </signal> </signals> <constants> - <constant name="SPACE_OVERRIDE_DISABLED" value="0"> + <constant name="SPACE_OVERRIDE_DISABLED" value="0" enum="SpaceOverride"> This area does not affect gravity/damping. </constant> - <constant name="SPACE_OVERRIDE_COMBINE" value="1"> + <constant name="SPACE_OVERRIDE_COMBINE" value="1" enum="SpaceOverride"> This area adds its gravity/damping values to whatever has been calculated so far (in [code]priority[/code] order). </constant> - <constant name="SPACE_OVERRIDE_COMBINE_REPLACE" value="2"> + <constant name="SPACE_OVERRIDE_COMBINE_REPLACE" value="2" enum="SpaceOverride"> This area adds its gravity/damping values to whatever has been calculated so far (in [code]priority[/code] order), ignoring any lower priority areas. </constant> - <constant name="SPACE_OVERRIDE_REPLACE" value="3"> + <constant name="SPACE_OVERRIDE_REPLACE" value="3" enum="SpaceOverride"> This area replaces any gravity/damping, even the defaults, ignoring any lower priority areas. </constant> - <constant name="SPACE_OVERRIDE_REPLACE_COMBINE" value="4"> + <constant name="SPACE_OVERRIDE_REPLACE_COMBINE" value="4" enum="SpaceOverride"> This area replaces any gravity/damping calculated so far (in [code]priority[/code] order), but keeps calculating the rest of the areas. </constant> </constants> diff --git a/doc/classes/Area2D.xml b/doc/classes/Area2D.xml index 964275c27d..6a3f0e7645 100644 --- a/doc/classes/Area2D.xml +++ b/doc/classes/Area2D.xml @@ -211,19 +211,19 @@ </signal> </signals> <constants> - <constant name="SPACE_OVERRIDE_DISABLED" value="0"> + <constant name="SPACE_OVERRIDE_DISABLED" value="0" enum="SpaceOverride"> This area does not affect gravity/damping. </constant> - <constant name="SPACE_OVERRIDE_COMBINE" value="1"> + <constant name="SPACE_OVERRIDE_COMBINE" value="1" enum="SpaceOverride"> This area adds its gravity/damping values to whatever has been calculated so far (in [code]priority[/code] order). </constant> - <constant name="SPACE_OVERRIDE_COMBINE_REPLACE" value="2"> + <constant name="SPACE_OVERRIDE_COMBINE_REPLACE" value="2" enum="SpaceOverride"> This area adds its gravity/damping values to whatever has been calculated so far (in [code]priority[/code] order), ignoring any lower priority areas. </constant> - <constant name="SPACE_OVERRIDE_REPLACE" value="3"> + <constant name="SPACE_OVERRIDE_REPLACE" value="3" enum="SpaceOverride"> This area replaces any gravity/damping, even the defaults, ignoring any lower priority areas. </constant> - <constant name="SPACE_OVERRIDE_REPLACE_COMBINE" value="4"> + <constant name="SPACE_OVERRIDE_REPLACE_COMBINE" value="4" enum="SpaceOverride"> This area replaces any gravity/damping calculated so far (in [code]priority[/code] order), but keeps calculating the rest of the areas. </constant> </constants> diff --git a/doc/classes/ArrayMesh.xml b/doc/classes/ArrayMesh.xml index b6098fff05..92c4fe2fe7 100644 --- a/doc/classes/ArrayMesh.xml +++ b/doc/classes/ArrayMesh.xml @@ -213,66 +213,66 @@ </method> </methods> <constants> - <constant name="NO_INDEX_ARRAY" value="-1" enum=""> + <constant name="NO_INDEX_ARRAY" value="-1"> Default value used for index_array_len when no indices are present. </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4" enum=""> + <constant name="ARRAY_WEIGHTS_SIZE" value="4"> Amount of weights/bone indices per vertex (always 4). </constant> - <constant name="ARRAY_VERTEX" value="0"> + <constant name="ARRAY_VERTEX" value="0" enum="ArrayType"> Vertex array (array of [Vector3] vertices). </constant> - <constant name="ARRAY_NORMAL" value="1"> + <constant name="ARRAY_NORMAL" value="1" enum="ArrayType"> Normal array (array of [Vector3] normals). </constant> - <constant name="ARRAY_TANGENT" value="2"> + <constant name="ARRAY_TANGENT" value="2" enum="ArrayType"> Tangent array, array of groups of 4 floats. first 3 floats determine the tangent, and the last the binormal direction as -1 or 1. </constant> - <constant name="ARRAY_COLOR" value="3"> + <constant name="ARRAY_COLOR" value="3" enum="ArrayType"> Vertex array (array of [Color] colors). </constant> - <constant name="ARRAY_TEX_UV" value="4"> + <constant name="ARRAY_TEX_UV" value="4" enum="ArrayType"> UV array (array of [Vector3] UVs or float array of groups of 2 floats (u,v)). </constant> - <constant name="ARRAY_TEX_UV2" value="5"> + <constant name="ARRAY_TEX_UV2" value="5" enum="ArrayType"> Second UV array (array of [Vector3] UVs or float array of groups of 2 floats (u,v)). </constant> - <constant name="ARRAY_BONES" value="6"> + <constant name="ARRAY_BONES" value="6" enum="ArrayType"> Array of bone indices, as a float array. Each element in groups of 4 floats. </constant> - <constant name="ARRAY_WEIGHTS" value="7"> + <constant name="ARRAY_WEIGHTS" value="7" enum="ArrayType"> Array of bone weights, as a float array. Each element in groups of 4 floats. </constant> - <constant name="ARRAY_INDEX" value="8"> + <constant name="ARRAY_INDEX" value="8" enum="ArrayType"> 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 name="ARRAY_MAX" value="9" enum="ArrayType"> </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> + <constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat"> Array format will include vertices (mandatory). </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> + <constant name="ARRAY_FORMAT_NORMAL" value="2" enum="ArrayFormat"> Array format will include normals </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> + <constant name="ARRAY_FORMAT_TANGENT" value="4" enum="ArrayFormat"> Array format will include tangents </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> + <constant name="ARRAY_FORMAT_COLOR" value="8" enum="ArrayFormat"> Array format will include a color array. </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> + <constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat"> Array format will include UVs. </constant> - <constant name="ARRAY_FORMAT_TEX_UV2" value="32"> + <constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat"> Array format will include another set of UVs. </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> + <constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat"> Array format will include bone indices. </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> + <constant name="ARRAY_FORMAT_WEIGHTS" value="128" enum="ArrayFormat"> Array format will include bone weights. </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> + <constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat"> Index array will be used. </constant> </constants> diff --git a/doc/classes/AudioEffectDistortion.xml b/doc/classes/AudioEffectDistortion.xml index 4df5e5fda4..fd77a91570 100644 --- a/doc/classes/AudioEffectDistortion.xml +++ b/doc/classes/AudioEffectDistortion.xml @@ -32,18 +32,18 @@ </member> </members> <constants> - <constant name="MODE_CLIP" value="0"> + <constant name="MODE_CLIP" value="0" enum="Mode"> Digital distortion effect which cuts off peaks at the top and bottom of the waveform. </constant> - <constant name="MODE_ATAN" value="1"> + <constant name="MODE_ATAN" value="1" enum="Mode"> </constant> - <constant name="MODE_LOFI" value="2"> + <constant name="MODE_LOFI" value="2" enum="Mode"> Low-resolution digital distortion effect. You can use it to emulate the sound of early digital audio devices. </constant> - <constant name="MODE_OVERDRIVE" value="3"> + <constant name="MODE_OVERDRIVE" value="3" enum="Mode"> Emulates the warm distortion produced by a field effect transistor, which is commonly used in solid-state musical instrument amplifiers. </constant> - <constant name="MODE_WAVESHAPE" value="4"> + <constant name="MODE_WAVESHAPE" value="4" enum="Mode"> Waveshaper distortions are used mainly by electronic musicians to achieve an extra-abrasive sound. </constant> </constants> diff --git a/doc/classes/AudioEffectFilter.xml b/doc/classes/AudioEffectFilter.xml index 3c3b23dc29..3e1848f314 100644 --- a/doc/classes/AudioEffectFilter.xml +++ b/doc/classes/AudioEffectFilter.xml @@ -26,13 +26,13 @@ </member> </members> <constants> - <constant name="FILTER_6DB" value="0"> + <constant name="FILTER_6DB" value="0" enum="FilterDB"> </constant> - <constant name="FILTER_12DB" value="1"> + <constant name="FILTER_12DB" value="1" enum="FilterDB"> </constant> - <constant name="FILTER_18DB" value="2"> + <constant name="FILTER_18DB" value="2" enum="FilterDB"> </constant> - <constant name="FILTER_24DB" value="3"> + <constant name="FILTER_24DB" value="3" enum="FilterDB"> </constant> </constants> </class> diff --git a/doc/classes/AudioServer.xml b/doc/classes/AudioServer.xml index 2531a8787a..1d861d5a4f 100644 --- a/doc/classes/AudioServer.xml +++ b/doc/classes/AudioServer.xml @@ -341,13 +341,13 @@ </signal> </signals> <constants> - <constant name="SPEAKER_MODE_STEREO" value="0"> + <constant name="SPEAKER_MODE_STEREO" value="0" enum="SpeakerMode"> Two or fewer speakers are detected. </constant> - <constant name="SPEAKER_SURROUND_51" value="2"> + <constant name="SPEAKER_SURROUND_51" value="2" enum="SpeakerMode"> A 5.1 channel surround setup detected. </constant> - <constant name="SPEAKER_SURROUND_71" value="3"> + <constant name="SPEAKER_SURROUND_71" value="3" enum="SpeakerMode"> A 7.1 channel surround setup detected. </constant> </constants> diff --git a/doc/classes/AudioStreamPlayer.xml b/doc/classes/AudioStreamPlayer.xml index 2020e25d33..032473113c 100644 --- a/doc/classes/AudioStreamPlayer.xml +++ b/doc/classes/AudioStreamPlayer.xml @@ -73,13 +73,13 @@ </signal> </signals> <constants> - <constant name="MIX_TARGET_STEREO" value="0"> + <constant name="MIX_TARGET_STEREO" value="0" enum="MixTarget"> The audio will be played only on the first channel. </constant> - <constant name="MIX_TARGET_SURROUND" value="1"> + <constant name="MIX_TARGET_SURROUND" value="1" enum="MixTarget"> The audio will be played on all surround channels. </constant> - <constant name="MIX_TARGET_CENTER" value="2"> + <constant name="MIX_TARGET_CENTER" value="2" enum="MixTarget"> The audio will be played on the second channel, which is usually the center. </constant> </constants> diff --git a/doc/classes/AudioStreamPlayer3D.xml b/doc/classes/AudioStreamPlayer3D.xml index 457f399de3..21edfd12d5 100644 --- a/doc/classes/AudioStreamPlayer3D.xml +++ b/doc/classes/AudioStreamPlayer3D.xml @@ -106,28 +106,28 @@ </signal> </signals> <constants> - <constant name="ATTENUATION_INVERSE_DISTANCE" value="0"> + <constant name="ATTENUATION_INVERSE_DISTANCE" value="0" enum="AttenuationModel"> Linear dampening of loudness according to distance. </constant> - <constant name="ATTENUATION_INVERSE_SQUARE_DISTANCE" value="1"> + <constant name="ATTENUATION_INVERSE_SQUARE_DISTANCE" value="1" enum="AttenuationModel"> Squared dampening of loudness according to distance. </constant> - <constant name="ATTENUATION_LOGARITHMIC" value="2"> + <constant name="ATTENUATION_LOGARITHMIC" value="2" enum="AttenuationModel"> Logarithmic dampening of loudness according to distance. </constant> - <constant name="OUT_OF_RANGE_MIX" value="0"> + <constant name="OUT_OF_RANGE_MIX" value="0" enum="OutOfRangeMode"> Mix this audio in, even when it's out of range. </constant> - <constant name="OUT_OF_RANGE_PAUSE" value="1"> + <constant name="OUT_OF_RANGE_PAUSE" value="1" enum="OutOfRangeMode"> Pause this audio when it gets out of range. </constant> - <constant name="DOPPLER_TRACKING_DISABLED" value="0"> + <constant name="DOPPLER_TRACKING_DISABLED" value="0" enum="DopplerTracking"> Disables doppler tracking. </constant> - <constant name="DOPPLER_TRACKING_IDLE_STEP" value="1"> + <constant name="DOPPLER_TRACKING_IDLE_STEP" value="1" enum="DopplerTracking"> Executes doppler tracking in idle step. </constant> - <constant name="DOPPLER_TRACKING_PHYSICS_STEP" value="2"> + <constant name="DOPPLER_TRACKING_PHYSICS_STEP" value="2" enum="DopplerTracking"> Executes doppler tracking in physics step. </constant> </constants> diff --git a/doc/classes/AudioStreamSample.xml b/doc/classes/AudioStreamSample.xml index 9bf8c18fdc..ac8cc7a445 100644 --- a/doc/classes/AudioStreamSample.xml +++ b/doc/classes/AudioStreamSample.xml @@ -36,22 +36,22 @@ </member> </members> <constants> - <constant name="FORMAT_8_BITS" value="0"> + <constant name="FORMAT_8_BITS" value="0" enum="Format"> Audio codec 8 bit. </constant> - <constant name="FORMAT_16_BITS" value="1"> + <constant name="FORMAT_16_BITS" value="1" enum="Format"> Audio codec 16 bit. </constant> - <constant name="FORMAT_IMA_ADPCM" value="2"> + <constant name="FORMAT_IMA_ADPCM" value="2" enum="Format"> Audio codec IMA ADPCM. </constant> - <constant name="LOOP_DISABLED" value="0"> + <constant name="LOOP_DISABLED" value="0" enum="LoopMode"> Audio does not loop. </constant> - <constant name="LOOP_FORWARD" value="1"> + <constant name="LOOP_FORWARD" value="1" enum="LoopMode"> Audio loops the data between loop_begin and loop_end playing forward only. </constant> - <constant name="LOOP_PING_PONG" value="2"> + <constant name="LOOP_PING_PONG" value="2" enum="LoopMode"> Audio loops the data between loop_begin and loop_end playing back and forth. </constant> </constants> diff --git a/doc/classes/BackBufferCopy.xml b/doc/classes/BackBufferCopy.xml index 794e8f3dad..122e0c7fae 100644 --- a/doc/classes/BackBufferCopy.xml +++ b/doc/classes/BackBufferCopy.xml @@ -21,13 +21,13 @@ </member> </members> <constants> - <constant name="COPY_MODE_DISABLED" value="0"> + <constant name="COPY_MODE_DISABLED" value="0" enum="CopyMode"> Disables the buffering mode. This means the BackBufferCopy node will directly use the portion of screen it covers. </constant> - <constant name="COPY_MODE_RECT" value="1"> + <constant name="COPY_MODE_RECT" value="1" enum="CopyMode"> BackBufferCopy buffers a rectangular region. </constant> - <constant name="COPY_MODE_VIEWPORT" value="2"> + <constant name="COPY_MODE_VIEWPORT" value="2" enum="CopyMode"> BackBufferCopy buffers the entire screen. </constant> </constants> diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 3df9f8dcba..7f1aaa6822 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -90,22 +90,22 @@ </signal> </signals> <constants> - <constant name="DRAW_NORMAL" value="0"> + <constant name="DRAW_NORMAL" value="0" enum="DrawMode"> The normal state (i.e. not pressed, not hovered, not toggled and enabled) of buttons. </constant> - <constant name="DRAW_PRESSED" value="1"> + <constant name="DRAW_PRESSED" value="1" enum="DrawMode"> The state of buttons are pressed. </constant> - <constant name="DRAW_HOVER" value="2"> + <constant name="DRAW_HOVER" value="2" enum="DrawMode"> The state of buttons are hovered. </constant> - <constant name="DRAW_DISABLED" value="3"> + <constant name="DRAW_DISABLED" value="3" enum="DrawMode"> The state of buttons are disabled. </constant> - <constant name="ACTION_MODE_BUTTON_PRESS" value="0"> + <constant name="ACTION_MODE_BUTTON_PRESS" value="0" enum="ActionMode"> Require just a press to consider the button clicked. </constant> - <constant name="ACTION_MODE_BUTTON_RELEASE" value="1"> + <constant name="ACTION_MODE_BUTTON_RELEASE" value="1" enum="ActionMode"> Require a press and a subsequent release before considering the button clicked. </constant> </constants> diff --git a/doc/classes/BoxContainer.xml b/doc/classes/BoxContainer.xml index 23f4a61fdb..7003158387 100644 --- a/doc/classes/BoxContainer.xml +++ b/doc/classes/BoxContainer.xml @@ -27,13 +27,13 @@ </member> </members> <constants> - <constant name="ALIGN_BEGIN" value="0"> + <constant name="ALIGN_BEGIN" value="0" enum="AlignMode"> Aligns children with the beginning of the container. </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="AlignMode"> Aligns children with the center of the container. </constant> - <constant name="ALIGN_END" value="2"> + <constant name="ALIGN_END" value="2" enum="AlignMode"> Aligns children with the end of the container. </constant> </constants> diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index b49e49326d..854f1cc7c3 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -30,13 +30,13 @@ </member> </members> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="TextAlign"> Align the text to the left. </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="TextAlign"> Align the text to the center. </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="TextAlign"> Align the text to the right. </constant> </constants> diff --git a/doc/classes/Camera.xml b/doc/classes/Camera.xml index 50b21a0eb7..5d6c13498c 100644 --- a/doc/classes/Camera.xml +++ b/doc/classes/Camera.xml @@ -249,25 +249,25 @@ </method> </methods> <constants> - <constant name="PROJECTION_PERSPECTIVE" value="0"> + <constant name="PROJECTION_PERSPECTIVE" value="0" enum="Projection"> Perspective Projection (object's size on the screen becomes smaller when far away). </constant> - <constant name="PROJECTION_ORTHOGONAL" value="1"> + <constant name="PROJECTION_ORTHOGONAL" value="1" enum="Projection"> Orthogonal Projection (objects remain the same size on the screen no matter how far away they are). </constant> - <constant name="KEEP_WIDTH" value="0"> + <constant name="KEEP_WIDTH" value="0" enum="KeepAspect"> Try to keep the aspect ratio when scaling the Camera's viewport to the screen. If not possible, preserve the viewport's width by changing the height. Height is [code]sizey[/code] for orthographic projection, [code]fovy[/code] for perspective projection. </constant> - <constant name="KEEP_HEIGHT" value="1"> + <constant name="KEEP_HEIGHT" value="1" enum="KeepAspect"> Try to keep the aspect ratio when scaling the Camera's viewport to the screen. If not possible, preserve the viewport's height by changing the width. Width is [code]sizex[/code] for orthographic projection, [code]fovx[/code] for perspective projection. </constant> - <constant name="DOPPLER_TRACKING_DISABLED" value="0"> + <constant name="DOPPLER_TRACKING_DISABLED" value="0" enum="DopplerTracking"> Disable Doppler effect simulation (default). </constant> - <constant name="DOPPLER_TRACKING_IDLE_STEP" value="1"> + <constant name="DOPPLER_TRACKING_IDLE_STEP" value="1" enum="DopplerTracking"> Simulate Doppler effect by tracking positions of objects that are changed in [code]_process[/code]. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]). </constant> - <constant name="DOPPLER_TRACKING_PHYSICS_STEP" value="2"> + <constant name="DOPPLER_TRACKING_PHYSICS_STEP" value="2" enum="DopplerTracking"> Simulate Doppler effect by tracking positions of objects that are changed in [code]_physics_process[/code]. Changes in the relative velocity of this Camera compared to those objects affect how Audio is perceived (changing the Audio's [code]pitch shift[/code]). </constant> </constants> diff --git a/doc/classes/Camera2D.xml b/doc/classes/Camera2D.xml index d058c5e806..86c89bf4ca 100644 --- a/doc/classes/Camera2D.xml +++ b/doc/classes/Camera2D.xml @@ -169,9 +169,9 @@ </member> </members> <constants> - <constant name="ANCHOR_MODE_FIXED_TOP_LEFT" value="0"> + <constant name="ANCHOR_MODE_FIXED_TOP_LEFT" value="0" enum="AnchorMode"> </constant> - <constant name="ANCHOR_MODE_DRAG_CENTER" value="1"> + <constant name="ANCHOR_MODE_DRAG_CENTER" value="1" enum="AnchorMode"> </constant> </constants> </class> diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index 0f2d3dc0f1..d1524074fd 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -477,34 +477,34 @@ </signal> </signals> <constants> - <constant name="BLEND_MODE_MIX" value="0"> + <constant name="BLEND_MODE_MIX" value="0" enum="BlendMode"> Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value. </constant> - <constant name="BLEND_MODE_ADD" value="1"> + <constant name="BLEND_MODE_ADD" value="1" enum="BlendMode"> Additive blending mode. </constant> - <constant name="BLEND_MODE_SUB" value="2"> + <constant name="BLEND_MODE_SUB" value="2" enum="BlendMode"> Subtractive blending mode. </constant> - <constant name="BLEND_MODE_MUL" value="3"> + <constant name="BLEND_MODE_MUL" value="3" enum="BlendMode"> Multiplicative blending mode. </constant> - <constant name="BLEND_MODE_PREMULT_ALPHA" value="4"> + <constant name="BLEND_MODE_PREMULT_ALPHA" value="4" enum="BlendMode"> Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value. </constant> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29" enum=""> + <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29"> Canvas item transform has changed. Only received if requested. </constant> - <constant name="NOTIFICATION_DRAW" value="30" enum=""> + <constant name="NOTIFICATION_DRAW" value="30"> CanvasItem is requested to draw. </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31" enum=""> + <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31"> Canvas item visibility has changed. </constant> - <constant name="NOTIFICATION_ENTER_CANVAS" value="32" enum=""> + <constant name="NOTIFICATION_ENTER_CANVAS" value="32"> Canvas item has entered the canvas. </constant> - <constant name="NOTIFICATION_EXIT_CANVAS" value="33" enum=""> + <constant name="NOTIFICATION_EXIT_CANVAS" value="33"> Canvas item has exited the canvas. </constant> </constants> diff --git a/doc/classes/CanvasItemMaterial.xml b/doc/classes/CanvasItemMaterial.xml index 0d9c4a9a24..b30261d5bf 100644 --- a/doc/classes/CanvasItemMaterial.xml +++ b/doc/classes/CanvasItemMaterial.xml @@ -17,21 +17,21 @@ </member> </members> <constants> - <constant name="BLEND_MODE_MIX" value="0"> + <constant name="BLEND_MODE_MIX" value="0" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_ADD" value="1"> + <constant name="BLEND_MODE_ADD" value="1" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_SUB" value="2"> + <constant name="BLEND_MODE_SUB" value="2" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_MUL" value="3"> + <constant name="BLEND_MODE_MUL" value="3" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_PREMULT_ALPHA" value="4"> + <constant name="BLEND_MODE_PREMULT_ALPHA" value="4" enum="BlendMode"> </constant> - <constant name="LIGHT_MODE_NORMAL" value="0"> + <constant name="LIGHT_MODE_NORMAL" value="0" enum="LightMode"> </constant> - <constant name="LIGHT_MODE_UNSHADED" value="1"> + <constant name="LIGHT_MODE_UNSHADED" value="1" enum="LightMode"> </constant> - <constant name="LIGHT_MODE_LIGHT_ONLY" value="2"> + <constant name="LIGHT_MODE_LIGHT_ONLY" value="2" enum="LightMode"> </constant> </constants> </class> diff --git a/doc/classes/CollisionPolygon2D.xml b/doc/classes/CollisionPolygon2D.xml index af5bdad2e1..995b868f89 100644 --- a/doc/classes/CollisionPolygon2D.xml +++ b/doc/classes/CollisionPolygon2D.xml @@ -27,10 +27,10 @@ </member> </members> <constants> - <constant name="BUILD_SOLIDS" value="0"> + <constant name="BUILD_SOLIDS" value="0" enum="BuildMode"> Collisions will include the polygon and its contained area. </constant> - <constant name="BUILD_SEGMENTS" value="1"> + <constant name="BUILD_SEGMENTS" value="1" enum="BuildMode"> Collisions will only include the polygon edges. </constant> </constants> diff --git a/doc/classes/ConeTwistJoint.xml b/doc/classes/ConeTwistJoint.xml index 3829357608..4fcacb6d46 100644 --- a/doc/classes/ConeTwistJoint.xml +++ b/doc/classes/ConeTwistJoint.xml @@ -37,27 +37,27 @@ </member> </members> <constants> - <constant name="PARAM_SWING_SPAN" value="0"> + <constant name="PARAM_SWING_SPAN" value="0" enum="Param"> Swing is rotation from side to side, around the axis perpendicular to the twist axis. The swing span defines, how much rotation will not get corrected allong the swing axis. Could be defined as looseness in the [code]ConeTwistJoint[/code]. If below 0.05, this behaviour is locked. Default value: [code]PI/4[/code]. </constant> - <constant name="PARAM_TWIST_SPAN" value="1"> + <constant name="PARAM_TWIST_SPAN" value="1" enum="Param"> Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05. </constant> - <constant name="PARAM_BIAS" value="2"> + <constant name="PARAM_BIAS" value="2" enum="Param"> The speed with which the swing or twist will take place. The higher, the faster. </constant> - <constant name="PARAM_SOFTNESS" value="3"> + <constant name="PARAM_SOFTNESS" value="3" enum="Param"> The ease with which the joint starts to twist. If it's too low, it takes more force to start twisting the joint. </constant> - <constant name="PARAM_RELAXATION" value="4"> + <constant name="PARAM_RELAXATION" value="4" enum="Param"> Defines, how fast the swing- and twist-speed-difference on both sides gets synced. </constant> - <constant name="PARAM_MAX" value="5"> + <constant name="PARAM_MAX" value="5" enum="Param"> End flag of PARAM_* constants, used internally. </constant> </constants> diff --git a/doc/classes/Container.xml b/doc/classes/Container.xml index 9abe09cd17..a2aa39414c 100644 --- a/doc/classes/Container.xml +++ b/doc/classes/Container.xml @@ -39,7 +39,7 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_SORT_CHILDREN" value="50" enum=""> + <constant name="NOTIFICATION_SORT_CHILDREN" value="50"> Notification for when sorting the children, it must be obeyed immediately. </constant> </constants> diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index 8e0ac2bfb3..6c30a92ed5 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -716,172 +716,172 @@ </signal> </signals> <constants> - <constant name="FOCUS_NONE" value="0"> + <constant name="FOCUS_NONE" value="0" enum="FocusMode"> The node cannot grab focus. Use with [member set_focus_mode]. </constant> - <constant name="FOCUS_CLICK" value="1"> + <constant name="FOCUS_CLICK" value="1" enum="FocusMode"> The node can only grab focus on mouse clicks. Use with [member set_focus_mode]. </constant> - <constant name="FOCUS_ALL" value="2"> + <constant name="FOCUS_ALL" value="2" enum="FocusMode"> The node can grab focus on mouse click or using the arrows and the Tab keys on the keyboard. Use with [member set_focus_mode]. </constant> - <constant name="NOTIFICATION_RESIZED" value="40" enum=""> + <constant name="NOTIFICATION_RESIZED" value="40"> Sent when the node changes size. Use [member rect_size] to get the new size. </constant> - <constant name="NOTIFICATION_MOUSE_ENTER" value="41" enum=""> + <constant name="NOTIFICATION_MOUSE_ENTER" value="41"> Sent when the mouse pointer enters the node's [code]Rect[/code] area. </constant> - <constant name="NOTIFICATION_MOUSE_EXIT" value="42" enum=""> + <constant name="NOTIFICATION_MOUSE_EXIT" value="42"> Sent when the mouse pointer exits the node's [code]Rect[/code] area. </constant> - <constant name="NOTIFICATION_FOCUS_ENTER" value="43" enum=""> + <constant name="NOTIFICATION_FOCUS_ENTER" value="43"> Sent when the node grabs focus. </constant> - <constant name="NOTIFICATION_FOCUS_EXIT" value="44" enum=""> + <constant name="NOTIFICATION_FOCUS_EXIT" value="44"> Sent when the node loses focus. </constant> - <constant name="NOTIFICATION_THEME_CHANGED" value="45" enum=""> + <constant name="NOTIFICATION_THEME_CHANGED" value="45"> Sent when the node's [member theme] changes, right before Godot redraws the [code]Control[/code]. Happens when you call one of the [code]add_*_override[/code] </constant> - <constant name="NOTIFICATION_MODAL_CLOSE" value="46" enum=""> + <constant name="NOTIFICATION_MODAL_CLOSE" value="46"> Sent when an open modal dialog closes. See [member show_modal]. </constant> - <constant name="CURSOR_ARROW" value="0"> + <constant name="CURSOR_ARROW" value="0" enum="CursorShape"> Show the system's arrow mouse cursor when the user hovers the node. Use with [method set_default_cursor_shape]. </constant> - <constant name="CURSOR_IBEAM" value="1"> + <constant name="CURSOR_IBEAM" value="1" enum="CursorShape"> Show the system's I-beam mouse cursor when the user hovers the node. The I-beam pointer has a shape similar to "I". It tells the user they can highlight or insert text. </constant> - <constant name="CURSOR_POINTING_HAND" value="2"> + <constant name="CURSOR_POINTING_HAND" value="2" enum="CursorShape"> Show the system's pointing hand mouse cursor when the user hovers the node. </constant> - <constant name="CURSOR_CROSS" value="3"> + <constant name="CURSOR_CROSS" value="3" enum="CursorShape"> Show the system's cross mouse cursor when the user hovers the node. </constant> - <constant name="CURSOR_WAIT" value="4"> + <constant name="CURSOR_WAIT" value="4" enum="CursorShape"> Show the system's wait mouse cursor, often an hourglass, when the user hovers the node. </constant> - <constant name="CURSOR_BUSY" value="5"> + <constant name="CURSOR_BUSY" value="5" enum="CursorShape"> Show the system's busy mouse cursor when the user hovers the node. Often an hourglass. </constant> - <constant name="CURSOR_DRAG" value="6"> + <constant name="CURSOR_DRAG" value="6" enum="CursorShape"> Show the system's drag mouse cursor, often a closed fist or a cross symbol, when the user hovers the node. It tells the user they're currently dragging an item, like a node in the Scene dock. </constant> - <constant name="CURSOR_CAN_DROP" value="7"> + <constant name="CURSOR_CAN_DROP" value="7" enum="CursorShape"> Show the system's drop mouse cursor when the user hovers the node. It can be an open hand. It tells the user they can drop an item they're currently grabbing, like a node in the Scene dock. </constant> - <constant name="CURSOR_FORBIDDEN" value="8"> + <constant name="CURSOR_FORBIDDEN" value="8" enum="CursorShape"> Show the system's forbidden mouse cursor when the user hovers the node. Often a crossed circle. </constant> - <constant name="CURSOR_VSIZE" value="9"> + <constant name="CURSOR_VSIZE" value="9" enum="CursorShape"> Show the system's vertical resize mouse cursor when the user hovers the node. A double headed vertical arrow. It tells the user they can resize the window or the panel vertically. </constant> - <constant name="CURSOR_HSIZE" value="10"> + <constant name="CURSOR_HSIZE" value="10" enum="CursorShape"> Show the system's horizontal resize mouse cursor when the user hovers the node. A double headed horizontal arrow. It tells the user they can resize the window or the panel horizontally. </constant> - <constant name="CURSOR_BDIAGSIZE" value="11"> + <constant name="CURSOR_BDIAGSIZE" value="11" enum="CursorShape"> Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double headed arrow that goes from the bottom left to the top right. It tells the user they can resize the window or the panel both horizontally and vertically. </constant> - <constant name="CURSOR_FDIAGSIZE" value="12"> + <constant name="CURSOR_FDIAGSIZE" value="12" enum="CursorShape"> Show the system's window resize mouse cursor when the user hovers the node. The cursor is a double headed arrow that goes from the top left to the bottom right, the opposite of [code]CURSOR_BDIAGSIZE[/code]. It tells the user they can resize the window or the panel both horizontally and vertically. </constant> - <constant name="CURSOR_MOVE" value="13"> + <constant name="CURSOR_MOVE" value="13" enum="CursorShape"> Show the system's move mouse cursor when the user hovers the node. It shows 2 double-headed arrows at a 90 degree angle. It tells the user they can move a UI element freely. </constant> - <constant name="CURSOR_VSPLIT" value="14"> + <constant name="CURSOR_VSPLIT" value="14" enum="CursorShape"> Show the system's vertical split mouse cursor when the user hovers the node. On Windows, it's the same as [code]CURSOR_VSIZE[/code]. </constant> - <constant name="CURSOR_HSPLIT" value="15"> + <constant name="CURSOR_HSPLIT" value="15" enum="CursorShape"> Show the system's horizontal split mouse cursor when the user hovers the node. On Windows, it's the same as [code]CURSOR_HSIZE[/code]. </constant> - <constant name="CURSOR_HELP" value="16"> + <constant name="CURSOR_HELP" value="16" enum="CursorShape"> Show the system's help mouse cursor when the user hovers the node, a question mark. </constant> - <constant name="PRESET_TOP_LEFT" value="0"> + <constant name="PRESET_TOP_LEFT" value="0" enum="LayoutPreset"> Snap all 4 anchors to the top-left of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_TOP_RIGHT" value="1"> + <constant name="PRESET_TOP_RIGHT" value="1" enum="LayoutPreset"> Snap all 4 anchors to the top-right of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_BOTTOM_LEFT" value="2"> + <constant name="PRESET_BOTTOM_LEFT" value="2" enum="LayoutPreset"> Snap all 4 anchors to the bottom-left of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_BOTTOM_RIGHT" value="3"> + <constant name="PRESET_BOTTOM_RIGHT" value="3" enum="LayoutPreset"> Snap all 4 anchors to the bottom-right of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_CENTER_LEFT" value="4"> + <constant name="PRESET_CENTER_LEFT" value="4" enum="LayoutPreset"> Snap all 4 anchors to the center of the left edge of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_CENTER_TOP" value="5"> + <constant name="PRESET_CENTER_TOP" value="5" enum="LayoutPreset"> Snap all 4 anchors to the center of the top edge of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_CENTER_RIGHT" value="6"> + <constant name="PRESET_CENTER_RIGHT" value="6" enum="LayoutPreset"> Snap all 4 anchors to the center of the right edge of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_CENTER_BOTTOM" value="7"> + <constant name="PRESET_CENTER_BOTTOM" value="7" enum="LayoutPreset"> Snap all 4 anchors to the center of the bottom edge of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_CENTER" value="8"> + <constant name="PRESET_CENTER" value="8" enum="LayoutPreset"> Snap all 4 anchors to the center of the parent container's bounds. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_LEFT_WIDE" value="9"> + <constant name="PRESET_LEFT_WIDE" value="9" enum="LayoutPreset"> Snap all 4 anchors to the left edge of the parent container. The left margin becomes relative to the left edge and the top margin relative to the top left corner of the node's parent. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_TOP_WIDE" value="10"> + <constant name="PRESET_TOP_WIDE" value="10" enum="LayoutPreset"> Snap all 4 anchors to the top edge of the parent container. The left margin becomes relative to the top left corner, the top margin relative to the top edge, and the right margin relative to the top right corner of the node's parent. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_RIGHT_WIDE" value="11"> + <constant name="PRESET_RIGHT_WIDE" value="11" enum="LayoutPreset"> Snap all 4 anchors to the right edge of the parent container. The right margin becomes relative to the right edge and the top margin relative to the top right corner of the node's parent. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_BOTTOM_WIDE" value="12"> + <constant name="PRESET_BOTTOM_WIDE" value="12" enum="LayoutPreset"> Snap all 4 anchors to the bottom edge of the parent container. The left margin becomes relative to the bottom left corner, the bottom margin relative to the bottom edge, and the right margin relative to the bottom right corner of the node's parent. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_VCENTER_WIDE" value="13"> + <constant name="PRESET_VCENTER_WIDE" value="13" enum="LayoutPreset"> Snap all 4 anchors to a vertical line that cuts the parent container in half. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_HCENTER_WIDE" value="14"> + <constant name="PRESET_HCENTER_WIDE" value="14" enum="LayoutPreset"> Snap all 4 anchors to a horizontal line that cuts the parent container in half. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_WIDE" value="15"> + <constant name="PRESET_WIDE" value="15" enum="LayoutPreset"> Snap all 4 anchors to the respective corners of the parent container. Set all 4 margins to 0 after you applied this preset and the [code]Control[/code] will fit its parent container. Use with [method set_anchors_preset]. </constant> - <constant name="PRESET_MODE_MINSIZE" value="0"> + <constant name="PRESET_MODE_MINSIZE" value="0" enum="LayoutPresetMode"> </constant> - <constant name="PRESET_MODE_KEEP_WIDTH" value="1"> + <constant name="PRESET_MODE_KEEP_WIDTH" value="1" enum="LayoutPresetMode"> </constant> - <constant name="PRESET_MODE_KEEP_HEIGHT" value="2"> + <constant name="PRESET_MODE_KEEP_HEIGHT" value="2" enum="LayoutPresetMode"> </constant> - <constant name="PRESET_MODE_KEEP_SIZE" value="3"> + <constant name="PRESET_MODE_KEEP_SIZE" value="3" enum="LayoutPresetMode"> </constant> - <constant name="SIZE_FILL" value="1"> + <constant name="SIZE_FILL" value="1" enum="SizeFlags"> Tells the parent [Container] to expand the bounds of this node to fill all the available space without pushing any other node. Use with [member size_flags_horizontal] and [member size_flags_vertical]. </constant> - <constant name="SIZE_EXPAND" value="2"> + <constant name="SIZE_EXPAND" value="2" enum="SizeFlags"> Tells the parent [Container] to let this node take all the available space on the axis you flag. If multiple neighboring nodes are set to expand, they'll share the space based on their stretch ratio. See [member size_flags_stretch_ratio]. Use with [member size_flags_horizontal] and [member size_flags_vertical]. </constant> - <constant name="SIZE_EXPAND_FILL" value="3"> + <constant name="SIZE_EXPAND_FILL" value="3" enum="SizeFlags"> Sets the node's size flags to both fill and expand. See the 2 constants above for more information. </constant> - <constant name="SIZE_SHRINK_CENTER" value="4"> + <constant name="SIZE_SHRINK_CENTER" value="4" enum="SizeFlags"> Tells the parent [Container] to center the node in itself. It centers the [code]Control[/code] based on its bounding box, so it doesn't work with the fill or expand size flags. Use with [member size_flags_horizontal] and [member size_flags_vertical]. </constant> - <constant name="SIZE_SHRINK_END" value="8"> + <constant name="SIZE_SHRINK_END" value="8" enum="SizeFlags"> Tells the parent [Container] to align the node with its end, either the bottom or the right edge. It doesn't work with the fill or expand size flags. Use with [member size_flags_horizontal] and [member size_flags_vertical]. </constant> - <constant name="MOUSE_FILTER_STOP" value="0"> + <constant name="MOUSE_FILTER_STOP" value="0" enum="MouseFilter"> </constant> - <constant name="MOUSE_FILTER_PASS" value="1"> + <constant name="MOUSE_FILTER_PASS" value="1" enum="MouseFilter"> </constant> - <constant name="MOUSE_FILTER_IGNORE" value="2"> + <constant name="MOUSE_FILTER_IGNORE" value="2" enum="MouseFilter"> </constant> - <constant name="GROW_DIRECTION_BEGIN" value="0"> + <constant name="GROW_DIRECTION_BEGIN" value="0" enum="GrowDirection"> </constant> - <constant name="GROW_DIRECTION_END" value="1"> + <constant name="GROW_DIRECTION_END" value="1" enum="GrowDirection"> </constant> - <constant name="ANCHOR_BEGIN" value="0"> + <constant name="ANCHOR_BEGIN" value="0" enum="Anchor"> Snaps one of the 4 anchor's sides to the origin of the node's [code]Rect[/code], in the top left. Use it with one of the [code]anchor_*[/code] member variables, like [member anchor_left]. To change all 4 anchors at once, use [method set_anchors_preset]. </constant> - <constant name="ANCHOR_END" value="1"> + <constant name="ANCHOR_END" value="1" enum="Anchor"> Snaps one of the 4 anchor's sides to the end of the node's [code]Rect[/code], in the bottom right. Use it with one of the [code]anchor_*[/code] member variables, like [member anchor_left]. To change all 4 anchors at once, use [method set_anchors_preset]. </constant> </constants> diff --git a/doc/classes/CubeMap.xml b/doc/classes/CubeMap.xml index 7cc28de9f7..a7857dba78 100644 --- a/doc/classes/CubeMap.xml +++ b/doc/classes/CubeMap.xml @@ -69,31 +69,31 @@ </member> </members> <constants> - <constant name="STORAGE_RAW" value="0"> + <constant name="STORAGE_RAW" value="0" enum="Storage"> </constant> - <constant name="STORAGE_COMPRESS_LOSSY" value="1"> + <constant name="STORAGE_COMPRESS_LOSSY" value="1" enum="Storage"> </constant> - <constant name="STORAGE_COMPRESS_LOSSLESS" value="2"> + <constant name="STORAGE_COMPRESS_LOSSLESS" value="2" enum="Storage"> </constant> - <constant name="SIDE_LEFT" value="0"> + <constant name="SIDE_LEFT" value="0" enum="Side"> </constant> - <constant name="SIDE_RIGHT" value="1"> + <constant name="SIDE_RIGHT" value="1" enum="Side"> </constant> - <constant name="SIDE_BOTTOM" value="2"> + <constant name="SIDE_BOTTOM" value="2" enum="Side"> </constant> - <constant name="SIDE_TOP" value="3"> + <constant name="SIDE_TOP" value="3" enum="Side"> </constant> - <constant name="SIDE_FRONT" value="4"> + <constant name="SIDE_FRONT" value="4" enum="Side"> </constant> - <constant name="SIDE_BACK" value="5"> + <constant name="SIDE_BACK" value="5" enum="Side"> </constant> - <constant name="FLAG_MIPMAPS" value="1"> + <constant name="FLAG_MIPMAPS" value="1" enum="Flags"> </constant> - <constant name="FLAG_REPEAT" value="2"> + <constant name="FLAG_REPEAT" value="2" enum="Flags"> </constant> - <constant name="FLAG_FILTER" value="4"> + <constant name="FLAG_FILTER" value="4" enum="Flags"> </constant> - <constant name="FLAGS_DEFAULT" value="7"> + <constant name="FLAGS_DEFAULT" value="7" enum="Flags"> </constant> </constants> </class> diff --git a/doc/classes/Curve.xml b/doc/classes/Curve.xml index 1905584f58..4c9ced63c8 100644 --- a/doc/classes/Curve.xml +++ b/doc/classes/Curve.xml @@ -185,11 +185,11 @@ </signal> </signals> <constants> - <constant name="TANGENT_FREE" value="0"> + <constant name="TANGENT_FREE" value="0" enum="TangentMode"> </constant> - <constant name="TANGENT_LINEAR" value="1"> + <constant name="TANGENT_LINEAR" value="1" enum="TangentMode"> </constant> - <constant name="TANGENT_MODE_COUNT" value="2"> + <constant name="TANGENT_MODE_COUNT" value="2" enum="TangentMode"> </constant> </constants> </class> diff --git a/doc/classes/DirectionalLight.xml b/doc/classes/DirectionalLight.xml index 4814341c16..287c98e715 100644 --- a/doc/classes/DirectionalLight.xml +++ b/doc/classes/DirectionalLight.xml @@ -33,15 +33,15 @@ </member> </members> <constants> - <constant name="SHADOW_ORTHOGONAL" value="0"> + <constant name="SHADOW_ORTHOGONAL" value="0" enum="ShadowMode"> </constant> - <constant name="SHADOW_PARALLEL_2_SPLITS" value="1"> + <constant name="SHADOW_PARALLEL_2_SPLITS" value="1" enum="ShadowMode"> </constant> - <constant name="SHADOW_PARALLEL_4_SPLITS" value="2"> + <constant name="SHADOW_PARALLEL_4_SPLITS" value="2" enum="ShadowMode"> </constant> - <constant name="SHADOW_DEPTH_RANGE_STABLE" value="0"> + <constant name="SHADOW_DEPTH_RANGE_STABLE" value="0" enum="ShadowDepthRange"> </constant> - <constant name="SHADOW_DEPTH_RANGE_OPTIMIZED" value="1"> + <constant name="SHADOW_DEPTH_RANGE_OPTIMIZED" value="1" enum="ShadowDepthRange"> </constant> </constants> </class> diff --git a/doc/classes/DynamicFont.xml b/doc/classes/DynamicFont.xml index e1be28d07c..eae7a1b02b 100644 --- a/doc/classes/DynamicFont.xml +++ b/doc/classes/DynamicFont.xml @@ -84,16 +84,16 @@ </member> </members> <constants> - <constant name="SPACING_TOP" value="0"> + <constant name="SPACING_TOP" value="0" enum="SpacingType"> Spacing at the top. </constant> - <constant name="SPACING_BOTTOM" value="1"> + <constant name="SPACING_BOTTOM" value="1" enum="SpacingType"> Spacing at the bottom. </constant> - <constant name="SPACING_CHAR" value="2"> + <constant name="SPACING_CHAR" value="2" enum="SpacingType"> Character spacing. </constant> - <constant name="SPACING_SPACE" value="3"> + <constant name="SPACING_SPACE" value="3" enum="SpacingType"> Space spacing. </constant> </constants> diff --git a/doc/classes/EditorFileDialog.xml b/doc/classes/EditorFileDialog.xml index 8809469959..e893d92840 100644 --- a/doc/classes/EditorFileDialog.xml +++ b/doc/classes/EditorFileDialog.xml @@ -169,25 +169,25 @@ </signal> </signals> <constants> - <constant name="MODE_OPEN_FILE" value="0"> + <constant name="MODE_OPEN_FILE" value="0" enum="Mode"> </constant> - <constant name="MODE_OPEN_FILES" value="1"> + <constant name="MODE_OPEN_FILES" value="1" enum="Mode"> </constant> - <constant name="MODE_OPEN_DIR" value="2"> + <constant name="MODE_OPEN_DIR" value="2" enum="Mode"> </constant> - <constant name="MODE_OPEN_ANY" value="3"> + <constant name="MODE_OPEN_ANY" value="3" enum="Mode"> </constant> - <constant name="MODE_SAVE_FILE" value="4"> + <constant name="MODE_SAVE_FILE" value="4" enum="Mode"> </constant> - <constant name="ACCESS_RESOURCES" value="0"> + <constant name="ACCESS_RESOURCES" value="0" enum="Access"> </constant> - <constant name="ACCESS_USERDATA" value="1"> + <constant name="ACCESS_USERDATA" value="1" enum="Access"> </constant> - <constant name="ACCESS_FILESYSTEM" value="2"> + <constant name="ACCESS_FILESYSTEM" value="2" enum="Access"> </constant> - <constant name="DISPLAY_THUMBNAILS" value="0"> + <constant name="DISPLAY_THUMBNAILS" value="0" enum="DisplayMode"> </constant> - <constant name="DISPLAY_LIST" value="1"> + <constant name="DISPLAY_LIST" value="1" enum="DisplayMode"> </constant> </constants> </class> diff --git a/doc/classes/EditorPlugin.xml b/doc/classes/EditorPlugin.xml index 8dd7adad8f..50f36c2c87 100644 --- a/doc/classes/EditorPlugin.xml +++ b/doc/classes/EditorPlugin.xml @@ -354,39 +354,39 @@ </signal> </signals> <constants> - <constant name="CONTAINER_TOOLBAR" value="0"> + <constant name="CONTAINER_TOOLBAR" value="0" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_SPATIAL_EDITOR_MENU" value="1"> + <constant name="CONTAINER_SPATIAL_EDITOR_MENU" value="1" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_SPATIAL_EDITOR_SIDE" value="2"> + <constant name="CONTAINER_SPATIAL_EDITOR_SIDE" value="2" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_SPATIAL_EDITOR_BOTTOM" value="3"> + <constant name="CONTAINER_SPATIAL_EDITOR_BOTTOM" value="3" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_CANVAS_EDITOR_MENU" value="4"> + <constant name="CONTAINER_CANVAS_EDITOR_MENU" value="4" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_CANVAS_EDITOR_SIDE" value="5"> + <constant name="CONTAINER_CANVAS_EDITOR_SIDE" value="5" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_CANVAS_EDITOR_BOTTOM" value="6"> + <constant name="CONTAINER_CANVAS_EDITOR_BOTTOM" value="6" enum="CustomControlContainer"> </constant> - <constant name="CONTAINER_PROPERTY_EDITOR_BOTTOM" value="7"> + <constant name="CONTAINER_PROPERTY_EDITOR_BOTTOM" value="7" enum="CustomControlContainer"> </constant> - <constant name="DOCK_SLOT_LEFT_UL" value="0"> + <constant name="DOCK_SLOT_LEFT_UL" value="0" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_LEFT_BL" value="1"> + <constant name="DOCK_SLOT_LEFT_BL" value="1" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_LEFT_UR" value="2"> + <constant name="DOCK_SLOT_LEFT_UR" value="2" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_LEFT_BR" value="3"> + <constant name="DOCK_SLOT_LEFT_BR" value="3" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_RIGHT_UL" value="4"> + <constant name="DOCK_SLOT_RIGHT_UL" value="4" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_RIGHT_BL" value="5"> + <constant name="DOCK_SLOT_RIGHT_BL" value="5" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_RIGHT_UR" value="6"> + <constant name="DOCK_SLOT_RIGHT_UR" value="6" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_RIGHT_BR" value="7"> + <constant name="DOCK_SLOT_RIGHT_BR" value="7" enum="DockSlot"> </constant> - <constant name="DOCK_SLOT_MAX" value="8"> + <constant name="DOCK_SLOT_MAX" value="8" enum="DockSlot"> </constant> </constants> </class> diff --git a/doc/classes/Environment.xml b/doc/classes/Environment.xml index 7931b4b22e..e252f67774 100644 --- a/doc/classes/Environment.xml +++ b/doc/classes/Environment.xml @@ -233,73 +233,73 @@ </member> </members> <constants> - <constant name="BG_KEEP" value="5"> + <constant name="BG_KEEP" value="5" enum="BGMode"> Keep on screen every pixel drawn in the background. </constant> - <constant name="BG_CLEAR_COLOR" value="0"> + <constant name="BG_CLEAR_COLOR" value="0" enum="BGMode"> Clear the background using the project's clear color. </constant> - <constant name="BG_COLOR" value="1"> + <constant name="BG_COLOR" value="1" enum="BGMode"> Clear the background using a custom clear color. </constant> - <constant name="BG_SKY" value="2"> + <constant name="BG_SKY" value="2" enum="BGMode"> Display a user-defined sky in the background. </constant> - <constant name="BG_COLOR_SKY" value="3"> + <constant name="BG_COLOR_SKY" value="3" enum="BGMode"> Clear the background using a custom clear color and allows defining a sky for shading and reflection. </constant> - <constant name="BG_CANVAS" value="4"> + <constant name="BG_CANVAS" value="4" enum="BGMode"> Display a [CanvasLayer] in the background. </constant> - <constant name="BG_MAX" value="6"> + <constant name="BG_MAX" value="6" enum="BGMode"> Helper constant keeping track of the enum's size, has no direct usage in API calls. </constant> - <constant name="GLOW_BLEND_MODE_ADDITIVE" value="0"> + <constant name="GLOW_BLEND_MODE_ADDITIVE" value="0" enum="GlowBlendMode"> Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources. </constant> - <constant name="GLOW_BLEND_MODE_SCREEN" value="1"> + <constant name="GLOW_BLEND_MODE_SCREEN" value="1" enum="GlowBlendMode"> Screen glow blending mode. Increases brightness, used frequently with bloom. </constant> - <constant name="GLOW_BLEND_MODE_SOFTLIGHT" value="2"> + <constant name="GLOW_BLEND_MODE_SOFTLIGHT" value="2" enum="GlowBlendMode"> Softlight glow blending mode. Modifies contrast, exposes shadows and highlights, vivid bloom. </constant> - <constant name="GLOW_BLEND_MODE_REPLACE" value="3"> + <constant name="GLOW_BLEND_MODE_REPLACE" value="3" enum="GlowBlendMode"> Replace glow blending mode. Replaces all pixels' color by the glow value. </constant> - <constant name="TONE_MAPPER_LINEAR" value="0"> + <constant name="TONE_MAPPER_LINEAR" value="0" enum="ToneMapper"> Linear tonemapper operator. Reads the linear data and performs an exposure adjustment. </constant> - <constant name="TONE_MAPPER_REINHARDT" value="1"> + <constant name="TONE_MAPPER_REINHARDT" value="1" enum="ToneMapper"> Reinhardt tonemapper operator. Performs a variation on rendered pixels' colors by this formula: color = color / (1 + color). </constant> - <constant name="TONE_MAPPER_FILMIC" value="2"> + <constant name="TONE_MAPPER_FILMIC" value="2" enum="ToneMapper"> Filmic tonemapper operator. </constant> - <constant name="TONE_MAPPER_ACES" value="3"> + <constant name="TONE_MAPPER_ACES" value="3" enum="ToneMapper"> Academy Color Encoding System tonemapper operator. </constant> - <constant name="DOF_BLUR_QUALITY_LOW" value="0"> + <constant name="DOF_BLUR_QUALITY_LOW" value="0" enum="DOFBlurQuality"> Low depth-of-field blur quality. </constant> - <constant name="DOF_BLUR_QUALITY_MEDIUM" value="1"> + <constant name="DOF_BLUR_QUALITY_MEDIUM" value="1" enum="DOFBlurQuality"> Medium depth-of-field blur quality. </constant> - <constant name="DOF_BLUR_QUALITY_HIGH" value="2"> + <constant name="DOF_BLUR_QUALITY_HIGH" value="2" enum="DOFBlurQuality"> High depth-of-field blur quality. </constant> - <constant name="SSAO_BLUR_DISABLED" value="0"> + <constant name="SSAO_BLUR_DISABLED" value="0" enum="SSAOBlur"> </constant> - <constant name="SSAO_BLUR_1x1" value="1"> + <constant name="SSAO_BLUR_1x1" value="1" enum="SSAOBlur"> </constant> - <constant name="SSAO_BLUR_2x2" value="2"> + <constant name="SSAO_BLUR_2x2" value="2" enum="SSAOBlur"> </constant> - <constant name="SSAO_BLUR_3x3" value="3"> + <constant name="SSAO_BLUR_3x3" value="3" enum="SSAOBlur"> </constant> - <constant name="SSAO_QUALITY_LOW" value="0"> + <constant name="SSAO_QUALITY_LOW" value="0" enum="SSAOQuality"> </constant> - <constant name="SSAO_QUALITY_MEDIUM" value="1"> + <constant name="SSAO_QUALITY_MEDIUM" value="1" enum="SSAOQuality"> </constant> - <constant name="SSAO_QUALITY_HIGH" value="2"> + <constant name="SSAO_QUALITY_HIGH" value="2" enum="SSAOQuality"> </constant> </constants> </class> diff --git a/doc/classes/File.xml b/doc/classes/File.xml index d26ae84467..8c270ece4b 100644 --- a/doc/classes/File.xml +++ b/doc/classes/File.xml @@ -394,28 +394,28 @@ </method> </methods> <constants> - <constant name="READ" value="1"> + <constant name="READ" value="1" enum="ModeFlags"> Opens the file for read operations. </constant> - <constant name="WRITE" value="2"> + <constant name="WRITE" value="2" enum="ModeFlags"> Opens the file for write operations. Create it if the file does not exist and truncate if it exists. </constant> - <constant name="READ_WRITE" value="3"> + <constant name="READ_WRITE" value="3" enum="ModeFlags"> Opens the file for read and write operations. Does not truncate the file. </constant> - <constant name="WRITE_READ" value="7"> + <constant name="WRITE_READ" value="7" enum="ModeFlags"> Opens the file for read and write operations. Create it if the file does not exist and truncate if it exists. </constant> - <constant name="COMPRESSION_FASTLZ" value="0"> + <constant name="COMPRESSION_FASTLZ" value="0" enum="CompressionMode"> Uses the FastLZ compression method. </constant> - <constant name="COMPRESSION_DEFLATE" value="1"> + <constant name="COMPRESSION_DEFLATE" value="1" enum="CompressionMode"> Uses the Deflate compression method. </constant> - <constant name="COMPRESSION_ZSTD" value="2"> + <constant name="COMPRESSION_ZSTD" value="2" enum="CompressionMode"> Uses the Zstd compression method. </constant> - <constant name="COMPRESSION_GZIP" value="3"> + <constant name="COMPRESSION_GZIP" value="3" enum="CompressionMode"> Uses the gzip compression method. </constant> </constants> diff --git a/doc/classes/FileDialog.xml b/doc/classes/FileDialog.xml index 60ec415afe..7f6fc13758 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -124,28 +124,28 @@ </signal> </signals> <constants> - <constant name="MODE_OPEN_FILE" value="0"> + <constant name="MODE_OPEN_FILE" value="0" enum="Mode"> The dialog allows the selection of one, and only one file. </constant> - <constant name="MODE_OPEN_FILES" value="1"> + <constant name="MODE_OPEN_FILES" value="1" enum="Mode"> The dialog allows the selection of multiple files. </constant> - <constant name="MODE_OPEN_DIR" value="2"> + <constant name="MODE_OPEN_DIR" value="2" enum="Mode"> The dialog functions as a folder selector, disallowing the selection of any file. </constant> - <constant name="MODE_OPEN_ANY" value="3"> + <constant name="MODE_OPEN_ANY" value="3" enum="Mode"> The dialog allows the selection of a file or a directory. </constant> - <constant name="MODE_SAVE_FILE" value="4"> + <constant name="MODE_SAVE_FILE" value="4" enum="Mode"> The dialog will warn when a file exists. </constant> - <constant name="ACCESS_RESOURCES" value="0"> + <constant name="ACCESS_RESOURCES" value="0" enum="Access"> The dialog allows the selection of file and directory. </constant> - <constant name="ACCESS_USERDATA" value="1"> + <constant name="ACCESS_USERDATA" value="1" enum="Access"> The dialog allows access files under [Resource] path(res://) . </constant> - <constant name="ACCESS_FILESYSTEM" value="2"> + <constant name="ACCESS_FILESYSTEM" value="2" enum="Access"> The dialog allows access files in whole file system. </constant> </constants> diff --git a/doc/classes/GIProbe.xml b/doc/classes/GIProbe.xml index 513e5a5624..0644e3f24e 100644 --- a/doc/classes/GIProbe.xml +++ b/doc/classes/GIProbe.xml @@ -49,15 +49,15 @@ </member> </members> <constants> - <constant name="SUBDIV_64" value="0"> + <constant name="SUBDIV_64" value="0" enum="Subdiv"> </constant> - <constant name="SUBDIV_128" value="1"> + <constant name="SUBDIV_128" value="1" enum="Subdiv"> </constant> - <constant name="SUBDIV_256" value="2"> + <constant name="SUBDIV_256" value="2" enum="Subdiv"> </constant> - <constant name="SUBDIV_512" value="3"> + <constant name="SUBDIV_512" value="3" enum="Subdiv"> </constant> - <constant name="SUBDIV_MAX" value="4"> + <constant name="SUBDIV_MAX" value="4" enum="Subdiv"> </constant> </constants> </class> diff --git a/doc/classes/Generic6DOFJoint.xml b/doc/classes/Generic6DOFJoint.xml index a00168e9ef..e44ae867d4 100644 --- a/doc/classes/Generic6DOFJoint.xml +++ b/doc/classes/Generic6DOFJoint.xml @@ -169,61 +169,61 @@ </member> </members> <constants> - <constant name="PARAM_LINEAR_LOWER_LIMIT" value="0"> + <constant name="PARAM_LINEAR_LOWER_LIMIT" value="0" enum="Param"> The minimum difference between the pivot points' axes. </constant> - <constant name="PARAM_LINEAR_UPPER_LIMIT" value="1"> + <constant name="PARAM_LINEAR_UPPER_LIMIT" value="1" enum="Param"> The maximum difference between the pivot points' axes. </constant> - <constant name="PARAM_LINEAR_LIMIT_SOFTNESS" value="2"> + <constant name="PARAM_LINEAR_LIMIT_SOFTNESS" value="2" enum="Param"> A factor applied to the movement across the axes The lower, the slower the movement. </constant> - <constant name="PARAM_LINEAR_RESTITUTION" value="3"> + <constant name="PARAM_LINEAR_RESTITUTION" value="3" enum="Param"> The amount of restitution on the axes movement The lower, the more momentum gets lost. </constant> - <constant name="PARAM_LINEAR_DAMPING" value="4"> + <constant name="PARAM_LINEAR_DAMPING" value="4" enum="Param"> The amount of damping that happens at the linear motion across the axes. </constant> - <constant name="PARAM_ANGULAR_LOWER_LIMIT" value="5"> + <constant name="PARAM_ANGULAR_LOWER_LIMIT" value="5" enum="Param"> The minimum rotation in negative direction to break loose and rotate arround the axes. </constant> - <constant name="PARAM_ANGULAR_UPPER_LIMIT" value="6"> + <constant name="PARAM_ANGULAR_UPPER_LIMIT" value="6" enum="Param"> The minimum rotation in positive direction to break loose and rotate arround the axes. </constant> - <constant name="PARAM_ANGULAR_LIMIT_SOFTNESS" value="7"> + <constant name="PARAM_ANGULAR_LIMIT_SOFTNESS" value="7" enum="Param"> The speed of all rotations across the axes. </constant> - <constant name="PARAM_ANGULAR_DAMPING" value="8"> + <constant name="PARAM_ANGULAR_DAMPING" value="8" enum="Param"> The amount of rotational damping across the axes. The lower, the more dampening occurs. </constant> - <constant name="PARAM_ANGULAR_RESTITUTION" value="9"> + <constant name="PARAM_ANGULAR_RESTITUTION" value="9" enum="Param"> The amount of rotational restitution across the axes. The lower, the more restitution occurs. </constant> - <constant name="PARAM_ANGULAR_FORCE_LIMIT" value="10"> + <constant name="PARAM_ANGULAR_FORCE_LIMIT" value="10" enum="Param"> The maximum amount of force that can occur, when rotating arround the axes. </constant> - <constant name="PARAM_ANGULAR_ERP" value="11"> + <constant name="PARAM_ANGULAR_ERP" value="11" enum="Param"> When rotating across the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower. </constant> - <constant name="PARAM_ANGULAR_MOTOR_TARGET_VELOCITY" value="12"> + <constant name="PARAM_ANGULAR_MOTOR_TARGET_VELOCITY" value="12" enum="Param"> Target speed for the motor at the axes. </constant> - <constant name="PARAM_ANGULAR_MOTOR_FORCE_LIMIT" value="13"> + <constant name="PARAM_ANGULAR_MOTOR_FORCE_LIMIT" value="13" enum="Param"> Maximum acceleration for the motor at the axes. </constant> - <constant name="PARAM_MAX" value="14"> + <constant name="PARAM_MAX" value="14" enum="Param"> End flag of PARAM_* constants, used internally. </constant> - <constant name="FLAG_ENABLE_LINEAR_LIMIT" value="0"> + <constant name="FLAG_ENABLE_LINEAR_LIMIT" value="0" enum="Flag"> If [code]set[/code] there is linear motion possible within the given limits. </constant> - <constant name="FLAG_ENABLE_ANGULAR_LIMIT" value="1"> + <constant name="FLAG_ENABLE_ANGULAR_LIMIT" value="1" enum="Flag"> If [code]set[/code] there is rotational motion possible. </constant> - <constant name="FLAG_ENABLE_MOTOR" value="2"> + <constant name="FLAG_ENABLE_MOTOR" value="2" enum="Flag"> If [code]set[/code] there is a rotational motor across these axes. </constant> - <constant name="FLAG_MAX" value="3"> + <constant name="FLAG_MAX" value="3" enum="Flag"> End flag of FLAG_* constants, used internally. </constant> </constants> diff --git a/doc/classes/GeometryInstance.xml b/doc/classes/GeometryInstance.xml index 89f0779e9b..93db093c8b 100644 --- a/doc/classes/GeometryInstance.xml +++ b/doc/classes/GeometryInstance.xml @@ -31,17 +31,17 @@ </member> </members> <constants> - <constant name="SHADOW_CASTING_SETTING_OFF" value="0"> + <constant name="SHADOW_CASTING_SETTING_OFF" value="0" enum="ShadowCastingSetting"> </constant> - <constant name="SHADOW_CASTING_SETTING_ON" value="1"> + <constant name="SHADOW_CASTING_SETTING_ON" value="1" enum="ShadowCastingSetting"> </constant> - <constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2"> + <constant name="SHADOW_CASTING_SETTING_DOUBLE_SIDED" value="2" enum="ShadowCastingSetting"> </constant> - <constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3"> + <constant name="SHADOW_CASTING_SETTING_SHADOWS_ONLY" value="3" enum="ShadowCastingSetting"> </constant> - <constant name="FLAG_USE_BAKED_LIGHT" value="0"> + <constant name="FLAG_USE_BAKED_LIGHT" value="0" enum="Flags"> </constant> - <constant name="FLAG_MAX" value="1"> + <constant name="FLAG_MAX" value="1" enum="Flags"> </constant> </constants> </class> diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml index a484403e28..c1b18e4cd8 100644 --- a/doc/classes/GraphNode.xml +++ b/doc/classes/GraphNode.xml @@ -273,11 +273,11 @@ </signal> </signals> <constants> - <constant name="OVERLAY_DISABLED" value="0"> + <constant name="OVERLAY_DISABLED" value="0" enum="Overlay"> </constant> - <constant name="OVERLAY_BREAKPOINT" value="1"> + <constant name="OVERLAY_BREAKPOINT" value="1" enum="Overlay"> </constant> - <constant name="OVERLAY_POSITION" value="2"> + <constant name="OVERLAY_POSITION" value="2" enum="Overlay"> </constant> </constants> <theme_items> diff --git a/doc/classes/HTTPClient.xml b/doc/classes/HTTPClient.xml index 024aae5c2b..b1526b64c5 100644 --- a/doc/classes/HTTPClient.xml +++ b/doc/classes/HTTPClient.xml @@ -198,141 +198,141 @@ </method> </methods> <constants> - <constant name="METHOD_GET" value="0"> + <constant name="METHOD_GET" value="0" enum="Method"> </constant> - <constant name="METHOD_HEAD" value="1"> + <constant name="METHOD_HEAD" value="1" enum="Method"> </constant> - <constant name="METHOD_POST" value="2"> + <constant name="METHOD_POST" value="2" enum="Method"> </constant> - <constant name="METHOD_PUT" value="3"> + <constant name="METHOD_PUT" value="3" enum="Method"> </constant> - <constant name="METHOD_DELETE" value="4"> + <constant name="METHOD_DELETE" value="4" enum="Method"> </constant> - <constant name="METHOD_OPTIONS" value="5"> + <constant name="METHOD_OPTIONS" value="5" enum="Method"> </constant> - <constant name="METHOD_TRACE" value="6"> + <constant name="METHOD_TRACE" value="6" enum="Method"> </constant> - <constant name="METHOD_CONNECT" value="7"> + <constant name="METHOD_CONNECT" value="7" enum="Method"> </constant> - <constant name="METHOD_MAX" value="8"> + <constant name="METHOD_MAX" value="8" enum="Method"> </constant> - <constant name="STATUS_DISCONNECTED" value="0"> + <constant name="STATUS_DISCONNECTED" value="0" enum="Status"> </constant> - <constant name="STATUS_RESOLVING" value="1"> + <constant name="STATUS_RESOLVING" value="1" enum="Status"> </constant> - <constant name="STATUS_CANT_RESOLVE" value="2"> + <constant name="STATUS_CANT_RESOLVE" value="2" enum="Status"> </constant> - <constant name="STATUS_CONNECTING" value="3"> + <constant name="STATUS_CONNECTING" value="3" enum="Status"> </constant> - <constant name="STATUS_CANT_CONNECT" value="4"> + <constant name="STATUS_CANT_CONNECT" value="4" enum="Status"> </constant> - <constant name="STATUS_CONNECTED" value="5"> + <constant name="STATUS_CONNECTED" value="5" enum="Status"> </constant> - <constant name="STATUS_REQUESTING" value="6"> + <constant name="STATUS_REQUESTING" value="6" enum="Status"> </constant> - <constant name="STATUS_BODY" value="7"> + <constant name="STATUS_BODY" value="7" enum="Status"> </constant> - <constant name="STATUS_CONNECTION_ERROR" value="8"> + <constant name="STATUS_CONNECTION_ERROR" value="8" enum="Status"> </constant> - <constant name="STATUS_SSL_HANDSHAKE_ERROR" value="9"> + <constant name="STATUS_SSL_HANDSHAKE_ERROR" value="9" enum="Status"> </constant> - <constant name="RESPONSE_CONTINUE" value="100"> + <constant name="RESPONSE_CONTINUE" value="100" enum="ResponseCode"> </constant> - <constant name="RESPONSE_SWITCHING_PROTOCOLS" value="101"> + <constant name="RESPONSE_SWITCHING_PROTOCOLS" value="101" enum="ResponseCode"> </constant> - <constant name="RESPONSE_PROCESSING" value="102"> + <constant name="RESPONSE_PROCESSING" value="102" enum="ResponseCode"> </constant> - <constant name="RESPONSE_OK" value="200"> + <constant name="RESPONSE_OK" value="200" enum="ResponseCode"> </constant> - <constant name="RESPONSE_CREATED" value="201"> + <constant name="RESPONSE_CREATED" value="201" enum="ResponseCode"> </constant> - <constant name="RESPONSE_ACCEPTED" value="202"> + <constant name="RESPONSE_ACCEPTED" value="202" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NON_AUTHORITATIVE_INFORMATION" value="203"> + <constant name="RESPONSE_NON_AUTHORITATIVE_INFORMATION" value="203" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NO_CONTENT" value="204"> + <constant name="RESPONSE_NO_CONTENT" value="204" enum="ResponseCode"> </constant> - <constant name="RESPONSE_RESET_CONTENT" value="205"> + <constant name="RESPONSE_RESET_CONTENT" value="205" enum="ResponseCode"> </constant> - <constant name="RESPONSE_PARTIAL_CONTENT" value="206"> + <constant name="RESPONSE_PARTIAL_CONTENT" value="206" enum="ResponseCode"> </constant> - <constant name="RESPONSE_MULTI_STATUS" value="207"> + <constant name="RESPONSE_MULTI_STATUS" value="207" enum="ResponseCode"> </constant> - <constant name="RESPONSE_IM_USED" value="226"> + <constant name="RESPONSE_IM_USED" value="226" enum="ResponseCode"> </constant> - <constant name="RESPONSE_MULTIPLE_CHOICES" value="300"> + <constant name="RESPONSE_MULTIPLE_CHOICES" value="300" enum="ResponseCode"> </constant> - <constant name="RESPONSE_MOVED_PERMANENTLY" value="301"> + <constant name="RESPONSE_MOVED_PERMANENTLY" value="301" enum="ResponseCode"> </constant> - <constant name="RESPONSE_FOUND" value="302"> + <constant name="RESPONSE_FOUND" value="302" enum="ResponseCode"> </constant> - <constant name="RESPONSE_SEE_OTHER" value="303"> + <constant name="RESPONSE_SEE_OTHER" value="303" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NOT_MODIFIED" value="304"> + <constant name="RESPONSE_NOT_MODIFIED" value="304" enum="ResponseCode"> </constant> - <constant name="RESPONSE_USE_PROXY" value="305"> + <constant name="RESPONSE_USE_PROXY" value="305" enum="ResponseCode"> </constant> - <constant name="RESPONSE_TEMPORARY_REDIRECT" value="307"> + <constant name="RESPONSE_TEMPORARY_REDIRECT" value="307" enum="ResponseCode"> </constant> - <constant name="RESPONSE_BAD_REQUEST" value="400"> + <constant name="RESPONSE_BAD_REQUEST" value="400" enum="ResponseCode"> </constant> - <constant name="RESPONSE_UNAUTHORIZED" value="401"> + <constant name="RESPONSE_UNAUTHORIZED" value="401" enum="ResponseCode"> </constant> - <constant name="RESPONSE_PAYMENT_REQUIRED" value="402"> + <constant name="RESPONSE_PAYMENT_REQUIRED" value="402" enum="ResponseCode"> </constant> - <constant name="RESPONSE_FORBIDDEN" value="403"> + <constant name="RESPONSE_FORBIDDEN" value="403" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NOT_FOUND" value="404"> + <constant name="RESPONSE_NOT_FOUND" value="404" enum="ResponseCode"> </constant> - <constant name="RESPONSE_METHOD_NOT_ALLOWED" value="405"> + <constant name="RESPONSE_METHOD_NOT_ALLOWED" value="405" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NOT_ACCEPTABLE" value="406"> + <constant name="RESPONSE_NOT_ACCEPTABLE" value="406" enum="ResponseCode"> </constant> - <constant name="RESPONSE_PROXY_AUTHENTICATION_REQUIRED" value="407"> + <constant name="RESPONSE_PROXY_AUTHENTICATION_REQUIRED" value="407" enum="ResponseCode"> </constant> - <constant name="RESPONSE_REQUEST_TIMEOUT" value="408"> + <constant name="RESPONSE_REQUEST_TIMEOUT" value="408" enum="ResponseCode"> </constant> - <constant name="RESPONSE_CONFLICT" value="409"> + <constant name="RESPONSE_CONFLICT" value="409" enum="ResponseCode"> </constant> - <constant name="RESPONSE_GONE" value="410"> + <constant name="RESPONSE_GONE" value="410" enum="ResponseCode"> </constant> - <constant name="RESPONSE_LENGTH_REQUIRED" value="411"> + <constant name="RESPONSE_LENGTH_REQUIRED" value="411" enum="ResponseCode"> </constant> - <constant name="RESPONSE_PRECONDITION_FAILED" value="412"> + <constant name="RESPONSE_PRECONDITION_FAILED" value="412" enum="ResponseCode"> </constant> - <constant name="RESPONSE_REQUEST_ENTITY_TOO_LARGE" value="413"> + <constant name="RESPONSE_REQUEST_ENTITY_TOO_LARGE" value="413" enum="ResponseCode"> </constant> - <constant name="RESPONSE_REQUEST_URI_TOO_LONG" value="414"> + <constant name="RESPONSE_REQUEST_URI_TOO_LONG" value="414" enum="ResponseCode"> </constant> - <constant name="RESPONSE_UNSUPPORTED_MEDIA_TYPE" value="415"> + <constant name="RESPONSE_UNSUPPORTED_MEDIA_TYPE" value="415" enum="ResponseCode"> </constant> - <constant name="RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE" value="416"> + <constant name="RESPONSE_REQUESTED_RANGE_NOT_SATISFIABLE" value="416" enum="ResponseCode"> </constant> - <constant name="RESPONSE_EXPECTATION_FAILED" value="417"> + <constant name="RESPONSE_EXPECTATION_FAILED" value="417" enum="ResponseCode"> </constant> - <constant name="RESPONSE_UNPROCESSABLE_ENTITY" value="422"> + <constant name="RESPONSE_UNPROCESSABLE_ENTITY" value="422" enum="ResponseCode"> </constant> - <constant name="RESPONSE_LOCKED" value="423"> + <constant name="RESPONSE_LOCKED" value="423" enum="ResponseCode"> </constant> - <constant name="RESPONSE_FAILED_DEPENDENCY" value="424"> + <constant name="RESPONSE_FAILED_DEPENDENCY" value="424" enum="ResponseCode"> </constant> - <constant name="RESPONSE_UPGRADE_REQUIRED" value="426"> + <constant name="RESPONSE_UPGRADE_REQUIRED" value="426" enum="ResponseCode"> </constant> - <constant name="RESPONSE_INTERNAL_SERVER_ERROR" value="500"> + <constant name="RESPONSE_INTERNAL_SERVER_ERROR" value="500" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NOT_IMPLEMENTED" value="501"> + <constant name="RESPONSE_NOT_IMPLEMENTED" value="501" enum="ResponseCode"> </constant> - <constant name="RESPONSE_BAD_GATEWAY" value="502"> + <constant name="RESPONSE_BAD_GATEWAY" value="502" enum="ResponseCode"> </constant> - <constant name="RESPONSE_SERVICE_UNAVAILABLE" value="503"> + <constant name="RESPONSE_SERVICE_UNAVAILABLE" value="503" enum="ResponseCode"> </constant> - <constant name="RESPONSE_GATEWAY_TIMEOUT" value="504"> + <constant name="RESPONSE_GATEWAY_TIMEOUT" value="504" enum="ResponseCode"> </constant> - <constant name="RESPONSE_HTTP_VERSION_NOT_SUPPORTED" value="505"> + <constant name="RESPONSE_HTTP_VERSION_NOT_SUPPORTED" value="505" enum="ResponseCode"> </constant> - <constant name="RESPONSE_INSUFFICIENT_STORAGE" value="507"> + <constant name="RESPONSE_INSUFFICIENT_STORAGE" value="507" enum="ResponseCode"> </constant> - <constant name="RESPONSE_NOT_EXTENDED" value="510"> + <constant name="RESPONSE_NOT_EXTENDED" value="510" enum="ResponseCode"> </constant> </constants> </class> diff --git a/doc/classes/HTTPRequest.xml b/doc/classes/HTTPRequest.xml index 3b5398d7be..7c37479295 100644 --- a/doc/classes/HTTPRequest.xml +++ b/doc/classes/HTTPRequest.xml @@ -97,39 +97,39 @@ </signal> </signals> <constants> - <constant name="RESULT_SUCCESS" value="0"> + <constant name="RESULT_SUCCESS" value="0" enum="Result"> Request successful. </constant> - <constant name="RESULT_CHUNKED_BODY_SIZE_MISMATCH" value="1"> + <constant name="RESULT_CHUNKED_BODY_SIZE_MISMATCH" value="1" enum="Result"> </constant> - <constant name="RESULT_CANT_CONNECT" value="2"> + <constant name="RESULT_CANT_CONNECT" value="2" enum="Result"> Request failed while connecting. </constant> - <constant name="RESULT_CANT_RESOLVE" value="3"> + <constant name="RESULT_CANT_RESOLVE" value="3" enum="Result"> Request failed while resolving. </constant> - <constant name="RESULT_CONNECTION_ERROR" value="4"> + <constant name="RESULT_CONNECTION_ERROR" value="4" enum="Result"> Request failed due to connection(read/write) error. </constant> - <constant name="RESULT_SSL_HANDSHAKE_ERROR" value="5"> + <constant name="RESULT_SSL_HANDSHAKE_ERROR" value="5" enum="Result"> Request failed on SSL handshake. </constant> - <constant name="RESULT_NO_RESPONSE" value="6"> + <constant name="RESULT_NO_RESPONSE" value="6" enum="Result"> Request does not have a response(yet). </constant> - <constant name="RESULT_BODY_SIZE_LIMIT_EXCEEDED" value="7"> + <constant name="RESULT_BODY_SIZE_LIMIT_EXCEEDED" value="7" enum="Result"> Request exceeded its maximum size limit, see [method set_body_size_limit]. </constant> - <constant name="RESULT_REQUEST_FAILED" value="8"> + <constant name="RESULT_REQUEST_FAILED" value="8" enum="Result"> Request failed. (unused) </constant> - <constant name="RESULT_DOWNLOAD_FILE_CANT_OPEN" value="9"> + <constant name="RESULT_DOWNLOAD_FILE_CANT_OPEN" value="9" enum="Result"> HTTPRequest couldn't open the download file. </constant> - <constant name="RESULT_DOWNLOAD_FILE_WRITE_ERROR" value="10"> + <constant name="RESULT_DOWNLOAD_FILE_WRITE_ERROR" value="10" enum="Result"> HTTPRequest couldn't write to the download file. </constant> - <constant name="RESULT_REDIRECT_LIMIT_REACHED" value="11"> + <constant name="RESULT_REDIRECT_LIMIT_REACHED" value="11" enum="Result"> Request reached its maximum redirect limit, see [method set_max_redirects]. </constant> </constants> diff --git a/doc/classes/HingeJoint.xml b/doc/classes/HingeJoint.xml index 9c6fbbda9e..4a23f63d5a 100644 --- a/doc/classes/HingeJoint.xml +++ b/doc/classes/HingeJoint.xml @@ -44,39 +44,39 @@ </member> </members> <constants> - <constant name="PARAM_BIAS" value="0"> + <constant name="PARAM_BIAS" value="0" enum="Param"> The speed with wich the two bodies get pulled together when they move in different directions. </constant> - <constant name="PARAM_LIMIT_UPPER" value="1"> + <constant name="PARAM_LIMIT_UPPER" value="1" enum="Param"> The maximum rotation. only active if [member angular_limit/enable] is [code]true[/code]. </constant> - <constant name="PARAM_LIMIT_LOWER" value="2"> + <constant name="PARAM_LIMIT_LOWER" value="2" enum="Param"> The minimum rotation. only active if [member angular_limit/enable] is [code]true[/code]. </constant> - <constant name="PARAM_LIMIT_BIAS" value="3"> + <constant name="PARAM_LIMIT_BIAS" value="3" enum="Param"> The speed with which the rotation across the axis perpendicular to the hinge gets corrected. </constant> - <constant name="PARAM_LIMIT_SOFTNESS" value="4"> + <constant name="PARAM_LIMIT_SOFTNESS" value="4" enum="Param"> </constant> - <constant name="PARAM_LIMIT_RELAXATION" value="5"> + <constant name="PARAM_LIMIT_RELAXATION" value="5" enum="Param"> The lower this value, the more the rotation gets slowed down. </constant> - <constant name="PARAM_MOTOR_TARGET_VELOCITY" value="6"> + <constant name="PARAM_MOTOR_TARGET_VELOCITY" value="6" enum="Param"> Target speed for the motor. </constant> - <constant name="PARAM_MOTOR_MAX_IMPULSE" value="7"> + <constant name="PARAM_MOTOR_MAX_IMPULSE" value="7" enum="Param"> Maximum acceleration for the motor. </constant> - <constant name="PARAM_MAX" value="8"> + <constant name="PARAM_MAX" value="8" enum="Param"> End flag of PARAM_* constants, used internally. </constant> - <constant name="FLAG_USE_LIMIT" value="0"> + <constant name="FLAG_USE_LIMIT" value="0" enum="Flag"> If [code]true[/code] the hinges maximum and minimum rotation, defined by [member angular_limit/lower] and [member angular_limit/upper] has effects. </constant> - <constant name="FLAG_ENABLE_MOTOR" value="1"> + <constant name="FLAG_ENABLE_MOTOR" value="1" enum="Flag"> When activated, a motor turns the hinge. </constant> - <constant name="FLAG_MAX" value="2"> + <constant name="FLAG_MAX" value="2" enum="Flag"> End flag of FLAG_* constants, used internally. </constant> </constants> diff --git a/doc/classes/IP.xml b/doc/classes/IP.xml index b8dabebc20..09734e746c 100644 --- a/doc/classes/IP.xml +++ b/doc/classes/IP.xml @@ -78,25 +78,25 @@ </method> </methods> <constants> - <constant name="RESOLVER_STATUS_NONE" value="0"> + <constant name="RESOLVER_STATUS_NONE" value="0" enum="ResolverStatus"> </constant> - <constant name="RESOLVER_STATUS_WAITING" value="1"> + <constant name="RESOLVER_STATUS_WAITING" value="1" enum="ResolverStatus"> </constant> - <constant name="RESOLVER_STATUS_DONE" value="2"> + <constant name="RESOLVER_STATUS_DONE" value="2" enum="ResolverStatus"> </constant> - <constant name="RESOLVER_STATUS_ERROR" value="3"> + <constant name="RESOLVER_STATUS_ERROR" value="3" enum="ResolverStatus"> </constant> - <constant name="RESOLVER_MAX_QUERIES" value="32" enum=""> + <constant name="RESOLVER_MAX_QUERIES" value="32"> </constant> - <constant name="RESOLVER_INVALID_ID" value="-1" enum=""> + <constant name="RESOLVER_INVALID_ID" value="-1"> </constant> - <constant name="TYPE_NONE" value="0"> + <constant name="TYPE_NONE" value="0" enum="Type"> </constant> - <constant name="TYPE_IPV4" value="1"> + <constant name="TYPE_IPV4" value="1" enum="Type"> </constant> - <constant name="TYPE_IPV6" value="2"> + <constant name="TYPE_IPV6" value="2" enum="Type"> </constant> - <constant name="TYPE_ANY" value="3"> + <constant name="TYPE_ANY" value="3" enum="Type"> </constant> </constants> </class> diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 3c6111e9a7..4e905445ed 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -414,109 +414,109 @@ </member> </members> <constants> - <constant name="FORMAT_L8" value="0"> + <constant name="FORMAT_L8" value="0" enum="Format"> </constant> - <constant name="FORMAT_LA8" value="1"> + <constant name="FORMAT_LA8" value="1" enum="Format"> </constant> - <constant name="FORMAT_R8" value="2"> + <constant name="FORMAT_R8" value="2" enum="Format"> </constant> - <constant name="FORMAT_RG8" value="3"> + <constant name="FORMAT_RG8" value="3" enum="Format"> </constant> - <constant name="FORMAT_RGB8" value="4"> + <constant name="FORMAT_RGB8" value="4" enum="Format"> </constant> - <constant name="FORMAT_RGBA8" value="5"> + <constant name="FORMAT_RGBA8" value="5" enum="Format"> </constant> - <constant name="FORMAT_RGBA4444" value="6"> + <constant name="FORMAT_RGBA4444" value="6" enum="Format"> </constant> - <constant name="FORMAT_RGBA5551" value="7"> + <constant name="FORMAT_RGBA5551" value="7" enum="Format"> </constant> - <constant name="FORMAT_RF" value="8"> + <constant name="FORMAT_RF" value="8" enum="Format"> </constant> - <constant name="FORMAT_RGF" value="9"> + <constant name="FORMAT_RGF" value="9" enum="Format"> </constant> - <constant name="FORMAT_RGBF" value="10"> + <constant name="FORMAT_RGBF" value="10" enum="Format"> </constant> - <constant name="FORMAT_RGBAF" value="11"> + <constant name="FORMAT_RGBAF" value="11" enum="Format"> </constant> - <constant name="FORMAT_RH" value="12"> + <constant name="FORMAT_RH" value="12" enum="Format"> </constant> - <constant name="FORMAT_RGH" value="13"> + <constant name="FORMAT_RGH" value="13" enum="Format"> </constant> - <constant name="FORMAT_RGBH" value="14"> + <constant name="FORMAT_RGBH" value="14" enum="Format"> </constant> - <constant name="FORMAT_RGBAH" value="15"> + <constant name="FORMAT_RGBAH" value="15" enum="Format"> </constant> - <constant name="FORMAT_RGBE9995" value="16"> + <constant name="FORMAT_RGBE9995" value="16" enum="Format"> </constant> - <constant name="FORMAT_DXT1" value="17"> + <constant name="FORMAT_DXT1" value="17" enum="Format"> </constant> - <constant name="FORMAT_DXT3" value="18"> + <constant name="FORMAT_DXT3" value="18" enum="Format"> </constant> - <constant name="FORMAT_DXT5" value="19"> + <constant name="FORMAT_DXT5" value="19" enum="Format"> </constant> - <constant name="FORMAT_RGTC_R" value="20"> + <constant name="FORMAT_RGTC_R" value="20" enum="Format"> </constant> - <constant name="FORMAT_RGTC_RG" value="21"> + <constant name="FORMAT_RGTC_RG" value="21" enum="Format"> </constant> - <constant name="FORMAT_BPTC_RGBA" value="22"> + <constant name="FORMAT_BPTC_RGBA" value="22" enum="Format"> </constant> - <constant name="FORMAT_BPTC_RGBF" value="23"> + <constant name="FORMAT_BPTC_RGBF" value="23" enum="Format"> </constant> - <constant name="FORMAT_BPTC_RGBFU" value="24"> + <constant name="FORMAT_BPTC_RGBFU" value="24" enum="Format"> </constant> - <constant name="FORMAT_PVRTC2" value="25"> + <constant name="FORMAT_PVRTC2" value="25" enum="Format"> </constant> - <constant name="FORMAT_PVRTC2A" value="26"> + <constant name="FORMAT_PVRTC2A" value="26" enum="Format"> </constant> - <constant name="FORMAT_PVRTC4" value="27"> + <constant name="FORMAT_PVRTC4" value="27" enum="Format"> </constant> - <constant name="FORMAT_PVRTC4A" value="28"> + <constant name="FORMAT_PVRTC4A" value="28" enum="Format"> </constant> - <constant name="FORMAT_ETC" value="29"> + <constant name="FORMAT_ETC" value="29" enum="Format"> </constant> - <constant name="FORMAT_ETC2_R11" value="30"> + <constant name="FORMAT_ETC2_R11" value="30" enum="Format"> </constant> - <constant name="FORMAT_ETC2_R11S" value="31"> + <constant name="FORMAT_ETC2_R11S" value="31" enum="Format"> </constant> - <constant name="FORMAT_ETC2_RG11" value="32"> + <constant name="FORMAT_ETC2_RG11" value="32" enum="Format"> </constant> - <constant name="FORMAT_ETC2_RG11S" value="33"> + <constant name="FORMAT_ETC2_RG11S" value="33" enum="Format"> </constant> - <constant name="FORMAT_ETC2_RGB8" value="34"> + <constant name="FORMAT_ETC2_RGB8" value="34" enum="Format"> </constant> - <constant name="FORMAT_ETC2_RGBA8" value="35"> + <constant name="FORMAT_ETC2_RGBA8" value="35" enum="Format"> </constant> - <constant name="FORMAT_ETC2_RGB8A1" value="36"> + <constant name="FORMAT_ETC2_RGB8A1" value="36" enum="Format"> </constant> - <constant name="FORMAT_MAX" value="37"> + <constant name="FORMAT_MAX" value="37" enum="Format"> </constant> - <constant name="INTERPOLATE_NEAREST" value="0"> + <constant name="INTERPOLATE_NEAREST" value="0" enum="Interpolation"> </constant> - <constant name="INTERPOLATE_BILINEAR" value="1"> + <constant name="INTERPOLATE_BILINEAR" value="1" enum="Interpolation"> </constant> - <constant name="INTERPOLATE_CUBIC" value="2"> + <constant name="INTERPOLATE_CUBIC" value="2" enum="Interpolation"> </constant> - <constant name="ALPHA_NONE" value="0"> + <constant name="ALPHA_NONE" value="0" enum="AlphaMode"> </constant> - <constant name="ALPHA_BIT" value="1"> + <constant name="ALPHA_BIT" value="1" enum="AlphaMode"> </constant> - <constant name="ALPHA_BLEND" value="2"> + <constant name="ALPHA_BLEND" value="2" enum="AlphaMode"> </constant> - <constant name="COMPRESS_S3TC" value="0"> + <constant name="COMPRESS_S3TC" value="0" enum="CompressMode"> </constant> - <constant name="COMPRESS_PVRTC2" value="1"> + <constant name="COMPRESS_PVRTC2" value="1" enum="CompressMode"> </constant> - <constant name="COMPRESS_PVRTC4" value="2"> + <constant name="COMPRESS_PVRTC4" value="2" enum="CompressMode"> </constant> - <constant name="COMPRESS_ETC" value="3"> + <constant name="COMPRESS_ETC" value="3" enum="CompressMode"> </constant> - <constant name="COMPRESS_ETC2" value="4"> + <constant name="COMPRESS_ETC2" value="4" enum="CompressMode"> </constant> - <constant name="COMPRESS_SOURCE_GENERIC" value="0"> + <constant name="COMPRESS_SOURCE_GENERIC" value="0" enum="CompressSource"> </constant> - <constant name="COMPRESS_SOURCE_SRGB" value="1"> + <constant name="COMPRESS_SOURCE_SRGB" value="1" enum="CompressSource"> </constant> - <constant name="COMPRESS_SOURCE_NORMAL" value="2"> + <constant name="COMPRESS_SOURCE_NORMAL" value="2" enum="CompressSource"> </constant> </constants> </class> diff --git a/doc/classes/ImageTexture.xml b/doc/classes/ImageTexture.xml index c41f521ac6..a20af677cb 100644 --- a/doc/classes/ImageTexture.xml +++ b/doc/classes/ImageTexture.xml @@ -107,13 +107,13 @@ </method> </methods> <constants> - <constant name="STORAGE_RAW" value="0"> + <constant name="STORAGE_RAW" value="0" enum="Storage"> [Image] data is stored raw and unaltered. </constant> - <constant name="STORAGE_COMPRESS_LOSSY" value="1"> + <constant name="STORAGE_COMPRESS_LOSSY" value="1" enum="Storage"> [Image] data is compressed with a lossy algorithm. You can set the storage quality with [method set_lossy_storage_quality]. </constant> - <constant name="STORAGE_COMPRESS_LOSSLESS" value="2"> + <constant name="STORAGE_COMPRESS_LOSSLESS" value="2" enum="Storage"> [Image] data is compressed with a lossless algorithm. </constant> </constants> diff --git a/doc/classes/Input.xml b/doc/classes/Input.xml index 61e588940a..1200ac5170 100644 --- a/doc/classes/Input.xml +++ b/doc/classes/Input.xml @@ -336,16 +336,16 @@ </signal> </signals> <constants> - <constant name="MOUSE_MODE_VISIBLE" value="0"> + <constant name="MOUSE_MODE_VISIBLE" value="0" enum="MouseMode"> Makes the mouse cursor visible if it is hidden. </constant> - <constant name="MOUSE_MODE_HIDDEN" value="1"> + <constant name="MOUSE_MODE_HIDDEN" value="1" enum="MouseMode"> Makes the mouse cursor hidden if it is visible. </constant> - <constant name="MOUSE_MODE_CAPTURED" value="2"> + <constant name="MOUSE_MODE_CAPTURED" value="2" enum="MouseMode"> Captures the mouse. The mouse will be hidden and unable to leave the game window. But it will still register movement and mouse button presses. </constant> - <constant name="MOUSE_MODE_CONFINED" value="3"> + <constant name="MOUSE_MODE_CONFINED" value="3" enum="MouseMode"> </constant> </constants> </class> diff --git a/doc/classes/InputEventGesture.xml b/doc/classes/InputEventGesture.xml new file mode 100644 index 0000000000..bf8f9667e3 --- /dev/null +++ b/doc/classes/InputEventGesture.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="InputEventGesture" inherits="InputEventWithModifiers" category="Core" version="3.0-beta"> + <brief_description> + </brief_description> + <description> + </description> + <tutorials> + </tutorials> + <demos> + </demos> + <methods> + </methods> + <members> + <member name="position" type="Vector2" setter="set_position" getter="get_position"> + </member> + </members> + <constants> + </constants> +</class> diff --git a/doc/classes/InputEventMagnifyGesture.xml b/doc/classes/InputEventMagnifyGesture.xml new file mode 100644 index 0000000000..796f9e6a2f --- /dev/null +++ b/doc/classes/InputEventMagnifyGesture.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="InputEventMagnifyGesture" inherits="InputEventGesture" category="Core" version="3.0-beta"> + <brief_description> + </brief_description> + <description> + </description> + <tutorials> + </tutorials> + <demos> + </demos> + <methods> + </methods> + <members> + <member name="factor" type="float" setter="set_factor" getter="get_factor"> + </member> + </members> + <constants> + </constants> +</class> diff --git a/doc/classes/InputEventPanGesture.xml b/doc/classes/InputEventPanGesture.xml new file mode 100644 index 0000000000..a17f5823ba --- /dev/null +++ b/doc/classes/InputEventPanGesture.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="InputEventPanGesture" inherits="InputEventGesture" category="Core" version="3.0-beta"> + <brief_description> + </brief_description> + <description> + </description> + <tutorials> + </tutorials> + <demos> + </demos> + <methods> + </methods> + <members> + <member name="delta" type="Vector2" setter="set_delta" getter="get_delta"> + </member> + </members> + <constants> + </constants> +</class> diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index c9e90a927a..6e9ffb7f35 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -386,13 +386,13 @@ </signal> </signals> <constants> - <constant name="ICON_MODE_TOP" value="0"> + <constant name="ICON_MODE_TOP" value="0" enum="IconMode"> </constant> - <constant name="ICON_MODE_LEFT" value="1"> + <constant name="ICON_MODE_LEFT" value="1" enum="IconMode"> </constant> - <constant name="SELECT_SINGLE" value="0"> + <constant name="SELECT_SINGLE" value="0" enum="SelectMode"> </constant> - <constant name="SELECT_MULTI" value="1"> + <constant name="SELECT_MULTI" value="1" enum="SelectMode"> </constant> </constants> <theme_items> diff --git a/doc/classes/Label.xml b/doc/classes/Label.xml index 75bc6df5cf..089b81164b 100644 --- a/doc/classes/Label.xml +++ b/doc/classes/Label.xml @@ -86,28 +86,28 @@ </member> </members> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="Align"> Align rows to the left (default). </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="Align"> Align rows centered. </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="Align"> Align rows to the right (default). </constant> - <constant name="ALIGN_FILL" value="3"> + <constant name="ALIGN_FILL" value="3" enum="Align"> Expand row whitespaces to fit the width. </constant> - <constant name="VALIGN_TOP" value="0"> + <constant name="VALIGN_TOP" value="0" enum="VAlign"> Align the whole text to the top. </constant> - <constant name="VALIGN_CENTER" value="1"> + <constant name="VALIGN_CENTER" value="1" enum="VAlign"> Align the whole text to the center. </constant> - <constant name="VALIGN_BOTTOM" value="2"> + <constant name="VALIGN_BOTTOM" value="2" enum="VAlign"> Align the whole text to the bottom. </constant> - <constant name="VALIGN_FILL" value="3"> + <constant name="VALIGN_FILL" value="3" enum="VAlign"> Align the whole text by spreading the rows. </constant> </constants> diff --git a/doc/classes/Light.xml b/doc/classes/Light.xml index 7659dcd498..e4f92cc9b3 100644 --- a/doc/classes/Light.xml +++ b/doc/classes/Light.xml @@ -39,37 +39,37 @@ </member> </members> <constants> - <constant name="PARAM_ENERGY" value="0"> + <constant name="PARAM_ENERGY" value="0" enum="Param"> </constant> - <constant name="PARAM_INDIRECT_ENERGY" value="1"> + <constant name="PARAM_INDIRECT_ENERGY" value="1" enum="Param"> </constant> - <constant name="PARAM_SPECULAR" value="2"> + <constant name="PARAM_SPECULAR" value="2" enum="Param"> </constant> - <constant name="PARAM_RANGE" value="3"> + <constant name="PARAM_RANGE" value="3" enum="Param"> </constant> - <constant name="PARAM_ATTENUATION" value="4"> + <constant name="PARAM_ATTENUATION" value="4" enum="Param"> </constant> - <constant name="PARAM_SPOT_ANGLE" value="5"> + <constant name="PARAM_SPOT_ANGLE" value="5" enum="Param"> </constant> - <constant name="PARAM_SPOT_ATTENUATION" value="6"> + <constant name="PARAM_SPOT_ATTENUATION" value="6" enum="Param"> </constant> - <constant name="PARAM_CONTACT_SHADOW_SIZE" value="7"> + <constant name="PARAM_CONTACT_SHADOW_SIZE" value="7" enum="Param"> </constant> - <constant name="PARAM_SHADOW_MAX_DISTANCE" value="8"> + <constant name="PARAM_SHADOW_MAX_DISTANCE" value="8" enum="Param"> </constant> - <constant name="PARAM_SHADOW_SPLIT_1_OFFSET" value="9"> + <constant name="PARAM_SHADOW_SPLIT_1_OFFSET" value="9" enum="Param"> </constant> - <constant name="PARAM_SHADOW_SPLIT_2_OFFSET" value="10"> + <constant name="PARAM_SHADOW_SPLIT_2_OFFSET" value="10" enum="Param"> </constant> - <constant name="PARAM_SHADOW_SPLIT_3_OFFSET" value="11"> + <constant name="PARAM_SHADOW_SPLIT_3_OFFSET" value="11" enum="Param"> </constant> - <constant name="PARAM_SHADOW_NORMAL_BIAS" value="12"> + <constant name="PARAM_SHADOW_NORMAL_BIAS" value="12" enum="Param"> </constant> - <constant name="PARAM_SHADOW_BIAS" value="13"> + <constant name="PARAM_SHADOW_BIAS" value="13" enum="Param"> </constant> - <constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14"> + <constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="Param"> </constant> - <constant name="PARAM_MAX" value="15"> + <constant name="PARAM_MAX" value="15" enum="Param"> </constant> </constants> </class> diff --git a/doc/classes/Light2D.xml b/doc/classes/Light2D.xml index 6df03a8190..fe1f25ad9e 100644 --- a/doc/classes/Light2D.xml +++ b/doc/classes/Light2D.xml @@ -78,34 +78,34 @@ </member> </members> <constants> - <constant name="MODE_ADD" value="0"> + <constant name="MODE_ADD" value="0" enum="Mode"> Adds the value of pixels corresponding to the Light2D to the values of pixels under it. This is the common behaviour of a light. </constant> - <constant name="MODE_SUB" value="1"> + <constant name="MODE_SUB" value="1" enum="Mode"> Subtracts the value of pixels corresponding to the Light2D to the values of pixels under it, resulting in inversed light effect. </constant> - <constant name="MODE_MIX" value="2"> + <constant name="MODE_MIX" value="2" enum="Mode"> Mix the value of pixels corresponding to the Light2D to the values of pixels under it by linear interpolation. </constant> - <constant name="MODE_MASK" value="3"> + <constant name="MODE_MASK" value="3" enum="Mode"> The light texture of the Light2D is used as a mask, hiding or revealing parts of the screen underneath depending on the value of each pixel of the light (mask) texture. </constant> - <constant name="SHADOW_FILTER_NONE" value="0"> + <constant name="SHADOW_FILTER_NONE" value="0" enum="ShadowFilter"> No filter applies to the shadow map. See [method shadow_filter]. </constant> - <constant name="SHADOW_FILTER_PCF3" value="1"> + <constant name="SHADOW_FILTER_PCF3" value="1" enum="ShadowFilter"> Percentage closer filtering (3 samples) applies to the shadow map. See [method shadow_filter]. </constant> - <constant name="SHADOW_FILTER_PCF5" value="2"> + <constant name="SHADOW_FILTER_PCF5" value="2" enum="ShadowFilter"> Percentage closer filtering (5 samples) applies to the shadow map. See [method shadow_filter]. </constant> - <constant name="SHADOW_FILTER_PCF7" value="3"> + <constant name="SHADOW_FILTER_PCF7" value="3" enum="ShadowFilter"> Percentage closer filtering (7 samples) applies to the shadow map. See [method shadow_filter]. </constant> - <constant name="SHADOW_FILTER_PCF9" value="4"> + <constant name="SHADOW_FILTER_PCF9" value="4" enum="ShadowFilter"> Percentage closer filtering (9 samples) applies to the shadow map. See [method shadow_filter]. </constant> - <constant name="SHADOW_FILTER_PCF13" value="5"> + <constant name="SHADOW_FILTER_PCF13" value="5" enum="ShadowFilter"> Percentage closer filtering (13 samples) applies to the shadow map. See [method shadow_filter]. </constant> </constants> diff --git a/doc/classes/Line2D.xml b/doc/classes/Line2D.xml index 4b3a7aa9a9..9455882f02 100644 --- a/doc/classes/Line2D.xml +++ b/doc/classes/Line2D.xml @@ -93,28 +93,28 @@ </member> </members> <constants> - <constant name="LINE_JOINT_SHARP" value="0"> + <constant name="LINE_JOINT_SHARP" value="0" enum="LineJointMode"> The line's joints will be pointy. If [code]sharp_limit[/code] is greater than the rotation of a joint, it becomes a bevel joint instead. </constant> - <constant name="LINE_JOINT_BEVEL" value="1"> + <constant name="LINE_JOINT_BEVEL" value="1" enum="LineJointMode"> The line's joints will be bevelled/chamfered. </constant> - <constant name="LINE_JOINT_ROUND" value="2"> + <constant name="LINE_JOINT_ROUND" value="2" enum="LineJointMode"> The line's joints will be rounded. </constant> - <constant name="LINE_CAP_NONE" value="0"> + <constant name="LINE_CAP_NONE" value="0" enum="LineCapMode"> Don't have a line cap. </constant> - <constant name="LINE_CAP_BOX" value="1"> + <constant name="LINE_CAP_BOX" value="1" enum="LineCapMode"> Draws the line cap as a box. </constant> - <constant name="LINE_CAP_ROUND" value="2"> + <constant name="LINE_CAP_ROUND" value="2" enum="LineCapMode"> Draws the line cap as a circle. </constant> - <constant name="LINE_TEXTURE_NONE" value="0"> + <constant name="LINE_TEXTURE_NONE" value="0" enum="LineTextureMode"> Takes the left pixels of the texture and renders it over the whole line. </constant> - <constant name="LINE_TEXTURE_TILE" value="1"> + <constant name="LINE_TEXTURE_TILE" value="1" enum="LineTextureMode"> Tiles the texture over the line. The texture need to be imported with Repeat Enabled for it to work properly. </constant> </constants> diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index 1f0a227762..9a03d4e0c1 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -139,39 +139,39 @@ </signal> </signals> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="Align"> Aligns the text on the left hand side of the [LineEdit]. </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="Align"> Centers the text in the middle of the [LineEdit]. </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="Align"> Aligns the text on the right hand side of the [LineEdit]. </constant> - <constant name="ALIGN_FILL" value="3"> + <constant name="ALIGN_FILL" value="3" enum="Align"> Stretches whitespaces to fit the [LineEdit]'s width. </constant> - <constant name="MENU_CUT" value="0"> + <constant name="MENU_CUT" value="0" enum="MenuItems"> Cuts (Copies and clears) the selected text. </constant> - <constant name="MENU_COPY" value="1"> + <constant name="MENU_COPY" value="1" enum="MenuItems"> Copies the selected text. </constant> - <constant name="MENU_PASTE" value="2"> + <constant name="MENU_PASTE" value="2" enum="MenuItems"> Pastes the clipboard text over the selected text (or at the cursor's position). </constant> - <constant name="MENU_CLEAR" value="3"> + <constant name="MENU_CLEAR" value="3" enum="MenuItems"> Erases the whole [Linedit] text. </constant> - <constant name="MENU_SELECT_ALL" value="4"> + <constant name="MENU_SELECT_ALL" value="4" enum="MenuItems"> Selects the whole [Linedit] text. </constant> - <constant name="MENU_UNDO" value="5"> + <constant name="MENU_UNDO" value="5" enum="MenuItems"> Undoes the previous action. </constant> - <constant name="MENU_REDO" value="6"> + <constant name="MENU_REDO" value="6" enum="MenuItems"> </constant> - <constant name="MENU_MAX" value="7"> + <constant name="MENU_MAX" value="7" enum="MenuItems"> </constant> </constants> <theme_items> diff --git a/doc/classes/LinkButton.xml b/doc/classes/LinkButton.xml index 4fe7cd1618..a6194d129a 100644 --- a/doc/classes/LinkButton.xml +++ b/doc/classes/LinkButton.xml @@ -19,13 +19,13 @@ </member> </members> <constants> - <constant name="UNDERLINE_MODE_ALWAYS" value="0"> + <constant name="UNDERLINE_MODE_ALWAYS" value="0" enum="UnderlineMode"> The LinkButton will always show an underline at the bottom of its text </constant> - <constant name="UNDERLINE_MODE_ON_HOVER" value="1"> + <constant name="UNDERLINE_MODE_ON_HOVER" value="1" enum="UnderlineMode"> The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it. </constant> - <constant name="UNDERLINE_MODE_NEVER" value="2"> + <constant name="UNDERLINE_MODE_NEVER" value="2" enum="UnderlineMode"> The LinkButton will never show an underline at the bottom of its text. </constant> </constants> diff --git a/doc/classes/MainLoop.xml b/doc/classes/MainLoop.xml index dd8d62c88a..c5a4e53907 100644 --- a/doc/classes/MainLoop.xml +++ b/doc/classes/MainLoop.xml @@ -114,25 +114,25 @@ </method> </methods> <constants> - <constant name="NOTIFICATION_WM_MOUSE_ENTER" value="2" enum=""> + <constant name="NOTIFICATION_WM_MOUSE_ENTER" value="2"> </constant> - <constant name="NOTIFICATION_WM_MOUSE_EXIT" value="3" enum=""> + <constant name="NOTIFICATION_WM_MOUSE_EXIT" value="3"> </constant> - <constant name="NOTIFICATION_WM_FOCUS_IN" value="4" enum=""> + <constant name="NOTIFICATION_WM_FOCUS_IN" value="4"> </constant> - <constant name="NOTIFICATION_WM_FOCUS_OUT" value="5" enum=""> + <constant name="NOTIFICATION_WM_FOCUS_OUT" value="5"> </constant> - <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="6" enum=""> + <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="6"> </constant> - <constant name="NOTIFICATION_WM_GO_BACK_REQUEST" value="7" enum=""> + <constant name="NOTIFICATION_WM_GO_BACK_REQUEST" value="7"> </constant> - <constant name="NOTIFICATION_WM_UNFOCUS_REQUEST" value="8" enum=""> + <constant name="NOTIFICATION_WM_UNFOCUS_REQUEST" value="8"> </constant> - <constant name="NOTIFICATION_OS_MEMORY_WARNING" value="9" enum=""> + <constant name="NOTIFICATION_OS_MEMORY_WARNING" value="9"> </constant> - <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="90" enum=""> + <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="90"> </constant> - <constant name="NOTIFICATION_WM_ABOUT" value="91" enum=""> + <constant name="NOTIFICATION_WM_ABOUT" value="91"> </constant> </constants> </class> diff --git a/doc/classes/Material.xml b/doc/classes/Material.xml index eb28792c53..2b2f45e8be 100644 --- a/doc/classes/Material.xml +++ b/doc/classes/Material.xml @@ -19,9 +19,9 @@ </member> </members> <constants> - <constant name="RENDER_PRIORITY_MAX" value="127" enum=""> + <constant name="RENDER_PRIORITY_MAX" value="127"> </constant> - <constant name="RENDER_PRIORITY_MIN" value="-128" enum=""> + <constant name="RENDER_PRIORITY_MIN" value="-128"> </constant> </constants> </class> diff --git a/doc/classes/Mesh.xml b/doc/classes/Mesh.xml index 2b3efda509..c681886546 100644 --- a/doc/classes/Mesh.xml +++ b/doc/classes/Mesh.xml @@ -50,94 +50,94 @@ </method> </methods> <constants> - <constant name="PRIMITIVE_POINTS" value="0"> + <constant name="PRIMITIVE_POINTS" value="0" enum="PrimitiveType"> Render array as points (one vertex equals one point). </constant> - <constant name="PRIMITIVE_LINES" value="1"> + <constant name="PRIMITIVE_LINES" value="1" enum="PrimitiveType"> Render array as lines (every two vertices a line is created). </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> + <constant name="PRIMITIVE_LINE_STRIP" value="2" enum="PrimitiveType"> Render array as line strip. </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> + <constant name="PRIMITIVE_LINE_LOOP" value="3" enum="PrimitiveType"> Render array as line loop (like line strip, but closed). </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> + <constant name="PRIMITIVE_TRIANGLES" value="4" enum="PrimitiveType"> Render array as triangles (every three vertices a triangle is created). </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> + <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5" enum="PrimitiveType"> Render array as triangle strips. </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> + <constant name="PRIMITIVE_TRIANGLE_FAN" value="6" enum="PrimitiveType"> Render array as triangle fans. </constant> - <constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0"> + <constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode"> </constant> - <constant name="BLEND_SHAPE_MODE_RELATIVE" value="1"> + <constant name="BLEND_SHAPE_MODE_RELATIVE" value="1" enum="BlendShapeMode"> </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> + <constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> + <constant name="ARRAY_FORMAT_NORMAL" value="2" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> + <constant name="ARRAY_FORMAT_TANGENT" value="4" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> + <constant name="ARRAY_FORMAT_COLOR" value="8" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> + <constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TEX_UV2" value="32"> + <constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> + <constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> + <constant name="ARRAY_FORMAT_WEIGHTS" value="128" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> + <constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_BASE" value="9"> + <constant name="ARRAY_COMPRESS_BASE" value="9" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_VERTEX" value="512"> + <constant name="ARRAY_COMPRESS_VERTEX" value="512" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_NORMAL" value="1024"> + <constant name="ARRAY_COMPRESS_NORMAL" value="1024" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TANGENT" value="2048"> + <constant name="ARRAY_COMPRESS_TANGENT" value="2048" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_COLOR" value="4096"> + <constant name="ARRAY_COMPRESS_COLOR" value="4096" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TEX_UV" value="8192"> + <constant name="ARRAY_COMPRESS_TEX_UV" value="8192" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TEX_UV2" value="16384"> + <constant name="ARRAY_COMPRESS_TEX_UV2" value="16384" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_BONES" value="32768"> + <constant name="ARRAY_COMPRESS_BONES" value="32768" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_WEIGHTS" value="65536"> + <constant name="ARRAY_COMPRESS_WEIGHTS" value="65536" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_INDEX" value="131072"> + <constant name="ARRAY_COMPRESS_INDEX" value="131072" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144"> + <constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288"> + <constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_DEFAULT" value="97792"> + <constant name="ARRAY_COMPRESS_DEFAULT" value="97792" enum="ArrayFormat"> </constant> - <constant name="ARRAY_VERTEX" value="0"> + <constant name="ARRAY_VERTEX" value="0" enum="ArrayType"> </constant> - <constant name="ARRAY_NORMAL" value="1"> + <constant name="ARRAY_NORMAL" value="1" enum="ArrayType"> </constant> - <constant name="ARRAY_TANGENT" value="2"> + <constant name="ARRAY_TANGENT" value="2" enum="ArrayType"> </constant> - <constant name="ARRAY_COLOR" value="3"> + <constant name="ARRAY_COLOR" value="3" enum="ArrayType"> </constant> - <constant name="ARRAY_TEX_UV" value="4"> + <constant name="ARRAY_TEX_UV" value="4" enum="ArrayType"> </constant> - <constant name="ARRAY_TEX_UV2" value="5"> + <constant name="ARRAY_TEX_UV2" value="5" enum="ArrayType"> </constant> - <constant name="ARRAY_BONES" value="6"> + <constant name="ARRAY_BONES" value="6" enum="ArrayType"> </constant> - <constant name="ARRAY_WEIGHTS" value="7"> + <constant name="ARRAY_WEIGHTS" value="7" enum="ArrayType"> </constant> - <constant name="ARRAY_INDEX" value="8"> + <constant name="ARRAY_INDEX" value="8" enum="ArrayType"> </constant> - <constant name="ARRAY_MAX" value="9"> + <constant name="ARRAY_MAX" value="9" enum="ArrayType"> </constant> </constants> </class> diff --git a/doc/classes/MultiMesh.xml b/doc/classes/MultiMesh.xml index 2b4e525fd2..ae26641596 100644 --- a/doc/classes/MultiMesh.xml +++ b/doc/classes/MultiMesh.xml @@ -77,15 +77,15 @@ </member> </members> <constants> - <constant name="TRANSFORM_2D" value="0"> + <constant name="TRANSFORM_2D" value="0" enum="TransformFormat"> </constant> - <constant name="TRANSFORM_3D" value="1"> + <constant name="TRANSFORM_3D" value="1" enum="TransformFormat"> </constant> - <constant name="COLOR_NONE" value="0"> + <constant name="COLOR_NONE" value="0" enum="ColorFormat"> </constant> - <constant name="COLOR_8BIT" value="1"> + <constant name="COLOR_8BIT" value="1" enum="ColorFormat"> </constant> - <constant name="COLOR_FLOAT" value="2"> + <constant name="COLOR_FLOAT" value="2" enum="ColorFormat"> </constant> </constants> </class> diff --git a/doc/classes/NavigationMesh.xml b/doc/classes/NavigationMesh.xml index 27d5732035..5563c94b35 100644 --- a/doc/classes/NavigationMesh.xml +++ b/doc/classes/NavigationMesh.xml @@ -87,11 +87,11 @@ </member> </members> <constants> - <constant name="SAMPLE_PARTITION_WATERSHED" value="0" enum=""> + <constant name="SAMPLE_PARTITION_WATERSHED" value="0"> </constant> - <constant name="SAMPLE_PARTITION_MONOTONE" value="1" enum=""> + <constant name="SAMPLE_PARTITION_MONOTONE" value="1"> </constant> - <constant name="SAMPLE_PARTITION_LAYERS" value="2" enum=""> + <constant name="SAMPLE_PARTITION_LAYERS" value="2"> </constant> </constants> </class> diff --git a/doc/classes/NetworkedMultiplayerPeer.xml b/doc/classes/NetworkedMultiplayerPeer.xml index f0485f4cd5..33ffce9cf9 100644 --- a/doc/classes/NetworkedMultiplayerPeer.xml +++ b/doc/classes/NetworkedMultiplayerPeer.xml @@ -98,21 +98,21 @@ </signal> </signals> <constants> - <constant name="TRANSFER_MODE_UNRELIABLE" value="0"> + <constant name="TRANSFER_MODE_UNRELIABLE" value="0" enum="TransferMode"> </constant> - <constant name="TRANSFER_MODE_UNRELIABLE_ORDERED" value="1"> + <constant name="TRANSFER_MODE_UNRELIABLE_ORDERED" value="1" enum="TransferMode"> </constant> - <constant name="TRANSFER_MODE_RELIABLE" value="2"> + <constant name="TRANSFER_MODE_RELIABLE" value="2" enum="TransferMode"> </constant> - <constant name="CONNECTION_DISCONNECTED" value="0"> + <constant name="CONNECTION_DISCONNECTED" value="0" enum="ConnectionStatus"> </constant> - <constant name="CONNECTION_CONNECTING" value="1"> + <constant name="CONNECTION_CONNECTING" value="1" enum="ConnectionStatus"> </constant> - <constant name="CONNECTION_CONNECTED" value="2"> + <constant name="CONNECTION_CONNECTED" value="2" enum="ConnectionStatus"> </constant> - <constant name="TARGET_PEER_BROADCAST" value="0" enum=""> + <constant name="TARGET_PEER_BROADCAST" value="0"> </constant> - <constant name="TARGET_PEER_SERVER" value="1" enum=""> + <constant name="TARGET_PEER_SERVER" value="1"> </constant> </constants> </class> diff --git a/doc/classes/NinePatchRect.xml b/doc/classes/NinePatchRect.xml index eece607b39..b7440137c8 100644 --- a/doc/classes/NinePatchRect.xml +++ b/doc/classes/NinePatchRect.xml @@ -49,13 +49,13 @@ </signal> </signals> <constants> - <constant name="AXIS_STRETCH_MODE_STRETCH" value="0"> + <constant name="AXIS_STRETCH_MODE_STRETCH" value="0" enum="AxisStretchMode"> Doesn't do anything at the time of writing. Default value for [code]axis_stretch_horizontal[/code] and [code]axis_stretch_vertical[/code]. </constant> - <constant name="AXIS_STRETCH_MODE_TILE" value="1"> + <constant name="AXIS_STRETCH_MODE_TILE" value="1" enum="AxisStretchMode"> Doesn't do anything at the time of writing. </constant> - <constant name="AXIS_STRETCH_MODE_TILE_FIT" value="2"> + <constant name="AXIS_STRETCH_MODE_TILE_FIT" value="2" enum="AxisStretchMode"> Doesn't do anything at the time of writing. </constant> </constants> diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 276ac9ea7e..08b761abe8 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -768,74 +768,74 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_ENTER_TREE" value="10" enum=""> + <constant name="NOTIFICATION_ENTER_TREE" value="10"> </constant> - <constant name="NOTIFICATION_EXIT_TREE" value="11" enum=""> + <constant name="NOTIFICATION_EXIT_TREE" value="11"> </constant> - <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12" enum=""> + <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12"> </constant> - <constant name="NOTIFICATION_READY" value="13" enum=""> + <constant name="NOTIFICATION_READY" value="13"> </constant> - <constant name="NOTIFICATION_PAUSED" value="14" enum=""> + <constant name="NOTIFICATION_PAUSED" value="14"> </constant> - <constant name="NOTIFICATION_UNPAUSED" value="15" enum=""> + <constant name="NOTIFICATION_UNPAUSED" value="15"> </constant> - <constant name="NOTIFICATION_PHYSICS_PROCESS" value="16" enum=""> + <constant name="NOTIFICATION_PHYSICS_PROCESS" value="16"> Notification received every frame when the physics process flag is set (see [method set_physics_process]). </constant> - <constant name="NOTIFICATION_PROCESS" value="17" enum=""> + <constant name="NOTIFICATION_PROCESS" value="17"> Notification received every frame when the process flag is set (see [method set_process]). </constant> - <constant name="NOTIFICATION_PARENTED" value="18" enum=""> + <constant name="NOTIFICATION_PARENTED" value="18"> 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" enum=""> + <constant name="NOTIFICATION_UNPARENTED" value="19"> Notification received when a node is unparented (parent removed it from the list of children). </constant> - <constant name="NOTIFICATION_INSTANCED" value="20" enum=""> + <constant name="NOTIFICATION_INSTANCED" value="20"> </constant> - <constant name="NOTIFICATION_DRAG_BEGIN" value="21" enum=""> + <constant name="NOTIFICATION_DRAG_BEGIN" value="21"> </constant> - <constant name="NOTIFICATION_DRAG_END" value="22" enum=""> + <constant name="NOTIFICATION_DRAG_END" value="22"> </constant> - <constant name="NOTIFICATION_PATH_CHANGED" value="23" enum=""> + <constant name="NOTIFICATION_PATH_CHANGED" value="23"> </constant> - <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24" enum=""> + <constant name="NOTIFICATION_TRANSLATION_CHANGED" value="24"> </constant> - <constant name="NOTIFICATION_INTERNAL_PROCESS" value="25" enum=""> + <constant name="NOTIFICATION_INTERNAL_PROCESS" value="25"> </constant> - <constant name="NOTIFICATION_INTERNAL_PHYSICS_PROCESS" value="26" enum=""> + <constant name="NOTIFICATION_INTERNAL_PHYSICS_PROCESS" value="26"> </constant> - <constant name="RPC_MODE_DISABLED" value="0"> + <constant name="RPC_MODE_DISABLED" value="0" enum="RPCMode"> </constant> - <constant name="RPC_MODE_REMOTE" value="1"> + <constant name="RPC_MODE_REMOTE" value="1" enum="RPCMode"> Call a method remotely. </constant> - <constant name="RPC_MODE_SYNC" value="2"> + <constant name="RPC_MODE_SYNC" value="2" enum="RPCMode"> Call a method both remotely and locally. </constant> - <constant name="RPC_MODE_MASTER" value="3"> + <constant name="RPC_MODE_MASTER" value="3" enum="RPCMode"> Call a method if the Node is Master. </constant> - <constant name="RPC_MODE_SLAVE" value="4"> + <constant name="RPC_MODE_SLAVE" value="4" enum="RPCMode"> Call a method if the Node is Slave. </constant> - <constant name="PAUSE_MODE_INHERIT" value="0"> + <constant name="PAUSE_MODE_INHERIT" value="0" enum="PauseMode"> Inherits pause mode from parent. For root node, it is equivalent to PAUSE_MODE_STOP. </constant> - <constant name="PAUSE_MODE_STOP" value="1"> + <constant name="PAUSE_MODE_STOP" value="1" enum="PauseMode"> Stop processing when SceneTree is paused. </constant> - <constant name="PAUSE_MODE_PROCESS" value="2"> + <constant name="PAUSE_MODE_PROCESS" value="2" enum="PauseMode"> Continue to process regardless of SceneTree pause state. </constant> - <constant name="DUPLICATE_SIGNALS" value="1"> + <constant name="DUPLICATE_SIGNALS" value="1" enum="DuplicateFlags"> </constant> - <constant name="DUPLICATE_GROUPS" value="2"> + <constant name="DUPLICATE_GROUPS" value="2" enum="DuplicateFlags"> </constant> - <constant name="DUPLICATE_SCRIPTS" value="4"> + <constant name="DUPLICATE_SCRIPTS" value="4" enum="DuplicateFlags"> </constant> - <constant name="DUPLICATE_USE_INSTANCING" value="8"> + <constant name="DUPLICATE_USE_INSTANCING" value="8" enum="DuplicateFlags"> </constant> </constants> </class> diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 2a0e627fa4..902bf4ebfa 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -828,83 +828,83 @@ </method> </methods> <constants> - <constant name="DAY_SUNDAY" value="0"> + <constant name="DAY_SUNDAY" value="0" enum="Weekday"> </constant> - <constant name="DAY_MONDAY" value="1"> + <constant name="DAY_MONDAY" value="1" enum="Weekday"> </constant> - <constant name="DAY_TUESDAY" value="2"> + <constant name="DAY_TUESDAY" value="2" enum="Weekday"> </constant> - <constant name="DAY_WEDNESDAY" value="3"> + <constant name="DAY_WEDNESDAY" value="3" enum="Weekday"> </constant> - <constant name="DAY_THURSDAY" value="4"> + <constant name="DAY_THURSDAY" value="4" enum="Weekday"> </constant> - <constant name="DAY_FRIDAY" value="5"> + <constant name="DAY_FRIDAY" value="5" enum="Weekday"> </constant> - <constant name="DAY_SATURDAY" value="6"> + <constant name="DAY_SATURDAY" value="6" enum="Weekday"> </constant> - <constant name="MONTH_JANUARY" value="1"> + <constant name="MONTH_JANUARY" value="1" enum="Month"> </constant> - <constant name="MONTH_FEBRUARY" value="2"> + <constant name="MONTH_FEBRUARY" value="2" enum="Month"> </constant> - <constant name="MONTH_MARCH" value="3"> + <constant name="MONTH_MARCH" value="3" enum="Month"> </constant> - <constant name="MONTH_APRIL" value="4"> + <constant name="MONTH_APRIL" value="4" enum="Month"> </constant> - <constant name="MONTH_MAY" value="5"> + <constant name="MONTH_MAY" value="5" enum="Month"> </constant> - <constant name="MONTH_JUNE" value="6"> + <constant name="MONTH_JUNE" value="6" enum="Month"> </constant> - <constant name="MONTH_JULY" value="7"> + <constant name="MONTH_JULY" value="7" enum="Month"> </constant> - <constant name="MONTH_AUGUST" value="8"> + <constant name="MONTH_AUGUST" value="8" enum="Month"> </constant> - <constant name="MONTH_SEPTEMBER" value="9"> + <constant name="MONTH_SEPTEMBER" value="9" enum="Month"> </constant> - <constant name="MONTH_OCTOBER" value="10"> + <constant name="MONTH_OCTOBER" value="10" enum="Month"> </constant> - <constant name="MONTH_NOVEMBER" value="11"> + <constant name="MONTH_NOVEMBER" value="11" enum="Month"> </constant> - <constant name="MONTH_DECEMBER" value="12"> + <constant name="MONTH_DECEMBER" value="12" enum="Month"> </constant> - <constant name="SCREEN_ORIENTATION_LANDSCAPE" value="0"> + <constant name="SCREEN_ORIENTATION_LANDSCAPE" value="0" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_PORTRAIT" value="1"> + <constant name="SCREEN_ORIENTATION_PORTRAIT" value="1" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_REVERSE_LANDSCAPE" value="2"> + <constant name="SCREEN_ORIENTATION_REVERSE_LANDSCAPE" value="2" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_REVERSE_PORTRAIT" value="3"> + <constant name="SCREEN_ORIENTATION_REVERSE_PORTRAIT" value="3" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_SENSOR_LANDSCAPE" value="4"> + <constant name="SCREEN_ORIENTATION_SENSOR_LANDSCAPE" value="4" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_SENSOR_PORTRAIT" value="5"> + <constant name="SCREEN_ORIENTATION_SENSOR_PORTRAIT" value="5" enum="ScreenOrientation"> </constant> - <constant name="SCREEN_ORIENTATION_SENSOR" value="6"> + <constant name="SCREEN_ORIENTATION_SENSOR" value="6" enum="ScreenOrientation"> </constant> - <constant name="SYSTEM_DIR_DESKTOP" value="0"> + <constant name="SYSTEM_DIR_DESKTOP" value="0" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_DCIM" value="1"> + <constant name="SYSTEM_DIR_DCIM" value="1" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_DOCUMENTS" value="2"> + <constant name="SYSTEM_DIR_DOCUMENTS" value="2" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_DOWNLOADS" value="3"> + <constant name="SYSTEM_DIR_DOWNLOADS" value="3" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_MOVIES" value="4"> + <constant name="SYSTEM_DIR_MOVIES" value="4" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_MUSIC" value="5"> + <constant name="SYSTEM_DIR_MUSIC" value="5" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_PICTURES" value="6"> + <constant name="SYSTEM_DIR_PICTURES" value="6" enum="SystemDir"> </constant> - <constant name="SYSTEM_DIR_RINGTONES" value="7"> + <constant name="SYSTEM_DIR_RINGTONES" value="7" enum="SystemDir"> </constant> - <constant name="POWERSTATE_UNKNOWN" value="0"> + <constant name="POWERSTATE_UNKNOWN" value="0" enum="PowerState"> </constant> - <constant name="POWERSTATE_ON_BATTERY" value="1"> + <constant name="POWERSTATE_ON_BATTERY" value="1" enum="PowerState"> </constant> - <constant name="POWERSTATE_NO_BATTERY" value="2"> + <constant name="POWERSTATE_NO_BATTERY" value="2" enum="PowerState"> </constant> - <constant name="POWERSTATE_CHARGING" value="3"> + <constant name="POWERSTATE_CHARGING" value="3" enum="PowerState"> </constant> - <constant name="POWERSTATE_CHARGED" value="4"> + <constant name="POWERSTATE_CHARGED" value="4" enum="PowerState"> </constant> </constants> </class> diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index 64b3686b05..5d0e51c481 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -402,19 +402,19 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_POSTINITIALIZE" value="0" enum=""> + <constant name="NOTIFICATION_POSTINITIALIZE" value="0"> Called right when the object is initialized. Not available in script. </constant> - <constant name="NOTIFICATION_PREDELETE" value="1" enum=""> + <constant name="NOTIFICATION_PREDELETE" value="1"> Called before the object is about to be deleted. </constant> - <constant name="CONNECT_DEFERRED" value="1"> + <constant name="CONNECT_DEFERRED" value="1" enum="ConnectFlags"> Connect a signal in deferred mode. This way, signal emissions are stored in a queue, then set on idle time. </constant> - <constant name="CONNECT_PERSIST" value="2"> + <constant name="CONNECT_PERSIST" value="2" enum="ConnectFlags"> Persisting connections are saved when the object is serialized to file. </constant> - <constant name="CONNECT_ONESHOT" value="4"> + <constant name="CONNECT_ONESHOT" value="4" enum="ConnectFlags"> One shot connections disconnect themselves after emission. </constant> </constants> diff --git a/doc/classes/OccluderPolygon2D.xml b/doc/classes/OccluderPolygon2D.xml index 41a1393d07..f11f82c7de 100644 --- a/doc/classes/OccluderPolygon2D.xml +++ b/doc/classes/OccluderPolygon2D.xml @@ -24,13 +24,13 @@ </member> </members> <constants> - <constant name="CULL_DISABLED" value="0"> + <constant name="CULL_DISABLED" value="0" enum="CullMode"> Culling mode for the occlusion. Disabled means no culling. See [member cull_mode]. </constant> - <constant name="CULL_CLOCKWISE" value="1"> + <constant name="CULL_CLOCKWISE" value="1" enum="CullMode"> Culling mode for the occlusion. Sets the culling to be in clockwise direction. See [member cull_mode]. </constant> - <constant name="CULL_COUNTER_CLOCKWISE" value="2"> + <constant name="CULL_COUNTER_CLOCKWISE" value="2" enum="CullMode"> Culling mode for the occlusion. Sets the culling to be in counter clockwise direction. See [member cull_mode]. </constant> </constants> diff --git a/doc/classes/OmniLight.xml b/doc/classes/OmniLight.xml index 477789e09d..f0c5c81a47 100644 --- a/doc/classes/OmniLight.xml +++ b/doc/classes/OmniLight.xml @@ -23,13 +23,13 @@ </member> </members> <constants> - <constant name="SHADOW_DUAL_PARABOLOID" value="0"> + <constant name="SHADOW_DUAL_PARABOLOID" value="0" enum="ShadowMode"> </constant> - <constant name="SHADOW_CUBE" value="1"> + <constant name="SHADOW_CUBE" value="1" enum="ShadowMode"> </constant> - <constant name="SHADOW_DETAIL_VERTICAL" value="0"> + <constant name="SHADOW_DETAIL_VERTICAL" value="0" enum="ShadowDetail"> </constant> - <constant name="SHADOW_DETAIL_HORIZONTAL" value="1"> + <constant name="SHADOW_DETAIL_HORIZONTAL" value="1" enum="ShadowDetail"> </constant> </constants> </class> diff --git a/doc/classes/PackedScene.xml b/doc/classes/PackedScene.xml index 8412d6dba4..3940995936 100644 --- a/doc/classes/PackedScene.xml +++ b/doc/classes/PackedScene.xml @@ -45,11 +45,11 @@ </member> </members> <constants> - <constant name="GEN_EDIT_STATE_DISABLED" value="0"> + <constant name="GEN_EDIT_STATE_DISABLED" value="0" enum="GenEditState"> </constant> - <constant name="GEN_EDIT_STATE_INSTANCE" value="1"> + <constant name="GEN_EDIT_STATE_INSTANCE" value="1" enum="GenEditState"> </constant> - <constant name="GEN_EDIT_STATE_MAIN" value="2"> + <constant name="GEN_EDIT_STATE_MAIN" value="2" enum="GenEditState"> </constant> </constants> </class> diff --git a/doc/classes/Particles.xml b/doc/classes/Particles.xml index b413183921..2a5dcb26e8 100644 --- a/doc/classes/Particles.xml +++ b/doc/classes/Particles.xml @@ -76,16 +76,16 @@ </member> </members> <constants> - <constant name="DRAW_ORDER_INDEX" value="0"> + <constant name="DRAW_ORDER_INDEX" value="0" enum="DrawOrder"> Particles are drawn in the order emitted. </constant> - <constant name="DRAW_ORDER_LIFETIME" value="1"> + <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> Particles are drawn in order of remaining lifetime. </constant> - <constant name="DRAW_ORDER_VIEW_DEPTH" value="2"> + <constant name="DRAW_ORDER_VIEW_DEPTH" value="2" enum="DrawOrder"> Particles are drawn in order of depth. </constant> - <constant name="MAX_DRAW_PASSES" value="4" enum=""> + <constant name="MAX_DRAW_PASSES" value="4"> </constant> </constants> </class> diff --git a/doc/classes/Particles2D.xml b/doc/classes/Particles2D.xml index 8126bab2c6..8b908a1fa2 100644 --- a/doc/classes/Particles2D.xml +++ b/doc/classes/Particles2D.xml @@ -79,10 +79,10 @@ </member> </members> <constants> - <constant name="DRAW_ORDER_INDEX" value="0"> + <constant name="DRAW_ORDER_INDEX" value="0" enum="DrawOrder"> Particles are drawn in the order emitted. </constant> - <constant name="DRAW_ORDER_LIFETIME" value="1"> + <constant name="DRAW_ORDER_LIFETIME" value="1" enum="DrawOrder"> Particles are drawn in order of remaining lifetime. </constant> </constants> diff --git a/doc/classes/ParticlesMaterial.xml b/doc/classes/ParticlesMaterial.xml index e75a308183..42bc1b2d05 100644 --- a/doc/classes/ParticlesMaterial.xml +++ b/doc/classes/ParticlesMaterial.xml @@ -172,64 +172,64 @@ </member> </members> <constants> - <constant name="PARAM_INITIAL_LINEAR_VELOCITY" value="0"> + <constant name="PARAM_INITIAL_LINEAR_VELOCITY" value="0" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set initial velocity properties. </constant> - <constant name="PARAM_ANGULAR_VELOCITY" value="1"> + <constant name="PARAM_ANGULAR_VELOCITY" value="1" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set angular velocity properties. </constant> - <constant name="PARAM_ORBIT_VELOCITY" value="2"> + <constant name="PARAM_ORBIT_VELOCITY" value="2" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set orbital_velocity properties. </constant> - <constant name="PARAM_LINEAR_ACCEL" value="3"> + <constant name="PARAM_LINEAR_ACCEL" value="3" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set linear acceleration properties. </constant> - <constant name="PARAM_RADIAL_ACCEL" value="4"> + <constant name="PARAM_RADIAL_ACCEL" value="4" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set radial acceleration properties. </constant> - <constant name="PARAM_TANGENTIAL_ACCEL" value="5"> + <constant name="PARAM_TANGENTIAL_ACCEL" value="5" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set tangential acceleration properties. </constant> - <constant name="PARAM_DAMPING" value="6"> + <constant name="PARAM_DAMPING" value="6" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set damping properties. </constant> - <constant name="PARAM_ANGLE" value="7"> + <constant name="PARAM_ANGLE" value="7" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set angle properties. </constant> - <constant name="PARAM_SCALE" value="8"> + <constant name="PARAM_SCALE" value="8" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set scale properties. </constant> - <constant name="PARAM_HUE_VARIATION" value="9"> + <constant name="PARAM_HUE_VARIATION" value="9" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set hue_variation properties. </constant> - <constant name="PARAM_ANIM_SPEED" value="10"> + <constant name="PARAM_ANIM_SPEED" value="10" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set animation speed properties. </constant> - <constant name="PARAM_ANIM_OFFSET" value="11"> + <constant name="PARAM_ANIM_OFFSET" value="11" enum="Parameter"> Use with [method set_param], [method set_param_randomness], and [method set_param_texture] to set animation offset properties. </constant> - <constant name="PARAM_MAX" value="12"> + <constant name="PARAM_MAX" value="12" enum="Parameter"> </constant> - <constant name="FLAG_ALIGN_Y_TO_VELOCITY" value="0"> + <constant name="FLAG_ALIGN_Y_TO_VELOCITY" value="0" enum="Flags"> Use with [method set_flag] to set [member flag_align_y]. </constant> - <constant name="FLAG_ROTATE_Y" value="1"> + <constant name="FLAG_ROTATE_Y" value="1" enum="Flags"> Use with [method set_flag] to set [member flag_rotate_y] </constant> - <constant name="FLAG_MAX" value="4"> + <constant name="FLAG_MAX" value="4" enum="Flags"> </constant> - <constant name="EMISSION_SHAPE_POINT" value="0"> + <constant name="EMISSION_SHAPE_POINT" value="0" enum="EmissionShape"> All particles will be emitted from a single point. </constant> - <constant name="EMISSION_SHAPE_SPHERE" value="1"> + <constant name="EMISSION_SHAPE_SPHERE" value="1" enum="EmissionShape"> Particles will be emitted in the volume of a sphere. </constant> - <constant name="EMISSION_SHAPE_BOX" value="2"> + <constant name="EMISSION_SHAPE_BOX" value="2" enum="EmissionShape"> Particles will be emitted in the volume of a box. </constant> - <constant name="EMISSION_SHAPE_POINTS" value="3"> + <constant name="EMISSION_SHAPE_POINTS" value="3" enum="EmissionShape"> </constant> - <constant name="EMISSION_SHAPE_DIRECTED_POINTS" value="4"> + <constant name="EMISSION_SHAPE_DIRECTED_POINTS" value="4" enum="EmissionShape"> </constant> </constants> </class> diff --git a/doc/classes/PathFollow.xml b/doc/classes/PathFollow.xml index 4270b0d490..de7bb8715c 100644 --- a/doc/classes/PathFollow.xml +++ b/doc/classes/PathFollow.xml @@ -129,16 +129,16 @@ </method> </methods> <constants> - <constant name="ROTATION_NONE" value="0"> + <constant name="ROTATION_NONE" value="0" enum="RotationMode"> Forbids the PathFollow to rotate. </constant> - <constant name="ROTATION_Y" value="1"> + <constant name="ROTATION_Y" value="1" enum="RotationMode"> Allows the PathFollow to rotate in the Y axis only. </constant> - <constant name="ROTATION_XY" value="2"> + <constant name="ROTATION_XY" value="2" enum="RotationMode"> Allows the PathFollow to rotate in both the X, and Y axes. </constant> - <constant name="ROTATION_XYZ" value="3"> + <constant name="ROTATION_XYZ" value="3" enum="RotationMode"> Allows the PathFollow to rotate in any axis. </constant> </constants> diff --git a/doc/classes/Performance.xml b/doc/classes/Performance.xml index b402952d5b..5781d6c604 100644 --- a/doc/classes/Performance.xml +++ b/doc/classes/Performance.xml @@ -26,87 +26,87 @@ </method> </methods> <constants> - <constant name="TIME_FPS" value="0"> + <constant name="TIME_FPS" value="0" enum="Monitor"> Frames per second. </constant> - <constant name="TIME_PROCESS" value="1"> + <constant name="TIME_PROCESS" value="1" enum="Monitor"> Time it took to complete one frame. </constant> - <constant name="TIME_PHYSICS_PROCESS" value="2"> + <constant name="TIME_PHYSICS_PROCESS" value="2" enum="Monitor"> Time it took to complete one physics frame. </constant> - <constant name="MEMORY_STATIC" value="3"> + <constant name="MEMORY_STATIC" value="3" enum="Monitor"> Static memory currently used, in bytes. Not available in release builds. </constant> - <constant name="MEMORY_DYNAMIC" value="4"> + <constant name="MEMORY_DYNAMIC" value="4" enum="Monitor"> Dynamic memory currently used, in bytes. Not available in release builds. </constant> - <constant name="MEMORY_STATIC_MAX" value="5"> + <constant name="MEMORY_STATIC_MAX" value="5" enum="Monitor"> Available static memory. Not available in release builds. </constant> - <constant name="MEMORY_DYNAMIC_MAX" value="6"> + <constant name="MEMORY_DYNAMIC_MAX" value="6" enum="Monitor"> Available dynamic memory. Not available in release builds. </constant> - <constant name="MEMORY_MESSAGE_BUFFER_MAX" value="7"> + <constant name="MEMORY_MESSAGE_BUFFER_MAX" value="7" enum="Monitor"> Largest amount of memory the message queue buffer has used, in bytes. The message queue is used for deferred functions calls and notifications. </constant> - <constant name="OBJECT_COUNT" value="8"> + <constant name="OBJECT_COUNT" value="8" enum="Monitor"> Number of objects currently instanced (including nodes). </constant> - <constant name="OBJECT_RESOURCE_COUNT" value="9"> + <constant name="OBJECT_RESOURCE_COUNT" value="9" enum="Monitor"> Number of resources currently used. </constant> - <constant name="OBJECT_NODE_COUNT" value="10"> + <constant name="OBJECT_NODE_COUNT" value="10" enum="Monitor"> Number of nodes currently instanced. This also includes the root node, as well as any nodes not in the scene tree. </constant> - <constant name="RENDER_OBJECTS_IN_FRAME" value="11"> + <constant name="RENDER_OBJECTS_IN_FRAME" value="11" enum="Monitor"> 3D objects drawn per frame. </constant> - <constant name="RENDER_VERTICES_IN_FRAME" value="12"> + <constant name="RENDER_VERTICES_IN_FRAME" value="12" enum="Monitor"> Vertices drawn per frame. 3D only. </constant> - <constant name="RENDER_MATERIAL_CHANGES_IN_FRAME" value="13"> + <constant name="RENDER_MATERIAL_CHANGES_IN_FRAME" value="13" enum="Monitor"> Material changes per frame. 3D only </constant> - <constant name="RENDER_SHADER_CHANGES_IN_FRAME" value="14"> + <constant name="RENDER_SHADER_CHANGES_IN_FRAME" value="14" enum="Monitor"> Shader changes per frame. 3D only. </constant> - <constant name="RENDER_SURFACE_CHANGES_IN_FRAME" value="15"> + <constant name="RENDER_SURFACE_CHANGES_IN_FRAME" value="15" enum="Monitor"> Render surface changes per frame. 3D only. </constant> - <constant name="RENDER_DRAW_CALLS_IN_FRAME" value="16"> + <constant name="RENDER_DRAW_CALLS_IN_FRAME" value="16" enum="Monitor"> Draw calls per frame. 3D only. </constant> - <constant name="RENDER_VIDEO_MEM_USED" value="17"> + <constant name="RENDER_VIDEO_MEM_USED" value="17" enum="Monitor"> Video memory used. Includes both texture and vertex memory. </constant> - <constant name="RENDER_TEXTURE_MEM_USED" value="18"> + <constant name="RENDER_TEXTURE_MEM_USED" value="18" enum="Monitor"> Texture memory used. </constant> - <constant name="RENDER_VERTEX_MEM_USED" value="19"> + <constant name="RENDER_VERTEX_MEM_USED" value="19" enum="Monitor"> Vertex memory used. </constant> - <constant name="RENDER_USAGE_VIDEO_MEM_TOTAL" value="20"> + <constant name="RENDER_USAGE_VIDEO_MEM_TOTAL" value="20" enum="Monitor"> </constant> - <constant name="PHYSICS_2D_ACTIVE_OBJECTS" value="21"> + <constant name="PHYSICS_2D_ACTIVE_OBJECTS" value="21" enum="Monitor"> Number of active [RigidBody2D] nodes in the game. </constant> - <constant name="PHYSICS_2D_COLLISION_PAIRS" value="22"> + <constant name="PHYSICS_2D_COLLISION_PAIRS" value="22" enum="Monitor"> Number of collision pairs in the 2D physics engine. </constant> - <constant name="PHYSICS_2D_ISLAND_COUNT" value="23"> + <constant name="PHYSICS_2D_ISLAND_COUNT" value="23" enum="Monitor"> Number of islands in the 2D physics engine. </constant> - <constant name="PHYSICS_3D_ACTIVE_OBJECTS" value="24"> + <constant name="PHYSICS_3D_ACTIVE_OBJECTS" value="24" enum="Monitor"> Number of active [RigidBody] and [VehicleBody] nodes in the game. </constant> - <constant name="PHYSICS_3D_COLLISION_PAIRS" value="25"> + <constant name="PHYSICS_3D_COLLISION_PAIRS" value="25" enum="Monitor"> Number of collision pairs in the 3D physics engine. </constant> - <constant name="PHYSICS_3D_ISLAND_COUNT" value="26"> + <constant name="PHYSICS_3D_ISLAND_COUNT" value="26" enum="Monitor"> Number of islands in the 3D physics engine. </constant> - <constant name="MONITOR_MAX" value="27"> + <constant name="MONITOR_MAX" value="27" enum="Monitor"> </constant> </constants> </class> diff --git a/doc/classes/Physics2DServer.xml b/doc/classes/Physics2DServer.xml index 1511679eed..67f5f84a49 100644 --- a/doc/classes/Physics2DServer.xml +++ b/doc/classes/Physics2DServer.xml @@ -989,183 +989,183 @@ </method> </methods> <constants> - <constant name="SPACE_PARAM_CONTACT_RECYCLE_RADIUS" value="0"> + <constant name="SPACE_PARAM_CONTACT_RECYCLE_RADIUS" value="0" enum="SpaceParameter"> Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. </constant> - <constant name="SPACE_PARAM_CONTACT_MAX_SEPARATION" value="1"> + <constant name="SPACE_PARAM_CONTACT_MAX_SEPARATION" value="1" enum="SpaceParameter"> Constant to set/get the maximum distance a shape can be from another before they are considered separated. </constant> - <constant name="SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION" value="2"> + <constant name="SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION" value="2" enum="SpaceParameter"> Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. </constant> - <constant name="SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD" value="3"> + <constant name="SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD" value="3" enum="SpaceParameter"> Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. </constant> - <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD" value="4"> + <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD" value="4" enum="SpaceParameter"> Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. </constant> - <constant name="SPACE_PARAM_BODY_TIME_TO_SLEEP" value="5"> + <constant name="SPACE_PARAM_BODY_TIME_TO_SLEEP" value="5" enum="SpaceParameter"> Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. </constant> - <constant name="SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS" value="6"> + <constant name="SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS" value="6" enum="SpaceParameter"> Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. </constant> - <constant name="SHAPE_LINE" value="0"> + <constant name="SHAPE_LINE" value="0" enum="ShapeType"> This is the constant for creating line shapes. A line shape is an infinite line with an origin point, and a normal. Thus, it can be used for front/behind checks. </constant> - <constant name="SHAPE_RAY" value="1"> + <constant name="SHAPE_RAY" value="1" enum="ShapeType"> </constant> - <constant name="SHAPE_SEGMENT" value="2"> + <constant name="SHAPE_SEGMENT" value="2" enum="ShapeType"> This is the constant for creating segment shapes. A segment shape is a line from a point A to a point B. It can be checked for intersections. </constant> - <constant name="SHAPE_CIRCLE" value="3"> + <constant name="SHAPE_CIRCLE" value="3" enum="ShapeType"> This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks. </constant> - <constant name="SHAPE_RECTANGLE" value="4"> + <constant name="SHAPE_RECTANGLE" value="4" enum="ShapeType"> This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks. </constant> - <constant name="SHAPE_CAPSULE" value="5"> + <constant name="SHAPE_CAPSULE" value="5" enum="ShapeType"> This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks. </constant> - <constant name="SHAPE_CONVEX_POLYGON" value="6"> + <constant name="SHAPE_CONVEX_POLYGON" value="6" enum="ShapeType"> This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks. Unlike the method [method CollisionPolygon2D.set_polygon], polygons modified with [method shape_set_data] do not verify that the points supplied form is a convex polygon. </constant> - <constant name="SHAPE_CONCAVE_POLYGON" value="7"> + <constant name="SHAPE_CONCAVE_POLYGON" value="7" enum="ShapeType"> This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks. </constant> - <constant name="SHAPE_CUSTOM" value="8"> + <constant name="SHAPE_CUSTOM" value="8" enum="ShapeType"> This constant is used internally by the engine. Any attempt to create this kind of shape results in an error. </constant> - <constant name="AREA_PARAM_GRAVITY" value="0"> + <constant name="AREA_PARAM_GRAVITY" value="0" enum="AreaParameter"> Constant to set/get gravity strength in an area. </constant> - <constant name="AREA_PARAM_GRAVITY_VECTOR" value="1"> + <constant name="AREA_PARAM_GRAVITY_VECTOR" value="1" enum="AreaParameter"> Constant to set/get gravity vector/center in an area. </constant> - <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="2"> + <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="2" enum="AreaParameter"> Constant to set/get whether the gravity vector of an area is a direction, or a center point. </constant> - <constant name="AREA_PARAM_GRAVITY_DISTANCE_SCALE" value="3"> + <constant name="AREA_PARAM_GRAVITY_DISTANCE_SCALE" value="3" enum="AreaParameter"> Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance. </constant> - <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4"> + <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4" enum="AreaParameter"> This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE. </constant> - <constant name="AREA_PARAM_LINEAR_DAMP" value="5"> + <constant name="AREA_PARAM_LINEAR_DAMP" value="5" enum="AreaParameter"> Constant to set/get the linear dampening factor of an area. </constant> - <constant name="AREA_PARAM_ANGULAR_DAMP" value="6"> + <constant name="AREA_PARAM_ANGULAR_DAMP" value="6" enum="AreaParameter"> Constant to set/get the angular dampening factor of an area. </constant> - <constant name="AREA_PARAM_PRIORITY" value="7"> + <constant name="AREA_PARAM_PRIORITY" value="7" enum="AreaParameter"> Constant to set/get the priority (order of processing) of an area. </constant> - <constant name="AREA_SPACE_OVERRIDE_DISABLED" value="0"> + <constant name="AREA_SPACE_OVERRIDE_DISABLED" value="0" enum="AreaSpaceOverrideMode"> This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. </constant> - <constant name="AREA_SPACE_OVERRIDE_COMBINE" value="1"> + <constant name="AREA_SPACE_OVERRIDE_COMBINE" value="1" enum="AreaSpaceOverrideMode"> This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. </constant> - <constant name="AREA_SPACE_OVERRIDE_COMBINE_REPLACE" value="2"> + <constant name="AREA_SPACE_OVERRIDE_COMBINE_REPLACE" value="2" enum="AreaSpaceOverrideMode"> This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. </constant> - <constant name="AREA_SPACE_OVERRIDE_REPLACE" value="3"> + <constant name="AREA_SPACE_OVERRIDE_REPLACE" value="3" enum="AreaSpaceOverrideMode"> This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. </constant> - <constant name="AREA_SPACE_OVERRIDE_REPLACE_COMBINE" value="4"> + <constant name="AREA_SPACE_OVERRIDE_REPLACE_COMBINE" value="4" enum="AreaSpaceOverrideMode"> This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. </constant> - <constant name="BODY_MODE_STATIC" value="0"> + <constant name="BODY_MODE_STATIC" value="0" enum="BodyMode"> Constant for static bodies. </constant> - <constant name="BODY_MODE_KINEMATIC" value="1"> + <constant name="BODY_MODE_KINEMATIC" value="1" enum="BodyMode"> Constant for kinematic bodies. </constant> - <constant name="BODY_MODE_RIGID" value="2"> + <constant name="BODY_MODE_RIGID" value="2" enum="BodyMode"> Constant for rigid bodies. </constant> - <constant name="BODY_MODE_CHARACTER" value="3"> + <constant name="BODY_MODE_CHARACTER" value="3" enum="BodyMode"> Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics. </constant> - <constant name="BODY_PARAM_BOUNCE" value="0"> + <constant name="BODY_PARAM_BOUNCE" value="0" enum="BodyParameter"> Constant to set/get a body's bounce factor. </constant> - <constant name="BODY_PARAM_FRICTION" value="1"> + <constant name="BODY_PARAM_FRICTION" value="1" enum="BodyParameter"> Constant to set/get a body's friction. </constant> - <constant name="BODY_PARAM_MASS" value="2"> + <constant name="BODY_PARAM_MASS" value="2" enum="BodyParameter"> Constant to set/get a body's mass. </constant> - <constant name="BODY_PARAM_INERTIA" value="3"> + <constant name="BODY_PARAM_INERTIA" value="3" enum="BodyParameter"> Constant to set/get a body's inertia. </constant> - <constant name="BODY_PARAM_GRAVITY_SCALE" value="4"> + <constant name="BODY_PARAM_GRAVITY_SCALE" value="4" enum="BodyParameter"> Constant to set/get a body's gravity multiplier. </constant> - <constant name="BODY_PARAM_LINEAR_DAMP" value="5"> + <constant name="BODY_PARAM_LINEAR_DAMP" value="5" enum="BodyParameter"> Constant to set/get a body's linear dampening factor. </constant> - <constant name="BODY_PARAM_ANGULAR_DAMP" value="6"> + <constant name="BODY_PARAM_ANGULAR_DAMP" value="6" enum="BodyParameter"> Constant to set/get a body's angular dampening factor. </constant> - <constant name="BODY_PARAM_MAX" value="7"> + <constant name="BODY_PARAM_MAX" value="7" enum="BodyParameter"> This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. </constant> - <constant name="BODY_STATE_TRANSFORM" value="0"> + <constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState"> Constant to set/get the current transform matrix of the body. </constant> - <constant name="BODY_STATE_LINEAR_VELOCITY" value="1"> + <constant name="BODY_STATE_LINEAR_VELOCITY" value="1" enum="BodyState"> Constant to set/get the current linear velocity of the body. </constant> - <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2"> + <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2" enum="BodyState"> Constant to set/get the current angular velocity of the body. </constant> - <constant name="BODY_STATE_SLEEPING" value="3"> + <constant name="BODY_STATE_SLEEPING" value="3" enum="BodyState"> Constant to sleep/wake up a body, or to get whether it is sleeping. </constant> - <constant name="BODY_STATE_CAN_SLEEP" value="4"> + <constant name="BODY_STATE_CAN_SLEEP" value="4" enum="BodyState"> Constant to set/get whether the body can sleep. </constant> - <constant name="JOINT_PIN" value="0"> + <constant name="JOINT_PIN" value="0" enum="JointType"> Constant to create pin joints. </constant> - <constant name="JOINT_GROOVE" value="1"> + <constant name="JOINT_GROOVE" value="1" enum="JointType"> Constant to create groove joints. </constant> - <constant name="JOINT_DAMPED_SPRING" value="2"> + <constant name="JOINT_DAMPED_SPRING" value="2" enum="JointType"> Constant to create damped spring joints. </constant> - <constant name="DAMPED_STRING_REST_LENGTH" value="0"> + <constant name="DAMPED_STRING_REST_LENGTH" value="0" enum="DampedStringParam"> Set the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. </constant> - <constant name="DAMPED_STRING_STIFFNESS" value="1"> + <constant name="DAMPED_STRING_STIFFNESS" value="1" enum="DampedStringParam"> Set the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. </constant> - <constant name="DAMPED_STRING_DAMPING" value="2"> + <constant name="DAMPED_STRING_DAMPING" value="2" enum="DampedStringParam"> Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). </constant> - <constant name="CCD_MODE_DISABLED" value="0"> + <constant name="CCD_MODE_DISABLED" value="0" enum="CCDMode"> Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. </constant> - <constant name="CCD_MODE_CAST_RAY" value="1"> + <constant name="CCD_MODE_CAST_RAY" value="1" enum="CCDMode"> Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise. </constant> - <constant name="CCD_MODE_CAST_SHAPE" value="2"> + <constant name="CCD_MODE_CAST_SHAPE" value="2" enum="CCDMode"> Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. </constant> - <constant name="AREA_BODY_ADDED" value="0"> + <constant name="AREA_BODY_ADDED" value="0" enum="AreaBodyStatus"> The value of the first parameter and area callback function receives, when an object enters one of its shapes. </constant> - <constant name="AREA_BODY_REMOVED" value="1"> + <constant name="AREA_BODY_REMOVED" value="1" enum="AreaBodyStatus"> The value of the first parameter and area callback function receives, when an object exits one of its shapes. </constant> - <constant name="INFO_ACTIVE_OBJECTS" value="0"> + <constant name="INFO_ACTIVE_OBJECTS" value="0" enum="ProcessInfo"> Constant to get the number of objects that are not sleeping. </constant> - <constant name="INFO_COLLISION_PAIRS" value="1"> + <constant name="INFO_COLLISION_PAIRS" value="1" enum="ProcessInfo"> Constant to get the number of possible collisions. </constant> - <constant name="INFO_ISLAND_COUNT" value="2"> + <constant name="INFO_ISLAND_COUNT" value="2" enum="ProcessInfo"> Constant to get the number of space regions where a collision could occur. </constant> </constants> diff --git a/doc/classes/PhysicsServer.xml b/doc/classes/PhysicsServer.xml index e45ccdef2e..eb7c735277 100644 --- a/doc/classes/PhysicsServer.xml +++ b/doc/classes/PhysicsServer.xml @@ -1170,365 +1170,365 @@ </method> </methods> <constants> - <constant name="JOINT_PIN" value="0"> + <constant name="JOINT_PIN" value="0" enum="JointType"> The [Joint] is a [PinJoint]. </constant> - <constant name="JOINT_HINGE" value="1"> + <constant name="JOINT_HINGE" value="1" enum="JointType"> The [Joint] is a [HingeJoint]. </constant> - <constant name="JOINT_SLIDER" value="2"> + <constant name="JOINT_SLIDER" value="2" enum="JointType"> The [Joint] is a [SliderJoint]. </constant> - <constant name="JOINT_CONE_TWIST" value="3"> + <constant name="JOINT_CONE_TWIST" value="3" enum="JointType"> The [Joint] is a [ConeTwistJoint]. </constant> - <constant name="JOINT_6DOF" value="4"> + <constant name="JOINT_6DOF" value="4" enum="JointType"> The [Joint] is a [Generic6DOFJoint]. </constant> - <constant name="PIN_JOINT_BIAS" value="0"> + <constant name="PIN_JOINT_BIAS" value="0" enum="PinJointParam"> The strength with which the pinned objects try to stay in positional relation to each other. The higher, the stronger. </constant> - <constant name="PIN_JOINT_DAMPING" value="1"> + <constant name="PIN_JOINT_DAMPING" value="1" enum="PinJointParam"> The strength with which the pinned objects try to stay in velocity relation to each other. The higher, the stronger. </constant> - <constant name="PIN_JOINT_IMPULSE_CLAMP" value="2"> + <constant name="PIN_JOINT_IMPULSE_CLAMP" value="2" enum="PinJointParam"> If above 0, this value is the maximum value for an impulse that this Joint puts on it's ends. </constant> - <constant name="HINGE_JOINT_BIAS" value="0"> + <constant name="HINGE_JOINT_BIAS" value="0" enum="HingeJointParam"> The speed with wich the two bodies get pulled together when they move in different directions. </constant> - <constant name="HINGE_JOINT_LIMIT_UPPER" value="1"> + <constant name="HINGE_JOINT_LIMIT_UPPER" value="1" enum="HingeJointParam"> The maximum rotation across the Hinge. </constant> - <constant name="HINGE_JOINT_LIMIT_LOWER" value="2"> + <constant name="HINGE_JOINT_LIMIT_LOWER" value="2" enum="HingeJointParam"> The minimum rotation across the Hinge. </constant> - <constant name="HINGE_JOINT_LIMIT_BIAS" value="3"> + <constant name="HINGE_JOINT_LIMIT_BIAS" value="3" enum="HingeJointParam"> The speed with which the rotation across the axis perpendicular to the hinge gets corrected. </constant> - <constant name="HINGE_JOINT_LIMIT_SOFTNESS" value="4"> + <constant name="HINGE_JOINT_LIMIT_SOFTNESS" value="4" enum="HingeJointParam"> </constant> - <constant name="HINGE_JOINT_LIMIT_RELAXATION" value="5"> + <constant name="HINGE_JOINT_LIMIT_RELAXATION" value="5" enum="HingeJointParam"> The lower this value, the more the rotation gets slowed down. </constant> - <constant name="HINGE_JOINT_MOTOR_TARGET_VELOCITY" value="6"> + <constant name="HINGE_JOINT_MOTOR_TARGET_VELOCITY" value="6" enum="HingeJointParam"> Target speed for the motor. </constant> - <constant name="HINGE_JOINT_MOTOR_MAX_IMPULSE" value="7"> + <constant name="HINGE_JOINT_MOTOR_MAX_IMPULSE" value="7" enum="HingeJointParam"> Maximum acceleration for the motor. </constant> - <constant name="HINGE_JOINT_FLAG_USE_LIMIT" value="0"> + <constant name="HINGE_JOINT_FLAG_USE_LIMIT" value="0" enum="HingeJointFlag"> If [code]true[/code] the Hinge has a maximum and a minimum rotation. </constant> - <constant name="HINGE_JOINT_FLAG_ENABLE_MOTOR" value="1"> + <constant name="HINGE_JOINT_FLAG_ENABLE_MOTOR" value="1" enum="HingeJointFlag"> If [code]true[/code] a motor turns the Hinge </constant> - <constant name="SLIDER_JOINT_LINEAR_LIMIT_UPPER" value="0"> + <constant name="SLIDER_JOINT_LINEAR_LIMIT_UPPER" value="0" enum="SliderJointParam"> The maximum difference between the pivot points on their x-axis before damping happens. </constant> - <constant name="SLIDER_JOINT_LINEAR_LIMIT_LOWER" value="1"> + <constant name="SLIDER_JOINT_LINEAR_LIMIT_LOWER" value="1" enum="SliderJointParam"> The minimum difference between the pivot points on their x-axis before damping happens. </constant> - <constant name="SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS" value="2"> + <constant name="SLIDER_JOINT_LINEAR_LIMIT_SOFTNESS" value="2" enum="SliderJointParam"> A factor applied to the movement accross the slider axis once the limits get surpassed. The lower, the slower the movement. </constant> - <constant name="SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION" value="3"> + <constant name="SLIDER_JOINT_LINEAR_LIMIT_RESTITUTION" value="3" enum="SliderJointParam"> The amount of restitution once the limits are surpassed. The lower, the more velocityenergy gets lost. </constant> - <constant name="SLIDER_JOINT_LINEAR_LIMIT_DAMPING" value="4"> + <constant name="SLIDER_JOINT_LINEAR_LIMIT_DAMPING" value="4" enum="SliderJointParam"> The amount of damping once the slider limits are surpassed. </constant> - <constant name="SLIDER_JOINT_LINEAR_MOTION_SOFTNESS" value="5"> + <constant name="SLIDER_JOINT_LINEAR_MOTION_SOFTNESS" value="5" enum="SliderJointParam"> A factor applied to the movement accross the slider axis as long as the slider is in the limits. The lower, the slower the movement. </constant> - <constant name="SLIDER_JOINT_LINEAR_MOTION_RESTITUTION" value="6"> + <constant name="SLIDER_JOINT_LINEAR_MOTION_RESTITUTION" value="6" enum="SliderJointParam"> The amount of restitution inside the slider limits. </constant> - <constant name="SLIDER_JOINT_LINEAR_MOTION_DAMPING" value="7"> + <constant name="SLIDER_JOINT_LINEAR_MOTION_DAMPING" value="7" enum="SliderJointParam"> The amount of damping inside the slider limits. </constant> - <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS" value="8"> + <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_SOFTNESS" value="8" enum="SliderJointParam"> A factor applied to the movement accross axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION" value="9"> + <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_RESTITUTION" value="9" enum="SliderJointParam"> The amount of restitution when movement is accross axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING" value="10"> + <constant name="SLIDER_JOINT_LINEAR_ORTHOGONAL_DAMPING" value="10" enum="SliderJointParam"> The amount of damping when movement is accross axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_ANGULAR_LIMIT_UPPER" value="11"> + <constant name="SLIDER_JOINT_ANGULAR_LIMIT_UPPER" value="11" enum="SliderJointParam"> The upper limit of rotation in the slider. </constant> - <constant name="SLIDER_JOINT_ANGULAR_LIMIT_LOWER" value="12"> + <constant name="SLIDER_JOINT_ANGULAR_LIMIT_LOWER" value="12" enum="SliderJointParam"> The lower limit of rotation in the slider. </constant> - <constant name="SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS" value="13"> + <constant name="SLIDER_JOINT_ANGULAR_LIMIT_SOFTNESS" value="13" enum="SliderJointParam"> A factor applied to the all rotation once the limit is surpassed. </constant> - <constant name="SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION" value="14"> + <constant name="SLIDER_JOINT_ANGULAR_LIMIT_RESTITUTION" value="14" enum="SliderJointParam"> The amount of restitution of the rotation when the limit is surpassed. </constant> - <constant name="SLIDER_JOINT_ANGULAR_LIMIT_DAMPING" value="15"> + <constant name="SLIDER_JOINT_ANGULAR_LIMIT_DAMPING" value="15" enum="SliderJointParam"> The amount of damping of the rotation when the limit is surpassed. </constant> - <constant name="SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS" value="16"> + <constant name="SLIDER_JOINT_ANGULAR_MOTION_SOFTNESS" value="16" enum="SliderJointParam"> A factor that gets applied to the all rotation in the limits. </constant> - <constant name="SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION" value="17"> + <constant name="SLIDER_JOINT_ANGULAR_MOTION_RESTITUTION" value="17" enum="SliderJointParam"> The amount of restitution of the rotation in the limits. </constant> - <constant name="SLIDER_JOINT_ANGULAR_MOTION_DAMPING" value="18"> + <constant name="SLIDER_JOINT_ANGULAR_MOTION_DAMPING" value="18" enum="SliderJointParam"> The amount of damping of the rotation in the limits. </constant> - <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS" value="19"> + <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_SOFTNESS" value="19" enum="SliderJointParam"> A factor that gets applied to the all rotation across axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION" value="20"> + <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_RESTITUTION" value="20" enum="SliderJointParam"> The amount of restitution of the rotation across axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING" value="21"> + <constant name="SLIDER_JOINT_ANGULAR_ORTHOGONAL_DAMPING" value="21" enum="SliderJointParam"> The amount of damping of the rotation across axes orthogonal to the slider. </constant> - <constant name="SLIDER_JOINT_MAX" value="22"> + <constant name="SLIDER_JOINT_MAX" value="22" enum="SliderJointParam"> End flag of SLIDER_JOINT_* constants, used internally. </constant> - <constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0"> + <constant name="CONE_TWIST_JOINT_SWING_SPAN" value="0" enum="ConeTwistJointParam"> Swing is rotation from side to side, around the axis perpendicular to the twist axis. The swing span defines, how much rotation will not get corrected allong the swing axis. Could be defined as looseness in the [ConeTwistJoint]. If below 0.05, this behaviour is locked. Default value: [code]PI/4[/code]. </constant> - <constant name="CONE_TWIST_JOINT_TWIST_SPAN" value="1"> + <constant name="CONE_TWIST_JOINT_TWIST_SPAN" value="1" enum="ConeTwistJointParam"> Twist is the rotation around the twist axis, this value defined how far the joint can twist. Twist is locked if below 0.05. </constant> - <constant name="CONE_TWIST_JOINT_BIAS" value="2"> + <constant name="CONE_TWIST_JOINT_BIAS" value="2" enum="ConeTwistJointParam"> The speed with which the swing or twist will take place. The higher, the faster. </constant> - <constant name="CONE_TWIST_JOINT_SOFTNESS" value="3"> + <constant name="CONE_TWIST_JOINT_SOFTNESS" value="3" enum="ConeTwistJointParam"> The ease with which the Joint twists, if it's too low, it takes more force to twist the joint. </constant> - <constant name="CONE_TWIST_JOINT_RELAXATION" value="4"> + <constant name="CONE_TWIST_JOINT_RELAXATION" value="4" enum="ConeTwistJointParam"> Defines, how fast the swing- and twist-speed-difference on both sides gets synced. </constant> - <constant name="G6DOF_JOINT_LINEAR_LOWER_LIMIT" value="0"> + <constant name="G6DOF_JOINT_LINEAR_LOWER_LIMIT" value="0" enum="G6DOFJointAxisParam"> The minimum difference between the pivot points' axes. </constant> - <constant name="G6DOF_JOINT_LINEAR_UPPER_LIMIT" value="1"> + <constant name="G6DOF_JOINT_LINEAR_UPPER_LIMIT" value="1" enum="G6DOFJointAxisParam"> The maximum difference between the pivot points' axes. </constant> - <constant name="G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS" value="2"> + <constant name="G6DOF_JOINT_LINEAR_LIMIT_SOFTNESS" value="2" enum="G6DOFJointAxisParam"> A factor that gets applied to the movement accross the axes. The lower, the slower the movement. </constant> - <constant name="G6DOF_JOINT_LINEAR_RESTITUTION" value="3"> + <constant name="G6DOF_JOINT_LINEAR_RESTITUTION" value="3" enum="G6DOFJointAxisParam"> The amount of restitution on the axes movement. The lower, the more velocity-energy gets lost. </constant> - <constant name="G6DOF_JOINT_LINEAR_DAMPING" value="4"> + <constant name="G6DOF_JOINT_LINEAR_DAMPING" value="4" enum="G6DOFJointAxisParam"> The amount of damping that happens at the linear motion across the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_LOWER_LIMIT" value="5"> + <constant name="G6DOF_JOINT_ANGULAR_LOWER_LIMIT" value="5" enum="G6DOFJointAxisParam"> The minimum rotation in negative direction to break loose and rotate arround the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_UPPER_LIMIT" value="6"> + <constant name="G6DOF_JOINT_ANGULAR_UPPER_LIMIT" value="6" enum="G6DOFJointAxisParam"> The minimum rotation in positive direction to break loose and rotate arround the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS" value="7"> + <constant name="G6DOF_JOINT_ANGULAR_LIMIT_SOFTNESS" value="7" enum="G6DOFJointAxisParam"> A factor that gets multiplied onto all rotations accross the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_DAMPING" value="8"> + <constant name="G6DOF_JOINT_ANGULAR_DAMPING" value="8" enum="G6DOFJointAxisParam"> The amount of rotational damping accross the axes. The lower, the more dampening occurs. </constant> - <constant name="G6DOF_JOINT_ANGULAR_RESTITUTION" value="9"> + <constant name="G6DOF_JOINT_ANGULAR_RESTITUTION" value="9" enum="G6DOFJointAxisParam"> The amount of rotational restitution accross the axes. The lower, the more restitution occurs. </constant> - <constant name="G6DOF_JOINT_ANGULAR_FORCE_LIMIT" value="10"> + <constant name="G6DOF_JOINT_ANGULAR_FORCE_LIMIT" value="10" enum="G6DOFJointAxisParam"> The maximum amount of force that can occur, when rotating arround the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_ERP" value="11"> + <constant name="G6DOF_JOINT_ANGULAR_ERP" value="11" enum="G6DOFJointAxisParam"> When correcting the crossing of limits in rotation accross the axes, this error tolerance factor defines how much the correction gets slowed down. The lower, the slower. </constant> - <constant name="G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY" value="12"> + <constant name="G6DOF_JOINT_ANGULAR_MOTOR_TARGET_VELOCITY" value="12" enum="G6DOFJointAxisParam"> Target speed for the motor at the axes. </constant> - <constant name="G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT" value="13"> + <constant name="G6DOF_JOINT_ANGULAR_MOTOR_FORCE_LIMIT" value="13" enum="G6DOFJointAxisParam"> Maximum acceleration for the motor at the axes. </constant> - <constant name="G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT" value="0"> + <constant name="G6DOF_JOINT_FLAG_ENABLE_LINEAR_LIMIT" value="0" enum="G6DOFJointAxisFlag"> If [code]set[/code] there is linear motion possible within the given limits. </constant> - <constant name="G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT" value="1"> + <constant name="G6DOF_JOINT_FLAG_ENABLE_ANGULAR_LIMIT" value="1" enum="G6DOFJointAxisFlag"> If [code]set[/code] there is rotational motion possible. </constant> - <constant name="G6DOF_JOINT_FLAG_ENABLE_MOTOR" value="2"> + <constant name="G6DOF_JOINT_FLAG_ENABLE_MOTOR" value="2" enum="G6DOFJointAxisFlag"> If [code]set[/code] there is a rotational motor across these axes. </constant> - <constant name="SHAPE_PLANE" value="0"> + <constant name="SHAPE_PLANE" value="0" enum="ShapeType"> The [Shape] is a [PlaneShape]. </constant> - <constant name="SHAPE_RAY" value="1"> + <constant name="SHAPE_RAY" value="1" enum="ShapeType"> The [Shape] is a [RayShape]. </constant> - <constant name="SHAPE_SPHERE" value="2"> + <constant name="SHAPE_SPHERE" value="2" enum="ShapeType"> The [Shape] is a [SphereShape]. </constant> - <constant name="SHAPE_BOX" value="3"> + <constant name="SHAPE_BOX" value="3" enum="ShapeType"> The [Shape] is a [BoxShape]. </constant> - <constant name="SHAPE_CAPSULE" value="4"> + <constant name="SHAPE_CAPSULE" value="4" enum="ShapeType"> The [Shape] is a [CapsuleShape]. </constant> - <constant name="SHAPE_CONVEX_POLYGON" value="5"> + <constant name="SHAPE_CONVEX_POLYGON" value="5" enum="ShapeType"> The [Shape] is a [ConvexPolygonShape]. </constant> - <constant name="SHAPE_CONCAVE_POLYGON" value="6"> + <constant name="SHAPE_CONCAVE_POLYGON" value="6" enum="ShapeType"> The [Shape] is a [ConcavePolygonShape]. </constant> - <constant name="SHAPE_HEIGHTMAP" value="7"> + <constant name="SHAPE_HEIGHTMAP" value="7" enum="ShapeType"> The [Shape] is a [HeightMapShape]. </constant> - <constant name="SHAPE_CUSTOM" value="8"> + <constant name="SHAPE_CUSTOM" value="8" enum="ShapeType"> This constant is used internally by the engine. Any attempt to create this kind of shape results in an error. </constant> - <constant name="AREA_PARAM_GRAVITY" value="0"> + <constant name="AREA_PARAM_GRAVITY" value="0" enum="AreaParameter"> Constant to set/get gravity strength in an area. </constant> - <constant name="AREA_PARAM_GRAVITY_VECTOR" value="1"> + <constant name="AREA_PARAM_GRAVITY_VECTOR" value="1" enum="AreaParameter"> Constant to set/get gravity vector/center in an area. </constant> - <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="2"> + <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="2" enum="AreaParameter"> Constant to set/get whether the gravity vector of an area is a direction, or a center point. </constant> - <constant name="AREA_PARAM_GRAVITY_DISTANCE_SCALE" value="3"> + <constant name="AREA_PARAM_GRAVITY_DISTANCE_SCALE" value="3" enum="AreaParameter"> Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance. </constant> - <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4"> + <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4" enum="AreaParameter"> This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE. </constant> - <constant name="AREA_PARAM_LINEAR_DAMP" value="5"> + <constant name="AREA_PARAM_LINEAR_DAMP" value="5" enum="AreaParameter"> Constant to set/get the linear dampening factor of an area. </constant> - <constant name="AREA_PARAM_ANGULAR_DAMP" value="6"> + <constant name="AREA_PARAM_ANGULAR_DAMP" value="6" enum="AreaParameter"> Constant to set/get the angular dampening factor of an area. </constant> - <constant name="AREA_PARAM_PRIORITY" value="7"> + <constant name="AREA_PARAM_PRIORITY" value="7" enum="AreaParameter"> Constant to set/get the priority (order of processing) of an area. </constant> - <constant name="AREA_SPACE_OVERRIDE_DISABLED" value="0"> + <constant name="AREA_SPACE_OVERRIDE_DISABLED" value="0" enum="AreaSpaceOverrideMode"> This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. </constant> - <constant name="AREA_SPACE_OVERRIDE_COMBINE" value="1"> + <constant name="AREA_SPACE_OVERRIDE_COMBINE" value="1" enum="AreaSpaceOverrideMode"> This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. </constant> - <constant name="AREA_SPACE_OVERRIDE_COMBINE_REPLACE" value="2"> + <constant name="AREA_SPACE_OVERRIDE_COMBINE_REPLACE" value="2" enum="AreaSpaceOverrideMode"> This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. </constant> - <constant name="AREA_SPACE_OVERRIDE_REPLACE" value="3"> + <constant name="AREA_SPACE_OVERRIDE_REPLACE" value="3" enum="AreaSpaceOverrideMode"> This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. </constant> - <constant name="AREA_SPACE_OVERRIDE_REPLACE_COMBINE" value="4"> + <constant name="AREA_SPACE_OVERRIDE_REPLACE_COMBINE" value="4" enum="AreaSpaceOverrideMode"> This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. </constant> - <constant name="BODY_MODE_STATIC" value="0"> + <constant name="BODY_MODE_STATIC" value="0" enum="BodyMode"> Constant for static bodies. </constant> - <constant name="BODY_MODE_KINEMATIC" value="1"> + <constant name="BODY_MODE_KINEMATIC" value="1" enum="BodyMode"> Constant for kinematic bodies. </constant> - <constant name="BODY_MODE_RIGID" value="2"> + <constant name="BODY_MODE_RIGID" value="2" enum="BodyMode"> Constant for rigid bodies. </constant> - <constant name="BODY_MODE_SOFT" value="3"> + <constant name="BODY_MODE_SOFT" value="3" enum="BodyMode"> </constant> - <constant name="BODY_MODE_CHARACTER" value="4"> + <constant name="BODY_MODE_CHARACTER" value="4" enum="BodyMode"> Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics. </constant> - <constant name="BODY_PARAM_BOUNCE" value="0"> + <constant name="BODY_PARAM_BOUNCE" value="0" enum="BodyParameter"> Constant to set/get a body's bounce factor. </constant> - <constant name="BODY_PARAM_FRICTION" value="1"> + <constant name="BODY_PARAM_FRICTION" value="1" enum="BodyParameter"> Constant to set/get a body's friction. </constant> - <constant name="BODY_PARAM_MASS" value="2"> + <constant name="BODY_PARAM_MASS" value="2" enum="BodyParameter"> Constant to set/get a body's mass. </constant> - <constant name="BODY_PARAM_GRAVITY_SCALE" value="3"> + <constant name="BODY_PARAM_GRAVITY_SCALE" value="3" enum="BodyParameter"> Constant to set/get a body's gravity multiplier. </constant> - <constant name="BODY_PARAM_LINEAR_DAMP" value="4"> + <constant name="BODY_PARAM_LINEAR_DAMP" value="4" enum="BodyParameter"> Constant to set/get a body's linear dampening factor. </constant> - <constant name="BODY_PARAM_ANGULAR_DAMP" value="5"> + <constant name="BODY_PARAM_ANGULAR_DAMP" value="5" enum="BodyParameter"> Constant to set/get a body's angular dampening factor. </constant> - <constant name="BODY_PARAM_MAX" value="6"> + <constant name="BODY_PARAM_MAX" value="6" enum="BodyParameter"> This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. </constant> - <constant name="BODY_STATE_TRANSFORM" value="0"> + <constant name="BODY_STATE_TRANSFORM" value="0" enum="BodyState"> Constant to set/get the current transform matrix of the body. </constant> - <constant name="BODY_STATE_LINEAR_VELOCITY" value="1"> + <constant name="BODY_STATE_LINEAR_VELOCITY" value="1" enum="BodyState"> Constant to set/get the current linear velocity of the body. </constant> - <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2"> + <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2" enum="BodyState"> Constant to set/get the current angular velocity of the body. </constant> - <constant name="BODY_STATE_SLEEPING" value="3"> + <constant name="BODY_STATE_SLEEPING" value="3" enum="BodyState"> Constant to sleep/wake up a body, or to get whether it is sleeping. </constant> - <constant name="BODY_STATE_CAN_SLEEP" value="4"> + <constant name="BODY_STATE_CAN_SLEEP" value="4" enum="BodyState"> Constant to set/get whether the body can sleep. </constant> - <constant name="AREA_BODY_ADDED" value="0"> + <constant name="AREA_BODY_ADDED" value="0" enum="AreaBodyStatus"> The value of the first parameter and area callback function receives, when an object enters one of its shapes. </constant> - <constant name="AREA_BODY_REMOVED" value="1"> + <constant name="AREA_BODY_REMOVED" value="1" enum="AreaBodyStatus"> The value of the first parameter and area callback function receives, when an object exits one of its shapes. </constant> - <constant name="INFO_ACTIVE_OBJECTS" value="0"> + <constant name="INFO_ACTIVE_OBJECTS" value="0" enum="ProcessInfo"> Constant to get the number of objects that are not sleeping. </constant> - <constant name="INFO_COLLISION_PAIRS" value="1"> + <constant name="INFO_COLLISION_PAIRS" value="1" enum="ProcessInfo"> Constant to get the number of possible collisions. </constant> - <constant name="INFO_ISLAND_COUNT" value="2"> + <constant name="INFO_ISLAND_COUNT" value="2" enum="ProcessInfo"> Constant to get the number of space regions where a collision could occur. </constant> - <constant name="SPACE_PARAM_CONTACT_RECYCLE_RADIUS" value="0"> + <constant name="SPACE_PARAM_CONTACT_RECYCLE_RADIUS" value="0" enum="SpaceParameter"> Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. </constant> - <constant name="SPACE_PARAM_CONTACT_MAX_SEPARATION" value="1"> + <constant name="SPACE_PARAM_CONTACT_MAX_SEPARATION" value="1" enum="SpaceParameter"> Constant to set/get the maximum distance a shape can be from another before they are considered separated. </constant> - <constant name="SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION" value="2"> + <constant name="SPACE_PARAM_BODY_MAX_ALLOWED_PENETRATION" value="2" enum="SpaceParameter"> Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. </constant> - <constant name="SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD" value="3"> + <constant name="SPACE_PARAM_BODY_LINEAR_VELOCITY_SLEEP_THRESHOLD" value="3" enum="SpaceParameter"> Constant to set/get the threshold linear velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. </constant> - <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD" value="4"> + <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD" value="4" enum="SpaceParameter"> Constant to set/get the threshold angular velocity of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after the time given. </constant> - <constant name="SPACE_PARAM_BODY_TIME_TO_SLEEP" value="5"> + <constant name="SPACE_PARAM_BODY_TIME_TO_SLEEP" value="5" enum="SpaceParameter"> Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. </constant> - <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO" value="6"> + <constant name="SPACE_PARAM_BODY_ANGULAR_VELOCITY_DAMP_RATIO" value="6" enum="SpaceParameter"> </constant> - <constant name="SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS" value="7"> + <constant name="SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS" value="7" enum="SpaceParameter"> Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. </constant> - <constant name="BODY_AXIS_LOCK_DISABLED" value="0"> + <constant name="BODY_AXIS_LOCK_DISABLED" value="0" enum="BodyAxisLock"> The [Body] can rotate and move freely. </constant> - <constant name="BODY_AXIS_LOCK_X" value="1"> + <constant name="BODY_AXIS_LOCK_X" value="1" enum="BodyAxisLock"> The [Body] cannot move across x axis can only rotate across x axis. </constant> - <constant name="BODY_AXIS_LOCK_Y" value="2"> + <constant name="BODY_AXIS_LOCK_Y" value="2" enum="BodyAxisLock"> The [Body] cannot move across y axis can only rotate across y axis. </constant> - <constant name="BODY_AXIS_LOCK_Z" value="3"> + <constant name="BODY_AXIS_LOCK_Z" value="3" enum="BodyAxisLock"> The [Body] cannot move across z axis can only rotate across z axis. </constant> </constants> diff --git a/doc/classes/PinJoint.xml b/doc/classes/PinJoint.xml index c160d6aa57..46e3d3c512 100644 --- a/doc/classes/PinJoint.xml +++ b/doc/classes/PinJoint.xml @@ -26,15 +26,15 @@ </member> </members> <constants> - <constant name="PARAM_BIAS" value="0"> + <constant name="PARAM_BIAS" value="0" enum="Param"> The force with wich the pinned objects stay in positional relation to each other. The higher, the stronger. </constant> - <constant name="PARAM_DAMPING" value="1"> + <constant name="PARAM_DAMPING" value="1" enum="Param"> The force with wich the pinned objects stay in velocity relation to each other. The higher, the stronger. </constant> - <constant name="PARAM_IMPULSE_CLAMP" value="2"> + <constant name="PARAM_IMPULSE_CLAMP" value="2" enum="Param"> If above 0, this value is the maximum value for an impulse that this Joint produces. </constant> </constants> diff --git a/doc/classes/Popup.xml b/doc/classes/Popup.xml index 8fc5586eba..930e646dee 100644 --- a/doc/classes/Popup.xml +++ b/doc/classes/Popup.xml @@ -65,10 +65,10 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_POST_POPUP" value="80" enum=""> + <constant name="NOTIFICATION_POST_POPUP" value="80"> Notification sent right after the popup is shown. </constant> - <constant name="NOTIFICATION_POPUP_HIDE" value="81" enum=""> + <constant name="NOTIFICATION_POPUP_HIDE" value="81"> Notification sent right after the popup is hidden. </constant> </constants> diff --git a/doc/classes/ProceduralSky.xml b/doc/classes/ProceduralSky.xml index 7a8e37674e..2abd1104ce 100644 --- a/doc/classes/ProceduralSky.xml +++ b/doc/classes/ProceduralSky.xml @@ -45,17 +45,17 @@ </member> </members> <constants> - <constant name="TEXTURE_SIZE_256" value="0"> + <constant name="TEXTURE_SIZE_256" value="0" enum="TextureSize"> </constant> - <constant name="TEXTURE_SIZE_512" value="1"> + <constant name="TEXTURE_SIZE_512" value="1" enum="TextureSize"> </constant> - <constant name="TEXTURE_SIZE_1024" value="2"> + <constant name="TEXTURE_SIZE_1024" value="2" enum="TextureSize"> </constant> - <constant name="TEXTURE_SIZE_2048" value="3"> + <constant name="TEXTURE_SIZE_2048" value="3" enum="TextureSize"> </constant> - <constant name="TEXTURE_SIZE_4096" value="4"> + <constant name="TEXTURE_SIZE_4096" value="4" enum="TextureSize"> </constant> - <constant name="TEXTURE_SIZE_MAX" value="5"> + <constant name="TEXTURE_SIZE_MAX" value="5" enum="TextureSize"> </constant> </constants> </class> diff --git a/doc/classes/ReflectionProbe.xml b/doc/classes/ReflectionProbe.xml index 46aed5c22c..21bd087407 100644 --- a/doc/classes/ReflectionProbe.xml +++ b/doc/classes/ReflectionProbe.xml @@ -37,9 +37,9 @@ </member> </members> <constants> - <constant name="UPDATE_ONCE" value="0"> + <constant name="UPDATE_ONCE" value="0" enum="UpdateMode"> </constant> - <constant name="UPDATE_ALWAYS" value="1"> + <constant name="UPDATE_ALWAYS" value="1" enum="UpdateMode"> </constant> </constants> </class> diff --git a/doc/classes/ResourceSaver.xml b/doc/classes/ResourceSaver.xml index fd189e4736..c1a5921071 100644 --- a/doc/classes/ResourceSaver.xml +++ b/doc/classes/ResourceSaver.xml @@ -35,17 +35,17 @@ </method> </methods> <constants> - <constant name="FLAG_RELATIVE_PATHS" value="1"> + <constant name="FLAG_RELATIVE_PATHS" value="1" enum="SaverFlags"> </constant> - <constant name="FLAG_BUNDLE_RESOURCES" value="2"> + <constant name="FLAG_BUNDLE_RESOURCES" value="2" enum="SaverFlags"> </constant> - <constant name="FLAG_CHANGE_PATH" value="4"> + <constant name="FLAG_CHANGE_PATH" value="4" enum="SaverFlags"> </constant> - <constant name="FLAG_OMIT_EDITOR_PROPERTIES" value="8"> + <constant name="FLAG_OMIT_EDITOR_PROPERTIES" value="8" enum="SaverFlags"> </constant> - <constant name="FLAG_SAVE_BIG_ENDIAN" value="16"> + <constant name="FLAG_SAVE_BIG_ENDIAN" value="16" enum="SaverFlags"> </constant> - <constant name="FLAG_COMPRESS" value="32"> + <constant name="FLAG_COMPRESS" value="32" enum="SaverFlags"> </constant> </constants> </class> diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index d64d81d276..5c04d3406e 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -345,43 +345,43 @@ </signal> </signals> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="Align"> </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="Align"> </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="Align"> </constant> - <constant name="ALIGN_FILL" value="3"> + <constant name="ALIGN_FILL" value="3" enum="Align"> </constant> - <constant name="LIST_NUMBERS" value="0"> + <constant name="LIST_NUMBERS" value="0" enum="ListType"> </constant> - <constant name="LIST_LETTERS" value="1"> + <constant name="LIST_LETTERS" value="1" enum="ListType"> </constant> - <constant name="LIST_DOTS" value="2"> + <constant name="LIST_DOTS" value="2" enum="ListType"> </constant> - <constant name="ITEM_FRAME" value="0"> + <constant name="ITEM_FRAME" value="0" enum="ItemType"> </constant> - <constant name="ITEM_TEXT" value="1"> + <constant name="ITEM_TEXT" value="1" enum="ItemType"> </constant> - <constant name="ITEM_IMAGE" value="2"> + <constant name="ITEM_IMAGE" value="2" enum="ItemType"> </constant> - <constant name="ITEM_NEWLINE" value="3"> + <constant name="ITEM_NEWLINE" value="3" enum="ItemType"> </constant> - <constant name="ITEM_FONT" value="4"> + <constant name="ITEM_FONT" value="4" enum="ItemType"> </constant> - <constant name="ITEM_COLOR" value="5"> + <constant name="ITEM_COLOR" value="5" enum="ItemType"> </constant> - <constant name="ITEM_UNDERLINE" value="6"> + <constant name="ITEM_UNDERLINE" value="6" enum="ItemType"> </constant> - <constant name="ITEM_ALIGN" value="7"> + <constant name="ITEM_ALIGN" value="7" enum="ItemType"> </constant> - <constant name="ITEM_INDENT" value="8"> + <constant name="ITEM_INDENT" value="8" enum="ItemType"> </constant> - <constant name="ITEM_LIST" value="9"> + <constant name="ITEM_LIST" value="9" enum="ItemType"> </constant> - <constant name="ITEM_TABLE" value="10"> + <constant name="ITEM_TABLE" value="10" enum="ItemType"> </constant> - <constant name="ITEM_META" value="11"> + <constant name="ITEM_META" value="11" enum="ItemType"> </constant> </constants> <theme_items> diff --git a/doc/classes/RigidBody.xml b/doc/classes/RigidBody.xml index b04687e80c..cfcd0258e7 100644 --- a/doc/classes/RigidBody.xml +++ b/doc/classes/RigidBody.xml @@ -156,25 +156,25 @@ </signal> </signals> <constants> - <constant name="MODE_RIGID" value="0"> + <constant name="MODE_RIGID" value="0" enum="Mode"> Rigid body. This is the "natural" state of a rigid body. It is affected by forces, and can move, rotate, and be affected by user code. </constant> - <constant name="MODE_STATIC" value="1"> + <constant name="MODE_STATIC" value="1" enum="Mode"> Static mode. The body behaves like a [StaticBody], and can only move by user code. </constant> - <constant name="MODE_CHARACTER" value="2"> + <constant name="MODE_CHARACTER" value="2" enum="Mode"> Character body. This behaves like a rigid body, but can not rotate. </constant> - <constant name="MODE_KINEMATIC" value="3"> + <constant name="MODE_KINEMATIC" value="3" enum="Mode"> Kinematic body. The body behaves like a [KinematicBody], and can only move by user code. </constant> - <constant name="AXIS_LOCK_DISABLED" value="0"> + <constant name="AXIS_LOCK_DISABLED" value="0" enum="AxisLock"> </constant> - <constant name="AXIS_LOCK_X" value="1"> + <constant name="AXIS_LOCK_X" value="1" enum="AxisLock"> </constant> - <constant name="AXIS_LOCK_Y" value="2"> + <constant name="AXIS_LOCK_Y" value="2" enum="AxisLock"> </constant> - <constant name="AXIS_LOCK_Z" value="3"> + <constant name="AXIS_LOCK_Z" value="3" enum="AxisLock"> </constant> </constants> </class> diff --git a/doc/classes/RigidBody2D.xml b/doc/classes/RigidBody2D.xml index 0d9562e426..c11e118df5 100644 --- a/doc/classes/RigidBody2D.xml +++ b/doc/classes/RigidBody2D.xml @@ -226,25 +226,25 @@ </signal> </signals> <constants> - <constant name="MODE_RIGID" value="0"> + <constant name="MODE_RIGID" value="0" enum="Mode"> Rigid mode. The body behaves as a physical object. It collides with other bodies and responds to forces applied to it. This is the default mode. </constant> - <constant name="MODE_STATIC" value="1"> + <constant name="MODE_STATIC" value="1" enum="Mode"> Static mode. The body behaves like a [StaticBody2D] and does not move. </constant> - <constant name="MODE_CHARACTER" value="2"> + <constant name="MODE_CHARACTER" value="2" enum="Mode"> Character mode. Similar to [code]MODE_RIGID[/code], but the body can not rotate. </constant> - <constant name="MODE_KINEMATIC" value="3"> + <constant name="MODE_KINEMATIC" value="3" enum="Mode"> Kinematic mode. The body behaves like a [KinematicBody2D], and must be moved by code. </constant> - <constant name="CCD_MODE_DISABLED" value="0"> + <constant name="CCD_MODE_DISABLED" value="0" enum="CCDMode"> Continuous collision detection disabled. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. </constant> - <constant name="CCD_MODE_CAST_RAY" value="1"> + <constant name="CCD_MODE_CAST_RAY" value="1" enum="CCDMode"> Continuous collision detection enabled using raycasting. This is faster than shapecasting but less precise. </constant> - <constant name="CCD_MODE_CAST_SHAPE" value="2"> + <constant name="CCD_MODE_CAST_SHAPE" value="2" enum="CCDMode"> Continuous collision detection enabled using shapecasting. This is the slowest CCD method and the most precise. </constant> </constants> diff --git a/doc/classes/SceneState.xml b/doc/classes/SceneState.xml index f99466d47e..20ca43b71a 100644 --- a/doc/classes/SceneState.xml +++ b/doc/classes/SceneState.xml @@ -165,11 +165,11 @@ </method> </methods> <constants> - <constant name="GEN_EDIT_STATE_DISABLED" value="0"> + <constant name="GEN_EDIT_STATE_DISABLED" value="0" enum="GenEditState"> </constant> - <constant name="GEN_EDIT_STATE_INSTANCE" value="1"> + <constant name="GEN_EDIT_STATE_INSTANCE" value="1" enum="GenEditState"> </constant> - <constant name="GEN_EDIT_STATE_MAIN" value="2"> + <constant name="GEN_EDIT_STATE_MAIN" value="2" enum="GenEditState"> </constant> </constants> </class> diff --git a/doc/classes/SceneTree.xml b/doc/classes/SceneTree.xml index 51e7b217bf..f3dd953c6f 100644 --- a/doc/classes/SceneTree.xml +++ b/doc/classes/SceneTree.xml @@ -388,29 +388,29 @@ </signal> </signals> <constants> - <constant name="GROUP_CALL_DEFAULT" value="0"> + <constant name="GROUP_CALL_DEFAULT" value="0" enum="CallGroupFlags"> </constant> - <constant name="GROUP_CALL_REVERSE" value="1"> + <constant name="GROUP_CALL_REVERSE" value="1" enum="CallGroupFlags"> </constant> - <constant name="GROUP_CALL_REALTIME" value="2"> + <constant name="GROUP_CALL_REALTIME" value="2" enum="CallGroupFlags"> </constant> - <constant name="GROUP_CALL_UNIQUE" value="4"> + <constant name="GROUP_CALL_UNIQUE" value="4" enum="CallGroupFlags"> </constant> - <constant name="STRETCH_MODE_DISABLED" value="0"> + <constant name="STRETCH_MODE_DISABLED" value="0" enum="StretchMode"> </constant> - <constant name="STRETCH_MODE_2D" value="1"> + <constant name="STRETCH_MODE_2D" value="1" enum="StretchMode"> </constant> - <constant name="STRETCH_MODE_VIEWPORT" value="2"> + <constant name="STRETCH_MODE_VIEWPORT" value="2" enum="StretchMode"> </constant> - <constant name="STRETCH_ASPECT_IGNORE" value="0"> + <constant name="STRETCH_ASPECT_IGNORE" value="0" enum="StretchAspect"> </constant> - <constant name="STRETCH_ASPECT_KEEP" value="1"> + <constant name="STRETCH_ASPECT_KEEP" value="1" enum="StretchAspect"> </constant> - <constant name="STRETCH_ASPECT_KEEP_WIDTH" value="2"> + <constant name="STRETCH_ASPECT_KEEP_WIDTH" value="2" enum="StretchAspect"> </constant> - <constant name="STRETCH_ASPECT_KEEP_HEIGHT" value="3"> + <constant name="STRETCH_ASPECT_KEEP_HEIGHT" value="3" enum="StretchAspect"> </constant> - <constant name="STRETCH_ASPECT_EXPAND" value="4"> + <constant name="STRETCH_ASPECT_EXPAND" value="4" enum="StretchAspect"> </constant> </constants> </class> diff --git a/doc/classes/Shader.xml b/doc/classes/Shader.xml index 11ac23c4d1..543164d92e 100644 --- a/doc/classes/Shader.xml +++ b/doc/classes/Shader.xml @@ -49,11 +49,11 @@ </member> </members> <constants> - <constant name="MODE_SPATIAL" value="0"> + <constant name="MODE_SPATIAL" value="0" enum="Mode"> </constant> - <constant name="MODE_CANVAS_ITEM" value="1"> + <constant name="MODE_CANVAS_ITEM" value="1" enum="Mode"> </constant> - <constant name="MODE_PARTICLES" value="2"> + <constant name="MODE_PARTICLES" value="2" enum="Mode"> </constant> </constants> </class> diff --git a/doc/classes/Skeleton.xml b/doc/classes/Skeleton.xml index 84848d0857..8bcc80de32 100644 --- a/doc/classes/Skeleton.xml +++ b/doc/classes/Skeleton.xml @@ -215,7 +215,7 @@ </method> </methods> <constants> - <constant name="NOTIFICATION_UPDATE_SKELETON" value="50" enum=""> + <constant name="NOTIFICATION_UPDATE_SKELETON" value="50"> </constant> </constants> </class> diff --git a/doc/classes/Sky.xml b/doc/classes/Sky.xml index f6bcc71fab..34950842c9 100644 --- a/doc/classes/Sky.xml +++ b/doc/classes/Sky.xml @@ -15,21 +15,21 @@ </member> </members> <constants> - <constant name="RADIANCE_SIZE_32" value="0"> + <constant name="RADIANCE_SIZE_32" value="0" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_64" value="1"> + <constant name="RADIANCE_SIZE_64" value="1" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_128" value="2"> + <constant name="RADIANCE_SIZE_128" value="2" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_256" value="3"> + <constant name="RADIANCE_SIZE_256" value="3" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_512" value="4"> + <constant name="RADIANCE_SIZE_512" value="4" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_1024" value="5"> + <constant name="RADIANCE_SIZE_1024" value="5" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_2048" value="6"> + <constant name="RADIANCE_SIZE_2048" value="6" enum="RadianceSize"> </constant> - <constant name="RADIANCE_SIZE_MAX" value="7"> + <constant name="RADIANCE_SIZE_MAX" value="7" enum="RadianceSize"> </constant> </constants> </class> diff --git a/doc/classes/SliderJoint.xml b/doc/classes/SliderJoint.xml index b8596e5ff2..4c794306e4 100644 --- a/doc/classes/SliderJoint.xml +++ b/doc/classes/SliderJoint.xml @@ -84,73 +84,73 @@ </member> </members> <constants> - <constant name="PARAM_LINEAR_LIMIT_UPPER" value="0"> + <constant name="PARAM_LINEAR_LIMIT_UPPER" value="0" enum="Param"> The maximum difference between the pivot points on their x-axis before damping happens. </constant> - <constant name="PARAM_LINEAR_LIMIT_LOWER" value="1"> + <constant name="PARAM_LINEAR_LIMIT_LOWER" value="1" enum="Param"> The minimum difference between the pivot points on their x-axis before damping happens. </constant> - <constant name="PARAM_LINEAR_LIMIT_SOFTNESS" value="2"> + <constant name="PARAM_LINEAR_LIMIT_SOFTNESS" value="2" enum="Param"> A factor applied to the movement accross the slider axis once the limits get surpassed. The lower, the slower the movement. </constant> - <constant name="PARAM_LINEAR_LIMIT_RESTITUTION" value="3"> + <constant name="PARAM_LINEAR_LIMIT_RESTITUTION" value="3" enum="Param"> The amount of restitution once the limits are surpassed. The lower, the more velocityenergy gets lost. </constant> - <constant name="PARAM_LINEAR_LIMIT_DAMPING" value="4"> + <constant name="PARAM_LINEAR_LIMIT_DAMPING" value="4" enum="Param"> The amount of damping once the slider limits are surpassed. </constant> - <constant name="PARAM_LINEAR_MOTION_SOFTNESS" value="5"> + <constant name="PARAM_LINEAR_MOTION_SOFTNESS" value="5" enum="Param"> A factor applied to the movement accross the slider axis as long as the slider is in the limits. The lower, the slower the movement. </constant> - <constant name="PARAM_LINEAR_MOTION_RESTITUTION" value="6"> + <constant name="PARAM_LINEAR_MOTION_RESTITUTION" value="6" enum="Param"> The amount of restitution inside the slider limits. </constant> - <constant name="PARAM_LINEAR_MOTION_DAMPING" value="7"> + <constant name="PARAM_LINEAR_MOTION_DAMPING" value="7" enum="Param"> The amount of damping inside the slider limits. </constant> - <constant name="PARAM_LINEAR_ORTHOGONAL_SOFTNESS" value="8"> + <constant name="PARAM_LINEAR_ORTHOGONAL_SOFTNESS" value="8" enum="Param"> A factor applied to the movement accross axes orthogonal to the slider. </constant> - <constant name="PARAM_LINEAR_ORTHOGONAL_RESTITUTION" value="9"> + <constant name="PARAM_LINEAR_ORTHOGONAL_RESTITUTION" value="9" enum="Param"> The amount of restitution when movement is accross axes orthogonal to the slider. </constant> - <constant name="PARAM_LINEAR_ORTHOGONAL_DAMPING" value="10"> + <constant name="PARAM_LINEAR_ORTHOGONAL_DAMPING" value="10" enum="Param"> The amount of damping when movement is accross axes orthogonal to the slider. </constant> - <constant name="PARAM_ANGULAR_LIMIT_UPPER" value="11"> + <constant name="PARAM_ANGULAR_LIMIT_UPPER" value="11" enum="Param"> The upper limit of rotation in the slider. </constant> - <constant name="PARAM_ANGULAR_LIMIT_LOWER" value="12"> + <constant name="PARAM_ANGULAR_LIMIT_LOWER" value="12" enum="Param"> The lower limit of rotation in the slider. </constant> - <constant name="PARAM_ANGULAR_LIMIT_SOFTNESS" value="13"> + <constant name="PARAM_ANGULAR_LIMIT_SOFTNESS" value="13" enum="Param"> A factor applied to the all rotation once the limit is surpassed. </constant> - <constant name="PARAM_ANGULAR_LIMIT_RESTITUTION" value="14"> + <constant name="PARAM_ANGULAR_LIMIT_RESTITUTION" value="14" enum="Param"> The amount of restitution of the rotation when the limit is surpassed. </constant> - <constant name="PARAM_ANGULAR_LIMIT_DAMPING" value="15"> + <constant name="PARAM_ANGULAR_LIMIT_DAMPING" value="15" enum="Param"> The amount of damping of the rotation when the limit is surpassed. </constant> - <constant name="PARAM_ANGULAR_MOTION_SOFTNESS" value="16"> + <constant name="PARAM_ANGULAR_MOTION_SOFTNESS" value="16" enum="Param"> A factor applied to the all rotation in the limits. </constant> - <constant name="PARAM_ANGULAR_MOTION_RESTITUTION" value="17"> + <constant name="PARAM_ANGULAR_MOTION_RESTITUTION" value="17" enum="Param"> The amount of restitution of the rotation in the limits. </constant> - <constant name="PARAM_ANGULAR_MOTION_DAMPING" value="18"> + <constant name="PARAM_ANGULAR_MOTION_DAMPING" value="18" enum="Param"> The amount of damping of the rotation in the limits. </constant> - <constant name="PARAM_ANGULAR_ORTHOGONAL_SOFTNESS" value="19"> + <constant name="PARAM_ANGULAR_ORTHOGONAL_SOFTNESS" value="19" enum="Param"> A factor applied to the all rotation across axes orthogonal to the slider. </constant> - <constant name="PARAM_ANGULAR_ORTHOGONAL_RESTITUTION" value="20"> + <constant name="PARAM_ANGULAR_ORTHOGONAL_RESTITUTION" value="20" enum="Param"> The amount of restitution of the rotation across axes orthogonal to the slider. </constant> - <constant name="PARAM_ANGULAR_ORTHOGONAL_DAMPING" value="21"> + <constant name="PARAM_ANGULAR_ORTHOGONAL_DAMPING" value="21" enum="Param"> The amount of damping of the rotation across axes orthogonal to the slider. </constant> - <constant name="PARAM_MAX" value="22"> + <constant name="PARAM_MAX" value="22" enum="Param"> End flag of PARAM_* constants, used internally. </constant> </constants> diff --git a/doc/classes/Spatial.xml b/doc/classes/Spatial.xml index 548ecbcdbd..ea04192a5e 100644 --- a/doc/classes/Spatial.xml +++ b/doc/classes/Spatial.xml @@ -281,17 +281,17 @@ </signal> </signals> <constants> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29" enum=""> + <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="29"> Spatial nodes receives this notification when their global transform changes. This means that either the current or a parent node changed its transform. In order for NOTIFICATION_TRANSFORM_CHANGED to work user first needs to ask for it, with set_notify_transform(true). </constant> - <constant name="NOTIFICATION_ENTER_WORLD" value="41" enum=""> + <constant name="NOTIFICATION_ENTER_WORLD" value="41"> Spatial nodes receives this notification when they are registered to new [World] resource. </constant> - <constant name="NOTIFICATION_EXIT_WORLD" value="42" enum=""> + <constant name="NOTIFICATION_EXIT_WORLD" value="42"> Spatial nodes receives this notification when they are unregistered from current [World] resource. </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="43" enum=""> + <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="43"> Spatial nodes receives this notification when their visibility changes. </constant> </constants> diff --git a/doc/classes/SpatialMaterial.xml b/doc/classes/SpatialMaterial.xml index 0ca0a879a8..4e63e6dd11 100644 --- a/doc/classes/SpatialMaterial.xml +++ b/doc/classes/SpatialMaterial.xml @@ -197,159 +197,159 @@ </member> </members> <constants> - <constant name="TEXTURE_ALBEDO" value="0"> + <constant name="TEXTURE_ALBEDO" value="0" enum="TextureParam"> </constant> - <constant name="TEXTURE_METALLIC" value="1"> + <constant name="TEXTURE_METALLIC" value="1" enum="TextureParam"> </constant> - <constant name="TEXTURE_ROUGHNESS" value="2"> + <constant name="TEXTURE_ROUGHNESS" value="2" enum="TextureParam"> </constant> - <constant name="TEXTURE_EMISSION" value="3"> + <constant name="TEXTURE_EMISSION" value="3" enum="TextureParam"> </constant> - <constant name="TEXTURE_NORMAL" value="4"> + <constant name="TEXTURE_NORMAL" value="4" enum="TextureParam"> </constant> - <constant name="TEXTURE_RIM" value="5"> + <constant name="TEXTURE_RIM" value="5" enum="TextureParam"> </constant> - <constant name="TEXTURE_CLEARCOAT" value="6"> + <constant name="TEXTURE_CLEARCOAT" value="6" enum="TextureParam"> </constant> - <constant name="TEXTURE_FLOWMAP" value="7"> + <constant name="TEXTURE_FLOWMAP" value="7" enum="TextureParam"> </constant> - <constant name="TEXTURE_AMBIENT_OCCLUSION" value="8"> + <constant name="TEXTURE_AMBIENT_OCCLUSION" value="8" enum="TextureParam"> </constant> - <constant name="TEXTURE_DEPTH" value="9"> + <constant name="TEXTURE_DEPTH" value="9" enum="TextureParam"> </constant> - <constant name="TEXTURE_SUBSURFACE_SCATTERING" value="10"> + <constant name="TEXTURE_SUBSURFACE_SCATTERING" value="10" enum="TextureParam"> </constant> - <constant name="TEXTURE_TRANSMISSION" value="11"> + <constant name="TEXTURE_TRANSMISSION" value="11" enum="TextureParam"> </constant> - <constant name="TEXTURE_REFRACTION" value="12"> + <constant name="TEXTURE_REFRACTION" value="12" enum="TextureParam"> </constant> - <constant name="TEXTURE_DETAIL_MASK" value="13"> + <constant name="TEXTURE_DETAIL_MASK" value="13" enum="TextureParam"> </constant> - <constant name="TEXTURE_DETAIL_ALBEDO" value="14"> + <constant name="TEXTURE_DETAIL_ALBEDO" value="14" enum="TextureParam"> </constant> - <constant name="TEXTURE_DETAIL_NORMAL" value="15"> + <constant name="TEXTURE_DETAIL_NORMAL" value="15" enum="TextureParam"> </constant> - <constant name="TEXTURE_MAX" value="16"> + <constant name="TEXTURE_MAX" value="16" enum="TextureParam"> </constant> - <constant name="DETAIL_UV_1" value="0"> + <constant name="DETAIL_UV_1" value="0" enum="DetailUV"> </constant> - <constant name="DETAIL_UV_2" value="1"> + <constant name="DETAIL_UV_2" value="1" enum="DetailUV"> </constant> - <constant name="FEATURE_TRANSPARENT" value="0"> + <constant name="FEATURE_TRANSPARENT" value="0" enum="Feature"> </constant> - <constant name="FEATURE_EMISSION" value="1"> + <constant name="FEATURE_EMISSION" value="1" enum="Feature"> </constant> - <constant name="FEATURE_NORMAL_MAPPING" value="2"> + <constant name="FEATURE_NORMAL_MAPPING" value="2" enum="Feature"> </constant> - <constant name="FEATURE_RIM" value="3"> + <constant name="FEATURE_RIM" value="3" enum="Feature"> </constant> - <constant name="FEATURE_CLEARCOAT" value="4"> + <constant name="FEATURE_CLEARCOAT" value="4" enum="Feature"> </constant> - <constant name="FEATURE_ANISOTROPY" value="5"> + <constant name="FEATURE_ANISOTROPY" value="5" enum="Feature"> </constant> - <constant name="FEATURE_AMBIENT_OCCLUSION" value="6"> + <constant name="FEATURE_AMBIENT_OCCLUSION" value="6" enum="Feature"> </constant> - <constant name="FEATURE_DEPTH_MAPPING" value="7"> + <constant name="FEATURE_DEPTH_MAPPING" value="7" enum="Feature"> </constant> - <constant name="FEATURE_SUBSURACE_SCATTERING" value="8"> + <constant name="FEATURE_SUBSURACE_SCATTERING" value="8" enum="Feature"> </constant> - <constant name="FEATURE_TRANSMISSION" value="9"> + <constant name="FEATURE_TRANSMISSION" value="9" enum="Feature"> </constant> - <constant name="FEATURE_REFRACTION" value="10"> + <constant name="FEATURE_REFRACTION" value="10" enum="Feature"> </constant> - <constant name="FEATURE_DETAIL" value="11"> + <constant name="FEATURE_DETAIL" value="11" enum="Feature"> </constant> - <constant name="FEATURE_MAX" value="12"> + <constant name="FEATURE_MAX" value="12" enum="Feature"> </constant> - <constant name="BLEND_MODE_MIX" value="0"> + <constant name="BLEND_MODE_MIX" value="0" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_ADD" value="1"> + <constant name="BLEND_MODE_ADD" value="1" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_SUB" value="2"> + <constant name="BLEND_MODE_SUB" value="2" enum="BlendMode"> </constant> - <constant name="BLEND_MODE_MUL" value="3"> + <constant name="BLEND_MODE_MUL" value="3" enum="BlendMode"> </constant> - <constant name="DEPTH_DRAW_OPAQUE_ONLY" value="0"> + <constant name="DEPTH_DRAW_OPAQUE_ONLY" value="0" enum="DepthDrawMode"> </constant> - <constant name="DEPTH_DRAW_ALWAYS" value="1"> + <constant name="DEPTH_DRAW_ALWAYS" value="1" enum="DepthDrawMode"> </constant> - <constant name="DEPTH_DRAW_DISABLED" value="2"> + <constant name="DEPTH_DRAW_DISABLED" value="2" enum="DepthDrawMode"> </constant> - <constant name="DEPTH_DRAW_ALPHA_OPAQUE_PREPASS" value="3"> + <constant name="DEPTH_DRAW_ALPHA_OPAQUE_PREPASS" value="3" enum="DepthDrawMode"> </constant> - <constant name="CULL_BACK" value="0"> + <constant name="CULL_BACK" value="0" enum="CullMode"> </constant> - <constant name="CULL_FRONT" value="1"> + <constant name="CULL_FRONT" value="1" enum="CullMode"> </constant> - <constant name="CULL_DISABLED" value="2"> + <constant name="CULL_DISABLED" value="2" enum="CullMode"> </constant> - <constant name="FLAG_UNSHADED" value="0"> + <constant name="FLAG_UNSHADED" value="0" enum="Flags"> </constant> - <constant name="FLAG_USE_VERTEX_LIGHTING" value="1"> + <constant name="FLAG_USE_VERTEX_LIGHTING" value="1" enum="Flags"> </constant> - <constant name="FLAG_DISABLE_DEPTH_TEST" value="2"> + <constant name="FLAG_DISABLE_DEPTH_TEST" value="2" enum="Flags"> </constant> - <constant name="FLAG_ALBEDO_FROM_VERTEX_COLOR" value="3"> + <constant name="FLAG_ALBEDO_FROM_VERTEX_COLOR" value="3" enum="Flags"> </constant> - <constant name="FLAG_SRGB_VERTEX_COLOR" value="4"> + <constant name="FLAG_SRGB_VERTEX_COLOR" value="4" enum="Flags"> </constant> - <constant name="FLAG_USE_POINT_SIZE" value="5"> + <constant name="FLAG_USE_POINT_SIZE" value="5" enum="Flags"> </constant> - <constant name="FLAG_FIXED_SIZE" value="6"> + <constant name="FLAG_FIXED_SIZE" value="6" enum="Flags"> </constant> - <constant name="FLAG_UV1_USE_TRIPLANAR" value="7"> + <constant name="FLAG_UV1_USE_TRIPLANAR" value="7" enum="Flags"> </constant> - <constant name="FLAG_UV2_USE_TRIPLANAR" value="8"> + <constant name="FLAG_UV2_USE_TRIPLANAR" value="8" enum="Flags"> </constant> - <constant name="FLAG_AO_ON_UV2" value="10"> + <constant name="FLAG_AO_ON_UV2" value="10" enum="Flags"> </constant> - <constant name="FLAG_USE_ALPHA_SCISSOR" value="11"> + <constant name="FLAG_USE_ALPHA_SCISSOR" value="11" enum="Flags"> </constant> - <constant name="FLAG_TRIPLANAR_USE_WORLD" value="9"> + <constant name="FLAG_TRIPLANAR_USE_WORLD" value="9" enum="Flags"> </constant> - <constant name="FLAG_MAX" value="12"> + <constant name="FLAG_MAX" value="12" enum="Flags"> </constant> - <constant name="DIFFUSE_BURLEY" value="0"> + <constant name="DIFFUSE_BURLEY" value="0" enum="DiffuseMode"> </constant> - <constant name="DIFFUSE_LAMBERT" value="1"> + <constant name="DIFFUSE_LAMBERT" value="1" enum="DiffuseMode"> </constant> - <constant name="DIFFUSE_LAMBERT_WRAP" value="2"> + <constant name="DIFFUSE_LAMBERT_WRAP" value="2" enum="DiffuseMode"> </constant> - <constant name="DIFFUSE_OREN_NAYAR" value="3"> + <constant name="DIFFUSE_OREN_NAYAR" value="3" enum="DiffuseMode"> </constant> - <constant name="DIFFUSE_TOON" value="4"> + <constant name="DIFFUSE_TOON" value="4" enum="DiffuseMode"> </constant> - <constant name="SPECULAR_SCHLICK_GGX" value="0"> + <constant name="SPECULAR_SCHLICK_GGX" value="0" enum="SpecularMode"> </constant> - <constant name="SPECULAR_BLINN" value="1"> + <constant name="SPECULAR_BLINN" value="1" enum="SpecularMode"> </constant> - <constant name="SPECULAR_PHONG" value="2"> + <constant name="SPECULAR_PHONG" value="2" enum="SpecularMode"> </constant> - <constant name="SPECULAR_TOON" value="3"> + <constant name="SPECULAR_TOON" value="3" enum="SpecularMode"> </constant> - <constant name="SPECULAR_DISABLED" value="4"> + <constant name="SPECULAR_DISABLED" value="4" enum="SpecularMode"> </constant> - <constant name="BILLBOARD_DISABLED" value="0"> + <constant name="BILLBOARD_DISABLED" value="0" enum="BillboardMode"> </constant> - <constant name="BILLBOARD_ENABLED" value="1"> + <constant name="BILLBOARD_ENABLED" value="1" enum="BillboardMode"> </constant> - <constant name="BILLBOARD_FIXED_Y" value="2"> + <constant name="BILLBOARD_FIXED_Y" value="2" enum="BillboardMode"> </constant> - <constant name="BILLBOARD_PARTICLES" value="3"> + <constant name="BILLBOARD_PARTICLES" value="3" enum="BillboardMode"> </constant> - <constant name="TEXTURE_CHANNEL_RED" value="0"> + <constant name="TEXTURE_CHANNEL_RED" value="0" enum="TextureChannel"> </constant> - <constant name="TEXTURE_CHANNEL_GREEN" value="1"> + <constant name="TEXTURE_CHANNEL_GREEN" value="1" enum="TextureChannel"> </constant> - <constant name="TEXTURE_CHANNEL_BLUE" value="2"> + <constant name="TEXTURE_CHANNEL_BLUE" value="2" enum="TextureChannel"> </constant> - <constant name="TEXTURE_CHANNEL_ALPHA" value="3"> + <constant name="TEXTURE_CHANNEL_ALPHA" value="3" enum="TextureChannel"> </constant> - <constant name="TEXTURE_CHANNEL_GRAYSCALE" value="4"> + <constant name="TEXTURE_CHANNEL_GRAYSCALE" value="4" enum="TextureChannel"> </constant> - <constant name="EMISSION_OP_ADD" value="0"> + <constant name="EMISSION_OP_ADD" value="0" enum="EmissionOperator"> </constant> - <constant name="EMISSION_OP_MULTIPLY" value="1"> + <constant name="EMISSION_OP_MULTIPLY" value="1" enum="EmissionOperator"> </constant> </constants> </class> diff --git a/doc/classes/SplitContainer.xml b/doc/classes/SplitContainer.xml index bf3376fcfb..835a226a50 100644 --- a/doc/classes/SplitContainer.xml +++ b/doc/classes/SplitContainer.xml @@ -30,13 +30,13 @@ </signal> </signals> <constants> - <constant name="DRAGGER_VISIBLE" value="0"> + <constant name="DRAGGER_VISIBLE" value="0" enum="DraggerVisibility"> The split dragger is visible. </constant> - <constant name="DRAGGER_HIDDEN" value="1"> + <constant name="DRAGGER_HIDDEN" value="1" enum="DraggerVisibility"> The split dragger is invisible. </constant> - <constant name="DRAGGER_HIDDEN_COLLAPSED" value="2"> + <constant name="DRAGGER_HIDDEN_COLLAPSED" value="2" enum="DraggerVisibility"> The split dragger is invisible and collapsed. </constant> </constants> diff --git a/doc/classes/SpriteBase3D.xml b/doc/classes/SpriteBase3D.xml index 7620157d2d..580a467d6b 100644 --- a/doc/classes/SpriteBase3D.xml +++ b/doc/classes/SpriteBase3D.xml @@ -56,23 +56,23 @@ </member> </members> <constants> - <constant name="FLAG_TRANSPARENT" value="0"> + <constant name="FLAG_TRANSPARENT" value="0" enum="DrawFlags"> If set, the texture's transparency and the opacity are used to make those parts of the Sprite invisible. </constant> - <constant name="FLAG_SHADED" value="1"> + <constant name="FLAG_SHADED" value="1" enum="DrawFlags"> If set, the Light in the Environment has effects on the Sprite. </constant> - <constant name="FLAG_DOUBLE_SIDED" value="2"> + <constant name="FLAG_DOUBLE_SIDED" value="2" enum="DrawFlags"> If set, texture can be seen from the back as well, if not, it is invisible when looking at it from behind. </constant> - <constant name="FLAG_MAX" value="3"> + <constant name="FLAG_MAX" value="3" enum="DrawFlags"> Used internally to mark the end of the Flags section. </constant> - <constant name="ALPHA_CUT_DISABLED" value="0"> + <constant name="ALPHA_CUT_DISABLED" value="0" enum="AlphaCutMode"> </constant> - <constant name="ALPHA_CUT_DISCARD" value="1"> + <constant name="ALPHA_CUT_DISCARD" value="1" enum="AlphaCutMode"> </constant> - <constant name="ALPHA_CUT_OPAQUE_PREPASS" value="2"> + <constant name="ALPHA_CUT_OPAQUE_PREPASS" value="2" enum="AlphaCutMode"> </constant> </constants> </class> diff --git a/doc/classes/StreamPeerSSL.xml b/doc/classes/StreamPeerSSL.xml index 99cf3b2a02..55cb39e137 100644 --- a/doc/classes/StreamPeerSSL.xml +++ b/doc/classes/StreamPeerSSL.xml @@ -48,16 +48,16 @@ </method> </methods> <constants> - <constant name="STATUS_DISCONNECTED" value="0"> + <constant name="STATUS_DISCONNECTED" value="0" enum="Status"> A status representing a [code]StreamPeerSSL[/code] that is disconnected. </constant> - <constant name="STATUS_CONNECTED" value="1"> + <constant name="STATUS_CONNECTED" value="1" enum="Status"> A status representing a [code]StreamPeerSSL[/code] that is connected to a host. </constant> - <constant name="STATUS_ERROR_NO_CERTIFICATE" value="2"> + <constant name="STATUS_ERROR_NO_CERTIFICATE" value="2" enum="Status"> An errot status that shows the peer did not present a SSL certificate and validation was requested. </constant> - <constant name="STATUS_ERROR_HOSTNAME_MISMATCH" value="3"> + <constant name="STATUS_ERROR_HOSTNAME_MISMATCH" value="3" enum="Status"> An error status that shows a mismatch in the SSL certificate domain presented by the host and the domain requested for validation. </constant> </constants> diff --git a/doc/classes/StreamPeerTCP.xml b/doc/classes/StreamPeerTCP.xml index f335f5e0db..4c9812587a 100644 --- a/doc/classes/StreamPeerTCP.xml +++ b/doc/classes/StreamPeerTCP.xml @@ -58,16 +58,16 @@ </method> </methods> <constants> - <constant name="STATUS_NONE" value="0"> + <constant name="STATUS_NONE" value="0" enum="Status"> The initial status of the [code]StreamPeerTCP[/code], also the status after a disconnect. </constant> - <constant name="STATUS_CONNECTING" value="1"> + <constant name="STATUS_CONNECTING" value="1" enum="Status"> A status representing a [code]StreamPeerTCP[/code] that is connecting to a host. </constant> - <constant name="STATUS_CONNECTED" value="2"> + <constant name="STATUS_CONNECTED" value="2" enum="Status"> A status representing a [code]StreamPeerTCP[/code] that is connected to a host. </constant> - <constant name="STATUS_ERROR" value="3"> + <constant name="STATUS_ERROR" value="3" enum="Status"> A staus representing a [code]StreamPeerTCP[/code] in error state. </constant> </constants> diff --git a/doc/classes/StyleBoxTexture.xml b/doc/classes/StyleBoxTexture.xml index e8d7a67965..2a7077bbff 100644 --- a/doc/classes/StyleBoxTexture.xml +++ b/doc/classes/StyleBoxTexture.xml @@ -73,11 +73,11 @@ </signal> </signals> <constants> - <constant name="AXIS_STRETCH_MODE_STRETCH" value="0"> + <constant name="AXIS_STRETCH_MODE_STRETCH" value="0" enum="AxisStretchMode"> </constant> - <constant name="AXIS_STRETCH_MODE_TILE" value="1"> + <constant name="AXIS_STRETCH_MODE_TILE" value="1" enum="AxisStretchMode"> </constant> - <constant name="AXIS_STRETCH_MODE_TILE_FIT" value="2"> + <constant name="AXIS_STRETCH_MODE_TILE_FIT" value="2" enum="AxisStretchMode"> </constant> </constants> </class> diff --git a/doc/classes/TabContainer.xml b/doc/classes/TabContainer.xml index ea07754c8f..350dd11e4d 100644 --- a/doc/classes/TabContainer.xml +++ b/doc/classes/TabContainer.xml @@ -154,11 +154,11 @@ </signal> </signals> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="TabAlign"> </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="TabAlign"> </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="TabAlign"> </constant> </constants> <theme_items> diff --git a/doc/classes/Tabs.xml b/doc/classes/Tabs.xml index 61525ebe8e..fbda1aedb4 100644 --- a/doc/classes/Tabs.xml +++ b/doc/classes/Tabs.xml @@ -191,21 +191,21 @@ </signal> </signals> <constants> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="TabAlign"> </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="TabAlign"> </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="TabAlign"> </constant> - <constant name="ALIGN_MAX" value="3"> + <constant name="ALIGN_MAX" value="3" enum="TabAlign"> </constant> - <constant name="CLOSE_BUTTON_SHOW_NEVER" value="0"> + <constant name="CLOSE_BUTTON_SHOW_NEVER" value="0" enum="CloseButtonDisplayPolicy"> </constant> - <constant name="CLOSE_BUTTON_SHOW_ACTIVE_ONLY" value="1"> + <constant name="CLOSE_BUTTON_SHOW_ACTIVE_ONLY" value="1" enum="CloseButtonDisplayPolicy"> </constant> - <constant name="CLOSE_BUTTON_SHOW_ALWAYS" value="2"> + <constant name="CLOSE_BUTTON_SHOW_ALWAYS" value="2" enum="CloseButtonDisplayPolicy"> </constant> - <constant name="CLOSE_BUTTON_MAX" value="3"> + <constant name="CLOSE_BUTTON_MAX" value="3" enum="CloseButtonDisplayPolicy"> </constant> </constants> <theme_items> diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index dd6a737998..d5afe28eb8 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -393,28 +393,28 @@ </signal> </signals> <constants> - <constant name="SEARCH_MATCH_CASE" value="1"> + <constant name="SEARCH_MATCH_CASE" value="1" enum="SearchFlags"> Match case when searching. </constant> - <constant name="SEARCH_WHOLE_WORDS" value="2"> + <constant name="SEARCH_WHOLE_WORDS" value="2" enum="SearchFlags"> Match whole words when searching. </constant> - <constant name="SEARCH_BACKWARDS" value="4"> + <constant name="SEARCH_BACKWARDS" value="4" enum="SearchFlags"> Search from end to beginning. </constant> - <constant name="MENU_CUT" value="0"> + <constant name="MENU_CUT" value="0" enum="MenuItems"> </constant> - <constant name="MENU_COPY" value="1"> + <constant name="MENU_COPY" value="1" enum="MenuItems"> </constant> - <constant name="MENU_PASTE" value="2"> + <constant name="MENU_PASTE" value="2" enum="MenuItems"> </constant> - <constant name="MENU_CLEAR" value="3"> + <constant name="MENU_CLEAR" value="3" enum="MenuItems"> </constant> - <constant name="MENU_SELECT_ALL" value="4"> + <constant name="MENU_SELECT_ALL" value="4" enum="MenuItems"> </constant> - <constant name="MENU_UNDO" value="5"> + <constant name="MENU_UNDO" value="5" enum="MenuItems"> </constant> - <constant name="MENU_MAX" value="6"> + <constant name="MENU_MAX" value="6" enum="MenuItems"> </constant> </constants> <theme_items> diff --git a/doc/classes/Texture.xml b/doc/classes/Texture.xml index c12c266b12..855a8f12de 100644 --- a/doc/classes/Texture.xml +++ b/doc/classes/Texture.xml @@ -116,25 +116,25 @@ </method> </methods> <constants> - <constant name="FLAG_MIPMAPS" value="1"> + <constant name="FLAG_MIPMAPS" value="1" enum="Flags"> Generate mipmaps, to enable smooth zooming out of the texture. </constant> - <constant name="FLAG_REPEAT" value="2"> + <constant name="FLAG_REPEAT" value="2" enum="Flags"> Repeat (instead of clamp to edge). </constant> - <constant name="FLAG_FILTER" value="4"> + <constant name="FLAG_FILTER" value="4" enum="Flags"> Turn on magnifying filter, to enable smooth zooming in of the texture. </constant> - <constant name="FLAGS_DEFAULT" value="7"> + <constant name="FLAGS_DEFAULT" value="7" enum="Flags"> Default flags. Generate mipmaps, repeat, and filter are enabled. </constant> - <constant name="FLAG_ANISOTROPIC_FILTER" value="8"> + <constant name="FLAG_ANISOTROPIC_FILTER" value="8" enum="Flags"> </constant> - <constant name="FLAG_CONVERT_TO_LINEAR" value="16"> + <constant name="FLAG_CONVERT_TO_LINEAR" value="16" enum="Flags"> </constant> - <constant name="FLAG_MIRRORED_REPEAT" value="32"> + <constant name="FLAG_MIRRORED_REPEAT" value="32" enum="Flags"> </constant> - <constant name="FLAG_VIDEO_SURFACE" value="4096"> + <constant name="FLAG_VIDEO_SURFACE" value="4096" enum="Flags"> Texture is a video surface. </constant> </constants> diff --git a/doc/classes/TextureButton.xml b/doc/classes/TextureButton.xml index 2ce9b37825..9074966f4f 100644 --- a/doc/classes/TextureButton.xml +++ b/doc/classes/TextureButton.xml @@ -40,25 +40,25 @@ </member> </members> <constants> - <constant name="STRETCH_SCALE" value="0"> + <constant name="STRETCH_SCALE" value="0" enum="StretchMode"> Scale to fit the node's bounding rectangle. </constant> - <constant name="STRETCH_TILE" value="1"> + <constant name="STRETCH_TILE" value="1" enum="StretchMode"> Tile inside the node's bounding rectangle. </constant> - <constant name="STRETCH_KEEP" value="2"> + <constant name="STRETCH_KEEP" value="2" enum="StretchMode"> The texture keeps its original size and stays in the bounding rectangle's top-left corner. </constant> - <constant name="STRETCH_KEEP_CENTERED" value="3"> + <constant name="STRETCH_KEEP_CENTERED" value="3" enum="StretchMode"> The texture keeps its original size and stays centered in the node's bounding rectangle. </constant> - <constant name="STRETCH_KEEP_ASPECT" value="4"> + <constant name="STRETCH_KEEP_ASPECT" value="4" enum="StretchMode"> Scale the texture to fit the node's bounding rectangle, but maintain the texture's aspect ratio. </constant> - <constant name="STRETCH_KEEP_ASPECT_CENTERED" value="5"> + <constant name="STRETCH_KEEP_ASPECT_CENTERED" value="5" enum="StretchMode"> Scale the texture to fit the node's bounding rectangle, center it, and maintain its aspect ratio. </constant> - <constant name="STRETCH_KEEP_ASPECT_COVERED" value="6"> + <constant name="STRETCH_KEEP_ASPECT_COVERED" value="6" enum="StretchMode"> Scale the texture so that the shorter side fits the bounding rectangle. The other side clips to the node's limits. </constant> </constants> diff --git a/doc/classes/TextureProgress.xml b/doc/classes/TextureProgress.xml index dcaac83c30..c3046d7877 100644 --- a/doc/classes/TextureProgress.xml +++ b/doc/classes/TextureProgress.xml @@ -53,22 +53,22 @@ </member> </members> <constants> - <constant name="FILL_LEFT_TO_RIGHT" value="0"> + <constant name="FILL_LEFT_TO_RIGHT" value="0" enum="FillMode"> The [member texture_progress] fills from left to right. </constant> - <constant name="FILL_RIGHT_TO_LEFT" value="1"> + <constant name="FILL_RIGHT_TO_LEFT" value="1" enum="FillMode"> The [member texture_progress] fills from right to left. </constant> - <constant name="FILL_TOP_TO_BOTTOM" value="2"> + <constant name="FILL_TOP_TO_BOTTOM" value="2" enum="FillMode"> The [member texture_progress] fills from top to bototm. </constant> - <constant name="FILL_BOTTOM_TO_TOP" value="3"> + <constant name="FILL_BOTTOM_TO_TOP" value="3" enum="FillMode"> The [member texture_progress] fills from bottom to top. </constant> - <constant name="FILL_CLOCKWISE" value="4"> + <constant name="FILL_CLOCKWISE" value="4" enum="FillMode"> Turns the node into a radial bar. The [member texture_progress] fills clockwise. See [member radial_center_offset], [member radial_initial_angle] and [member radial_fill_degrees] to refine its behavior. </constant> - <constant name="FILL_COUNTER_CLOCKWISE" value="5"> + <constant name="FILL_COUNTER_CLOCKWISE" value="5" enum="FillMode"> Turns the node into a radial bar. The [member texture_progress] fills counter-clockwise. See [member radial_center_offset], [member radial_initial_angle] and [member radial_fill_degrees] to refine its behavior. </constant> </constants> diff --git a/doc/classes/TextureRect.xml b/doc/classes/TextureRect.xml index bb169de529..c1a5902448 100644 --- a/doc/classes/TextureRect.xml +++ b/doc/classes/TextureRect.xml @@ -24,28 +24,28 @@ </member> </members> <constants> - <constant name="STRETCH_SCALE_ON_EXPAND" value="0"> + <constant name="STRETCH_SCALE_ON_EXPAND" value="0" enum="StretchMode"> Scale to fit the node's bounding rectangle, only if [code]expand[/code] is [code]true[/code]. Default [code]stretch_mode[/code], for backwards compatibility. Until you set [code]expand[/code] to [code]true[/code], the texture will behave like [code]STRETCH_KEEP[/code]. </constant> - <constant name="STRETCH_SCALE" value="1"> + <constant name="STRETCH_SCALE" value="1" enum="StretchMode"> Scale to fit the node's bounding rectangle. </constant> - <constant name="STRETCH_TILE" value="2"> + <constant name="STRETCH_TILE" value="2" enum="StretchMode"> Tile inside the node's bounding rectangle. </constant> - <constant name="STRETCH_KEEP" value="3"> + <constant name="STRETCH_KEEP" value="3" enum="StretchMode"> The texture keeps its original size and stays in the bounding rectangle's top-left corner. </constant> - <constant name="STRETCH_KEEP_CENTERED" value="4"> + <constant name="STRETCH_KEEP_CENTERED" value="4" enum="StretchMode"> The texture keeps its original size and stays centered in the node's bounding rectangle. </constant> - <constant name="STRETCH_KEEP_ASPECT" value="5"> + <constant name="STRETCH_KEEP_ASPECT" value="5" enum="StretchMode"> Scale the texture to fit the node's bounding rectangle, but maintain the texture's aspect ratio. </constant> - <constant name="STRETCH_KEEP_ASPECT_CENTERED" value="6"> + <constant name="STRETCH_KEEP_ASPECT_CENTERED" value="6" enum="StretchMode"> Scale the texture to fit the node's bounding rectangle, center it and maintain its aspect ratio. </constant> - <constant name="STRETCH_KEEP_ASPECT_COVERED" value="7"> + <constant name="STRETCH_KEEP_ASPECT_COVERED" value="7" enum="StretchMode"> Scale the texture so that the shorter side fits the bounding rectangle. The other side clips to the node's limits. </constant> </constants> diff --git a/doc/classes/Thread.xml b/doc/classes/Thread.xml index 01b3ba180e..c9b1d872bc 100644 --- a/doc/classes/Thread.xml +++ b/doc/classes/Thread.xml @@ -50,11 +50,11 @@ </method> </methods> <constants> - <constant name="PRIORITY_LOW" value="0"> + <constant name="PRIORITY_LOW" value="0" enum="Priority"> </constant> - <constant name="PRIORITY_NORMAL" value="1"> + <constant name="PRIORITY_NORMAL" value="1" enum="Priority"> </constant> - <constant name="PRIORITY_HIGH" value="2"> + <constant name="PRIORITY_HIGH" value="2" enum="Priority"> </constant> </constants> </class> diff --git a/doc/classes/TileMap.xml b/doc/classes/TileMap.xml index 647f031baa..e58ab3dd25 100644 --- a/doc/classes/TileMap.xml +++ b/doc/classes/TileMap.xml @@ -278,34 +278,34 @@ </signal> </signals> <constants> - <constant name="INVALID_CELL" value="-1" enum=""> + <constant name="INVALID_CELL" value="-1"> Returned when a cell doesn't exist. </constant> - <constant name="MODE_SQUARE" value="0"> + <constant name="MODE_SQUARE" value="0" enum="Mode"> Orthogonal orientation mode. </constant> - <constant name="MODE_ISOMETRIC" value="1"> + <constant name="MODE_ISOMETRIC" value="1" enum="Mode"> Isometric orientation mode. </constant> - <constant name="MODE_CUSTOM" value="2"> + <constant name="MODE_CUSTOM" value="2" enum="Mode"> Custom orientation mode. </constant> - <constant name="HALF_OFFSET_X" value="0"> + <constant name="HALF_OFFSET_X" value="0" enum="HalfOffset"> Half offset on the X coordinate. </constant> - <constant name="HALF_OFFSET_Y" value="1"> + <constant name="HALF_OFFSET_Y" value="1" enum="HalfOffset"> Half offset on the Y coordinate. </constant> - <constant name="HALF_OFFSET_DISABLED" value="2"> + <constant name="HALF_OFFSET_DISABLED" value="2" enum="HalfOffset"> Half offset disabled. </constant> - <constant name="TILE_ORIGIN_TOP_LEFT" value="0"> + <constant name="TILE_ORIGIN_TOP_LEFT" value="0" enum="TileOrigin"> Tile origin at its top-left corner. </constant> - <constant name="TILE_ORIGIN_CENTER" value="1"> + <constant name="TILE_ORIGIN_CENTER" value="1" enum="TileOrigin"> Tile origin at its center. </constant> - <constant name="TILE_ORIGIN_BOTTOM_LEFT" value="2"> + <constant name="TILE_ORIGIN_BOTTOM_LEFT" value="2" enum="TileOrigin"> </constant> </constants> </class> diff --git a/doc/classes/TileSet.xml b/doc/classes/TileSet.xml index 885e6e606a..6a147a9646 100644 --- a/doc/classes/TileSet.xml +++ b/doc/classes/TileSet.xml @@ -412,25 +412,25 @@ </method> </methods> <constants> - <constant name="BITMASK_2X2" value="0"> + <constant name="BITMASK_2X2" value="0" enum="BitmaskMode"> </constant> - <constant name="BITMASK_3X3" value="1"> + <constant name="BITMASK_3X3" value="1" enum="BitmaskMode"> </constant> - <constant name="BIND_TOPLEFT" value="1"> + <constant name="BIND_TOPLEFT" value="1" enum="AutotileBindings"> </constant> - <constant name="BIND_TOP" value="2"> + <constant name="BIND_TOP" value="2" enum="AutotileBindings"> </constant> - <constant name="BIND_TOPRIGHT" value="4"> + <constant name="BIND_TOPRIGHT" value="4" enum="AutotileBindings"> </constant> - <constant name="BIND_LEFT" value="8"> + <constant name="BIND_LEFT" value="8" enum="AutotileBindings"> </constant> - <constant name="BIND_RIGHT" value="32"> + <constant name="BIND_RIGHT" value="32" enum="AutotileBindings"> </constant> - <constant name="BIND_BOTTOMLEFT" value="64"> + <constant name="BIND_BOTTOMLEFT" value="64" enum="AutotileBindings"> </constant> - <constant name="BIND_BOTTOM" value="128"> + <constant name="BIND_BOTTOM" value="128" enum="AutotileBindings"> </constant> - <constant name="BIND_BOTTOMRIGHT" value="256"> + <constant name="BIND_BOTTOMRIGHT" value="256" enum="AutotileBindings"> </constant> </constants> </class> diff --git a/doc/classes/Timer.xml b/doc/classes/Timer.xml index 2a69709da8..7ea83b0b22 100644 --- a/doc/classes/Timer.xml +++ b/doc/classes/Timer.xml @@ -77,10 +77,10 @@ </signal> </signals> <constants> - <constant name="TIMER_PROCESS_PHYSICS" value="0"> + <constant name="TIMER_PROCESS_PHYSICS" value="0" enum="TimerProcessMode"> Update the Timer during the physics step at each frame (fixed framerate processing). </constant> - <constant name="TIMER_PROCESS_IDLE" value="1"> + <constant name="TIMER_PROCESS_IDLE" value="1" enum="TimerProcessMode"> Update the Timer during the idle time at each frame. </constant> </constants> diff --git a/doc/classes/TouchScreenButton.xml b/doc/classes/TouchScreenButton.xml index 76d9af2323..776765f84d 100644 --- a/doc/classes/TouchScreenButton.xml +++ b/doc/classes/TouchScreenButton.xml @@ -61,10 +61,10 @@ </signal> </signals> <constants> - <constant name="VISIBILITY_ALWAYS" value="0"> + <constant name="VISIBILITY_ALWAYS" value="0" enum="VisibilityMode"> Always visible. </constant> - <constant name="VISIBILITY_TOUCHSCREEN_ONLY" value="1"> + <constant name="VISIBILITY_TOUCHSCREEN_ONLY" value="1" enum="VisibilityMode"> Visible on touch screens only. </constant> </constants> diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index 6cbff6b79a..3d1144e81e 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -407,19 +407,19 @@ </signal> </signals> <constants> - <constant name="SELECT_SINGLE" value="0"> + <constant name="SELECT_SINGLE" value="0" enum="SelectMode"> Allow selection of a single item at a time. </constant> - <constant name="SELECT_ROW" value="1"> + <constant name="SELECT_ROW" value="1" enum="SelectMode"> </constant> - <constant name="SELECT_MULTI" value="2"> + <constant name="SELECT_MULTI" value="2" enum="SelectMode"> Allow selection of multiple items at the same time. </constant> - <constant name="DROP_MODE_DISABLED" value="0"> + <constant name="DROP_MODE_DISABLED" value="0" enum="DropModeFlags"> </constant> - <constant name="DROP_MODE_ON_ITEM" value="1"> + <constant name="DROP_MODE_ON_ITEM" value="1" enum="DropModeFlags"> </constant> - <constant name="DROP_MODE_INBETWEEN" value="2"> + <constant name="DROP_MODE_INBETWEEN" value="2" enum="DropModeFlags"> </constant> </constants> <theme_items> diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index fd7dae644c..421185fe51 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -586,30 +586,30 @@ </method> </methods> <constants> - <constant name="CELL_MODE_STRING" value="0"> + <constant name="CELL_MODE_STRING" value="0" enum="TreeCellMode"> Cell contains a string. </constant> - <constant name="CELL_MODE_CHECK" value="1"> + <constant name="CELL_MODE_CHECK" value="1" enum="TreeCellMode"> Cell can be checked. </constant> - <constant name="CELL_MODE_RANGE" value="2"> + <constant name="CELL_MODE_RANGE" value="2" enum="TreeCellMode"> Cell contains a range. </constant> - <constant name="CELL_MODE_RANGE_EXPRESSION" value="3"> + <constant name="CELL_MODE_RANGE_EXPRESSION" value="3" enum="TreeCellMode"> Cell contains a range expression. </constant> - <constant name="CELL_MODE_ICON" value="4"> + <constant name="CELL_MODE_ICON" value="4" enum="TreeCellMode"> Cell contains an icon. </constant> - <constant name="CELL_MODE_CUSTOM" value="5"> + <constant name="CELL_MODE_CUSTOM" value="5" enum="TreeCellMode"> </constant> - <constant name="ALIGN_LEFT" value="0"> + <constant name="ALIGN_LEFT" value="0" enum="TextAlign"> Align text to the left. See [code]set_text_align()[/code]. </constant> - <constant name="ALIGN_CENTER" value="1"> + <constant name="ALIGN_CENTER" value="1" enum="TextAlign"> Center text. See [code]set_text_align()[/code]. </constant> - <constant name="ALIGN_RIGHT" value="2"> + <constant name="ALIGN_RIGHT" value="2" enum="TextAlign"> Align text to the right. See [code]set_text_align()[/code]. </constant> </constants> diff --git a/doc/classes/Tween.xml b/doc/classes/Tween.xml index 70bac84b37..a11580860a 100644 --- a/doc/classes/Tween.xml +++ b/doc/classes/Tween.xml @@ -406,55 +406,55 @@ </signal> </signals> <constants> - <constant name="TWEEN_PROCESS_PHYSICS" value="0"> + <constant name="TWEEN_PROCESS_PHYSICS" value="0" enum="TweenProcessMode"> The [code]Tween[/code] should use [code]_physics_process[/code] for timekeeping when this is enabled. </constant> - <constant name="TWEEN_PROCESS_IDLE" value="1"> + <constant name="TWEEN_PROCESS_IDLE" value="1" enum="TweenProcessMode"> The [code]Tween[/code] should use [code]_process[/code] for timekeeping when this is enabled (default). </constant> - <constant name="TRANS_LINEAR" value="0"> + <constant name="TRANS_LINEAR" value="0" enum="TransitionType"> Means that the animation is interpolated linearly. </constant> - <constant name="TRANS_SINE" value="1"> + <constant name="TRANS_SINE" value="1" enum="TransitionType"> Means that the animation is interpolated using a sine wave. </constant> - <constant name="TRANS_QUINT" value="2"> + <constant name="TRANS_QUINT" value="2" enum="TransitionType"> Means that the animation is interpolated with a quinary (to the power of 5) function. </constant> - <constant name="TRANS_QUART" value="3"> + <constant name="TRANS_QUART" value="3" enum="TransitionType"> Means that the animation is interpolated with a quartic (to the power of 4) function. </constant> - <constant name="TRANS_QUAD" value="4"> + <constant name="TRANS_QUAD" value="4" enum="TransitionType"> Means that the animation is interpolated with a quadratic (to the power of 2) function. </constant> - <constant name="TRANS_EXPO" value="5"> + <constant name="TRANS_EXPO" value="5" enum="TransitionType"> Means that the animation is interpolated with an exponential (some number to the power of x) function. </constant> - <constant name="TRANS_ELASTIC" value="6"> + <constant name="TRANS_ELASTIC" value="6" enum="TransitionType"> Means that the animation is interpolated with elasticity, wiggling around the edges. </constant> - <constant name="TRANS_CUBIC" value="7"> + <constant name="TRANS_CUBIC" value="7" enum="TransitionType"> Means that the animation is interpolated with a cubic (to the power of 3) function. </constant> - <constant name="TRANS_CIRC" value="8"> + <constant name="TRANS_CIRC" value="8" enum="TransitionType"> Means that the animation is interpolated with a function using square roots. </constant> - <constant name="TRANS_BOUNCE" value="9"> + <constant name="TRANS_BOUNCE" value="9" enum="TransitionType"> Means that the animation is interpolated by bouncing at, but never surpassing, the end. </constant> - <constant name="TRANS_BACK" value="10"> + <constant name="TRANS_BACK" value="10" enum="TransitionType"> Means that the animation is interpolated backing out at edges. </constant> - <constant name="EASE_IN" value="0"> + <constant name="EASE_IN" value="0" enum="EaseType"> Signifies that the interpolation should be focused in the beginning. </constant> - <constant name="EASE_OUT" value="1"> + <constant name="EASE_OUT" value="1" enum="EaseType"> Signifies that the interpolation should be focused in the end. </constant> - <constant name="EASE_IN_OUT" value="2"> + <constant name="EASE_IN_OUT" value="2" enum="EaseType"> Signifies that the interpolation should be focused in both ends. </constant> - <constant name="EASE_OUT_IN" value="3"> + <constant name="EASE_OUT_IN" value="3" enum="EaseType"> Signifies that the interpolation should be focused in both ends, but they should be switched (a bit hard to explain, try it for yourself to be sure). </constant> </constants> diff --git a/doc/classes/UndoRedo.xml b/doc/classes/UndoRedo.xml index 34f3ef7f78..f0d69b9b7f 100644 --- a/doc/classes/UndoRedo.xml +++ b/doc/classes/UndoRedo.xml @@ -144,11 +144,11 @@ </method> </methods> <constants> - <constant name="MERGE_DISABLE" value="0"> + <constant name="MERGE_DISABLE" value="0" enum="MergeMode"> </constant> - <constant name="MERGE_ENDS" value="1"> + <constant name="MERGE_ENDS" value="1" enum="MergeMode"> </constant> - <constant name="MERGE_ALL" value="2"> + <constant name="MERGE_ALL" value="2" enum="MergeMode"> </constant> </constants> </class> diff --git a/doc/classes/Vector3.xml b/doc/classes/Vector3.xml index 91f84a8505..acb41297a7 100644 --- a/doc/classes/Vector3.xml +++ b/doc/classes/Vector3.xml @@ -241,13 +241,13 @@ </member> </members> <constants> - <constant name="AXIS_X" value="0" enum=""> + <constant name="AXIS_X" value="0"> Enumerated value for the X axis. Returned by functions like max_axis or min_axis. </constant> - <constant name="AXIS_Y" value="1" enum=""> + <constant name="AXIS_Y" value="1"> Enumerated value for the Y axis. </constant> - <constant name="AXIS_Z" value="2" enum=""> + <constant name="AXIS_Z" value="2"> Enumerated value for the Z axis. </constant> </constants> diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index b09a8ad69e..ad3903d549 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -281,78 +281,78 @@ </signal> </signals> <constants> - <constant name="UPDATE_DISABLED" value="0"> + <constant name="UPDATE_DISABLED" value="0" enum="UpdateMode"> Do not update the render target. </constant> - <constant name="UPDATE_ONCE" value="1"> + <constant name="UPDATE_ONCE" value="1" enum="UpdateMode"> Update the render target once, then switch to [code]UPDATE_DISABLED[/code] </constant> - <constant name="UPDATE_WHEN_VISIBLE" value="2"> + <constant name="UPDATE_WHEN_VISIBLE" value="2" enum="UpdateMode"> Update the render target only when it is visible. This is the default value. </constant> - <constant name="UPDATE_ALWAYS" value="3"> + <constant name="UPDATE_ALWAYS" value="3" enum="UpdateMode"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_DISABLED" value="0"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_DISABLED" value="0" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1" value="1"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1" value="1" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_4" value="2"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_4" value="2" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_16" value="3"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_16" value="3" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_64" value="4"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_64" value="4" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_256" value="5"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_256" value="5" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1024" value="6"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_1024" value="6" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_MAX" value="7"> + <constant name="SHADOW_ATLAS_QUADRANT_SUBDIV_MAX" value="7" enum="ShadowAtlasQuadrantSubdiv"> </constant> - <constant name="RENDER_INFO_OBJECTS_IN_FRAME" value="0"> + <constant name="RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_VERTICES_IN_FRAME" value="1"> + <constant name="RENDER_INFO_VERTICES_IN_FRAME" value="1" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2"> + <constant name="RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_SHADER_CHANGES_IN_FRAME" value="3"> + <constant name="RENDER_INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value="4"> + <constant name="RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5"> + <constant name="RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5" enum="RenderInfo"> </constant> - <constant name="RENDER_INFO_MAX" value="6"> + <constant name="RENDER_INFO_MAX" value="6" enum="RenderInfo"> </constant> - <constant name="DEBUG_DRAW_DISABLED" value="0"> + <constant name="DEBUG_DRAW_DISABLED" value="0" enum="DebugDraw"> </constant> - <constant name="DEBUG_DRAW_UNSHADED" value="1"> + <constant name="DEBUG_DRAW_UNSHADED" value="1" enum="DebugDraw"> </constant> - <constant name="DEBUG_DRAW_OVERDRAW" value="2"> + <constant name="DEBUG_DRAW_OVERDRAW" value="2" enum="DebugDraw"> </constant> - <constant name="DEBUG_DRAW_WIREFRAME" value="3"> + <constant name="DEBUG_DRAW_WIREFRAME" value="3" enum="DebugDraw"> </constant> - <constant name="MSAA_DISABLED" value="0"> + <constant name="MSAA_DISABLED" value="0" enum="MSAA"> </constant> - <constant name="MSAA_2X" value="1"> + <constant name="MSAA_2X" value="1" enum="MSAA"> </constant> - <constant name="MSAA_4X" value="2"> + <constant name="MSAA_4X" value="2" enum="MSAA"> </constant> - <constant name="MSAA_8X" value="3"> + <constant name="MSAA_8X" value="3" enum="MSAA"> </constant> - <constant name="MSAA_16X" value="4"> + <constant name="MSAA_16X" value="4" enum="MSAA"> </constant> - <constant name="USAGE_2D" value="0"> + <constant name="USAGE_2D" value="0" enum="Usage"> </constant> - <constant name="USAGE_2D_NO_SAMPLING" value="1"> + <constant name="USAGE_2D_NO_SAMPLING" value="1" enum="Usage"> </constant> - <constant name="USAGE_3D" value="2"> + <constant name="USAGE_3D" value="2" enum="Usage"> </constant> - <constant name="USAGE_3D_NO_EFFECTS" value="3"> + <constant name="USAGE_3D_NO_EFFECTS" value="3" enum="Usage"> </constant> - <constant name="CLEAR_MODE_ALWAYS" value="0"> + <constant name="CLEAR_MODE_ALWAYS" value="0" enum="ClearMode"> </constant> - <constant name="CLEAR_MODE_NEVER" value="1"> + <constant name="CLEAR_MODE_NEVER" value="1" enum="ClearMode"> </constant> - <constant name="CLEAR_MODE_ONLY_NEXT_FRAME" value="2"> + <constant name="CLEAR_MODE_ONLY_NEXT_FRAME" value="2" enum="ClearMode"> </constant> </constants> </class> diff --git a/doc/classes/VisibilityEnabler.xml b/doc/classes/VisibilityEnabler.xml index 8796fad905..67137e1408 100644 --- a/doc/classes/VisibilityEnabler.xml +++ b/doc/classes/VisibilityEnabler.xml @@ -19,13 +19,13 @@ </member> </members> <constants> - <constant name="ENABLER_PAUSE_ANIMATIONS" value="0"> + <constant name="ENABLER_PAUSE_ANIMATIONS" value="0" enum="Enabler"> This enabler will pause [AnimationPlayer] nodes. </constant> - <constant name="ENABLER_FREEZE_BODIES" value="1"> + <constant name="ENABLER_FREEZE_BODIES" value="1" enum="Enabler"> This enabler will freeze [RigidBody] nodes. </constant> - <constant name="ENABLER_MAX" value="2"> + <constant name="ENABLER_MAX" value="2" enum="Enabler"> </constant> </constants> </class> diff --git a/doc/classes/VisibilityEnabler2D.xml b/doc/classes/VisibilityEnabler2D.xml index 09ba725aed..45e15eb4b3 100644 --- a/doc/classes/VisibilityEnabler2D.xml +++ b/doc/classes/VisibilityEnabler2D.xml @@ -27,24 +27,24 @@ </member> </members> <constants> - <constant name="ENABLER_PAUSE_ANIMATIONS" value="0"> + <constant name="ENABLER_PAUSE_ANIMATIONS" value="0" enum="Enabler"> This enabler will pause [AnimationPlayer] nodes. </constant> - <constant name="ENABLER_FREEZE_BODIES" value="1"> + <constant name="ENABLER_FREEZE_BODIES" value="1" enum="Enabler"> This enabler will freeze [RigidBody2D] nodes. </constant> - <constant name="ENABLER_PAUSE_PARTICLES" value="2"> + <constant name="ENABLER_PAUSE_PARTICLES" value="2" enum="Enabler"> This enabler will stop [Particles2D] nodes. </constant> - <constant name="ENABLER_PARENT_PROCESS" value="3"> + <constant name="ENABLER_PARENT_PROCESS" value="3" enum="Enabler"> This enabler will stop the parent's _process function. </constant> - <constant name="ENABLER_PARENT_PHYSICS_PROCESS" value="4"> + <constant name="ENABLER_PARENT_PHYSICS_PROCESS" value="4" enum="Enabler"> This enabler will stop the parent's _physics_process function. </constant> - <constant name="ENABLER_PAUSE_ANIMATED_SPRITES" value="5"> + <constant name="ENABLER_PAUSE_ANIMATED_SPRITES" value="5" enum="Enabler"> </constant> - <constant name="ENABLER_MAX" value="6"> + <constant name="ENABLER_MAX" value="6" enum="Enabler"> </constant> </constants> </class> diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml index 4c38a494b6..c84aad26a1 100644 --- a/doc/classes/VisualServer.xml +++ b/doc/classes/VisualServer.xml @@ -1798,315 +1798,315 @@ </signal> </signals> <constants> - <constant name="NO_INDEX_ARRAY" value="-1" enum=""> + <constant name="NO_INDEX_ARRAY" value="-1"> </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4" enum=""> + <constant name="ARRAY_WEIGHTS_SIZE" value="4"> </constant> - <constant name="CANVAS_ITEM_Z_MIN" value="-4096" enum=""> + <constant name="CANVAS_ITEM_Z_MIN" value="-4096"> </constant> - <constant name="CANVAS_ITEM_Z_MAX" value="4096" enum=""> + <constant name="CANVAS_ITEM_Z_MAX" value="4096"> </constant> - <constant name="MAX_GLOW_LEVELS" value="7" enum=""> + <constant name="MAX_GLOW_LEVELS" value="7"> </constant> - <constant name="MAX_CURSORS" value="8" enum=""> + <constant name="MAX_CURSORS" value="8"> </constant> - <constant name="MATERIAL_RENDER_PRIORITY_MIN" value="-128" enum=""> + <constant name="MATERIAL_RENDER_PRIORITY_MIN" value="-128"> </constant> - <constant name="MATERIAL_RENDER_PRIORITY_MAX" value="127" enum=""> + <constant name="MATERIAL_RENDER_PRIORITY_MAX" value="127"> </constant> - <constant name="CUBEMAP_LEFT" value="0"> + <constant name="CUBEMAP_LEFT" value="0" enum="CubeMapSide"> </constant> - <constant name="CUBEMAP_RIGHT" value="1"> + <constant name="CUBEMAP_RIGHT" value="1" enum="CubeMapSide"> </constant> - <constant name="CUBEMAP_BOTTOM" value="2"> + <constant name="CUBEMAP_BOTTOM" value="2" enum="CubeMapSide"> </constant> - <constant name="CUBEMAP_TOP" value="3"> + <constant name="CUBEMAP_TOP" value="3" enum="CubeMapSide"> </constant> - <constant name="CUBEMAP_FRONT" value="4"> + <constant name="CUBEMAP_FRONT" value="4" enum="CubeMapSide"> </constant> - <constant name="CUBEMAP_BACK" value="5"> + <constant name="CUBEMAP_BACK" value="5" enum="CubeMapSide"> </constant> - <constant name="TEXTURE_FLAG_MIPMAPS" value="1"> + <constant name="TEXTURE_FLAG_MIPMAPS" value="1" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_REPEAT" value="2"> + <constant name="TEXTURE_FLAG_REPEAT" value="2" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_FILTER" value="4"> + <constant name="TEXTURE_FLAG_FILTER" value="4" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_ANISOTROPIC_FILTER" value="8"> + <constant name="TEXTURE_FLAG_ANISOTROPIC_FILTER" value="8" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_CONVERT_TO_LINEAR" value="16"> + <constant name="TEXTURE_FLAG_CONVERT_TO_LINEAR" value="16" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_MIRRORED_REPEAT" value="32"> + <constant name="TEXTURE_FLAG_MIRRORED_REPEAT" value="32" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_CUBEMAP" value="2048"> + <constant name="TEXTURE_FLAG_CUBEMAP" value="2048" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAG_USED_FOR_STREAMING" value="4096"> + <constant name="TEXTURE_FLAG_USED_FOR_STREAMING" value="4096" enum="TextureFlags"> </constant> - <constant name="TEXTURE_FLAGS_DEFAULT" value="7"> + <constant name="TEXTURE_FLAGS_DEFAULT" value="7" enum="TextureFlags"> </constant> - <constant name="SHADER_SPATIAL" value="0"> + <constant name="SHADER_SPATIAL" value="0" enum="ShaderMode"> </constant> - <constant name="SHADER_CANVAS_ITEM" value="1"> + <constant name="SHADER_CANVAS_ITEM" value="1" enum="ShaderMode"> </constant> - <constant name="SHADER_PARTICLES" value="2"> + <constant name="SHADER_PARTICLES" value="2" enum="ShaderMode"> </constant> - <constant name="SHADER_MAX" value="3"> + <constant name="SHADER_MAX" value="3" enum="ShaderMode"> </constant> - <constant name="ARRAY_VERTEX" value="0"> + <constant name="ARRAY_VERTEX" value="0" enum="ArrayType"> </constant> - <constant name="ARRAY_NORMAL" value="1"> + <constant name="ARRAY_NORMAL" value="1" enum="ArrayType"> </constant> - <constant name="ARRAY_TANGENT" value="2"> + <constant name="ARRAY_TANGENT" value="2" enum="ArrayType"> </constant> - <constant name="ARRAY_COLOR" value="3"> + <constant name="ARRAY_COLOR" value="3" enum="ArrayType"> </constant> - <constant name="ARRAY_TEX_UV" value="4"> + <constant name="ARRAY_TEX_UV" value="4" enum="ArrayType"> </constant> - <constant name="ARRAY_TEX_UV2" value="5"> + <constant name="ARRAY_TEX_UV2" value="5" enum="ArrayType"> </constant> - <constant name="ARRAY_BONES" value="6"> + <constant name="ARRAY_BONES" value="6" enum="ArrayType"> </constant> - <constant name="ARRAY_WEIGHTS" value="7"> + <constant name="ARRAY_WEIGHTS" value="7" enum="ArrayType"> </constant> - <constant name="ARRAY_INDEX" value="8"> + <constant name="ARRAY_INDEX" value="8" enum="ArrayType"> </constant> - <constant name="ARRAY_MAX" value="9"> + <constant name="ARRAY_MAX" value="9" enum="ArrayType"> </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> + <constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> + <constant name="ARRAY_FORMAT_NORMAL" value="2" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> + <constant name="ARRAY_FORMAT_TANGENT" value="4" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> + <constant name="ARRAY_FORMAT_COLOR" value="8" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> + <constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_TEX_UV2" value="32"> + <constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> + <constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> + <constant name="ARRAY_FORMAT_WEIGHTS" value="128" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> + <constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_VERTEX" value="512"> + <constant name="ARRAY_COMPRESS_VERTEX" value="512" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_NORMAL" value="1024"> + <constant name="ARRAY_COMPRESS_NORMAL" value="1024" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TANGENT" value="2048"> + <constant name="ARRAY_COMPRESS_TANGENT" value="2048" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_COLOR" value="4096"> + <constant name="ARRAY_COMPRESS_COLOR" value="4096" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TEX_UV" value="8192"> + <constant name="ARRAY_COMPRESS_TEX_UV" value="8192" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_TEX_UV2" value="16384"> + <constant name="ARRAY_COMPRESS_TEX_UV2" value="16384" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_BONES" value="32768"> + <constant name="ARRAY_COMPRESS_BONES" value="32768" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_WEIGHTS" value="65536"> + <constant name="ARRAY_COMPRESS_WEIGHTS" value="65536" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_INDEX" value="131072"> + <constant name="ARRAY_COMPRESS_INDEX" value="131072" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144"> + <constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144" enum="ArrayFormat"> </constant> - <constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288"> + <constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288" enum="ArrayFormat"> </constant> - <constant name="ARRAY_COMPRESS_DEFAULT" value="97792"> + <constant name="ARRAY_COMPRESS_DEFAULT" value="97792" enum="ArrayFormat"> </constant> - <constant name="PRIMITIVE_POINTS" value="0"> + <constant name="PRIMITIVE_POINTS" value="0" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_LINES" value="1"> + <constant name="PRIMITIVE_LINES" value="1" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> + <constant name="PRIMITIVE_LINE_STRIP" value="2" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> + <constant name="PRIMITIVE_LINE_LOOP" value="3" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> + <constant name="PRIMITIVE_TRIANGLES" value="4" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> + <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> + <constant name="PRIMITIVE_TRIANGLE_FAN" value="6" enum="PrimitiveType"> </constant> - <constant name="PRIMITIVE_MAX" value="7"> + <constant name="PRIMITIVE_MAX" value="7" enum="PrimitiveType"> </constant> - <constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0"> + <constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode"> </constant> - <constant name="BLEND_SHAPE_MODE_RELATIVE" value="1"> + <constant name="BLEND_SHAPE_MODE_RELATIVE" value="1" enum="BlendShapeMode"> </constant> - <constant name="LIGHT_DIRECTIONAL" value="0"> + <constant name="LIGHT_DIRECTIONAL" value="0" enum="LightType"> </constant> - <constant name="LIGHT_OMNI" value="1"> + <constant name="LIGHT_OMNI" value="1" enum="LightType"> </constant> - <constant name="LIGHT_SPOT" value="2"> + <constant name="LIGHT_SPOT" value="2" enum="LightType"> </constant> - <constant name="LIGHT_PARAM_ENERGY" value="0"> + <constant name="LIGHT_PARAM_ENERGY" value="0" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SPECULAR" value="2"> + <constant name="LIGHT_PARAM_SPECULAR" value="2" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_RANGE" value="3"> + <constant name="LIGHT_PARAM_RANGE" value="3" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_ATTENUATION" value="4"> + <constant name="LIGHT_PARAM_ATTENUATION" value="4" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SPOT_ANGLE" value="5"> + <constant name="LIGHT_PARAM_SPOT_ANGLE" value="5" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SPOT_ATTENUATION" value="6"> + <constant name="LIGHT_PARAM_SPOT_ATTENUATION" value="6" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_CONTACT_SHADOW_SIZE" value="7"> + <constant name="LIGHT_PARAM_CONTACT_SHADOW_SIZE" value="7" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_MAX_DISTANCE" value="8"> + <constant name="LIGHT_PARAM_SHADOW_MAX_DISTANCE" value="8" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET" value="9"> + <constant name="LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET" value="9" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET" value="10"> + <constant name="LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET" value="10" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET" value="11"> + <constant name="LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET" value="11" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_NORMAL_BIAS" value="12"> + <constant name="LIGHT_PARAM_SHADOW_NORMAL_BIAS" value="12" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_BIAS" value="13"> + <constant name="LIGHT_PARAM_SHADOW_BIAS" value="13" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14"> + <constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="LightParam"> </constant> - <constant name="LIGHT_PARAM_MAX" value="15"> + <constant name="LIGHT_PARAM_MAX" value="15" enum="LightParam"> </constant> - <constant name="VIEWPORT_UPDATE_DISABLED" value="0"> + <constant name="VIEWPORT_UPDATE_DISABLED" value="0" enum="ViewportUpdateMode"> </constant> - <constant name="VIEWPORT_UPDATE_ONCE" value="1"> + <constant name="VIEWPORT_UPDATE_ONCE" value="1" enum="ViewportUpdateMode"> </constant> - <constant name="VIEWPORT_UPDATE_WHEN_VISIBLE" value="2"> + <constant name="VIEWPORT_UPDATE_WHEN_VISIBLE" value="2" enum="ViewportUpdateMode"> </constant> - <constant name="VIEWPORT_UPDATE_ALWAYS" value="3"> + <constant name="VIEWPORT_UPDATE_ALWAYS" value="3" enum="ViewportUpdateMode"> </constant> - <constant name="VIEWPORT_CLEAR_ALWAYS" value="0"> + <constant name="VIEWPORT_CLEAR_ALWAYS" value="0" enum="ViewportClearMode"> </constant> - <constant name="VIEWPORT_CLEAR_NEVER" value="1"> + <constant name="VIEWPORT_CLEAR_NEVER" value="1" enum="ViewportClearMode"> </constant> - <constant name="VIEWPORT_CLEAR_ONLY_NEXT_FRAME" value="2"> + <constant name="VIEWPORT_CLEAR_ONLY_NEXT_FRAME" value="2" enum="ViewportClearMode"> </constant> - <constant name="VIEWPORT_MSAA_DISABLED" value="0"> + <constant name="VIEWPORT_MSAA_DISABLED" value="0" enum="ViewportMSAA"> </constant> - <constant name="VIEWPORT_MSAA_2X" value="1"> + <constant name="VIEWPORT_MSAA_2X" value="1" enum="ViewportMSAA"> </constant> - <constant name="VIEWPORT_MSAA_4X" value="2"> + <constant name="VIEWPORT_MSAA_4X" value="2" enum="ViewportMSAA"> </constant> - <constant name="VIEWPORT_MSAA_8X" value="3"> + <constant name="VIEWPORT_MSAA_8X" value="3" enum="ViewportMSAA"> </constant> - <constant name="VIEWPORT_MSAA_16X" value="4"> + <constant name="VIEWPORT_MSAA_16X" value="4" enum="ViewportMSAA"> </constant> - <constant name="VIEWPORT_USAGE_2D" value="0"> + <constant name="VIEWPORT_USAGE_2D" value="0" enum="ViewportUsage"> </constant> - <constant name="VIEWPORT_USAGE_2D_NO_SAMPLING" value="1"> + <constant name="VIEWPORT_USAGE_2D_NO_SAMPLING" value="1" enum="ViewportUsage"> </constant> - <constant name="VIEWPORT_USAGE_3D" value="2"> + <constant name="VIEWPORT_USAGE_3D" value="2" enum="ViewportUsage"> </constant> - <constant name="VIEWPORT_USAGE_3D_NO_EFFECTS" value="3"> + <constant name="VIEWPORT_USAGE_3D_NO_EFFECTS" value="3" enum="ViewportUsage"> </constant> - <constant name="VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME" value="0"> + <constant name="VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME" value="1"> + <constant name="VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME" value="1" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2"> + <constant name="VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME" value="3"> + <constant name="VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value="4"> + <constant name="VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5"> + <constant name="VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value="5" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_RENDER_INFO_MAX" value="6"> + <constant name="VIEWPORT_RENDER_INFO_MAX" value="6" enum="ViewportRenderInfo"> </constant> - <constant name="VIEWPORT_DEBUG_DRAW_DISABLED" value="0"> + <constant name="VIEWPORT_DEBUG_DRAW_DISABLED" value="0" enum="ViewportDebugDraw"> </constant> - <constant name="VIEWPORT_DEBUG_DRAW_UNSHADED" value="1"> + <constant name="VIEWPORT_DEBUG_DRAW_UNSHADED" value="1" enum="ViewportDebugDraw"> </constant> - <constant name="VIEWPORT_DEBUG_DRAW_OVERDRAW" value="2"> + <constant name="VIEWPORT_DEBUG_DRAW_OVERDRAW" value="2" enum="ViewportDebugDraw"> </constant> - <constant name="VIEWPORT_DEBUG_DRAW_WIREFRAME" value="3"> + <constant name="VIEWPORT_DEBUG_DRAW_WIREFRAME" value="3" enum="ViewportDebugDraw"> </constant> - <constant name="SCENARIO_DEBUG_DISABLED" value="0"> + <constant name="SCENARIO_DEBUG_DISABLED" value="0" enum="ScenarioDebugMode"> </constant> - <constant name="SCENARIO_DEBUG_WIREFRAME" value="1"> + <constant name="SCENARIO_DEBUG_WIREFRAME" value="1" enum="ScenarioDebugMode"> </constant> - <constant name="SCENARIO_DEBUG_OVERDRAW" value="2"> + <constant name="SCENARIO_DEBUG_OVERDRAW" value="2" enum="ScenarioDebugMode"> </constant> - <constant name="SCENARIO_DEBUG_SHADELESS" value="3"> + <constant name="SCENARIO_DEBUG_SHADELESS" value="3" enum="ScenarioDebugMode"> </constant> - <constant name="INSTANCE_NONE" value="0"> + <constant name="INSTANCE_NONE" value="0" enum="InstanceType"> </constant> - <constant name="INSTANCE_MESH" value="1"> + <constant name="INSTANCE_MESH" value="1" enum="InstanceType"> </constant> - <constant name="INSTANCE_MULTIMESH" value="2"> + <constant name="INSTANCE_MULTIMESH" value="2" enum="InstanceType"> </constant> - <constant name="INSTANCE_IMMEDIATE" value="3"> + <constant name="INSTANCE_IMMEDIATE" value="3" enum="InstanceType"> </constant> - <constant name="INSTANCE_PARTICLES" value="4"> + <constant name="INSTANCE_PARTICLES" value="4" enum="InstanceType"> </constant> - <constant name="INSTANCE_LIGHT" value="5"> + <constant name="INSTANCE_LIGHT" value="5" enum="InstanceType"> </constant> - <constant name="INSTANCE_REFLECTION_PROBE" value="6"> + <constant name="INSTANCE_REFLECTION_PROBE" value="6" enum="InstanceType"> </constant> - <constant name="INSTANCE_GI_PROBE" value="7"> + <constant name="INSTANCE_GI_PROBE" value="7" enum="InstanceType"> </constant> - <constant name="INSTANCE_MAX" value="8"> + <constant name="INSTANCE_MAX" value="8" enum="InstanceType"> </constant> - <constant name="INSTANCE_GEOMETRY_MASK" value="30"> + <constant name="INSTANCE_GEOMETRY_MASK" value="30" enum="InstanceType"> </constant> - <constant name="NINE_PATCH_STRETCH" value="0"> + <constant name="NINE_PATCH_STRETCH" value="0" enum="NinePatchAxisMode"> </constant> - <constant name="NINE_PATCH_TILE" value="1"> + <constant name="NINE_PATCH_TILE" value="1" enum="NinePatchAxisMode"> </constant> - <constant name="NINE_PATCH_TILE_FIT" value="2"> + <constant name="NINE_PATCH_TILE_FIT" value="2" enum="NinePatchAxisMode"> </constant> - <constant name="CANVAS_LIGHT_MODE_ADD" value="0"> + <constant name="CANVAS_LIGHT_MODE_ADD" value="0" enum="CanvasLightMode"> </constant> - <constant name="CANVAS_LIGHT_MODE_SUB" value="1"> + <constant name="CANVAS_LIGHT_MODE_SUB" value="1" enum="CanvasLightMode"> </constant> - <constant name="CANVAS_LIGHT_MODE_MIX" value="2"> + <constant name="CANVAS_LIGHT_MODE_MIX" value="2" enum="CanvasLightMode"> </constant> - <constant name="CANVAS_LIGHT_MODE_MASK" value="3"> + <constant name="CANVAS_LIGHT_MODE_MASK" value="3" enum="CanvasLightMode"> </constant> - <constant name="CANVAS_LIGHT_FILTER_NONE" value="0"> + <constant name="CANVAS_LIGHT_FILTER_NONE" value="0" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_LIGHT_FILTER_PCF3" value="1"> + <constant name="CANVAS_LIGHT_FILTER_PCF3" value="1" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_LIGHT_FILTER_PCF5" value="2"> + <constant name="CANVAS_LIGHT_FILTER_PCF5" value="2" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_LIGHT_FILTER_PCF7" value="3"> + <constant name="CANVAS_LIGHT_FILTER_PCF7" value="3" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_LIGHT_FILTER_PCF9" value="4"> + <constant name="CANVAS_LIGHT_FILTER_PCF9" value="4" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_LIGHT_FILTER_PCF13" value="5"> + <constant name="CANVAS_LIGHT_FILTER_PCF13" value="5" enum="CanvasLightShadowFilter"> </constant> - <constant name="CANVAS_OCCLUDER_POLYGON_CULL_DISABLED" value="0"> + <constant name="CANVAS_OCCLUDER_POLYGON_CULL_DISABLED" value="0" enum="CanvasOccluderPolygonCullMode"> </constant> - <constant name="CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE" value="1"> + <constant name="CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE" value="1" enum="CanvasOccluderPolygonCullMode"> </constant> - <constant name="CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE" value="2"> + <constant name="CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE" value="2" enum="CanvasOccluderPolygonCullMode"> </constant> - <constant name="INFO_OBJECTS_IN_FRAME" value="0"> + <constant name="INFO_OBJECTS_IN_FRAME" value="0" enum="RenderInfo"> </constant> - <constant name="INFO_VERTICES_IN_FRAME" value="1"> + <constant name="INFO_VERTICES_IN_FRAME" value="1" enum="RenderInfo"> </constant> - <constant name="INFO_MATERIAL_CHANGES_IN_FRAME" value="2"> + <constant name="INFO_MATERIAL_CHANGES_IN_FRAME" value="2" enum="RenderInfo"> </constant> - <constant name="INFO_SHADER_CHANGES_IN_FRAME" value="3"> + <constant name="INFO_SHADER_CHANGES_IN_FRAME" value="3" enum="RenderInfo"> </constant> - <constant name="INFO_SURFACE_CHANGES_IN_FRAME" value="4"> + <constant name="INFO_SURFACE_CHANGES_IN_FRAME" value="4" enum="RenderInfo"> </constant> - <constant name="INFO_DRAW_CALLS_IN_FRAME" value="5"> + <constant name="INFO_DRAW_CALLS_IN_FRAME" value="5" enum="RenderInfo"> </constant> - <constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="6"> + <constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="6" enum="RenderInfo"> </constant> - <constant name="INFO_VIDEO_MEM_USED" value="7"> + <constant name="INFO_VIDEO_MEM_USED" value="7" enum="RenderInfo"> </constant> - <constant name="INFO_TEXTURE_MEM_USED" value="8"> + <constant name="INFO_TEXTURE_MEM_USED" value="8" enum="RenderInfo"> </constant> - <constant name="INFO_VERTEX_MEM_USED" value="9"> + <constant name="INFO_VERTEX_MEM_USED" value="9" enum="RenderInfo"> </constant> - <constant name="FEATURE_SHADERS" value="0"> + <constant name="FEATURE_SHADERS" value="0" enum="Features"> </constant> - <constant name="FEATURE_MULTITHREADED" value="1"> + <constant name="FEATURE_MULTITHREADED" value="1" enum="Features"> </constant> </constants> </class> diff --git a/doc/classes/XMLParser.xml b/doc/classes/XMLParser.xml index 99722dcff9..2665e594e0 100644 --- a/doc/classes/XMLParser.xml +++ b/doc/classes/XMLParser.xml @@ -148,25 +148,25 @@ </method> </methods> <constants> - <constant name="NODE_NONE" value="0"> + <constant name="NODE_NONE" value="0" enum="NodeType"> There's no node (no file or buffer opened) </constant> - <constant name="NODE_ELEMENT" value="1"> + <constant name="NODE_ELEMENT" value="1" enum="NodeType"> Element (tag) </constant> - <constant name="NODE_ELEMENT_END" value="2"> + <constant name="NODE_ELEMENT_END" value="2" enum="NodeType"> End of element </constant> - <constant name="NODE_TEXT" value="3"> + <constant name="NODE_TEXT" value="3" enum="NodeType"> Text node </constant> - <constant name="NODE_COMMENT" value="4"> + <constant name="NODE_COMMENT" value="4" enum="NodeType"> Comment node </constant> - <constant name="NODE_CDATA" value="5"> + <constant name="NODE_CDATA" value="5" enum="NodeType"> CDATA content </constant> - <constant name="NODE_UNKNOWN" value="6"> + <constant name="NODE_UNKNOWN" value="6" enum="NodeType"> Unknown node </constant> </constants> diff --git a/drivers/coreaudio/audio_driver_coreaudio.cpp b/drivers/coreaudio/audio_driver_coreaudio.cpp index c531d6af9d..313704ae2e 100644 --- a/drivers/coreaudio/audio_driver_coreaudio.cpp +++ b/drivers/coreaudio/audio_driver_coreaudio.cpp @@ -220,7 +220,7 @@ OSStatus AudioDriverCoreAudio::output_callback(void *inRefCon, while (frames_left) { int frames = MIN(frames_left, ad->buffer_frames); - ad->audio_server_process(frames, ad->samples_in.ptr()); + ad->audio_server_process(frames, ad->samples_in.ptrw()); for (int j = 0; j < frames * ad->channels; j++) { diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index 308a18aa9d..5b3e43fc43 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -449,7 +449,7 @@ void RasterizerCanvasGLES3::_draw_gui_primitive(int p_points, const Vector2 *p_v void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *current_clip, bool &reclip) { int cc = p_item->commands.size(); - Item::Command **commands = p_item->commands.ptr(); + Item::Command **commands = p_item->commands.ptrw(); for (int i = 0; i < cc; i++) { @@ -1084,8 +1084,8 @@ void RasterizerCanvasGLES3::canvas_render_items(Item *p_item_list, int p_z, cons } int tc = material_ptr->textures.size(); - RID *textures = material_ptr->textures.ptr(); - ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = shader_ptr->texture_hints.ptr(); + RID *textures = material_ptr->textures.ptrw(); + ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = shader_ptr->texture_hints.ptrw(); for (int i = 0; i < tc; i++) { diff --git a/drivers/gles3/rasterizer_scene_gles3.cpp b/drivers/gles3/rasterizer_scene_gles3.cpp index 0c57e4e9cf..02df170da1 100644 --- a/drivers/gles3/rasterizer_scene_gles3.cpp +++ b/drivers/gles3/rasterizer_scene_gles3.cpp @@ -254,7 +254,7 @@ bool RasterizerSceneGLES3::_shadow_atlas_find_shadow(ShadowAtlas *shadow_atlas, //look for an empty space int sc = shadow_atlas->quadrants[qidx].shadows.size(); - ShadowAtlas::Quadrant::Shadow *sarr = shadow_atlas->quadrants[qidx].shadows.ptr(); + ShadowAtlas::Quadrant::Shadow *sarr = shadow_atlas->quadrants[qidx].shadows.ptrw(); int found_free_idx = -1; //found a free one int found_used_idx = -1; //found existing one, must steal it @@ -1198,8 +1198,8 @@ bool RasterizerSceneGLES3::_setup_material(RasterizerStorageGLES3::Material *p_m } int tc = p_material->textures.size(); - RID *textures = p_material->textures.ptr(); - ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = p_material->shader->texture_hints.ptr(); + RID *textures = p_material->textures.ptrw(); + ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = p_material->shader->texture_hints.ptrw(); state.current_main_tex = 0; diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index a41d84a2aa..89d3d7ff75 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -3477,7 +3477,7 @@ void RasterizerStorageGLES3::mesh_clear(RID p_mesh) { } } -void RasterizerStorageGLES3::mesh_render_blend_shapes(Surface *s, float *p_weights) { +void RasterizerStorageGLES3::mesh_render_blend_shapes(Surface *s, const float *p_weights) { glBindVertexArray(s->array_id); @@ -4063,7 +4063,7 @@ void RasterizerStorageGLES3::update_dirty_multimeshes() { int stride = multimesh->color_floats + multimesh->xform_floats; int count = multimesh->data.size(); - float *data = multimesh->data.ptr(); + float *data = multimesh->data.ptrw(); AABB aabb; @@ -4327,7 +4327,7 @@ void RasterizerStorageGLES3::skeleton_bone_set_transform(RID p_skeleton, int p_b ERR_FAIL_INDEX(p_bone, skeleton->size); ERR_FAIL_COND(skeleton->use_2d); - float *texture = skeleton->skel_texture.ptr(); + float *texture = skeleton->skel_texture.ptrw(); int base_ofs = ((p_bone / 256) * 256) * 3 * 4 + (p_bone % 256) * 4; @@ -4390,7 +4390,7 @@ void RasterizerStorageGLES3::skeleton_bone_set_transform_2d(RID p_skeleton, int ERR_FAIL_INDEX(p_bone, skeleton->size); ERR_FAIL_COND(!skeleton->use_2d); - float *texture = skeleton->skel_texture.ptr(); + float *texture = skeleton->skel_texture.ptrw(); int base_ofs = ((p_bone / 256) * 256) * 2 * 4 + (p_bone % 256) * 4; @@ -5632,8 +5632,8 @@ void RasterizerStorageGLES3::update_particles() { } int tc = material->textures.size(); - RID *textures = material->textures.ptr(); - ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = material->shader->texture_hints.ptr(); + RID *textures = material->textures.ptrw(); + ShaderLanguage::ShaderNode::Uniform::Hint *texture_hints = material->shader->texture_hints.ptrw(); for (int i = 0; i < tc; i++) { diff --git a/drivers/gles3/rasterizer_storage_gles3.h b/drivers/gles3/rasterizer_storage_gles3.h index 8aa8235b42..0ec110ab87 100644 --- a/drivers/gles3/rasterizer_storage_gles3.h +++ b/drivers/gles3/rasterizer_storage_gles3.h @@ -719,7 +719,7 @@ public: virtual AABB mesh_get_aabb(RID p_mesh, RID p_skeleton) const; virtual void mesh_clear(RID p_mesh); - void mesh_render_blend_shapes(Surface *s, float *p_weights); + void mesh_render_blend_shapes(Surface *s, const float *p_weights); /* MULTIMESH API */ diff --git a/drivers/gles3/shaders/scene.glsl b/drivers/gles3/shaders/scene.glsl index 9880663143..b7f205d8bb 100644 --- a/drivers/gles3/shaders/scene.glsl +++ b/drivers/gles3/shaders/scene.glsl @@ -1423,7 +1423,7 @@ uniform highp float gi_probe_normal_bias2; uniform bool gi_probe2_enabled; uniform bool gi_probe_blend_ambient2; -vec3 voxel_cone_trace(sampler3D probe, vec3 cell_size, vec3 pos, vec3 ambient, bool blend_ambient, vec3 direction, float tan_half_angle, float max_distance, float p_bias) { +vec3 voxel_cone_trace(mediump sampler3D probe, vec3 cell_size, vec3 pos, vec3 ambient, bool blend_ambient, vec3 direction, float tan_half_angle, float max_distance, float p_bias) { float dist = p_bias;//1.0; //dot(direction,mix(vec3(-1.0),vec3(1.0),greaterThan(direction,vec3(0.0))))*2.0; float alpha=0.0; @@ -1445,7 +1445,7 @@ vec3 voxel_cone_trace(sampler3D probe, vec3 cell_size, vec3 pos, vec3 ambient, b return color; } -void gi_probe_compute(sampler3D probe, mat4 probe_xform, vec3 bounds,vec3 cell_size,vec3 pos, vec3 ambient, vec3 environment, bool blend_ambient,float multiplier, mat3 normal_mtx,vec3 ref_vec, float roughness,float p_bias,float p_normal_bias, inout vec4 out_spec, inout vec4 out_diff) { +void gi_probe_compute(mediump sampler3D probe, mat4 probe_xform, vec3 bounds,vec3 cell_size,vec3 pos, vec3 ambient, vec3 environment, bool blend_ambient,float multiplier, mat3 normal_mtx,vec3 ref_vec, float roughness,float p_bias,float p_normal_bias, inout vec4 out_spec, inout vec4 out_diff) { @@ -2048,7 +2048,7 @@ FRAGMENT_SHADER_CODE if (fog_height_enabled) { float y = (camera_matrix * vec4(vertex,1.0)).y; - fog_amount = max(fog_amount,pow(1.0-smoothstep(fog_height_min,fog_height_max,y),fog_height_curve)); + fog_amount = max(fog_amount,pow(smoothstep(fog_height_min,fog_height_max,y),fog_height_curve)); } float rev_amount = 1.0 - fog_amount; diff --git a/drivers/pulseaudio/audio_driver_pulseaudio.cpp b/drivers/pulseaudio/audio_driver_pulseaudio.cpp index e4c8641a3b..49ac9e6e22 100644 --- a/drivers/pulseaudio/audio_driver_pulseaudio.cpp +++ b/drivers/pulseaudio/audio_driver_pulseaudio.cpp @@ -241,7 +241,7 @@ void AudioDriverPulseAudio::thread_func(void *p_udata) { } else { ad->lock(); - ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptr()); + ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptrw()); ad->unlock(); diff --git a/drivers/wasapi/audio_driver_wasapi.cpp b/drivers/wasapi/audio_driver_wasapi.cpp index 0671ee408e..2c87fb58db 100644 --- a/drivers/wasapi/audio_driver_wasapi.cpp +++ b/drivers/wasapi/audio_driver_wasapi.cpp @@ -214,7 +214,7 @@ void AudioDriverWASAPI::thread_func(void *p_udata) { if (ad->active) { ad->lock(); - ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptr()); + ad->audio_server_process(ad->buffer_frames, ad->samples_in.ptrw()); ad->unlock(); } else { diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index bfee66569a..3a72f8e569 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -1081,9 +1081,9 @@ Error DocData::save_classes(const String &p_default_path, const Map<String, Stri ConstantDoc &k = c.constants[i]; if (k.enumeration != String()) { - _write_string(f, 2, "<constant name=\"" + k.name + "\" value=\"" + k.value + "\">"); - } else { _write_string(f, 2, "<constant name=\"" + k.name + "\" value=\"" + k.value + "\" enum=\"" + k.enumeration + "\">"); + } else { + _write_string(f, 2, "<constant name=\"" + k.name + "\" value=\"" + k.value + "\">"); } _write_string(f, 3, k.description.strip_edges().xml_escape()); _write_string(f, 2, "</constant>"); @@ -1115,7 +1115,7 @@ Error DocData::load_compressed(const uint8_t *p_data, int p_compressed_size, int Vector<uint8_t> data; data.resize(p_uncompressed_size); - Compression::decompress(data.ptr(), p_uncompressed_size, p_data, p_compressed_size, Compression::MODE_DEFLATE); + Compression::decompress(data.ptrw(), p_uncompressed_size, p_data, p_compressed_size, Compression::MODE_DEFLATE); class_list.clear(); Ref<XMLParser> parser = memnew(XMLParser); diff --git a/editor/editor_asset_installer.cpp b/editor/editor_asset_installer.cpp index 1aac697ffd..94108a52fc 100644 --- a/editor/editor_asset_installer.cpp +++ b/editor/editor_asset_installer.cpp @@ -268,7 +268,7 @@ void EditorAssetInstaller::ok_pressed() { //read unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); FileAccess *f = FileAccess::open(path, FileAccess::WRITE); diff --git a/editor/editor_profiler.cpp b/editor/editor_profiler.cpp index faf49ffd41..5d81fc6ea4 100644 --- a/editor/editor_profiler.cpp +++ b/editor/editor_profiler.cpp @@ -221,7 +221,7 @@ void EditorProfiler::_update_plot() { Vector<int> columnv; columnv.resize(h * 4); - int *column = columnv.ptr(); + int *column = columnv.ptrw(); Map<StringName, int> plot_prev; //Map<StringName,int> plot_max; diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp index 910c06053e..52672fff72 100644 --- a/editor/editor_settings.cpp +++ b/editor/editor_settings.cpp @@ -370,8 +370,8 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) { _initial_set("editors/3d/grid_color", Color::html("808080")); hints["editors/3d/grid_color"] = PropertyInfo(Variant::COLOR, "editors/3d/grid_color", PROPERTY_HINT_COLOR_NO_ALPHA, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED); - _initial_set("editors/3d/default_fov", 55.0); - _initial_set("editors/3d/default_z_near", 0.1); + _initial_set("editors/3d/default_fov", 70.0); + _initial_set("editors/3d/default_z_near", 0.05); _initial_set("editors/3d/default_z_far", 500.0); // navigation @@ -1390,7 +1390,7 @@ EditorSettings::EditorSettings() { Vector<uint8_t> data; data.resize(etl->uncomp_size); - Compression::decompress(data.ptr(), etl->uncomp_size, etl->data, etl->comp_size, Compression::MODE_DEFLATE); + Compression::decompress(data.ptrw(), etl->uncomp_size, etl->data, etl->comp_size, Compression::MODE_DEFLATE); FileAccessMemory *fa = memnew(FileAccessMemory); fa->open_custom(data.ptr(), data.size()); diff --git a/editor/export_template_manager.cpp b/editor/export_template_manager.cpp index d208bbe662..2aad4774b0 100644 --- a/editor/export_template_manager.cpp +++ b/editor/export_template_manager.cpp @@ -207,7 +207,7 @@ void ExportTemplateManager::_install_from_file(const String &p_file) { //read unzOpenCurrentFile(pkg); - ret = unzReadCurrentFile(pkg, data.ptr(), data.size()); + ret = unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); String data_str; @@ -277,7 +277,7 @@ void ExportTemplateManager::_install_from_file(const String &p_file) { //read unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); print_line(fname); diff --git a/editor/fileserver/editor_file_server.cpp b/editor/fileserver/editor_file_server.cpp index fccf7c323c..ad035b48f3 100644 --- a/editor/fileserver/editor_file_server.cpp +++ b/editor/fileserver/editor_file_server.cpp @@ -31,7 +31,6 @@ #include "../editor_settings.h" #include "io/marshalls.h" -#include "io/marshalls.h" //#define DEBUG_PRINT(m_p) print_line(m_p) #define DEBUG_TIME(m_what) printf("MS: %s - %lu\n", m_what, OS::get_singleton()->get_ticks_usec()); @@ -240,7 +239,7 @@ void EditorFileServer::_subthread_start(void *s) { cd->files[id]->seek(offset); Vector<uint8_t> buf; buf.resize(blocklen); - int read = cd->files[id]->get_buffer(buf.ptr(), blocklen); + int read = cd->files[id]->get_buffer(buf.ptrw(), blocklen); ERR_CONTINUE(read < 0); print_line("GET BLOCK - offset: " + itos(offset) + ", blocklen: " + itos(blocklen)); diff --git a/editor/import/editor_scene_importer_gltf.cpp b/editor/import/editor_scene_importer_gltf.cpp index 397bb6ad68..f704d97373 100644 --- a/editor/import/editor_scene_importer_gltf.cpp +++ b/editor/import/editor_scene_importer_gltf.cpp @@ -29,7 +29,7 @@ Error EditorSceneImporterGLTF::_parse_json(const String &p_path, GLTFState &stat Vector<uint8_t> array; array.resize(f->get_len()); - f->get_buffer(array.ptr(), array.size()); + f->get_buffer(array.ptrw(), array.size()); String text; text.parse_utf8((const char *)array.ptr(), array.size()); @@ -65,7 +65,7 @@ Error EditorSceneImporterGLTF::_parse_glb(const String &p_path, GLTFState &state ERR_FAIL_COND_V(chunk_type != 0x4E4F534A, ERR_PARSE_ERROR); //JSON Vector<uint8_t> json_data; json_data.resize(chunk_length); - uint32_t len = f->get_buffer(json_data.ptr(), chunk_length); + uint32_t len = f->get_buffer(json_data.ptrw(), chunk_length); ERR_FAIL_COND_V(len != chunk_length, ERR_FILE_CORRUPT); String text; @@ -94,7 +94,7 @@ Error EditorSceneImporterGLTF::_parse_glb(const String &p_path, GLTFState &state ERR_FAIL_COND_V(chunk_type != 0x004E4942, ERR_PARSE_ERROR); //BIN state.glb_data.resize(chunk_length); - len = f->get_buffer(state.glb_data.ptr(), chunk_length); + len = f->get_buffer(state.glb_data.ptrw(), chunk_length); ERR_FAIL_COND_V(len != chunk_length, ERR_FILE_CORRUPT); return OK; @@ -467,9 +467,10 @@ Error EditorSceneImporterGLTF::_decode_buffer_view(GLTFState &state, int p_buffe uint32_t offset = bv.byte_offset + byte_offset; Vector<uint8_t> buffer = state.buffers[bv.buffer]; //copy on write, so no performance hit + const uint8_t *bufptr = buffer.ptr(); //use to debug - print_line("type " + _get_type_name(type) + " component type: " + _get_component_type_name(component_type) + " stride: " + itos(stride) + " amount " + itos(count)); + //print_line("type " + _get_type_name(type) + " component type: " + _get_component_type_name(component_type) + " stride: " + itos(stride) + " amount " + itos(count)); print_line("accessor offset" + itos(byte_offset) + " view offset: " + itos(bv.byte_offset) + " total buffer len: " + itos(buffer.size()) + " view len " + itos(bv.byte_length)); int buffer_end = (stride * (count - 1)) + element_size; @@ -481,7 +482,7 @@ Error EditorSceneImporterGLTF::_decode_buffer_view(GLTFState &state, int p_buffe for (int i = 0; i < count; i++) { - const uint8_t *src = &buffer[offset + i * stride]; + const uint8_t *src = &bufptr[offset + i * stride]; for (int j = 0; j < component_count; j++) { @@ -605,7 +606,7 @@ Vector<double> EditorSceneImporterGLTF::_decode_accessor(GLTFState &state, int p Vector<double> dst_buffer; dst_buffer.resize(component_count * a.count); - double *dst = dst_buffer.ptr(); + double *dst = dst_buffer.ptrw(); if (a.buffer_view >= 0) { @@ -628,13 +629,13 @@ Vector<double> EditorSceneImporterGLTF::_decode_accessor(GLTFState &state, int p indices.resize(a.sparse_count); int indices_component_size = _get_component_type_size(a.sparse_indices_component_type); - Error err = _decode_buffer_view(state, a.sparse_indices_buffer_view, indices.ptr(), 0, 0, indices_component_size, a.sparse_count, TYPE_SCALAR, 1, a.sparse_indices_component_type, indices_component_size, false, a.sparse_indices_byte_offset, false); + Error err = _decode_buffer_view(state, a.sparse_indices_buffer_view, indices.ptrw(), 0, 0, indices_component_size, a.sparse_count, TYPE_SCALAR, 1, a.sparse_indices_component_type, indices_component_size, false, a.sparse_indices_byte_offset, false); if (err != OK) return Vector<double>(); Vector<double> data; data.resize(component_count * a.sparse_count); - err = _decode_buffer_view(state, a.sparse_values_buffer_view, data.ptr(), skip_every, skip_bytes, element_size, a.sparse_count, a.type, component_count, a.component_type, component_size, a.normalized, a.sparse_values_byte_offset, p_for_vertex); + err = _decode_buffer_view(state, a.sparse_values_buffer_view, data.ptrw(), skip_every, skip_bytes, element_size, a.sparse_count, a.type, component_count, a.component_type, component_size, a.normalized, a.sparse_values_byte_offset, p_for_vertex); if (err != OK) return Vector<double>(); @@ -813,6 +814,7 @@ Error EditorSceneImporterGLTF::_parse_meshes(GLTFState &state) { Array meshes = state.json["meshes"]; for (int i = 0; i < meshes.size(); i++) { + print_line("on mesh: " + itos(i)); Dictionary d = meshes[i]; GLTFMesh mesh; diff --git a/editor/import/resource_importer_obj.cpp b/editor/import/resource_importer_obj.cpp index bd24aac99b..14bda9bb4e 100644 --- a/editor/import/resource_importer_obj.cpp +++ b/editor/import/resource_importer_obj.cpp @@ -58,6 +58,7 @@ static Error _parse_material_library(const String &p_path, Map<String, Ref<Spati current_name = l.replace("newmtl", "").strip_edges(); current.instance(); + current->set_name(current_name); material_map[current_name] = current; } else if (l.begins_with("Ka ")) { //uv diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 63d4039295..95445693b4 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -156,12 +156,12 @@ static String _fixstr(const String &p_what, const String &p_str) { return p_what; } -Node *ResourceImporterScene::_fix_node(Node *p_node, Node *p_root, Map<Ref<ArrayMesh>, Ref<Shape> > &collision_map) { +Node *ResourceImporterScene::_fix_node(Node *p_node, Node *p_root, Map<Ref<ArrayMesh>, Ref<Shape> > &collision_map, LightBakeMode p_light_bake_mode) { // children first.. for (int i = 0; i < p_node->get_child_count(); i++) { - Node *r = _fix_node(p_node->get_child(i), p_root, collision_map); + Node *r = _fix_node(p_node->get_child(i), p_root, collision_map, p_light_bake_mode); if (!r) { print_line("was erased.."); i--; //was erased @@ -205,6 +205,11 @@ Node *ResourceImporterScene::_fix_node(Node *p_node, Node *p_root, Map<Ref<Array } } } + + if (p_light_bake_mode != LIGHT_BAKE_DISABLED) { + + mi->set_flag(GeometryInstance::FLAG_USE_BAKED_LIGHT, true); + } } if (Object::cast_to<AnimationPlayer>(p_node)) { @@ -947,7 +952,10 @@ void ResourceImporterScene::_make_external_resources(Node *p_node, const String for (int i = 0; i < mesh->get_surface_count(); i++) { mat = mesh->surface_get_material(i); - if (!mat.is_valid() || mat->get_name() == "") + + if (!mat.is_valid()) + continue; + if (mat->get_name() == "") continue; if (!p_materials.has(mat)) { @@ -1022,6 +1030,7 @@ void ResourceImporterScene::get_import_options(List<ImportOption> *r_options, in r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "meshes/compress"), true)); r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "meshes/ensure_tangents"), true)); r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "meshes/storage", PROPERTY_HINT_ENUM, "Built-In,Files"), meshes_out ? 1 : 0)); + r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "meshes/light_baking", PROPERTY_HINT_ENUM, "Disabled,Enable"), 0)); r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "external_files/store_in_subdir"), false)); r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "animation/import", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED), true)); r_options->push_back(ImportOption(PropertyInfo(Variant::REAL, "animation/fps", PROPERTY_HINT_RANGE, "1,120,1"), 15)); @@ -1131,10 +1140,11 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p float anim_optimizer_linerr = p_options["animation/optimizer/max_linear_error"]; float anim_optimizer_angerr = p_options["animation/optimizer/max_angular_error"]; float anim_optimizer_maxang = p_options["animation/optimizer/max_angle"]; + int light_bake_mode = p_options["meshes/light_baking"]; Map<Ref<ArrayMesh>, Ref<Shape> > collision_map; - scene = _fix_node(scene, scene, collision_map); + scene = _fix_node(scene, scene, collision_map, LightBakeMode(light_bake_mode)); if (use_optimizer) { _optimize_animations(scene, anim_optimizer_linerr, anim_optimizer_angerr, anim_optimizer_maxang); diff --git a/editor/import/resource_importer_scene.h b/editor/import/resource_importer_scene.h index 5bf3145148..92777fafb6 100644 --- a/editor/import/resource_importer_scene.h +++ b/editor/import/resource_importer_scene.h @@ -100,6 +100,12 @@ class ResourceImporterScene : public ResourceImporter { PRESET_MAX }; + enum LightBakeMode { + LIGHT_BAKE_DISABLED, + LIGHT_BAKE_ENABLE, + //LIGHT_BAKE_LIGHTMAPS + }; + void _replace_owner(Node *p_node, Node *p_scene, Node *p_new_owner); public: @@ -124,7 +130,7 @@ public: void _make_external_resources(Node *p_node, const String &p_base_path, bool p_make_animations, bool p_make_materials, bool p_keep_materials, bool p_make_meshes, Map<Ref<Animation>, Ref<Animation> > &p_animations, Map<Ref<Material>, Ref<Material> > &p_materials, Map<Ref<ArrayMesh>, Ref<ArrayMesh> > &p_meshes); - Node *_fix_node(Node *p_node, Node *p_root, Map<Ref<ArrayMesh>, Ref<Shape> > &collision_map); + Node *_fix_node(Node *p_node, Node *p_root, Map<Ref<ArrayMesh>, Ref<Shape> > &collision_map, LightBakeMode p_light_bake_mode); void _create_clips(Node *scene, const Array &p_clips, bool p_bake_all); void _filter_anim_tracks(Ref<Animation> anim, Set<String> &keep); diff --git a/editor/plugins/navigation_mesh_generator.cpp b/editor/plugins/navigation_mesh_generator.cpp index 5d50e9c855..005a132e22 100644 --- a/editor/plugins/navigation_mesh_generator.cpp +++ b/editor/plugins/navigation_mesh_generator.cpp @@ -189,8 +189,8 @@ void NavigationMeshGenerator::_build_recast_navigation_mesh(Ref<NavigationMesh> ERR_FAIL_COND(tri_areas.size() == 0); - memset(tri_areas.ptr(), 0, ntris * sizeof(unsigned char)); - rcMarkWalkableTriangles(&ctx, cfg.walkableSlopeAngle, verts, nverts, tris, ntris, tri_areas.ptr()); + memset(tri_areas.ptrw(), 0, ntris * sizeof(unsigned char)); + rcMarkWalkableTriangles(&ctx, cfg.walkableSlopeAngle, verts, nverts, tris, ntris, tri_areas.ptrw()); ERR_FAIL_COND(!rcRasterizeTriangles(&ctx, verts, nverts, tris, tri_areas.ptr(), ntris, *hf, cfg.walkableClimb)); } diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 384c20d79f..9fd41c1064 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4855,8 +4855,8 @@ void SpatialEditor::_bind_methods() { void SpatialEditor::clear() { - settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 55.0)); - settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.1)); + settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 70.0)); + settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.05)); settings_zfar->set_value(EDITOR_DEF("editors/3d/default_z_far", 1500.0)); for (uint32_t i = 0; i < VIEWPORTS_COUNT; i++) { @@ -5099,14 +5099,14 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { settings_fov->set_max(MAX_FOV); settings_fov->set_min(MIN_FOV); settings_fov->set_step(0.01); - settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 55.0)); + settings_fov->set_value(EDITOR_DEF("editors/3d/default_fov", 70.0)); settings_vbc->add_margin_child(TTR("Perspective FOV (deg.):"), settings_fov); settings_znear = memnew(SpinBox); settings_znear->set_max(MAX_Z); settings_znear->set_min(MIN_Z); settings_znear->set_step(0.01); - settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.1)); + settings_znear->set_value(EDITOR_DEF("editors/3d/default_z_near", 0.05)); settings_vbc->add_margin_child(TTR("View Z-Near:"), settings_znear); settings_zfar = memnew(SpinBox); diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 16b85121ef..46c47d8656 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -383,7 +383,7 @@ private: //read unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); FileAccess *f = FileAccess::open(dir.plus_file(path), FileAccess::WRITE); diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 2ca621e24d..b23d914b88 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -290,6 +290,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { if (!scene) { EditorNode::get_singleton()->new_inherited_scene(); + break; } file->set_mode(EditorFileDialog::MODE_OPEN_FILE); diff --git a/main/main.cpp b/main/main.cpp index cc20e65025..c9b84d2cd1 100755 --- a/main/main.cpp +++ b/main/main.cpp @@ -743,7 +743,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph #endif } - GLOBAL_DEF("logging/file_logging/enable_file_logging", true); + GLOBAL_DEF("logging/file_logging/enable_file_logging", false); GLOBAL_DEF("logging/file_logging/log_path", "user://logs/log.txt"); GLOBAL_DEF("logging/file_logging/max_log_files", 10); if (FileAccess::get_create_func(FileAccess::ACCESS_USERDATA) && GLOBAL_GET("logging/file_logging/enable_file_logging")) { diff --git a/modules/enet/doc_classes/NetworkedMultiplayerENet.xml b/modules/enet/doc_classes/NetworkedMultiplayerENet.xml index 689a92a096..25d17542ea 100644 --- a/modules/enet/doc_classes/NetworkedMultiplayerENet.xml +++ b/modules/enet/doc_classes/NetworkedMultiplayerENet.xml @@ -71,15 +71,15 @@ </method> </methods> <constants> - <constant name="COMPRESS_NONE" value="0"> + <constant name="COMPRESS_NONE" value="0" enum="CompressionMode"> </constant> - <constant name="COMPRESS_RANGE_CODER" value="1"> + <constant name="COMPRESS_RANGE_CODER" value="1" enum="CompressionMode"> </constant> - <constant name="COMPRESS_FASTLZ" value="2"> + <constant name="COMPRESS_FASTLZ" value="2" enum="CompressionMode"> </constant> - <constant name="COMPRESS_ZLIB" value="3"> + <constant name="COMPRESS_ZLIB" value="3" enum="CompressionMode"> </constant> - <constant name="COMPRESS_ZSTD" value="4"> + <constant name="COMPRESS_ZSTD" value="4" enum="CompressionMode"> </constant> </constants> </class> diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp index 1e18ec0d18..ce485956b4 100644 --- a/modules/enet/networked_multiplayer_enet.cpp +++ b/modules/enet/networked_multiplayer_enet.cpp @@ -585,7 +585,7 @@ size_t NetworkedMultiplayerENet::enet_compress(void *context, const ENetBuffer * if (enet->dst_compressor_mem.size() < req_size) { enet->dst_compressor_mem.resize(req_size); } - int ret = Compression::compress(enet->dst_compressor_mem.ptr(), enet->src_compressor_mem.ptr(), ofs, mode); + int ret = Compression::compress(enet->dst_compressor_mem.ptrw(), enet->src_compressor_mem.ptr(), ofs, mode); if (ret < 0) return 0; diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index 54d0672a5b..f5a593cf4e 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -245,7 +245,7 @@ if ARGUMENTS.get('gdnative_wrapper', False): gd_wrapper_env = env.Clone() gd_wrapper_env.Append(CPPPATH=['#modules/gdnative/include/']) - # I think this doesn't work on MSVC yet... - gd_wrapper_env.Append(CCFLAGS=['-fPIC']) + if not env.msvc: + gd_wrapper_env.Append(CCFLAGS=['-fPIC']) gd_wrapper_env.Library("#bin/gdnative_wrapper_code", [gensource]) diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp index 41a810ff00..9496d0b310 100644 --- a/modules/gdscript/gdscript.cpp +++ b/modules/gdscript/gdscript.cpp @@ -100,7 +100,7 @@ GDScriptInstance *GDScript::_create_instance(const Variant **p_args, int p_argco #endif instance->owner->set_script_instance(instance); - /* STEP 2, INITIALIZE AND CONSRTUCT */ +/* STEP 2, INITIALIZE AND CONSRTUCT */ #ifndef NO_THREADS GDScriptLanguage::singleton->lock->lock(); @@ -738,7 +738,7 @@ Error GDScript::load_byte_code(const String &p_path) { Error err = fae->open_and_parse(fa, key, FileAccessEncrypted::MODE_READ); ERR_FAIL_COND_V(err, err); bytecode.resize(fae->get_len()); - fae->get_buffer(bytecode.ptr(), bytecode.size()); + fae->get_buffer(bytecode.ptrw(), bytecode.size()); memdelete(fae); } else { @@ -1324,7 +1324,7 @@ void GDScriptLanguage::_add_global(const StringName &p_name, const Variant &p_va } globals[p_name] = global_array.size(); global_array.push_back(p_value); - _global_array = global_array.ptr(); + _global_array = global_array.ptrw(); } void GDScriptLanguage::add_global_constant(const StringName &p_variable, const Variant &p_value) { diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 5a76acea6e..e7100d835c 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -29,11 +29,11 @@ /*************************************************************************/ #include "gdscript.h" +#include "core/engine.h" #include "editor/editor_settings.h" #include "gdscript_compiler.h" #include "global_constants.h" #include "os/file_access.h" -#include "core/engine.h" #ifdef TOOLS_ENABLED #include "editor/editor_file_system.h" @@ -791,7 +791,7 @@ static bool _guess_expression_type(GDScriptCompletionContext &context, const GDS } Variant::CallError ce; - Variant ret = mb->call(baseptr, argptr.ptr(), argptr.size(), ce); + Variant ret = mb->call(baseptr, (const Variant **)argptr.ptr(), argptr.size(), ce); if (ce.error == Variant::CallError::CALL_OK && ret.get_type() != Variant::NIL) { @@ -1795,7 +1795,7 @@ static void _find_type_arguments(GDScriptCompletionContext &context, const GDScr } } else { - //regular method +//regular method #if defined(DEBUG_METHODS_ENABLED) && defined(TOOLS_ENABLED) if (p_argidx < m->get_argument_count()) { diff --git a/modules/gridmap/doc_classes/GridMap.xml b/modules/gridmap/doc_classes/GridMap.xml index acca44f143..8c862b52e8 100644 --- a/modules/gridmap/doc_classes/GridMap.xml +++ b/modules/gridmap/doc_classes/GridMap.xml @@ -220,7 +220,7 @@ </method> </methods> <constants> - <constant name="INVALID_CELL_ITEM" value="-1" enum=""> + <constant name="INVALID_CELL_ITEM" value="-1"> Invalid cell item that can be used in [method set_cell_item] to clear cells (or represent an empty cell in [method get_cell_item]). </constant> </constants> diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp index 59a2b73dbc..fbb9b2ed14 100644 --- a/modules/mono/editor/bindings_generator.cpp +++ b/modules/mono/editor/bindings_generator.cpp @@ -370,7 +370,7 @@ Error BindingsGenerator::generate_cs_core_project(const String &p_output_dir, bo Vector<uint8_t> data; data.resize(file_data.uncompressed_size); - Compression::decompress(data.ptr(), file_data.uncompressed_size, file_data.data, file_data.compressed_size, Compression::MODE_DEFLATE); + Compression::decompress(data.ptrw(), file_data.uncompressed_size, file_data.data, file_data.compressed_size, Compression::MODE_DEFLATE); if (file_name.get_basename() == BINDINGS_GLOBAL_SCOPE_CLASS) { // GD.cs must be formatted to include the generated global constants @@ -382,7 +382,7 @@ Error BindingsGenerator::generate_cs_core_project(const String &p_output_dir, bo CharString data_utf8 = data_str.utf8(); data.resize(data_utf8.length()); - copymem(data.ptr(), reinterpret_cast<const uint8_t *>(data_utf8.get_data()), data_utf8.length()); + copymem(data.ptrw(), reinterpret_cast<const uint8_t *>(data_utf8.get_data()), data_utf8.length()); } FileAccessRef file = FileAccess::open(output_file, FileAccess::WRITE); diff --git a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml index 1a9dfc3333..9f7d38e957 100644 --- a/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml +++ b/modules/visual_script/doc_classes/VisualScriptBuiltinFunc.xml @@ -19,192 +19,192 @@ </member> </members> <constants> - <constant name="MATH_SIN" value="0"> + <constant name="MATH_SIN" value="0" enum="BuiltinFunc"> Return the sine of the input. </constant> - <constant name="MATH_COS" value="1"> + <constant name="MATH_COS" value="1" enum="BuiltinFunc"> Return the cosine of the input. </constant> - <constant name="MATH_TAN" value="2"> + <constant name="MATH_TAN" value="2" enum="BuiltinFunc"> Return the tangent of the input. </constant> - <constant name="MATH_SINH" value="3"> + <constant name="MATH_SINH" value="3" enum="BuiltinFunc"> Return the hyperbolic sine of the input. </constant> - <constant name="MATH_COSH" value="4"> + <constant name="MATH_COSH" value="4" enum="BuiltinFunc"> Return the hyperbolic cosine of the input. </constant> - <constant name="MATH_TANH" value="5"> + <constant name="MATH_TANH" value="5" enum="BuiltinFunc"> Return the hyperbolic tangent of the input. </constant> - <constant name="MATH_ASIN" value="6"> + <constant name="MATH_ASIN" value="6" enum="BuiltinFunc"> Return the arc sine of the input. </constant> - <constant name="MATH_ACOS" value="7"> + <constant name="MATH_ACOS" value="7" enum="BuiltinFunc"> Return the arc cosine of the input. </constant> - <constant name="MATH_ATAN" value="8"> + <constant name="MATH_ATAN" value="8" enum="BuiltinFunc"> Return the arc tangent of the input. </constant> - <constant name="MATH_ATAN2" value="9"> + <constant name="MATH_ATAN2" value="9" enum="BuiltinFunc"> Return the arc tangent of the input, using the signs of both parameters to determine the exact angle. </constant> - <constant name="MATH_SQRT" value="10"> + <constant name="MATH_SQRT" value="10" enum="BuiltinFunc"> Return the square root of the input. </constant> - <constant name="MATH_FMOD" value="11"> + <constant name="MATH_FMOD" value="11" enum="BuiltinFunc"> Return the remainder of one input divided by the other, using floating-point numbers. </constant> - <constant name="MATH_FPOSMOD" value="12"> + <constant name="MATH_FPOSMOD" value="12" enum="BuiltinFunc"> Return the positive remainder of one input divided by the other, using floating-point numbers. </constant> - <constant name="MATH_FLOOR" value="13"> + <constant name="MATH_FLOOR" value="13" enum="BuiltinFunc"> Return the input rounded down. </constant> - <constant name="MATH_CEIL" value="14"> + <constant name="MATH_CEIL" value="14" enum="BuiltinFunc"> Return the input rounded up. </constant> - <constant name="MATH_ROUND" value="15"> + <constant name="MATH_ROUND" value="15" enum="BuiltinFunc"> Return the input rounded to the nearest integer. </constant> - <constant name="MATH_ABS" value="16"> + <constant name="MATH_ABS" value="16" enum="BuiltinFunc"> Return the absolute value of the input. </constant> - <constant name="MATH_SIGN" value="17"> + <constant name="MATH_SIGN" value="17" enum="BuiltinFunc"> Return the sign of the input, turning it into 1, -1, or 0. Useful to determine if the input is positive or negative. </constant> - <constant name="MATH_POW" value="18"> + <constant name="MATH_POW" value="18" enum="BuiltinFunc"> Return the input raised to a given power. </constant> - <constant name="MATH_LOG" value="19"> + <constant name="MATH_LOG" value="19" enum="BuiltinFunc"> Return the natural logarithm of the input. Note that this is not the typical base-10 logarithm function calculators use. </constant> - <constant name="MATH_EXP" value="20"> + <constant name="MATH_EXP" value="20" enum="BuiltinFunc"> Return [b]e[/b] raised to the power of the input. [b]e[/b] sometimes called "Euler's number" is a mathematical constant whose value is approximately 2.71828. </constant> - <constant name="MATH_ISNAN" value="21"> + <constant name="MATH_ISNAN" value="21" enum="BuiltinFunc"> Return whether the input is NaN (Not a Number) or not. NaN is usually produced by dividing 0 by 0, though other ways exist. </constant> - <constant name="MATH_ISINF" value="22"> + <constant name="MATH_ISINF" value="22" enum="BuiltinFunc"> Return whether the input is an infinite floating-point number or not. Infinity is usually produced by dividing a number by 0, though other ways exist. </constant> - <constant name="MATH_EASE" value="23"> + <constant name="MATH_EASE" value="23" enum="BuiltinFunc"> Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in. </constant> - <constant name="MATH_DECIMALS" value="24"> + <constant name="MATH_DECIMALS" value="24" enum="BuiltinFunc"> Return the number of digit places after the decimal that the first non-zero digit occurs. </constant> - <constant name="MATH_STEPIFY" value="25"> + <constant name="MATH_STEPIFY" value="25" enum="BuiltinFunc"> Return the input snapped to a given step. </constant> - <constant name="MATH_LERP" value="26"> + <constant name="MATH_LERP" value="26" enum="BuiltinFunc"> Return a number linearly interpolated between the first two inputs, based on the third input. Uses the formula [code]a + (a - b) * t[/code]. </constant> - <constant name="MATH_INVERSE_LERP" value="27"> + <constant name="MATH_INVERSE_LERP" value="27" enum="BuiltinFunc"> </constant> - <constant name="MATH_RANGE_LERP" value="28"> + <constant name="MATH_RANGE_LERP" value="28" enum="BuiltinFunc"> </constant> - <constant name="MATH_DECTIME" value="29"> + <constant name="MATH_DECTIME" value="29" enum="BuiltinFunc"> Return the result of 'value' decreased by 'step' * 'amount'. </constant> - <constant name="MATH_RANDOMIZE" value="30"> + <constant name="MATH_RANDOMIZE" value="30" enum="BuiltinFunc"> Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time. </constant> - <constant name="MATH_RAND" value="31"> + <constant name="MATH_RAND" value="31" enum="BuiltinFunc"> Return a random 32 bits integer value. To obtain a random value between 0 to N (where N is smaller than 2^32 - 1), you can use it with the remainder function. </constant> - <constant name="MATH_RANDF" value="32"> + <constant name="MATH_RANDF" value="32" enum="BuiltinFunc"> Return a random floating-point value between 0 and 1. To obtain a random value between 0 to N, you can use it with multiplication. </constant> - <constant name="MATH_RANDOM" value="33"> + <constant name="MATH_RANDOM" value="33" enum="BuiltinFunc"> Return a random floating-point value between the two inputs. </constant> - <constant name="MATH_SEED" value="34"> + <constant name="MATH_SEED" value="34" enum="BuiltinFunc"> Set the seed for the random number generator. </constant> - <constant name="MATH_RANDSEED" value="35"> + <constant name="MATH_RANDSEED" value="35" enum="BuiltinFunc"> Return a random value from the given seed, along with the new seed. </constant> - <constant name="MATH_DEG2RAD" value="36"> + <constant name="MATH_DEG2RAD" value="36" enum="BuiltinFunc"> Convert the input from degrees to radians. </constant> - <constant name="MATH_RAD2DEG" value="37"> + <constant name="MATH_RAD2DEG" value="37" enum="BuiltinFunc"> Convert the input from radians to degrees. </constant> - <constant name="MATH_LINEAR2DB" value="38"> + <constant name="MATH_LINEAR2DB" value="38" enum="BuiltinFunc"> Convert the input from linear volume to decibel volume. </constant> - <constant name="MATH_DB2LINEAR" value="39"> + <constant name="MATH_DB2LINEAR" value="39" enum="BuiltinFunc"> Convert the input from decibel volume to linear volume. </constant> - <constant name="MATH_POLAR2CARTESIAN" value="40"> + <constant name="MATH_POLAR2CARTESIAN" value="40" enum="BuiltinFunc"> Converts a 2D point expressed in the polar coordinate system (a distance from the origin [code]r[/code] and an angle [code]th[/code]) to the cartesian coordinate system (x and y axis). </constant> - <constant name="MATH_CARTESIAN2POLAR" value="41"> + <constant name="MATH_CARTESIAN2POLAR" value="41" enum="BuiltinFunc"> Converts a 2D point expressed in the cartesian coordinate system (x and y axis) to the polar coordinate system (a distance from the origin and an angle). </constant> - <constant name="MATH_WRAP" value="42"> + <constant name="MATH_WRAP" value="42" enum="BuiltinFunc"> </constant> - <constant name="MATH_WRAPF" value="43"> + <constant name="MATH_WRAPF" value="43" enum="BuiltinFunc"> </constant> - <constant name="LOGIC_MAX" value="44"> + <constant name="LOGIC_MAX" value="44" enum="BuiltinFunc"> Return the greater of the two numbers, also known as their maximum. </constant> - <constant name="LOGIC_MIN" value="45"> + <constant name="LOGIC_MIN" value="45" enum="BuiltinFunc"> Return the lesser of the two numbers, also known as their minimum. </constant> - <constant name="LOGIC_CLAMP" value="46"> + <constant name="LOGIC_CLAMP" value="46" enum="BuiltinFunc"> Return the input clamped inside the given range, ensuring the result is never outside it. Equivalent to `min(max(input, range_low), range_high)` </constant> - <constant name="LOGIC_NEAREST_PO2" value="47"> + <constant name="LOGIC_NEAREST_PO2" value="47" enum="BuiltinFunc"> Return the nearest power of 2 to the input. </constant> - <constant name="OBJ_WEAKREF" value="48"> + <constant name="OBJ_WEAKREF" value="48" enum="BuiltinFunc"> Create a [WeakRef] from the input. </constant> - <constant name="FUNC_FUNCREF" value="49"> + <constant name="FUNC_FUNCREF" value="49" enum="BuiltinFunc"> Create a [FuncRef] from the input. </constant> - <constant name="TYPE_CONVERT" value="50"> + <constant name="TYPE_CONVERT" value="50" enum="BuiltinFunc"> Convert between types. </constant> - <constant name="TYPE_OF" value="51"> + <constant name="TYPE_OF" value="51" enum="BuiltinFunc"> Return the type of the input as an integer. Check [enum Variant.Type] for the integers that might be returned. </constant> - <constant name="TYPE_EXISTS" value="52"> + <constant name="TYPE_EXISTS" value="52" enum="BuiltinFunc"> Checks if a type is registered in the [ClassDB]. </constant> - <constant name="TEXT_CHAR" value="53"> + <constant name="TEXT_CHAR" value="53" enum="BuiltinFunc"> Return a character with the given ascii value. </constant> - <constant name="TEXT_STR" value="54"> + <constant name="TEXT_STR" value="54" enum="BuiltinFunc"> Convert the input to a string. </constant> - <constant name="TEXT_PRINT" value="55"> + <constant name="TEXT_PRINT" value="55" enum="BuiltinFunc"> Print the given string to the output window. </constant> - <constant name="TEXT_PRINTERR" value="56"> + <constant name="TEXT_PRINTERR" value="56" enum="BuiltinFunc"> Print the given string to the standard error output. </constant> - <constant name="TEXT_PRINTRAW" value="57"> + <constant name="TEXT_PRINTRAW" value="57" enum="BuiltinFunc"> Print the given string to the standard output, without adding a newline. </constant> - <constant name="VAR_TO_STR" value="58"> + <constant name="VAR_TO_STR" value="58" enum="BuiltinFunc"> Serialize a [Variant] to a string. </constant> - <constant name="STR_TO_VAR" value="59"> + <constant name="STR_TO_VAR" value="59" enum="BuiltinFunc"> Deserialize a [Variant] from a string serialized using [VAR_TO_STR]. </constant> - <constant name="VAR_TO_BYTES" value="60"> + <constant name="VAR_TO_BYTES" value="60" enum="BuiltinFunc"> Serialize a [Variant] to a [PoolByteArray]. </constant> - <constant name="BYTES_TO_VAR" value="61"> + <constant name="BYTES_TO_VAR" value="61" enum="BuiltinFunc"> Deserialize a [Variant] from a [PoolByteArray] serialized using [VAR_TO_BYTES]. </constant> - <constant name="COLORN" value="62"> + <constant name="COLORN" value="62" enum="BuiltinFunc"> Return the [Color] with the given name and alpha ranging from 0 to 1. Note: names are defined in color_names.inc. </constant> - <constant name="FUNC_MAX" value="63"> + <constant name="FUNC_MAX" value="63" enum="BuiltinFunc"> The maximum value the [member function] property can have. </constant> </constants> diff --git a/modules/visual_script/doc_classes/VisualScriptCustomNode.xml b/modules/visual_script/doc_classes/VisualScriptCustomNode.xml index 100f76bbb7..c321c616af 100644 --- a/modules/visual_script/doc_classes/VisualScriptCustomNode.xml +++ b/modules/visual_script/doc_classes/VisualScriptCustomNode.xml @@ -136,28 +136,28 @@ </method> </methods> <constants> - <constant name="START_MODE_BEGIN_SEQUENCE" value="0"> + <constant name="START_MODE_BEGIN_SEQUENCE" value="0" enum="StartMode"> The start mode used the first time when [method _step] is called. </constant> - <constant name="START_MODE_CONTINUE_SEQUENCE" value="1"> + <constant name="START_MODE_CONTINUE_SEQUENCE" value="1" enum="StartMode"> The start mode used when [method _step] is called after coming back from a STEP_PUSH_STACK_BIT. </constant> - <constant name="START_MODE_RESUME_YIELD" value="2"> + <constant name="START_MODE_RESUME_YIELD" value="2" enum="StartMode"> The start mode used when [method _step] is called after resuming from STEP_YIELD_BIT. </constant> - <constant name="STEP_PUSH_STACK_BIT" value="16777216" enum=""> + <constant name="STEP_PUSH_STACK_BIT" value="16777216"> Hint used by [method _step] to tell that control should return to it when there is no other node left to execute. This is used by [VisualScriptCondition] to redirect the sequence to the "Done" port after the true/false branch has finished execution. </constant> - <constant name="STEP_GO_BACK_BIT" value="33554432" enum=""> + <constant name="STEP_GO_BACK_BIT" value="33554432"> Hint used by [method _step] to tell that control should return back, either hitting a previous STEP_PUSH_STACK_BIT or exiting the function. </constant> - <constant name="STEP_NO_ADVANCE_BIT" value="67108864" enum=""> + <constant name="STEP_NO_ADVANCE_BIT" value="67108864"> </constant> - <constant name="STEP_EXIT_FUNCTION_BIT" value="134217728" enum=""> + <constant name="STEP_EXIT_FUNCTION_BIT" value="134217728"> Hint used by [method _step] to tell that control should stop and exit the function. </constant> - <constant name="STEP_YIELD_BIT" value="268435456" enum=""> + <constant name="STEP_YIELD_BIT" value="268435456"> Hint used by [method _step] to tell that the function should be yielded. Using this requires you to have at least one working memory slot, which is used for the [VisualScriptFunctionState]. </constant> diff --git a/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml b/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml index 4f1ddc78c0..cc2360fc2e 100644 --- a/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml +++ b/modules/visual_script/doc_classes/VisualScriptFunctionCall.xml @@ -35,25 +35,25 @@ </member> </members> <constants> - <constant name="CALL_MODE_SELF" value="0"> + <constant name="CALL_MODE_SELF" value="0" enum="CallMode"> </constant> - <constant name="CALL_MODE_NODE_PATH" value="1"> + <constant name="CALL_MODE_NODE_PATH" value="1" enum="CallMode"> </constant> - <constant name="CALL_MODE_INSTANCE" value="2"> + <constant name="CALL_MODE_INSTANCE" value="2" enum="CallMode"> </constant> - <constant name="CALL_MODE_BASIC_TYPE" value="3"> + <constant name="CALL_MODE_BASIC_TYPE" value="3" enum="CallMode"> </constant> - <constant name="CALL_MODE_SINGLETON" value="4"> + <constant name="CALL_MODE_SINGLETON" value="4" enum="CallMode"> </constant> - <constant name="RPC_DISABLED" value="0"> + <constant name="RPC_DISABLED" value="0" enum="RPCCallMode"> </constant> - <constant name="RPC_RELIABLE" value="1"> + <constant name="RPC_RELIABLE" value="1" enum="RPCCallMode"> </constant> - <constant name="RPC_UNRELIABLE" value="2"> + <constant name="RPC_UNRELIABLE" value="2" enum="RPCCallMode"> </constant> - <constant name="RPC_RELIABLE_TO_ID" value="3"> + <constant name="RPC_RELIABLE_TO_ID" value="3" enum="RPCCallMode"> </constant> - <constant name="RPC_UNRELIABLE_TO_ID" value="4"> + <constant name="RPC_UNRELIABLE_TO_ID" value="4" enum="RPCCallMode"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptInputAction.xml b/modules/visual_script/doc_classes/VisualScriptInputAction.xml index 08297ed2ee..afe72ba564 100644 --- a/modules/visual_script/doc_classes/VisualScriptInputAction.xml +++ b/modules/visual_script/doc_classes/VisualScriptInputAction.xml @@ -17,13 +17,13 @@ </member> </members> <constants> - <constant name="MODE_PRESSED" value="0"> + <constant name="MODE_PRESSED" value="0" enum="Mode"> </constant> - <constant name="MODE_RELEASED" value="1"> + <constant name="MODE_RELEASED" value="1" enum="Mode"> </constant> - <constant name="MODE_JUST_PRESSED" value="2"> + <constant name="MODE_JUST_PRESSED" value="2" enum="Mode"> </constant> - <constant name="MODE_JUST_RELEASED" value="3"> + <constant name="MODE_JUST_RELEASED" value="3" enum="Mode"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptMathConstant.xml b/modules/visual_script/doc_classes/VisualScriptMathConstant.xml index 8ebea37ff9..2cb053ee5f 100644 --- a/modules/visual_script/doc_classes/VisualScriptMathConstant.xml +++ b/modules/visual_script/doc_classes/VisualScriptMathConstant.xml @@ -22,31 +22,31 @@ </member> </members> <constants> - <constant name="MATH_CONSTANT_ONE" value="0"> + <constant name="MATH_CONSTANT_ONE" value="0" enum="MathConstant"> Unity: [code]1[/code] </constant> - <constant name="MATH_CONSTANT_PI" value="1"> + <constant name="MATH_CONSTANT_PI" value="1" enum="MathConstant"> Pi: [code]3.141593[/code] </constant> - <constant name="MATH_CONSTANT_HALF_PI" value="2"> + <constant name="MATH_CONSTANT_HALF_PI" value="2" enum="MathConstant"> Pi divided by two: [code]1.570796[/code] </constant> - <constant name="MATH_CONSTANT_TAU" value="3"> + <constant name="MATH_CONSTANT_TAU" value="3" enum="MathConstant"> Tau: [code]6.283185[/code] </constant> - <constant name="MATH_CONSTANT_E" value="4"> + <constant name="MATH_CONSTANT_E" value="4" enum="MathConstant"> Natural log: [code]2.718282[/code] </constant> - <constant name="MATH_CONSTANT_SQRT2" value="5"> + <constant name="MATH_CONSTANT_SQRT2" value="5" enum="MathConstant"> Square root of two: [code]1.414214[/code] </constant> - <constant name="MATH_CONSTANT_INF" value="6"> + <constant name="MATH_CONSTANT_INF" value="6" enum="MathConstant"> Infinity: [code]inf[/code] </constant> - <constant name="MATH_CONSTANT_NAN" value="7"> + <constant name="MATH_CONSTANT_NAN" value="7" enum="MathConstant"> Not a number: [code]nan[/code] </constant> - <constant name="MATH_CONSTANT_MAX" value="8"> + <constant name="MATH_CONSTANT_MAX" value="8" enum="MathConstant"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptPropertyGet.xml b/modules/visual_script/doc_classes/VisualScriptPropertyGet.xml index b2a51b80b1..f68f0edeea 100644 --- a/modules/visual_script/doc_classes/VisualScriptPropertyGet.xml +++ b/modules/visual_script/doc_classes/VisualScriptPropertyGet.xml @@ -29,11 +29,11 @@ </member> </members> <constants> - <constant name="CALL_MODE_SELF" value="0"> + <constant name="CALL_MODE_SELF" value="0" enum="CallMode"> </constant> - <constant name="CALL_MODE_NODE_PATH" value="1"> + <constant name="CALL_MODE_NODE_PATH" value="1" enum="CallMode"> </constant> - <constant name="CALL_MODE_INSTANCE" value="2"> + <constant name="CALL_MODE_INSTANCE" value="2" enum="CallMode"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptPropertySet.xml b/modules/visual_script/doc_classes/VisualScriptPropertySet.xml index ac91b23dd2..d4305af57f 100644 --- a/modules/visual_script/doc_classes/VisualScriptPropertySet.xml +++ b/modules/visual_script/doc_classes/VisualScriptPropertySet.xml @@ -31,35 +31,35 @@ </member> </members> <constants> - <constant name="CALL_MODE_SELF" value="0"> + <constant name="CALL_MODE_SELF" value="0" enum="CallMode"> </constant> - <constant name="CALL_MODE_NODE_PATH" value="1"> + <constant name="CALL_MODE_NODE_PATH" value="1" enum="CallMode"> </constant> - <constant name="CALL_MODE_INSTANCE" value="2"> + <constant name="CALL_MODE_INSTANCE" value="2" enum="CallMode"> </constant> - <constant name="CALL_MODE_BASIC_TYPE" value="3"> + <constant name="CALL_MODE_BASIC_TYPE" value="3" enum="CallMode"> </constant> - <constant name="ASSIGN_OP_NONE" value="0"> + <constant name="ASSIGN_OP_NONE" value="0" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_ADD" value="1"> + <constant name="ASSIGN_OP_ADD" value="1" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_SUB" value="2"> + <constant name="ASSIGN_OP_SUB" value="2" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_MUL" value="3"> + <constant name="ASSIGN_OP_MUL" value="3" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_DIV" value="4"> + <constant name="ASSIGN_OP_DIV" value="4" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_MOD" value="5"> + <constant name="ASSIGN_OP_MOD" value="5" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_SHIFT_LEFT" value="6"> + <constant name="ASSIGN_OP_SHIFT_LEFT" value="6" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_SHIFT_RIGHT" value="7"> + <constant name="ASSIGN_OP_SHIFT_RIGHT" value="7" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_BIT_AND" value="8"> + <constant name="ASSIGN_OP_BIT_AND" value="8" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_BIT_OR" value="9"> + <constant name="ASSIGN_OP_BIT_OR" value="9" enum="AssignOp"> </constant> - <constant name="ASSIGN_OP_BIT_XOR" value="10"> + <constant name="ASSIGN_OP_BIT_XOR" value="10" enum="AssignOp"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptYield.xml b/modules/visual_script/doc_classes/VisualScriptYield.xml index 26d865f065..b42fc027cf 100644 --- a/modules/visual_script/doc_classes/VisualScriptYield.xml +++ b/modules/visual_script/doc_classes/VisualScriptYield.xml @@ -17,11 +17,11 @@ </member> </members> <constants> - <constant name="YIELD_FRAME" value="1"> + <constant name="YIELD_FRAME" value="1" enum="YieldMode"> </constant> - <constant name="YIELD_PHYSICS_FRAME" value="2"> + <constant name="YIELD_PHYSICS_FRAME" value="2" enum="YieldMode"> </constant> - <constant name="YIELD_WAIT" value="3"> + <constant name="YIELD_WAIT" value="3" enum="YieldMode"> </constant> </constants> </class> diff --git a/modules/visual_script/doc_classes/VisualScriptYieldSignal.xml b/modules/visual_script/doc_classes/VisualScriptYieldSignal.xml index 46cdf9dbc1..f69043a685 100644 --- a/modules/visual_script/doc_classes/VisualScriptYieldSignal.xml +++ b/modules/visual_script/doc_classes/VisualScriptYieldSignal.xml @@ -21,11 +21,11 @@ </member> </members> <constants> - <constant name="CALL_MODE_SELF" value="0"> + <constant name="CALL_MODE_SELF" value="0" enum="CallMode"> </constant> - <constant name="CALL_MODE_NODE_PATH" value="1"> + <constant name="CALL_MODE_NODE_PATH" value="1" enum="CallMode"> </constant> - <constant name="CALL_MODE_INSTANCE" value="2"> + <constant name="CALL_MODE_INSTANCE" value="2" enum="CallMode"> </constant> </constants> </class> diff --git a/modules/visual_script/visual_script.cpp b/modules/visual_script/visual_script.cpp index 0834bc81d9..26f2d687d8 100644 --- a/modules/visual_script/visual_script.cpp +++ b/modules/visual_script/visual_script.cpp @@ -1434,7 +1434,7 @@ void VisualScriptInstance::_dependency_step(VisualScriptNodeInstance *node, int if (!node->dependencies.empty()) { int dc = node->dependencies.size(); - VisualScriptNodeInstance **deps = node->dependencies.ptr(); + VisualScriptNodeInstance **deps = node->dependencies.ptrw(); for (int i = 0; i < dc; i++) { @@ -1526,7 +1526,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p if (!node->dependencies.empty()) { int dc = node->dependencies.size(); - VisualScriptNodeInstance **deps = node->dependencies.ptr(); + VisualScriptNodeInstance **deps = node->dependencies.ptrw(); for (int i = 0; i < dc; i++) { @@ -1626,7 +1626,7 @@ Variant VisualScriptInstance::_call_internal(const StringName &p_method, void *p state->flow_stack_pos = flow_stack_pos; state->stack.resize(p_stack_size); state->pass = p_pass; - copymem(state->stack.ptr(), p_stack, p_stack_size); + copymem(state->stack.ptrw(), p_stack, p_stack_size); //step 2, run away, return directly r_error.error = Variant::CallError::CALL_OK; @@ -2277,7 +2277,7 @@ Variant VisualScriptFunctionState::_signal_callback(const Variant **p_args, int *working_mem = args; //arguments go to working mem. - Variant ret = instance->_call_internal(function, stack.ptr(), stack.size(), node, flow_stack_pos, pass, true, r_error); + Variant ret = instance->_call_internal(function, stack.ptrw(), stack.size(), node, flow_stack_pos, pass, true, r_error); function = StringName(); //invalidate return ret; } @@ -2319,7 +2319,7 @@ Variant VisualScriptFunctionState::resume(Array p_args) { *working_mem = p_args; //arguments go to working mem. - Variant ret = instance->_call_internal(function, stack.ptr(), stack.size(), node, flow_stack_pos, pass, true, r_error); + Variant ret = instance->_call_internal(function, stack.ptrw(), stack.size(), node, flow_stack_pos, pass, true, r_error); function = StringName(); //invalidate return ret; } diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp index 2318149ca5..6c58de8a5a 100644 --- a/modules/visual_script/visual_script_editor.cpp +++ b/modules/visual_script/visual_script_editor.cpp @@ -2466,7 +2466,7 @@ VisualScriptNode::TypeGuess VisualScriptEditor::_guess_output_type(int p_port_ac in_guesses.push_back(g); } - return node->guess_output_type(in_guesses.ptr(), p_port_action_output); + return node->guess_output_type(in_guesses.ptrw(), p_port_action_output); } void VisualScriptEditor::_port_action_menu(int p_option) { diff --git a/modules/visual_script/visual_script_expression.cpp b/modules/visual_script/visual_script_expression.cpp index 07dca4b904..ba58a8e1c0 100644 --- a/modules/visual_script/visual_script_expression.cpp +++ b/modules/visual_script/visual_script_expression.cpp @@ -1378,7 +1378,7 @@ public: argp[i] = &arr[i]; } - r_ret = Variant::construct(constructor->data_type, argp.ptr(), argp.size(), ce); + r_ret = Variant::construct(constructor->data_type, (const Variant **)argp.ptr(), argp.size(), ce); if (ce.error != Variant::CallError::CALL_OK) { r_error_str = "Invalid arguments to construct '" + Variant::get_type_name(constructor->data_type) + "'."; @@ -1405,7 +1405,7 @@ public: argp[i] = &arr[i]; } - VisualScriptBuiltinFunc::exec_func(bifunc->func, argp.ptr(), &r_ret, ce, r_error_str); + VisualScriptBuiltinFunc::exec_func(bifunc->func, (const Variant **)argp.ptr(), &r_ret, ce, r_error_str); if (ce.error != Variant::CallError::CALL_OK) { r_error_str = "Builtin Call Failed. " + r_error_str; @@ -1437,7 +1437,7 @@ public: argp[i] = &arr[i]; } - r_ret = base.call(call->method, argp.ptr(), argp.size(), ce); + r_ret = base.call(call->method, (const Variant **)argp.ptr(), argp.size(), ce); if (ce.error != Variant::CallError::CALL_OK) { r_error_str = "On call to '" + String(call->method) + "':"; diff --git a/modules/visual_script/visual_script_nodes.cpp b/modules/visual_script/visual_script_nodes.cpp index 05ff629d1b..95ad7256b3 100644 --- a/modules/visual_script/visual_script_nodes.cpp +++ b/modules/visual_script/visual_script_nodes.cpp @@ -1064,9 +1064,9 @@ void VisualScriptConstant::set_constant_type(Variant::Type p_type) { return; type = p_type; - ports_changed_notify(); Variant::CallError ce; value = Variant::construct(type, NULL, 0, ce); + ports_changed_notify(); _change_notify(); } @@ -1111,7 +1111,7 @@ void VisualScriptConstant::_bind_methods() { } ADD_PROPERTY(PropertyInfo(Variant::INT, "type", PROPERTY_HINT_ENUM, argt), "set_constant_type", "get_constant_type"); - ADD_PROPERTY(PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT), "set_constant_value", "get_constant_value"); + ADD_PROPERTY(PropertyInfo(Variant::NIL, "value", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NIL_IS_VARIANT | PROPERTY_USAGE_DEFAULT), "set_constant_value", "get_constant_value"); } class VisualScriptNodeInstanceConstant : public VisualScriptNodeInstance { diff --git a/platform/android/export/export.cpp b/platform/android/export/export.cpp index 3df52f1635..67e00f4952 100644 --- a/platform/android/export/export.cpp +++ b/platform/android/export/export.cpp @@ -1391,7 +1391,7 @@ public: //read unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); //write @@ -1414,7 +1414,7 @@ public: FileAccess *f = FileAccess::open(icon_path, FileAccess::READ); if (f) { data.resize(f->get_len()); - f->get_buffer(data.ptr(), data.size()); + f->get_buffer(data.ptrw(), data.size()); memdelete(f); found = true; break; @@ -1428,7 +1428,7 @@ public: FileAccess *f = FileAccess::open(appicon, FileAccess::READ); if (f) { data.resize(f->get_len()); - f->get_buffer(data.ptr(), data.size()); + f->get_buffer(data.ptrw(), data.size()); memdelete(f); } } @@ -1703,7 +1703,7 @@ public: int method, level; unzOpenCurrentFile2(tmp_unaligned, &method, &level, 1); // raw read long file_offset = unzGetCurrentFileZStreamPos64(tmp_unaligned); - unzReadCurrentFile(tmp_unaligned, data.ptr(), data.size()); + unzReadCurrentFile(tmp_unaligned, data.ptrw(), data.size()); unzCloseCurrentFile(tmp_unaligned); // align diff --git a/platform/android/java_class_wrapper.cpp b/platform/android/java_class_wrapper.cpp index 8606ea41a0..892e64cdfc 100644 --- a/platform/android/java_class_wrapper.cpp +++ b/platform/android/java_class_wrapper.cpp @@ -59,7 +59,7 @@ bool JavaClass::_call_method(JavaObject *p_instance, const StringName &p_method, r_error.argument = pc; continue; } - uint32_t *ptypes = E->get().param_types.ptr(); + uint32_t *ptypes = E->get().param_types.ptrw(); bool valid = true; for (int i = 0; i < pc; i++) { diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 6aa1ed9f8d..8ab1cbc435 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -793,7 +793,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p //read unzOpenCurrentFile(src_pkg_zip); - unzReadCurrentFile(src_pkg_zip, data.ptr(), data.size()); + unzReadCurrentFile(src_pkg_zip, data.ptrw(), data.size()); unzCloseCurrentFile(src_pkg_zip); //write diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index 05b0fb3fbc..775e9c7ee0 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -214,7 +214,7 @@ Error EditorExportPlatformJavaScript::export_project(const Ref<EditorExportPrese //read unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); //write @@ -257,7 +257,7 @@ Error EditorExportPlatformJavaScript::export_project(const Ref<EditorExportPrese } Vector<uint8_t> buf; buf.resize(f->get_len()); - f->get_buffer(buf.ptr(), buf.size()); + f->get_buffer(buf.ptrw(), buf.size()); memdelete(f); _fix_html(buf, p_preset, p_path.get_file().get_basename(), p_debug); diff --git a/platform/javascript/javascript_eval.cpp b/platform/javascript/javascript_eval.cpp index a755dcb5c4..9fc23a6747 100644 --- a/platform/javascript/javascript_eval.cpp +++ b/platform/javascript/javascript_eval.cpp @@ -45,7 +45,7 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) { bool b; double d; char *s; - } js_data[4]; + } js_data; PoolByteArray arr; PoolByteArray::Write arr_write; @@ -56,9 +56,8 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) { const CODE = $0; const USE_GLOBAL_EXEC_CONTEXT = $1; const PTR = $2; - const ELEM_LEN = $3; - const BYTEARRAY_PTR = $4; - const BYTEARRAY_WRITE_PTR = $5; + const BYTEARRAY_PTR = $3; + const BYTEARRAY_WRITE_PTR = $4; var eval_ret; try { if (USE_GLOBAL_EXEC_CONTEXT) { @@ -118,56 +117,25 @@ Variant JavaScript::eval(const String &p_code, bool p_use_global_exec_context) { HEAPU8.set(eval_ret, bytes_ptr); return 20; // POOL_BYTE_ARRAY } - - if (typeof eval_ret.x==='number' && typeof eval_ret.y==='number') { - setValue(PTR, eval_ret.x, 'double'); - setValue(PTR + ELEM_LEN, eval_ret.y, 'double'); - if (typeof eval_ret.z==='number') { - setValue(PTR + ELEM_LEN*2, eval_ret.z, 'double'); - return 7; // VECTOR3 - } - else if (typeof eval_ret.width==='number' && typeof eval_ret.height==='number') { - setValue(PTR + ELEM_LEN*2, eval_ret.width, 'double'); - setValue(PTR + ELEM_LEN*3, eval_ret.height, 'double'); - return 6; // RECT2 - } - return 5; // VECTOR2 - } - - if (typeof eval_ret.r === 'number' && typeof eval_ret.g === 'number' && typeof eval_ret.b === 'number') { - setValue(PTR, eval_ret.r, 'double'); - setValue(PTR + ELEM_LEN, eval_ret.g, 'double'); - setValue(PTR + ELEM_LEN*2, eval_ret.b, 'double'); - setValue(PTR + ELEM_LEN*3, typeof eval_ret.a === 'number' ? eval_ret.a : 1, 'double'); - return 14; // COLOR - } break; } return 0; // NIL - }, p_code.utf8().get_data(), p_use_global_exec_context, js_data, sizeof *js_data, &arr, &arr_write)); + }, p_code.utf8().get_data(), p_use_global_exec_context, &js_data, &arr, &arr_write)); /* clang-format on */ switch (return_type) { case Variant::BOOL: - return js_data->b; + return js_data.b; case Variant::REAL: - return js_data->d; + return js_data.d; case Variant::STRING: { - String str = String::utf8(js_data->s); + String str = String::utf8(js_data.s); /* clang-format off */ - EM_ASM_({ _free($0); }, js_data->s); + EM_ASM_({ _free($0); }, js_data.s); /* clang-format on */ return str; } - case Variant::VECTOR2: - return Vector2(js_data[0].d, js_data[1].d); - case Variant::VECTOR3: - return Vector3(js_data[0].d, js_data[1].d, js_data[2].d); - case Variant::RECT2: - return Rect2(js_data[0].d, js_data[1].d, js_data[2].d, js_data[3].d); - case Variant::COLOR: - return Color(js_data[0].d, js_data[1].d, js_data[2].d, js_data[3].d); case Variant::POOL_BYTE_ARRAY: arr_write = PoolByteArray::Write(); return arr; diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index 689b79b826..8091a38adb 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -390,7 +390,7 @@ Error EditorExportPlatformOSX::export_project(const Ref<EditorExportPreset> &p_p //read unzOpenCurrentFile(src_pkg_zip); - unzReadCurrentFile(src_pkg_zip, data.ptr(), data.size()); + unzReadCurrentFile(src_pkg_zip, data.ptrw(), data.size()); unzCloseCurrentFile(src_pkg_zip); //write diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index 120df9bc3f..7f86b4ae53 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -137,7 +137,7 @@ class AppxPackager { ZPOS64_T end_of_central_dir_offset; Vector<uint8_t> central_dir_data; - String hash_block(uint8_t *p_block_data, size_t p_block_len); + String hash_block(const uint8_t *p_block_data, size_t p_block_len); void make_block_map(); void make_content_types(); @@ -188,14 +188,14 @@ public: /////////////////////////////////////////////////////////////////////////// -String AppxPackager::hash_block(uint8_t *p_block_data, size_t p_block_len) { +String AppxPackager::hash_block(const uint8_t *p_block_data, size_t p_block_len) { char hash[32]; char base64[45]; sha256_context ctx; sha256_init(&ctx); - sha256_hash(&ctx, p_block_data, p_block_len); + sha256_hash(&ctx, (uint8_t *)p_block_data, p_block_len); sha256_done(&ctx, (uint8_t *)hash); base64_encode(base64, hash, 32); @@ -510,8 +510,8 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t strm.avail_in = block_size; strm.avail_out = strm_out.size(); - strm.next_in = strm_in.ptr(); - strm.next_out = strm_out.ptr(); + strm.next_in = (uint8_t *)strm_in.ptr(); + strm.next_out = strm_out.ptrw(); int total_out_before = strm.total_out; @@ -541,8 +541,8 @@ void AppxPackager::add_file(String p_file_name, const uint8_t *p_buffer, size_t strm.avail_in = 0; strm.avail_out = strm_out.size(); - strm.next_in = strm_in.ptr(); - strm.next_out = strm_out.ptr(); + strm.next_in = (uint8_t *)strm_in.ptr(); + strm.next_out = strm_out.ptrw(); int total_out_before = strm.total_out; @@ -588,7 +588,7 @@ void AppxPackager::finish() { Vector<uint8_t> blockmap_buffer; blockmap_buffer.resize(blockmap_file->get_len()); - blockmap_file->get_buffer(blockmap_buffer.ptr(), blockmap_buffer.size()); + blockmap_file->get_buffer(blockmap_buffer.ptrw(), blockmap_buffer.size()); add_file("AppxBlockMap.xml", blockmap_buffer.ptr(), blockmap_buffer.size(), -1, -1, true); @@ -604,7 +604,7 @@ void AppxPackager::finish() { Vector<uint8_t> types_buffer; types_buffer.resize(types_file->get_len()); - types_file->get_buffer(types_buffer.ptr(), types_buffer.size()); + types_file->get_buffer(types_buffer.ptrw(), types_buffer.size()); add_file("[Content_Types].xml", types_buffer.ptr(), types_buffer.size(), -1, -1, true); @@ -911,7 +911,7 @@ class EditorExportUWP : public EditorExportPlatform { } data.resize(f->get_len()); - f->get_buffer(data.ptr(), data.size()); + f->get_buffer(data.ptrw(), data.size()); f->close(); memdelete(f); @@ -1301,7 +1301,7 @@ public: if (do_read) { data.resize(info.uncompressed_size); unzOpenCurrentFile(pkg); - unzReadCurrentFile(pkg, data.ptr(), data.size()); + unzReadCurrentFile(pkg, data.ptrw(), data.size()); unzCloseCurrentFile(pkg); } @@ -1341,7 +1341,7 @@ public: // Argc clf.resize(4); - encode_uint32(cl.size(), clf.ptr()); + encode_uint32(cl.size(), clf.ptrw()); for (int i = 0; i < cl.size(); i++) { diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index c189b3b744..827189bb4f 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1843,7 +1843,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments, modstr.resize(cmdline.size()); for (int i = 0; i < cmdline.size(); i++) modstr[i] = cmdline[i]; - int ret = CreateProcessW(NULL, modstr.ptr(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi); + int ret = CreateProcessW(NULL, modstr.ptrw(), NULL, NULL, 0, NORMAL_PRIORITY_CLASS, NULL, NULL, si_w, &pi.pi); ERR_FAIL_COND_V(ret == 0, ERR_CANT_FORK); if (p_blocking) { diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp index 7d5044d97a..937a026e34 100644 --- a/scene/2d/audio_stream_player_2d.cpp +++ b/scene/2d/audio_stream_player_2d.cpp @@ -21,7 +21,7 @@ void AudioStreamPlayer2D::_mix_audio() { } //get data - AudioFrame *buffer = mix_buffer.ptr(); + AudioFrame *buffer = mix_buffer.ptrw(); int buffer_size = mix_buffer.size(); //mix diff --git a/scene/2d/navigation2d.cpp b/scene/2d/navigation2d.cpp index 74d835dfb2..9eff107827 100644 --- a/scene/2d/navigation2d.cpp +++ b/scene/2d/navigation2d.cpp @@ -150,7 +150,7 @@ void Navigation2D::_navpoly_unlink(int p_id) { Polygon &p = E->get(); int ec = p.edges.size(); - Polygon::Edge *edges = p.edges.ptr(); + Polygon::Edge *edges = p.edges.ptrw(); for (int i = 0; i < ec; i++) { int next = (i + 1) % ec; diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index 30b7f36352..6c102e4027 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -21,7 +21,7 @@ void AudioStreamPlayer3D::_mix_audio() { } //get data - AudioFrame *buffer = mix_buffer.ptr(); + AudioFrame *buffer = mix_buffer.ptrw(); int buffer_size = mix_buffer.size(); //mix diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index 8c7d0c23c3..abc4a03498 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -649,7 +649,7 @@ Camera::Camera() { current = false; force_change = false; mode = PROJECTION_PERSPECTIVE; - set_perspective(65.0, 0.1, 100.0); + set_perspective(70.0, 0.05, 100.0); keep_aspect = KEEP_HEIGHT; layers = 0xfffff; v_offset = 0; diff --git a/scene/3d/navigation.cpp b/scene/3d/navigation.cpp index b226cca02b..b6507aedb3 100644 --- a/scene/3d/navigation.cpp +++ b/scene/3d/navigation.cpp @@ -147,7 +147,7 @@ void Navigation::_navmesh_unlink(int p_id) { Polygon &p = E->get(); int ec = p.edges.size(); - Polygon::Edge *edges = p.edges.ptr(); + Polygon::Edge *edges = p.edges.ptrw(); for (int i = 0; i < ec; i++) { int next = (i + 1) % ec; diff --git a/scene/audio/audio_player.cpp b/scene/audio/audio_player.cpp index 08b01c6a4c..81962901d9 100644 --- a/scene/audio/audio_player.cpp +++ b/scene/audio/audio_player.cpp @@ -36,7 +36,7 @@ void AudioStreamPlayer::_mix_internal(bool p_fadeout) { int bus_index = AudioServer::get_singleton()->thread_find_bus_index(bus); //get data - AudioFrame *buffer = mix_buffer.ptr(); + AudioFrame *buffer = mix_buffer.ptrw(); int buffer_size = mix_buffer.size(); if (p_fadeout) { diff --git a/scene/gui/video_player.cpp b/scene/gui/video_player.cpp index 1b6bd30b58..8f567f9796 100644 --- a/scene/gui/video_player.cpp +++ b/scene/gui/video_player.cpp @@ -84,7 +84,7 @@ void VideoPlayer::_mix_audio() { return; } - AudioFrame *buffer = mix_buffer.ptr(); + AudioFrame *buffer = mix_buffer.ptrw(); int buffer_size = mix_buffer.size(); // Resample @@ -490,6 +490,7 @@ VideoPlayer::VideoPlayer() { expand = true; audio_track = 0; + bus_index = 0; buffering_ms = 500; server_mix_rate = 44100; diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 31d423c808..d8baa7834d 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1198,7 +1198,7 @@ void Node::_validate_child_name(Node *p_child, bool p_force_human_readable) { unique = false; } else { //check if exists - Node **childs = data.children.ptr(); + Node **childs = data.children.ptrw(); int cc = data.children.size(); for (int i = 0; i < cc; i++) { @@ -2114,8 +2114,16 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const node_tree.push_front(this); if (instanced) { + // Since nodes in the instanced hierarchy won't be duplicated explicitly, we need to make an inventory + // of all the nodes in the tree of the instanced scene in order to transfer the values of the properties + for (List<const Node *>::Element *N = node_tree.front(); N; N = N->next()) { for (int i = 0; i < N->get()->get_child_count(); ++i) { + + // Skip nodes not really belonging to the instanced hierarchy; they'll be processed normally later + if (get_child(i)->data.owner != this) + continue; + node_tree.push_back(N->get()->get_child(i)); } } @@ -2124,6 +2132,7 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const for (List<const Node *>::Element *N = node_tree.front(); N; N = N->next()) { Node *current_node = node->get_node(get_path_to(N->get())); + ERR_CONTINUE(!current_node); if (p_flags & DUPLICATE_SCRIPTS) { bool is_valid = false; @@ -2136,9 +2145,6 @@ Node *Node::_duplicate(int p_flags, Map<const Node *, Node *> *r_duplimap) const List<PropertyInfo> plist; N->get()->get_property_list(&plist); - if (!current_node) - continue; - for (List<PropertyInfo>::Element *E = plist.front(); E; E = E->next()) { if (!(E->get().usage & PROPERTY_USAGE_STORAGE)) diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index b8dba96551..f74bf161f0 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1001,7 +1001,7 @@ Array SceneTree::_get_nodes_in_group(const StringName &p_group) { ret.resize(nc); - Node **ptr = E->get().nodes.ptr(); + Node **ptr = E->get().nodes.ptrw(); for (int i = 0; i < nc; i++) { ret[i] = ptr[i]; @@ -1024,7 +1024,7 @@ void SceneTree::get_nodes_in_group(const StringName &p_group, List<Node *> *p_li int nc = E->get().nodes.size(); if (nc == 0) return; - Node **ptr = E->get().nodes.ptr(); + Node **ptr = E->get().nodes.ptrw(); for (int i = 0; i < nc; i++) { p_list->push_back(ptr[i]); @@ -1997,9 +1997,9 @@ void SceneTree::_network_process_packet(int p_from, const uint8_t *p_packet, int Variant::CallError ce; - node->call(name, argp.ptr(), argc, ce); + node->call(name, (const Variant **)argp.ptr(), argc, ce); if (ce.error != Variant::CallError::CALL_OK) { - String error = Variant::get_call_error_text(node, name, argp.ptr(), argc, ce); + String error = Variant::get_call_error_text(node, name, (const Variant **)argp.ptr(), argc, ce); error = "RPC - " + error; ERR_PRINTS(error); } diff --git a/scene/resources/bit_mask.cpp b/scene/resources/bit_mask.cpp index 029a9ef0e8..eebc872dfb 100644 --- a/scene/resources/bit_mask.cpp +++ b/scene/resources/bit_mask.cpp @@ -38,7 +38,7 @@ void BitMap::create(const Size2 &p_size) { width = p_size.width; height = p_size.height; bitmask.resize(((width * height) / 8) + 1); - zeromem(bitmask.ptr(), bitmask.size()); + zeromem(bitmask.ptrw(), bitmask.size()); } void BitMap::create_from_image_alpha(const Ref<Image> &p_image) { @@ -51,7 +51,7 @@ void BitMap::create_from_image_alpha(const Ref<Image> &p_image) { create(Size2(img->get_width(), img->get_height())); PoolVector<uint8_t>::Read r = img->get_data().read(); - uint8_t *w = bitmask.ptr(); + uint8_t *w = bitmask.ptrw(); for (int i = 0; i < width * height; i++) { @@ -65,7 +65,7 @@ void BitMap::create_from_image_alpha(const Ref<Image> &p_image) { void BitMap::set_bit_rect(const Rect2 &p_rect, bool p_value) { Rect2i current = Rect2i(0, 0, width, height).clip(p_rect); - uint8_t *data = bitmask.ptr(); + uint8_t *data = bitmask.ptrw(); for (int i = current.position.x; i < current.position.x + current.size.x; i++) { diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp index 48c6add586..a40417f24d 100644 --- a/scene/resources/dynamic_font.cpp +++ b/scene/resources/dynamic_font.cpp @@ -125,7 +125,7 @@ Error DynamicFontAtSize::_load() { _fontdata[font->font_path] = Vector<uint8_t>(); Vector<uint8_t> &fontdata = _fontdata[font->font_path]; fontdata.resize(len); - f->get_buffer(fontdata.ptr(), len); + f->get_buffer(fontdata.ptrw(), len); font->set_font_ptr(fontdata.ptr(), len); f->close(); } diff --git a/scene/resources/world.cpp b/scene/resources/world.cpp index 86b32a5cdd..c63ba24cbd 100644 --- a/scene/resources/world.cpp +++ b/scene/resources/world.cpp @@ -159,9 +159,9 @@ struct SpatialIndexer { Vector<Plane> planes = c->get_frustum(); - int culled = octree.cull_convex(planes, cull.ptr(), cull.size()); + int culled = octree.cull_convex(planes, cull.ptrw(), cull.size()); - VisibilityNotifier **ptr = cull.ptr(); + VisibilityNotifier **ptr = cull.ptrw(); List<VisibilityNotifier *> added; List<VisibilityNotifier *> removed; diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 32631beb2c..cfcad24bb3 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -68,7 +68,7 @@ void AudioEffectChorusInstance::_process_chunk(const AudioFrame *p_src_frames, A unsigned int local_rb_pos = buffer_pos; AudioFrame *dst_buff = p_dst_frames; - AudioFrame *rb_buff = audio_buffer.ptr(); + AudioFrame *rb_buff = audio_buffer.ptrw(); double delay_msec = v.delay; unsigned int delay_frames = Math::fast_ftoi((delay_msec / 1000.0) * mix_rate); diff --git a/servers/audio/effects/audio_effect_delay.cpp b/servers/audio/effects/audio_effect_delay.cpp index b8a8603546..59b6a8da2a 100644 --- a/servers/audio/effects/audio_effect_delay.cpp +++ b/servers/audio/effects/audio_effect_delay.cpp @@ -82,8 +82,8 @@ void AudioEffectDelayInstance::_process_chunk(const AudioFrame *p_src_frames, Au const AudioFrame *src = p_src_frames; AudioFrame *dst = p_dst_frames; - AudioFrame *rb_buf = ring_buffer.ptr(); - AudioFrame *fb_buf = feedback_buffer.ptr(); + AudioFrame *rb_buf = ring_buffer.ptrw(); + AudioFrame *fb_buf = feedback_buffer.ptrw(); for (int i = 0; i < p_frame_count; i++) { diff --git a/servers/audio/effects/audio_effect_eq.cpp b/servers/audio/effects/audio_effect_eq.cpp index 15905e3e0e..dc0e00e9a3 100644 --- a/servers/audio/effects/audio_effect_eq.cpp +++ b/servers/audio/effects/audio_effect_eq.cpp @@ -33,9 +33,9 @@ void AudioEffectEQInstance::process(const AudioFrame *p_src_frames, AudioFrame *p_dst_frames, int p_frame_count) { int band_count = bands[0].size(); - EQ::BandProcess *proc_l = bands[0].ptr(); - EQ::BandProcess *proc_r = bands[1].ptr(); - float *bgain = gains.ptr(); + EQ::BandProcess *proc_l = bands[0].ptrw(); + EQ::BandProcess *proc_r = bands[1].ptrw(); + float *bgain = gains.ptrw(); for (int i = 0; i < band_count; i++) { bgain[i] = Math::db2linear(base->gain[i]); } diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 6a10d7539d..a08733de87 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -191,7 +191,7 @@ void AudioServer::_driver_process(int p_frames, int32_t *p_buffer) { if (master->channels[k].active) { - AudioFrame *buf = master->channels[k].buffer.ptr(); + const AudioFrame *buf = master->channels[k].buffer.ptr(); for (int j = 0; j < to_copy; j++) { @@ -296,7 +296,7 @@ void AudioServer::_mix_step() { if (bus->channels[k].active && !bus->channels[k].used) { //buffer was not used, but it's still active, so it must be cleaned - AudioFrame *buf = bus->channels[k].buffer.ptr(); + AudioFrame *buf = bus->channels[k].buffer.ptrw(); for (uint32_t j = 0; j < buffer_size; j++) { @@ -316,7 +316,7 @@ void AudioServer::_mix_step() { if (!bus->channels[k].active) continue; - bus->channels[k].effect_instances[j]->process(bus->channels[k].buffer.ptr(), temp_buffer[k].ptr(), buffer_size); + bus->channels[k].effect_instances[j]->process(bus->channels[k].buffer.ptr(), temp_buffer[k].ptrw(), buffer_size); } //swap buffers, so internal buffer always has the right data @@ -350,7 +350,7 @@ void AudioServer::_mix_step() { if (!bus->channels[k].active) continue; - AudioFrame *buf = bus->channels[k].buffer.ptr(); + AudioFrame *buf = bus->channels[k].buffer.ptrw(); AudioFrame peak = AudioFrame(0, 0); @@ -414,7 +414,7 @@ AudioFrame *AudioServer::thread_get_channel_mix_buffer(int p_bus, int p_buffer) ERR_FAIL_INDEX_V(p_bus, buses.size(), NULL); ERR_FAIL_INDEX_V(p_buffer, buses[p_bus]->channels.size(), NULL); - AudioFrame *data = buses[p_bus]->channels[p_buffer].buffer.ptr(); + AudioFrame *data = buses[p_bus]->channels[p_buffer].buffer.ptrw(); if (!buses[p_bus]->channels[p_buffer].used) { buses[p_bus]->channels[p_buffer].used = true; diff --git a/servers/physics_2d_server.cpp b/servers/physics_2d_server.cpp index 829f894b87..dc58cd36dd 100644 --- a/servers/physics_2d_server.cpp +++ b/servers/physics_2d_server.cpp @@ -239,7 +239,7 @@ Array Physics2DDirectSpaceState::_intersect_shape(const Ref<Physics2DShapeQueryP Vector<ShapeResult> sr; sr.resize(p_max_results); - int rc = intersect_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->motion, p_shape_query->margin, sr.ptr(), sr.size(), p_shape_query->exclude, p_shape_query->collision_mask); + int rc = intersect_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->motion, p_shape_query->margin, sr.ptrw(), sr.size(), p_shape_query->exclude, p_shape_query->collision_mask); Array ret; ret.resize(rc); for (int i = 0; i < rc; i++) { @@ -278,7 +278,7 @@ Array Physics2DDirectSpaceState::_intersect_point(const Vector2 &p_point, int p_ Vector<ShapeResult> ret; ret.resize(p_max_results); - int rc = intersect_point(p_point, ret.ptr(), ret.size(), exclude, p_layers); + int rc = intersect_point(p_point, ret.ptrw(), ret.size(), exclude, p_layers); if (rc == 0) return Array(); @@ -302,7 +302,7 @@ Array Physics2DDirectSpaceState::_collide_shape(const Ref<Physics2DShapeQueryPar Vector<Vector2> ret; ret.resize(p_max_results * 2); int rc = 0; - bool res = collide_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->motion, p_shape_query->margin, ret.ptr(), p_max_results, rc, p_shape_query->exclude, p_shape_query->collision_mask); + bool res = collide_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->motion, p_shape_query->margin, ret.ptrw(), p_max_results, rc, p_shape_query->exclude, p_shape_query->collision_mask); if (!res) return Array(); Array r; diff --git a/servers/physics_server.cpp b/servers/physics_server.cpp index 5cd90be3b7..f693622ede 100644 --- a/servers/physics_server.cpp +++ b/servers/physics_server.cpp @@ -264,7 +264,7 @@ Array PhysicsDirectSpaceState::_intersect_shape(const Ref<PhysicsShapeQueryParam Vector<ShapeResult> sr; sr.resize(p_max_results); - int rc = intersect_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->margin, sr.ptr(), sr.size(), p_shape_query->exclude, p_shape_query->collision_mask); + int rc = intersect_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->margin, sr.ptrw(), sr.size(), p_shape_query->exclude, p_shape_query->collision_mask); Array ret; ret.resize(rc); for (int i = 0; i < rc; i++) { @@ -297,7 +297,7 @@ Array PhysicsDirectSpaceState::_collide_shape(const Ref<PhysicsShapeQueryParamet Vector<Vector3> ret; ret.resize(p_max_results * 2); int rc = 0; - bool res = collide_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->margin, ret.ptr(), p_max_results, rc, p_shape_query->exclude, p_shape_query->collision_mask); + bool res = collide_shape(p_shape_query->shape, p_shape_query->transform, p_shape_query->margin, ret.ptrw(), p_max_results, rc, p_shape_query->exclude, p_shape_query->collision_mask); if (!res) return Array(); Array r; diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 0ea32fe99b..246a80280e 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -3606,7 +3606,7 @@ Error ShaderLanguage::_parse_shader(const Map<StringName, FunctionInfo> &p_funct uniform.default_value.resize(cn->values.size()); - if (!convert_constant(cn, uniform.type, uniform.default_value.ptr())) { + if (!convert_constant(cn, uniform.type, uniform.default_value.ptrw())) { _set_error("Can't convert constant to " + get_datatype_name(uniform.type)); return ERR_PARSE_ERROR; } diff --git a/servers/visual/visual_server_canvas.cpp b/servers/visual/visual_server_canvas.cpp index 25724981eb..31c09dc23d 100644 --- a/servers/visual/visual_server_canvas.cpp +++ b/servers/visual/visual_server_canvas.cpp @@ -182,7 +182,7 @@ void VisualServerCanvas::render_canvas(Canvas *p_canvas, const Transform2D &p_tr } int l = p_canvas->child_items.size(); - Canvas::ChildItem *ci = p_canvas->child_items.ptr(); + Canvas::ChildItem *ci = p_canvas->child_items.ptrw(); bool has_mirror = false; for (int i = 0; i < l; i++) { diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index 5b1eb8357d..69827b330d 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -597,7 +597,7 @@ void VisualServerScene::instance_set_custom_aabb(RID p_instance, AABB p_aabb) { ERR_FAIL_COND(!instance); ERR_FAIL_COND(!is_geometry_instance(instance->base_type)); - if(p_aabb != AABB()) { + if (p_aabb != AABB()) { // Set custom AABB if (instance->custom_aabb == NULL) @@ -677,7 +677,7 @@ Vector<ObjectID> VisualServerScene::instances_cull_ray(const Vector3 &p_from, co int culled = 0; Instance *cull[1024]; - culled = scenario->octree.cull_segment(p_from, p_to * 10000, cull, 1024); + culled = scenario->octree.cull_segment(p_from, p_from + p_to * 10000, cull, 1024); for (int i = 0; i < culled; i++) { Instance *instance = cull[i]; @@ -1855,7 +1855,7 @@ void VisualServerScene::_setup_gi_probe(Instance *p_instance) { probe->dynamic.level_cell_lists.resize(header->cell_subdiv); - _gi_probe_fill_local_data(0, 0, 0, 0, 0, cells, header, ldw.ptr(), probe->dynamic.level_cell_lists.ptr()); + _gi_probe_fill_local_data(0, 0, 0, 0, 0, cells, header, ldw.ptr(), probe->dynamic.level_cell_lists.ptrw()); bool compress = VSG::storage->gi_probe_is_compressed(p_instance->base); diff --git a/servers/visual/visual_server_scene.h b/servers/visual/visual_server_scene.h index d075be76ca..9af5ffb74d 100644 --- a/servers/visual/visual_server_scene.h +++ b/servers/visual/visual_server_scene.h @@ -120,9 +120,9 @@ public: Camera() { visible_layers = 0xFFFFFFFF; - fov = 65; + fov = 70; type = PERSPECTIVE; - znear = 0.1; + znear = 0.05; zfar = 100; size = 1.0; vaspect = false; diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index f745785efd..19e2221e4b 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -728,7 +728,7 @@ Error VisualServer::_surface_set_data(Array p_arrays, uint32_t p_format, uint32_ PoolVector<int>::Read rb = bones.read(); PoolVector<float>::Read rw = weights.read(); - AABB *bptr = r_bone_aabb.ptr(); + AABB *bptr = r_bone_aabb.ptrw(); for (int i = 0; i < vs; i++) { |