diff options
88 files changed, 795 insertions, 40674 deletions
diff --git a/.gitignore b/.gitignore index d947306558..a6d5a2d412 100644 --- a/.gitignore +++ b/.gitignore @@ -24,8 +24,8 @@ tools/editor/editor_icons.cpp make.bat log.txt -# Doxygen generated documentation -doc/doxygen/* +# Documentation generated by doxygen or from classes.xml +doc/_build/ # Javascript specific *.bc @@ -189,9 +189,6 @@ AutoTest.Net/ # Installshield output folder [Ee]xpress/ -# dumpdoc generated files -doc/html/class_list - # DocProject is a documentation generator add-in DocProject/buildhelp/ DocProject/Help/*.HxT diff --git a/core/dictionary.cpp b/core/dictionary.cpp index b2d31f230d..c544573629 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -160,7 +160,20 @@ void Dictionary::_unref() const { } uint32_t Dictionary::hash() const { - return hash_djb2_one_64(make_uint64_t(_p)); + uint32_t h=hash_djb2_one_32(Variant::DICTIONARY); + + List<Variant> keys; + get_key_list(&keys); + + for (List<Variant>::Element *E=keys.front();E;E=E->next()) { + + h = hash_djb2_one_32( E->get().hash(), h); + h = hash_djb2_one_32( operator[](E->get()).hash(), h); + + } + + + return h; } Array Dictionary::keys() const { diff --git a/core/globals.cpp b/core/globals.cpp index aee708d0cd..0a6a1876b3 100644 --- a/core/globals.cpp +++ b/core/globals.cpp @@ -309,7 +309,7 @@ Error Globals::setup(const String& p_path,const String & p_main_pack) { print_line("has res dir: "+resource_path); if (!_load_resource_pack("res://data.pck")) - _load_resource_pack("res://data.pcz"); + _load_resource_pack("res://data.zip"); // make sure this is load from the resource path print_line("exists engine cfg? "+itos(FileAccess::exists("/engine.cfg"))); if (_load_settings("res://engine.cfg")==OK || _load_settings_binary("res://engine.cfb")==OK) { @@ -340,7 +340,7 @@ Error Globals::setup(const String& p_path,const String & p_main_pack) { //try to load settings in ascending through dirs shape! //tries to open pack, but only first time - if (first_time && (_load_resource_pack(current_dir+"/"+exec_name+".pck") || _load_resource_pack(current_dir+"/"+exec_name+".pcz") )) { + if (first_time && (_load_resource_pack(current_dir+"/"+exec_name+".pck") || _load_resource_pack(current_dir+"/"+exec_name+".zip") )) { if (_load_settings("res://engine.cfg")==OK || _load_settings_binary("res://engine.cfb")==OK) { _load_settings("res://override.cfg"); @@ -349,7 +349,7 @@ Error Globals::setup(const String& p_path,const String & p_main_pack) { } break; - } else if (first_time && (_load_resource_pack(current_dir+"/data.pck") || _load_resource_pack(current_dir+"/data.pcz") )) { + } else if (first_time && (_load_resource_pack(current_dir+"/data.pck") || _load_resource_pack(current_dir+"/data.zip") )) { if (_load_settings("res://engine.cfg")==OK || _load_settings_binary("res://engine.cfb")==OK) { _load_settings("res://override.cfg"); diff --git a/core/io/stream_peer.cpp b/core/io/stream_peer.cpp index b00b462eb6..a76b84bed3 100644 --- a/core/io/stream_peer.cpp +++ b/core/io/stream_peer.cpp @@ -27,7 +27,7 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "stream_peer.h" - +#include "io/marshalls.h" Error StreamPeer::_put_data(const DVector<uint8_t>& p_data) { @@ -115,6 +115,271 @@ Array StreamPeer::_get_partial_data(int p_bytes) { } +void StreamPeer::set_big_endian(bool p_enable) { + + big_endian=p_enable; +} + +bool StreamPeer::is_big_endian_enabled() const { + + return big_endian; +} + + +void StreamPeer::put_u8(uint8_t p_val) { + put_data((const uint8_t*)&p_val,1); + +} + +void StreamPeer::put_8(int8_t p_val){ + + put_data((const uint8_t*)&p_val,1); +} +void StreamPeer::put_u16(uint16_t p_val){ + + if (big_endian) { + p_val=BSWAP16(p_val); + } + uint8_t buf[2]; + encode_uint16(p_val,buf); + put_data(buf,2); + +} +void StreamPeer::put_16(int16_t p_val){ + + if (big_endian) { + p_val=BSWAP16(p_val); + } + uint8_t buf[2]; + encode_uint16(p_val,buf); + put_data(buf,2); + +} +void StreamPeer::put_u32(uint32_t p_val){ + + if (big_endian) { + p_val=BSWAP32(p_val); + } + uint8_t buf[4]; + encode_uint32(p_val,buf); + put_data(buf,4); + +} +void StreamPeer::put_32(int32_t p_val){ + + if (big_endian) { + p_val=BSWAP32(p_val); + } + uint8_t buf[4]; + encode_uint32(p_val,buf); + put_data(buf,4); + +} +void StreamPeer::put_u64(uint64_t p_val){ + + if (big_endian) { + p_val=BSWAP64(p_val); + } + uint8_t buf[8]; + encode_uint64(p_val,buf); + put_data(buf,8); + +} +void StreamPeer::put_64(int64_t p_val){ + + if (big_endian) { + p_val=BSWAP64(p_val); + } + uint8_t buf[8]; + encode_uint64(p_val,buf); + put_data(buf,8); + +} +void StreamPeer::put_float(float p_val){ + + uint8_t buf[4]; + + encode_float(p_val,buf); + if (big_endian) { + uint32_t *p32=(uint32_t *)buf; + *p32=BSWAP32(*p32); + } + + put_data(buf,4); + +} +void StreamPeer::put_double(double p_val){ + + uint8_t buf[8]; + encode_double(p_val,buf); + if (big_endian) { + uint64_t *p64=(uint64_t *)buf; + *p64=BSWAP64(*p64); + } + put_data(buf,8); + +} +void StreamPeer::put_utf8_string(const String& p_string) { + + CharString cs=p_string.utf8(); + put_data((const uint8_t*)cs.get_data(),cs.length()); + +} +void StreamPeer::put_var(const Variant& p_variant){ + + int len=0; + Vector<uint8_t> buf; + encode_variant(p_variant,NULL,len); + buf.resize(len); + put_32(len); + encode_variant(p_variant,buf.ptr(),len); + put_data(buf.ptr(),buf.size()); + + +} + +uint8_t StreamPeer::get_u8(){ + + uint8_t buf[1]; + get_data(buf,1); + return buf[0]; +} +int8_t StreamPeer::get_8(){ + + uint8_t buf[1]; + get_data(buf,1); + return buf[0]; + +} +uint16_t StreamPeer::get_u16(){ + + uint8_t buf[2]; + get_data(buf,2); + uint16_t r = decode_uint16(buf); + if (big_endian) { + r=BSWAP16(r); + } + return r; + +} +int16_t StreamPeer::get_16(){ + + uint8_t buf[2]; + get_data(buf,2); + uint16_t r = decode_uint16(buf); + if (big_endian) { + r=BSWAP16(r); + } + return r; + +} +uint32_t StreamPeer::get_u32(){ + + uint8_t buf[4]; + get_data(buf,4); + uint32_t r = decode_uint32(buf); + if (big_endian) { + r=BSWAP32(r); + } + return r; + +} +int32_t StreamPeer::get_32(){ + + uint8_t buf[4]; + get_data(buf,4); + uint32_t r = decode_uint32(buf); + if (big_endian) { + r=BSWAP32(r); + } + return r; + +} +uint64_t StreamPeer::get_u64(){ + + uint8_t buf[8]; + get_data(buf,8); + uint64_t r = decode_uint64(buf); + if (big_endian) { + r=BSWAP64(r); + } + return r; + +} +int64_t StreamPeer::get_64(){ + + uint8_t buf[8]; + get_data(buf,8); + uint64_t r = decode_uint64(buf); + if (big_endian) { + r=BSWAP64(r); + } + return r; + +} +float StreamPeer::get_float(){ + + uint8_t buf[4]; + get_data(buf,4); + + if (big_endian) { + uint32_t *p32=(uint32_t *)buf; + *p32=BSWAP32(*p32); + } + + return decode_float(buf); +} + +float StreamPeer::get_double(){ + + uint8_t buf[8]; + get_data(buf,8); + + if (big_endian) { + uint64_t *p64=(uint64_t *)buf; + *p64=BSWAP64(*p64); + } + + return decode_double(buf); + +} +String StreamPeer::get_string(int p_bytes){ + + ERR_FAIL_COND_V(p_bytes<0,String()); + + Vector<char> buf; + buf.resize(p_bytes+1); + get_data((uint8_t*)&buf[0],p_bytes); + buf[p_bytes]=0; + return buf.ptr(); + +} +String StreamPeer::get_utf8_string(int p_bytes){ + + ERR_FAIL_COND_V(p_bytes<0,String()); + ERR_FAIL_COND_V(p_bytes<0,String()); + + Vector<uint8_t> buf; + buf.resize(p_bytes); + get_data(buf.ptr(),p_bytes); + + String ret; + ret.parse_utf8((const char*)buf.ptr(),buf.size()); + return ret; + +} +Variant StreamPeer::get_var(){ + + int len = get_32(); + Vector<uint8_t> var; + var.resize(len); + get_data(var.ptr(),len); + + Variant ret; + decode_variant(ret,var.ptr(),len); + return ret; +} + void StreamPeer::_bind_methods() { @@ -123,4 +388,36 @@ void StreamPeer::_bind_methods() { ObjectTypeDB::bind_method(_MD("get_data","bytes"),&StreamPeer::_get_data); ObjectTypeDB::bind_method(_MD("get_partial_data","bytes"),&StreamPeer::_get_partial_data); + + ObjectTypeDB::bind_method(_MD("get_available_bytes"),&StreamPeer::get_available_bytes); + + ObjectTypeDB::bind_method(_MD("set_big_endian","enable"),&StreamPeer::set_big_endian); + ObjectTypeDB::bind_method(_MD("is_big_endian_enabled"),&StreamPeer::is_big_endian_enabled); + + ObjectTypeDB::bind_method(_MD("put_8","val"),&StreamPeer::put_8); + ObjectTypeDB::bind_method(_MD("put_u8","val"),&StreamPeer::put_u8); + ObjectTypeDB::bind_method(_MD("put_16","val"),&StreamPeer::put_16); + ObjectTypeDB::bind_method(_MD("put_u16","val"),&StreamPeer::put_u16); + ObjectTypeDB::bind_method(_MD("put_32","val"),&StreamPeer::put_32); + ObjectTypeDB::bind_method(_MD("put_u32","val"),&StreamPeer::put_u32); + ObjectTypeDB::bind_method(_MD("put_64","val"),&StreamPeer::put_64); + ObjectTypeDB::bind_method(_MD("put_u64","val"),&StreamPeer::put_u64); + ObjectTypeDB::bind_method(_MD("put_float","val"),&StreamPeer::put_float); + ObjectTypeDB::bind_method(_MD("put_double","val"),&StreamPeer::put_double); + ObjectTypeDB::bind_method(_MD("put_utf8_string","val"),&StreamPeer::put_utf8_string); + ObjectTypeDB::bind_method(_MD("put_var","val:var"),&StreamPeer::put_var); + + ObjectTypeDB::bind_method(_MD("get_8"),&StreamPeer::get_8); + ObjectTypeDB::bind_method(_MD("get_u8"),&StreamPeer::get_u8); + ObjectTypeDB::bind_method(_MD("get_16"),&StreamPeer::get_16); + ObjectTypeDB::bind_method(_MD("get_u16"),&StreamPeer::get_u16); + ObjectTypeDB::bind_method(_MD("get_32"),&StreamPeer::get_32); + ObjectTypeDB::bind_method(_MD("get_u32"),&StreamPeer::get_u32); + ObjectTypeDB::bind_method(_MD("get_64"),&StreamPeer::get_64); + ObjectTypeDB::bind_method(_MD("get_u64"),&StreamPeer::get_u64); + ObjectTypeDB::bind_method(_MD("get_float"),&StreamPeer::get_float); + ObjectTypeDB::bind_method(_MD("get_double"),&StreamPeer::get_double); + ObjectTypeDB::bind_method(_MD("get_string","bytes"),&StreamPeer::get_string); + ObjectTypeDB::bind_method(_MD("get_utf8_string","bytes"),&StreamPeer::get_utf8_string); + ObjectTypeDB::bind_method(_MD("get_var:var"),&StreamPeer::get_var); } diff --git a/core/io/stream_peer.h b/core/io/stream_peer.h index e83fc71b93..2bb8f731b2 100644 --- a/core/io/stream_peer.h +++ b/core/io/stream_peer.h @@ -44,6 +44,8 @@ protected: Array _get_data(int p_bytes); Array _get_partial_data(int p_bytes); + bool big_endian; + public: virtual Error put_data(const uint8_t* p_data,int p_bytes)=0; ///< put a whole chunk of data, blocking until it sent @@ -52,7 +54,41 @@ public: virtual Error get_data(uint8_t* p_buffer, int p_bytes)=0; ///< read p_bytes of data, if p_bytes > available, it will block virtual Error get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_received)=0; ///< read as much data as p_bytes into buffer, if less was read, return in r_received - StreamPeer() {} + virtual int get_available_bytes() const=0; + + void set_big_endian(bool p_enable); + bool is_big_endian_enabled() const; + + void put_8(int8_t p_val); + void put_u8(uint8_t p_val); + void put_16(int16_t p_val); + void put_u16(uint16_t p_val); + void put_32(int32_t p_val); + void put_u32(uint32_t p_val); + void put_64(int64_t p_val); + void put_u64(uint64_t p_val); + void put_float(float p_val); + void put_double(double p_val); + void put_utf8_string(const String& p_string); + void put_var(const Variant& p_variant); + + uint8_t get_u8(); + int8_t get_8(); + uint16_t get_u16(); + int16_t get_16(); + uint32_t get_u32(); + int32_t get_32(); + uint64_t get_u64(); + int64_t get_64(); + float get_float(); + float get_double(); + String get_string(int p_bytes); + String get_utf8_string(int p_bytes); + Variant get_var(); + + + + StreamPeer() { big_endian=false; } }; #endif // STREAM_PEER_H diff --git a/core/resource.h b/core/resource.h index 3596abe673..cd28a51755 100644 --- a/core/resource.h +++ b/core/resource.h @@ -144,7 +144,7 @@ public: #ifdef TOOLS_ENABLED - void set_last_modified_time(uint64_t p_time) { last_modified_time=p_time; } + virtual void set_last_modified_time(uint64_t p_time) { last_modified_time=p_time; } uint64_t get_last_modified_time() const { return last_modified_time; } #endif diff --git a/core/typedefs.h b/core/typedefs.h index 6ca31fd137..460b2e2110 100644 --- a/core/typedefs.h +++ b/core/typedefs.h @@ -197,10 +197,22 @@ static inline int get_shift_from_power_of_2( unsigned int p_pixel ) { return -1; } +/** Swap 16 bits value for endianness */ +static inline uint16_t BSWAP16(uint16_t x) { + return (x>>8)|(x<<8); +} /** Swap 32 bits value for endianness */ static inline uint32_t BSWAP32(uint32_t x) { return((x<<24)|((x<<8)&0x00FF0000)|((x>>8)&0x0000FF00)|(x>>24)); } +/** Swap 64 bits value for endianness */ + +static inline uint64_t BSWAP64(uint64_t x) { + x = (x & 0x00000000FFFFFFFF) << 32 | (x & 0xFFFFFFFF00000000) >> 32; + x = (x & 0x0000FFFF0000FFFF) << 16 | (x & 0xFFFF0000FFFF0000) >> 16; + x = (x & 0x00FF00FF00FF00FF) << 8 | (x & 0xFF00FF00FF00FF00) >> 8; + return x; +} /** When compiling with RTTI, we can add an "extra" * layer of safeness in many operations, so dynamic_cast diff --git a/Doxyfile b/doc/Doxyfile index 4268ed8c7d..c1904f17c9 100644 --- a/Doxyfile +++ b/doc/Doxyfile @@ -51,14 +51,14 @@ PROJECT_BRIEF = "Game Engine MIT" # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. -PROJECT_LOGO = ./logo_small.png +PROJECT_LOGO = ../logo.png # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path # into which the generated documentation will be written. If a relative path is # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. -OUTPUT_DIRECTORY = ./doc/doxygen/ +OUTPUT_DIRECTORY = ./_build/doxygen/ # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and @@ -768,7 +768,7 @@ WARN_LOGFILE = # spaces. # Note: If this tag is empty the current directory is searched. -INPUT = ./core/ ./main/ ./scene/ +INPUT = ../core/ ../main/ ../scene/ # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000000..286a5162af --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,47 @@ +BASEDIR = $(CURDIR) +CLASSES = $(BASEDIR)/base/classes.xml +OUTPUTDIR = $(BASEDIR)/_build +TOOLSDIR = $(BASEDIR)/tools + +.ONESHELL: + +clean: + rm -rf $(OUTPUTDIR) + +doku: + rm -rf $(OUTPUTDIR)/doku + mkdir -p $(OUTPUTDIR)/doku + pushd $(OUTPUTDIR)/doku + python2 $(TOOLSDIR)/makedoku.py $(CLASSES) + popd + +doxygen: + rm -rf $(OUTPUTDIR)/doxygen + mkdir -p $(OUTPUTDIR)/doxygen + doxygen Doxyfile + +html: + rm -rf $(OUTPUTDIR)/html + mkdir -p $(OUTPUTDIR)/html + pushd $(OUTPUTDIR)/html + python2 $(TOOLSDIR)/makehtml.py -multipage $(CLASSES) + popd + +markdown: + rm -rf $(OUTPUTDIR)/markdown + mkdir -p $(OUTPUTDIR)/markdown + pushd $(OUTPUTDIR)/markdown + python2 $(TOOLSDIR)/makemd.py $(CLASSES) + popd + +rst: + rm -rf $(OUTPUTDIR)/rst + mkdir -p $(OUTPUTDIR)/rst + pushd $(OUTPUTDIR)/rst + echo "TODO" + popd + +textile: + rm -rf $(OUTPUTDIR)/textile + mkdir -p $(OUTPUTDIR)/textile + python3 $(TOOLSDIR)/makedocs.py --input $(CLASSES) --output $(OUTPUTDIR)/textile diff --git a/doc/core_classes.xml b/doc/core_classes.xml deleted file mode 100644 index c37b50f122..0000000000 --- a/doc/core_classes.xml +++ /dev/null @@ -1,2654 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<doc version="1.0" name="Core Types"> -<class category="Core" name="Vector3"> - <brief_description> - Vector class, which performs basic 3D vector math operations. - </brief_description> - <description> - Vector3 is one of the core classes of the engine, and includes several built-in helper functions to perform basic vecor math operations. - </description> - <methods> - <method name="operator+"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="Vector3"> - Sum. - </return> - <description> - Add two vectors. - </description> - </method> - <method name="operator-"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="Vector3"> - Difference. - </return> - <description> - Substract two vectors. - </description> - </method> - <method name="operator/"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="Vector3"> - Quotient. - </return> - <description> - Divide two vectors (component wise). - </description> - </method> - <method name="operator*"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="Vector3"> - Product. - </return> - <description> - Multiply two vectors (components wise). - </description> - </method> - <method name="set_axis"> - <argument index="0" name="axis" type="int"> - Axis Index. - </argument> - <argument index="1" name="value" type="real"> - Value. - </argument> - <description> - Set an individual axis (0 is X, 1 is Y and 2 is Z). the enum constants Vector.AXIS_X, Vector.AXIS_Y, and Vector.AXIS_Z, are also valid. This is specially useful for for-loops. - </description> - </method> - <method name="get_axis"> - <argument index="0" name="axis" type="int"> - Axis Index. - </argument> - <return type="real"> - Value. - </return> - <description> - Set an individual axis (0 is X, 1 is Y and 2 is Z). the enum constants Vector.AXIS_X, Vector.AXIS_Y, and Vector.AXIS_Z, are also valid. This is specially useful for for-loops. - </description> - </method> - <method name="length"> - <return type="real"> - Length: sqrt(x^2+y^2+z^2) - </return> - <description> - Return the length of the vector. - </description> - </method> - <method name="length_squared"> - <return type="real"> - Squared Length: x^2+y^2+z^2. - </return> - <description> - Return the length of the vector, without the square root step. - </description> - </method> - <method name="normalize"> - <description> - Normalize the vector to unit length. This is the same as v = v / v.length() - </description> - </method> - <method name="normalized"> - <return type="Vector3"> - </return> - <description> - Return a copy of the normalized vector to unit length. This is the same as v / v.length() - </description> - </method> - <method name="inverse"> - <return type="Vector3"> - Inverse: 1/v - </return> - <description> - Returns the inverse of the vector. this is the same as Vector3( 1.0 / v.x, 1.0 / v.y, 1.0 / v.z ) - </description> - </method> - <method name="zero"> - <description> - Set x,y and z to 0. - </description> - </method> - <method name="snap"> - <argument index="0" name="snap" type="real"> - </argument> - <description> - Snap the vector in each axis the the lowest nearest multiple. ie: 4,5,7 snapped to 2 equals 4,4,6. - </description> - </method> - <method name="snapped"> - <argument index="0" name="snap" type="real"> - </argument> - <return type="Vector3"> - Snapped copy. - </return> - <description> - Return a copy of the vector, snapped to the lowest neared multiple. - </description> - </method> - <method name="linear_interpolate"> - <argument index="0" name="b" type="Vector3"> - </argument> - <argument index="1" name="i" type="real"> - </argument> - <return type="Vector3"> - </return> - <description> - Linearly interpolates the vector to a given one (b), by the given amount (i) - </description> - </method> - <method name="cubic_interpolate"> - <argument index="0" name="a" type="Vector3"> - </argument> - <argument index="1" name="c" type="Vector3"> - </argument> - <argument index="2" name="d" type="Vector3"> - </argument> - <argument index="3" name="i" type="real"> - </argument> - <return type="Vector3"> - </return> - <description> - Perform a cubic interpolation between vectors a,b,c,d (b is current), by the given amount (i). - </description> - </method> - <method name="cross"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="Vector3"> - Cross product. - </return> - <description> - Return the cross product with b. - </description> - </method> - <method name="dot"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="real"> - </return> - <description> - Return the dot product with b. - </description> - </method> - <method name="distance_to"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="real"> - </return> - <description> - Return the distance to b. - </description> - </method> - <method name="distance_squared_to"> - <argument index="0" name="b" type="Vector3"> - </argument> - <return type="real"> - </return> - <description> - Return the squared distance (distance minus the last square root) to b. - </description> - </method> - </methods> - <constants> - <constant name="AXIS_X" value="0"> - </constant> - <constant name="AXIS_Y" value="1"> - </constant> - <constant name="AXIS_Z" value="2"> - </constant> - </constants> - <members> - <member name="x" type="real"> - </member> - <member name="y" type="real"> - </member> - <member name="z" type="real"> - </member> - </members> -</class> -<class category="Core" name="AABB"> - <brief_description> - Axis-Aligned-Bounding-Box. - </brief_description> - <description> - AABB stands for "Axis Aligned Bounding Box". It consits of a position and a size, which for an box that is always aligned to the x, y and z axis, which goes from "pos" to "pos+size". - </description> - <methods> - <method name="has_no_area"> - <return type="bool"> - </return> - <description> - Returns true if the AABB volume is empty (even if it has a surface). Holds true if size.x,y or z is 0. - </description> - </method> - <method name="has_no_surface"> - <return type="bool"> - </return> - <description> - Return true if size is 0,0,0. - </description> - </method> - <method name="area"> - <return type="real"> - </return> - <description> - Compute the volume of the AABB. - </description> - </method> - <method name="intersects"> - <argument index="0" name="b" type="AABB"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if this AABB shares a portion of space with b. - </description> - </method> - <method name="encloses"> - <argument index="0" name="b" type="AABB"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if this AABB completely encloses b. - </description> - </method> - <method name="merge_with"> - <argument index="0" name="b" type="AABB"> - </argument> - <description> - Expand this AABB to also enclose the area of b. - </description> - </method> - <method name="intersection_with"> - <argument index="0" name="b" type="AABB"> - </argument> - <return type="AABB"> - </return> - <description> - Return the shared portion of space with b (empty if they don't intersect). - </description> - </method> - <method name="intersects_segment"> - <argument index="0" name="a" type="Vector3"> - </argument> - <argument index="1" name="b" type="Vector3"> - </argument> - <argument index="2" name="@r" type="Vector3"> - result (if they intersect) - </argument> - <argument index="3" name="@n" type="Vector3"> - normal (if they intersect) - </argument> - <return type="bool"> - </return> - <description> - Returns true if this AABB intersects segment "a" towards "b". Also, return the point and normal of intersection. - </description> - </method> - <method name="intersects_plane"> - <argument index="0" name="p" type="Plane"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if this AABB intersects the plane b. - </description> - </method> - <method name="has_point"> - <argument index="0" name="p" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Return true if this AABB contains point "p". - </description> - </method> - <method name="get_longest_axis"> - <return type="Vector3"> - Axis direction - </return> - <description> - Get the normal of the longest axis in this AABB. - </description> - </method> - <method name="get_longest_axis_index"> - <return type="int"> - </return> - <description> - Get the index of the longest axis in this AABB. - </description> - </method> - <method name="get_longest_axis_size"> - <return type="real"> - Get the length of the longest axis in this AABB. - </return> - <description> - </description> - </method> - <method name="get_edge"> - <argument index="0" name="@ra" type="Vector3"> - </argument> - <argument index="1" name="@rb" type="Vector3"> - </argument> - <description> - Get one of the edges (0 to 11) of this AABB in "ra" and "rb". - </description> - </method> - <method name="grow_by"> - <argument index="0" name="s" type="real"> - </argument> - <description> - Grow this AABB, by expanding its margin, by "s". - </description> - </method> - <method name="expand_to"> - <argument index="0" name="p" type="Vector3"> - </argument> - <description> - Expand this AABB to contain point "p". - </description> - </method> - </methods> - <members> - <member name="pos" type="Vector3"> - Position of the AABB. - </member> - <member name="size" type="Vector3"> - Suze of the AABB (should always be positive). - </member> - </members> -</class> -<class category="Core" name="Plane"> - <brief_description> - Plane in hessian form. - </brief_description> - <description> - Plane represents a normalized plane equation. Basically, "normal" is the normal of the plane (a,b,c normalized), and "d" is the distance from the origin to the plane (in the direction of "normal"). "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing. - </description> - <methods> - <method name="normalize"> - <description> - Normalize the plane (although it will be often normalized already). - </description> - </method> - <method name="normalized"> - <return type="Plane"> - </return> - <description> - Returns a copy of the plane, normalized. - </description> - </method> - <method name="is_point_over"> - <argument index="0" name="p" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if "p" is located above the plane. - </description> - </method> - <method name="distance"> - <argument index="0" name="p" type="Vector3"> - </argument> - <return type="real"> - </return> - <description> - Returns the orthogonal distance from "p" to the plane. If positive, "p" is above, if negative, "p" is below. - </description> - </method> - <method name="has_point"> - <argument index="0" name="p" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if "p" is inside the plane (by a very minimum treshold). - </description> - </method> - <method name="intersect_3"> - <argument index="0" name="a" type="Plane"> - </argument> - <argument index="1" name="b" type="Plane"> - </argument> - <argument index="2" name="@r" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if this plane intersects with planes "a" and "b". The resulting intersectin is placed in "r". - </description> - </method> - <method name="intersects_ray"> - <argument index="0" name="p" type="Vector3"> - </argument> - <argument index="1" name="d" type="Vector3"> - </argument> - <argument index="2" name="@r" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if ray consiting of position "p" and direction normal "d" intersects this plane. If true, the result is placed in "r". - </description> - </method> - <method name="intersects_segment"> - <argument index="0" name="sa" type="Vector3"> - </argument> - <argument index="1" name="sb" type="Vector3"> - </argument> - <argument index="2" name="@r" type="Vector3"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if segment from position "sa" to position "sb" intersects this plane. If true, the result is placed in "r". - - </description> - </method> - <method name="project"> - <argument index="0" name="p" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Returns the orthogonal projection of point "p" into a point in the plane. - </description> - </method> - <method name="is_almost_like"> - <argument index="0" name="b" type="plane"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if plane "b" is very similar to this one. - </description> - </method> - </methods> - <members> - <member name="normal" type="Vector3"> - Plane normal vector (a,c and d in the plane equation normalized). - </member> - <member name="d" type="real"> - Plane distance (d in the plane equation). - </member> - </members> -</class> -<class category="Core" name="Quat"> - <brief_description> - Quaternion. - </brief_description> - <description> - Quaternion is a 4 dimensional vector that is used to represet a rotation. It mainly exists to perform SLERP (spherical-linear interpolation) between to rotations obtained by a Matrix3 cheaply. Adding quaternions also cheaply adds the rotations, however quaternions need to be often normalized, or else they suffer from precision issues. - </description> - <methods> - <method name="length"> - <return type="real"> - </return> - <description> - Returns the length of the quaternion. - </description> - </method> - <method name="length_squared"> - <return type="real"> - </return> - <description> - Returns the length of the quaternion, minus the square root. - </description> - </method> - <method name="normalize"> - <description> - Normalize the quaternion to unit length. - </description> - </method> - <method name="normalized"> - <return type="Quat"> - </return> - <description> - Returns a copy of the quaternion, normalized to unit length. - </description> - </method> - <method name="inverse"> - <return type="Quat"> - </return> - <description> - Returns the inverse of the quaternion (applies to the inverse rotatio too). - </description> - </method> - <method name="dot"> - <argument index="0" name="b" type="Quat"> - </argument> - <return type="real"> - </return> - <description> - Returns the dot product between two quaternions. - </description> - </method> - <method name="set_euler"> - <argument index="0" name="e" type="Vector3"> - </argument> - <description> - Create a quaternion from euler rotation "e", as yaw, pitch, roll. - </description> - </method> - <method name="slerp"> - <argument index="0" name="b" type="Quat"> - </argument> - <argument index="1" name="i" type="real"> - </argument> - <return type="Quat"> - </return> - <description> - Perform a spherical-linear interpolation with another quaternion. - </description> - </method> - <method name="operator*"> - <argument index="0" name="arg1" type="Quat"> - </argument> - <return type="Quat"> - </return> - <description> - Peform multiplication between two quaternions. - </description> - </method> - </methods> - <members> - <member name="x" type="real"> - x-axis - </member> - <member name="y" type="real"> - y-axis - </member> - <member name="z" type="real"> - z-axis - </member> - <member name="w" type="real"> - w-axis - </member> - </members> -</class> -<class category="Core" name="Matrix3"> - <brief_description> - 3x3 Matrix. - </brief_description> - <description> - Matrix represent a 3x3 (3 rows by 3 columns) transformation matrix. it is used mainly to represent and accumulate transformations such as rotation or scale when used as an OCS (oriented coordinate system). - </description> - <methods> - <method name="invert"> - <description> - Invert the matrix (transformations are reversed). - </description> - </method> - <method name="transpose"> - <description> - Transpose the matrix (transformations are reversed only for orthogonal matrices). - </description> - </method> - <method name="inverse"> - <return type="Matrix3"> - </return> - <description> - Returns the inverse of the matrix. - </description> - </method> - <method name="transposed"> - <return type="Matrix3"> - </return> - <description> - Returns the transposition of the matrix. - </description> - </method> - <method name="rotate"> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="real"> - </argument> - <description> - Rotates the matrix in normalized "axis" by amount "phi" in radians. (This is equivalent to glRotate from OpenGL). - </description> - </method> - <method name="scale"> - <argument index="0" name="s" type="Vector3"> - </argument> - <description> - Scale each axis of the rotated matrix by 's". - </description> - </method> - <method name="get_scale"> - <return type="Vector3"> - </return> - <description> - Get the scale of the matrix. - </description> - </method> - <method name="set_euler"> - <argument index="0" name="e" type="Vector3"> - </argument> - <description> - Create an orthogonal matrix from euler angles "e", as yaw, pitch, roll. - </description> - </method> - <method name="get_euler"> - <return type="Vector3"> - </return> - <description> - Computes and returns the euler engles for an orthogonal matrix, as yaw, pitch, roll. - </description> - </method> - <method name="tdotx"> - <argument index="0" name="v" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Computes and returns a dot product with transposed axis x. - </description> - </method> - <method name="tdoty"> - <argument index="0" name="v" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Computes and returns a dot product with transposed axis y. - </description> - </method> - <method name="tdotz"> - <argument index="0" name="arg1" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Computes and returns a dot product with transposed axis z. - </description> - </method> - <method name="xform"> - <argument index="0" name="v" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Transforms vector "v" by this matrix (as M x V) and returns the result. - </description> - </method> - <method name="xform_inv"> - <argument index="0" name="v" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Inverse-transforms vector "v" by this matrix (as V x M) and returns the result. - </description> - </method> - <method name="get_axis"> - <argument index="0" name="axis" type="int"> - </argument> - <return type="Vector3"> - </return> - <description> - Get an axis of the OCS. (0 is X, 1 is Y and 2 is Z). The enum constants Vector.AXIS_X, Vector.AXIS_Y, and Vector.AXIS_Z, are also valid. This is equivalent to get_column(). - </description> - </method> - <method name="set_axis"> - <argument index="0" name="axis" type="int"> - </argument> - <argument index="1" name="v" type="Vector3"> - </argument> - <description> - Set an axis of the OCS. (0 is X, 1 is Y and 2 is Z). The enum constants Vector.AXIS_X, Vector.AXIS_Y, and Vector.AXIS_Z, are also valid. This is equivalent to set_column() - </description> - </method> - <method name="get_row"> - <argument index="0" name="i" type="int"> - </argument> - <return type="Vector3"> - </return> - <description> - Get a matrix row. - </description> - </method> - <method name="set_row"> - <argument index="0" name="i" type="int"> - </argument> - <argument index="1" name="v" type="Vector3"> - </argument> - <description> - Set a matrix row. - </description> - </method> - <method name="get_column"> - <argument index="0" name="axis" type="int"> - </argument> - <return type="Vector3"> - </return> - <description> - Get a matrix column. This is equivalent to get_axis() - </description> - </method> - <method name="set_column"> - <argument index="0" name="axis" type="int"> - </argument> - <argument index="1" name="av" type="Vector3"> - </argument> - Set a matrix column. This is equivalent to set_axis - <description> - </description> - </method> - <method name="operator*"> - <argument index="0" name="N" type="Matrix3"> - </argument> - <return type="Matrix3"> - </return> - <description> - Perform a matrix multiplication (M x N) and return the result. - </description> - </method> - <method name="transpose_xform"> - <argument index="0" name="arg1" type="Matrix3"> - </argument> - <return type="Matrix3"> - </return> - <description> - Perform a transposed-matrix multiplication (Mt x N) and return the result. - </description> - </method> - </methods> - <members> - <member name="xx" type="real"> - </member> - <member name="xy" type="real"> - </member> - <member name="xz" type="real"> - </member> - <member name="yx" type="real"> - </member> - <member name="yy" type="real"> - </member> - <member name="yz" type="real"> - </member> - <member name="zx" type="real"> - </member> - <member name="zy" type="real"> - </member> - <member name="zz" type="real"> - </member> - </members> -</class> -<class category="Core" name="Transform"> - <brief_description> - Transformation. - </brief_description> - <description> - Transform is used to store transformations, including translations. It consists of a Matrix3 "basis" and Vector3 "origin". Transform is used to represent transformations of any object in space. It is similar to a 4x3 matrix. - </description> - <methods> - <method name="invert"> - <description> - Invert the transform. - </description> - </method> - - <method name="inverse"> - <return type="Transform"> - </return> - <description> - Returns the inverse of the transform. - </description> - </method> - <method name="rotate"> - <argument index="0" name="axis" type="Vector3"> - </argument> - <argument index="1" name="phi" type="real"> - </argument> - <description> - Rotates the transform in normalized "axis" by amount "phi" in radians. (This is equivalent to glRotate from OpenGL). - </description> - </method> - <method name="scale"> - <argument index="0" name="s" type="Vector3"> - </argument> - <description> - Scales the whole transform by "s" (including the origin) - </description> - </method> - <method name="get_basis"> - <return type="Matrix3"> - </return> - <description> - Get the basis. - </description> - </method> - <method name="translate"> - <argument index="0" name="v" type="Vector3"> - </argument> - <description> - Translate the transform by "v". - </description> - </method> - <method name="set_look_at"> - <argument index="0" name="eye" type="Vector3"> - "Eye" Position. - </argument> - <argument index="1" name="target" type="Vector3"> - "Target" Position. - </argument> - <argument index="2" name="up" type="Vector3"> - "Up" Normal Vector. - </argument> - <description> - Creates a transform positioned at "eye", looking towards "target". "up" represents the direction where "up" is. This function is useful for setting up cameras. - </description> - </method> - <method name="xform"> - <argument index="0" name="v" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Transforms vector "v" by this transform. - </description> - </method> - <method name="xform_inv"> - <argument index="0" name="arg1" type="Vector3"> - </argument> - <return type="Vector3"> - </return> - <description> - Inverse-transforms vector "v" by this transform. - </description> - </method> - <method name="xform_aabb"> - <argument index="0" name="a" type="AABB"> - </argument> - <return type="AABB"> - </return> - <description> - Transforms AABB "a" by this transform. The resulting aabb will often be larger, so succesive transforms are not recommended. - </description> - </method> - <method name="xform_aabb_inv"> - <argument index="0" name="a" type="AABB"> - </argument> - <return type="AABB"> - </return> - <description> - Inverse-transforms AABB "a" by this transform. The resulting aabb will often be larger, so succesive transforms are not recommended. - </description> - </method> - <method name="xform_plane"> - <argument index="0" name="p" type="Plane"> - </argument> - <return type="Plane"> - </return> - <description> - Transform plane "p" by this transform. - </description> - </method> - <method name="xform_plane_inv"> - <argument index="0" name="p" type="Plane"> - </argument> - <return type="Plane"> - </return> - <description> - Inverse-transforms plane "p" by this transform. - </description> - </method> - </methods> - <members> - <member name="basis" type="Matrix3"> - Transform "basis" or OCS. - </member> - <member name="origin" type="Vector3"> - Transform origin. - </member> - <member name="xx" type="real"> - </member> - <member name="xy" type="real"> - </member> - <member name="xz" type="real"> - </member> - <member name="yx" type="real"> - </member> - <member name="yy" type="real"> - </member> - <member name="yz" type="real"> - </member> - <member name="zx" type="real"> - </member> - <member name="zy" type="real"> - </member> - <member name="zz" type="real"> - </member> - <member name="tx" type="real"> - </member> - <member name="ty" type="real"> - </member> - <member name="tz" type="real"> - </member> - - </members> -</class> -<class category="Core" name="Vector2"> - <brief_description> - Vector used for 2D Math. - </brief_description> - <description> - Vector class, which performs basic 2D vector math operations. - </description> - <methods> - <method name="operator+"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="Vector2"> - </return> - <description> - Add two vectors. - </description> - </method> - <method name="operator-"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="Vector2"> - </return> - <description> - Substract two vectors. - </description> - </method> - <method name="operator/"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="Vector2"> - </return> - <description> - Divide two vectors. - </description> - </method> - <method name="operator*"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="Vector2"> - </return> - <description> - Multiply two vectors. - </description> - </method> - <method name="length"> - <return type="real"> - </return> - <description> - Returns the length of the vector. - </description> - </method> - <method name="length_squared"> - <return type="real"> - </return> - <description> - Returns the squared length of the vector. - </description> - </method> - <method name="normalize"> - <description> - Normalizes the vector to unit length. - </description> - </method> - <method name="normalized"> - <return type="Vector2"> - </return> - <description> - Returns a normalized vector to unit length. - </description> - </method> - <method name="zero"> - <description> - Sets x and y to 0. - </description> - </method> - <method name="linear_interpolate"> - <argument index="0" name="b" type="Vector2"> - </argument> - <argument index="1" name="i" type="real"> - </argument> - <return type="Vector2"> - </return> - <description> - Returns the result of the linear interpolation between this vector and "b", by amount "i". - </description> - </method> - <method name="dot"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="real"> - </return> - <description> - Returns the dot product with vector "b". - </description> - </method> - <method name="distance_to"> - <argument index="0" name="b" type="Vector2"> - </argument> - <return type="real"> - </return> - <description> - Returns the distance to vector "b". - </description> - </method> - <method name="floor"> - <return type="Vector2"> - </return> - <description> - Remove the fractional part of x and y. - </description> - </method> - </methods> - - <members> - <member name="x" type="real"> - </member> - <member name="y" type="real"> - </member> - - </members> -</class> -<class category="Core" name="Rect2"> - <brief_description> - Positioned rectangle in 2D. - </brief_description> - <description> - Rect2 represets a positioned rectangle of position "pos" and "size". - </description> - <methods> - <method name="has_no_area"> - <return type="bool"> - </return> - <description> - Returns "true" if the rectangle has no area. - </description> - </method> - <method name="has_point"> - <argument index="0" name="v" type="Vector2"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if v is contained within the rectangle. - </description> - </method> - <method name="merge"> - <argument index="0" name="b" type="Rect2"> - </argument> - <description> - Extend the rectangle to enclose "b". - </description> - </method> - <method name="clip"> - <argument index="0" name="b" type="Rect2"> - </argument> - <return type="Rect2"> - </return> - <description> - Return the interection with rectangle "b" - </description> - </method> - <method name="grow"> - <argument index="0" name="m" type="Vector2"> - </argument> - <description> - Extend the rectangle margin by "m". - </description> - </method> - </methods> - <members> - <member name="pos" type="Vector2"> - Position of the rectangle. - </member> - <member name="size" type="Vector2"> - Size of the rectangle. - </member> - <member name="x" type="real"> - </member> - <member name="y" type="real"> - </member> - <member name="size_x" type="real"> - </member> - <member name="size_y" type="real"> - </member> - </members> -</class> - -<class category="Core" name="Color"> - <brief_description> - Color in RGBA format. - </brief_description> - <description> - A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. - </description> - <methods> - <method name="to_32"> - <return type="real"> - </return> - <description> - Convert the color to a 32 its integer (each byte represets a RGBA). - </description> - </method> - <method name="gray"> - <return type="real"> - </return> - <description> - Convert the color to gray. - </description> - </method> - <method name="get_h"> - <return type="real"> - </return> - <description> - Compute the "hue" of the color. - </description> - </method> - <method name="get_s"> - <return type="real"> - </return> - <description> - Compute the "saturation" of the color. - </description> - </method> - <method name="get_v"> - <return type="real"> - </return> - <description> - Compute the "value" of the color. - </description> - </method> - <method name="set_hsv"> - <argument index="0" name="h" type="real"> - </argument> - <argument index="1" name="s" type="real"> - </argument> - <argument index="2" name="v" type="real"> - </argument> - <description> - Set the color from the HSV format. - </description> - </method> - <method name="invert"> - <description> - Invert the color. - </description> - </method> - <method name="contrast"> - <description> - Contrast the color. - </description> - </method> - <method name="interpolate"> - <argument index="0" name="c" type="Vector3"> - </argument> - <argument index="1" name="i" type="real"> - (0 to 1) - </argument> - <description> - Linearly blend with color "c", by amount "i". - </description> - </method> - </methods> - <members> - <member name="r" type="real"> - Red. - </member> - <member name="g" type="real"> - Green. - </member> - <member name="b" type="real"> - Blue. - </member> - <member name="a" type="real"> - Alpha. - </member> - </members> -</class> -<class category="Core" name="Image"> - <brief_description> - Two Dimensional Image. - </brief_description> - <description> - Image represents a two-dimensional representation of an image, composed by a color per pixel. - </description> - <methods> - <method name="get_width"> - <return type="real"> - </return> - <description> - Returns the width of the image (in pixels). - </description> - </method> - <method name="get_height"> - <return type="real"> - </return> - <description> - Returns the height of the image (in pixels). - </description> - </method> - <method name="get_pixel"> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <return type="Color"> - </return> - <description> - Get the color of the pixel at position (x,y). - </description> - </method> - <method name="put_pixel"> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <description> - Sets the color of the pixel at position (x,y). - </description> - </method> - <method name="convert"> - <argument index="0" name="format" type="int"> - </argument> - <description> - Convert the image to a new format (valid values in the FORMAT_* enumeration). - </description> - </method> - <method name="get_format"> - <return type="int"> - </return> - <description> - Get the image format (valid values in the FORMAT_* enumeration). - </description> - </method> - <method name="resize"> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <description> - Resize the image to a new pixel resolution given by width,height. - </description> - </method> - <method name="crop"> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <description> - Crop the image to a new pixel resolution given by width,height. - </description> - </method> - <method name="flip_x"> - <description> - Flip the X axis of the image. - </description> - </method> - <method name="flip_y"> - <description> - Flip the Y axis of the image. - </description> - </method> - <method name="make_mipmap"> - <argument index="0" name="source" type="Image"> - </argument> - <description> - Create a mipmap from "source" image. - </description> - </method> - <method name="make_normalmap"> - <argument index="0" name="height_scale" type="real"> - </argument> - <description> - Create a normalmap from "height_scale" image. - </description> - </method> - <method name="create"> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="format" type="int"> - </argument> - <description> - Create a new image of size width, height and format. - </description> - </method> - <method name="import"> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="format" type="int"> - </argument> - <argument index="3" name="data" type="RawArray"> - </argument> - <description> - Import an image from raw data, given a specific format. - </description> - </method> - <method name="empty"> - <return type="bool"> - </return> - <description> - Returns true if the image is empty. - </description> - </method> - <method name="load"> - <argument index="0" name="path" type="String"> - </argument> - <return type="Error"> - </return> - <description> - Load an image from a file in "path". - </description> - </method> - </methods> - <constants> - <constant name="FORMAT_GRAYSCALE" value="0"> - </constant> - <constant name="FORMAT_INTENSITY" value="1"> - </constant> - <constant name="FORMAT_GRAYSCALE_ALPHA" value="2"> - </constant> - <constant name="FORMAT_RGB" value="3"> - </constant> - <constant name="FORMAT_RGBA" value="4"> - </constant> - <constant name="FORMAT_INDEXED" value="5"> - </constant> - <constant name="FORMAT_INDEXED_ALPHA" value="6"> - </constant> - </constants> -</class> -<class category="Core" name="RID"> - <brief_description> - Resource ID. - </brief_description> - <description> - RID references a resource, typically created in a server. - </description> - <methods> - <method name="is_valid"> - <return type="bool"> - </return> - <description> - Returns true if the resource is valid. - </description> - </method> - </methods> -</class> -<class category="Core" name="InputEvent"> - <brief_description> - A struct containing information fron an input device. - </brief_description> - <description> - A struct containing information fron an input event, such as mouse, keyboard, joystick, etc. Valid event types are:<br></br> - <list> - <li> InputEvent.NONE </li> - <li> InputEvent.KEY </li> - <li> InputEvent.MOUSE_BUTTON </li> - <li> InputEvent.MOUSE_MOTION </li> - <li> InputEvent.JOYSTICK_MOTION </li> - <li> InputEvent.JOYSTICK_BUTTON </li> - </list> - - </description> - <members> - <member name="ID" type="int"> - Event ID. Every event as a unique ID. - </member> - <member name="type" type="int"> - Event type (check description). - </member> - <member name="device" type="int"> - Device that originated the event. - </member> - <member name="mouse_x" type="int"> - Mouse x position (for mouse events). - </member> - <member name="mouse_y" type="int"> - Mouse y position (for mouse events). - </member> - <member name="mouse_button_mask" type="int"> - State of the mouse buttons as a bitmask (for key and mouse events) - </member> - <member name="mouse_global_x" type="int"> - Global mouse x position (used in GUI Controls). - </member> - <member name="mouse_global_y" type="int"> - Global mouse y position (used in GUI Controls). - </member> - <member name="mouse_pressed" type="bool"> - if MOUSE_BUTTON was a press, this value is true. - </member> - <member name="mouse_doubleclick" type="bool"> - if MOUSE_BUTTON was a doubleclick, this value is true. - </member> - <member name="mouse_button_index" type="int"> - Index of the clicked button (mouse button event). - </member> - <member name="mouse_motion_x" type="int"> - Relative x motion of the mouse (mouse motion event). - </member> - <member name="mouse_motion_y" type="int"> - Relative y motion of the mouse (mouse motion event). - </member> - <member name="mod_alt" type="bool"> - If ALT modifier is pressed, this is true (mouse and key events). - </member> - <member name="mod_shift" type="bool"> - If SHIFT modifier is pressed, this is true (mouse and key events). - </member> - <member name="mod_control" type="bool"> - If CONTROL modifier is pressed, this is true (mouse and key events). - </member> - <member name="mod_meta" type="bool"> - If META modifier (win/apple/etc keys) is pressed, this is true (mouse and key events). - </member> - <member name="key_pressed" type="bool"> - if a KEY event originated from a keypress, this is true. - </member> - <member name="key_echo" type="bool"> - if a KEY event originated from an echo key, this is true. - </member> - <member name="key_unicode" type="int"> - Unicode value of a key pressed (key event). - </member> - <member name="key_scancode" type="Key"> - Scancode of a key pressed (check the KEY_* enumeration) (key event). - </member> - <member name="joy_button_index" type="int"> - Joystick button index (joy button event). - </member> - <member name="joy_button_pressed" type="bool"> - If joystick button was pressed, this is true (joy button event). - </member> - <member name="joy_button_index" type="int"> - Index of the pressed/released joystick button. - </member> - <member name="joy_axis" type="int"> - Axis of a joystick (joy axis event). - </member> - <member name="joy_axis_value" type="real"> - Axis value a joystick, from -1 to 1 (joy axis event). - </member> - </members> - <constants> - <constant name="NONE" value="0"> - Empty input event. - </constant> - <constant name="KEY" value="1"> - Key pressed/released event. - </constant> - <constant name="MOUSE_BUTTON" value="2"> - Mouse button pressed/released event. - </constant> - <constant name="JOYSTICK_MOTION" value="3"> - Joystick axis motion event. - </constant> - <constant name="JOYSTICK_BUTTON" value="4"> - Joystick button press/release event. - </constant> - </constants> - -</class> -<class category="Core" name="FileAccess"> - <brief_description> - File Access Interface. - </brief_description> - <description> - FileAccess provides access to files in the host platform (remote access to files in webserver in the web plugin, as web plugin does not access the local filesystem). - </description> - <methods> - <method name="open"> - <argument index="0" name="path" type="String"> - Path to a file - </argument> - <argument index="1" name="mode" type="int"> - Open mode: FileAccess.READ, FileAccess.WRITE or FileAccess.READ_WRITE - </argument> - <return type="Error"> - Error value (check the ERR_ macro for the meaning of the values) - </return> - <description> - Open a file in a given path. Error is returned if the file can't be opened, is nt found, etc. - </description> - </method> - <method name="close"> - <description> - Closes a currently open file. - </description> - </method> - <method name="is_open"> - <return type="bool"> - </return> - <description> - Returns true if a file is currently open. - </description> - </method> - <method name="seek"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - Seek to a given position (in bytes) in the file. - </description> - </method> - <method name="seek_end"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - Seek to a given position (in bytes) in the file, from the end of the file. - </description> - </method> - <method name="get_pos"> - <return type="int"> - </return> - <description> - Get the current position in the file. - </description> - </method> - <method name="get_len"> - <return type="int"> - </return> - <description> - Get the open file size (in bytes). - </description> - </method> - <method name="eof_reached"> - <return type="bool"> - </return> - <description> - Returns true if EOF was reached (read past end of file). - </description> - </method> - <method name="get_8"> - <return type="int"> - </return> - <description> - Read a byte from the file. - </description> - </method> - <method name="get_16"> - <return type="int"> - </return> - <description> - Read a 16-bits unsigned integer from the file, in little/big endian format. - </description> - </method> - <method name="get_32"> - <return type="int"> - </return> - <description> - Read a 32-bits unsigned integer from the file, in little/big endian format. - </description> - </method> - <method name="set_endian_swap"> - <argument index="0" name="swap" type="bool"> - </argument> - <description> - Change the endian mode for reading sizes larger than a byte (read big endian files). - </description> - </method> - <method name="get_endian_swap"> - <return type="bool"> - </return> - <description> - Return the status of the endian swap. - </description> - </method> - <method name="store_8"> - <argument index="0" name="byte" type="int"> - </argument> - <description> - Store a byte in the file. - </description> - </method> - <method name="store_16"> - <argument index="0" name="word" type="int"> - </argument> - <description> - Store a 16-bits integer in the file. - </description> - </method> - <method name="store_32"> - <argument index="0" name="dword" type="int"> - </argument> - <description> - Store a 32 bits integer in the file. - </description> - </method> - <method name="file_exists"> - <argument index="0" name="path" type="String"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if a given file (in path) exist. - </description> - </method> - </methods> - <constants> - <constant name="READ" value="1"> - </constant> - <constant name="WRITE" value="2"> - </constant> - <constant name="READ_WRITE" value="4"> - </constant> - - </constants> -</class> -<class category="Core" name="Dir"> - <brief_description> - Directory Tree Access Interface. - </brief_description> - <description> - Dir provides access to directories in the host platform (remote access to files in webserver in the web plugin, as web plugin does not access the local filesystem). - </description> - <methods> - <method name="list_dir_begin"> - <return type="bool"> - true if an error ocurred. - </return> - <description> - Begin a directory listing. This is done iteratively due to the positility of directories with a large amount of entries. - </description> - </method> - <method name="get_next"> - <return type="String"> - </return> - <description> - Get the next item. If the return value is empty (""), then the end of the directory has been reached. - </description> - </method> - <method name="current_is_dir"> - <return type="bool"> - </return> - <description> - Returns true if the current item is a directory (not a file). - </description> - </method> - <method name="list_dir_end"> - <description> - End the directory listing. - </description> - </method> - <method name="get_drive_count"> - <return type="int"> - </return> - <description> - Get the amount of drives (windows only, returns 0 on other platforms). - </description> - </method> - <method name="get_drive"> - <argument index="0" name="di" type="int"> - </argument> - <return type="String"> - </return> - <description> - Get the string (or character) representing the drive (such as "C","D",etc). - </description> - </method> - <method name="change_dir"> - <argument index="0" name="dir" type="String"> - </argument> - <return type="bool"> - </return> - <description> - Change the current directory of the dir access. "dir" can be either absolute or relative. - </description> - </method> - <method name="get_current_dir"> - <return type="String"> - </return> - <description> - Get the full path of the current dir. - </description> - </method> - <method name="get_dir_separator"> - <return type="String"> - </return> - <description> - Get the string or character most commonly used as drive separator in the host OS. - </description> - </method> - <method name="make_dir"> - <argument index="0" name="name" type="String"> - </argument> - <return type="bool"> - true on error. - </return> - <description> - Create a new directory. "name" can be either absolute or relative. - </description> - </method> - <method name="file_exists"> - <argument index="0" name="path" type="String"> - </argument> - <return type="bool"> - </return> - <description> - Returns true if a file exist. "path" can be either absolute or relative. - </description> - </method> - <method name="get_space_left"> - <return type="int"> - </return> - <description> - Return the space left on the device, in kilobytes. - </description> - </method> - </methods> -</class> -<class category="Core" name="VideoMode"> - <brief_description> - Video Mode structure. - </brief_description> - <description> - Describes a video mode. - </description> - <members> - <member name="width" type="int"> - </member> - <member name="height" type="int"> - </member> - <member name="fullscreen" type="bool"> - "true" if the video mode is full scren. - </member> - <member name="resizable" type="bool"> - "true" if the video mode can be resized to another video mode. - </member> - </members> -</class> -<class category="Core" name="Date"> - <brief_description> - Date structure. - </brief_description> - <description> - Describes a date. - </description> - <members> - <member name="year" type="int"> - year (integer) - </member> - <member name="day" type="int"> - day of the year - </member> - <member name="weekday" type="int"> - day of the week (0 to 6) - </member> - <member name="month" type="int"> - month of the year (0 to 11) - </member> - <member name="dst" type="bool"> - "true" if daylight savings is enabled. - </member> - </members> -</class> -<class category="Core" name="Time"> - <brief_description> - Current Time. - </brief_description> - <description> - Describes the current time. - </description> - <members> - <member name="hour" type="int"> - (0 to 11) - </member> - <member name="min" type="int"> - (0 to 59) - </member> - <member name="sec" type="int"> - (0 to 59) - </member> - </members> -</class> -<class category="Core" name="OS"> - <brief_description> - Operating System common functions. - </brief_description> - <description> - OS provides access to common host OS functions. "OS" Must not be instanced. All members are static (called like OS.get_name() ). - </description> - <methods> - <method name="alert"> - <argument index="0" name="text" type="String"> - </argument> - <description> - Produce an alert. On OSs such as windows or mac, this may result in a popup dialog. - </description> - </method> - <method name="set_mouse_show"> - <argument index="0" name="show" type="bool"> - </argument> - <description> - Determine the hardware cursor visibility (if available). - </description> - </method> - <method name="set_mouse_grab"> - <argument index="0" name="grab" type="bool"> - </argument> - <description> - Capture the hardware cursor (if available). - </description> - </method> - <method name="is_mouse_grab_enabled"> - <return type="bool"> - </return> - <description> - Returns true if the application is capturing the hardware cursor. - </description> - </method> - <method name="get_name"> - <return type="String"> - </return> - <description> - Get the name of the host OS or Platform. - </description> - </method> - <method name="set_video_mode"> - <argument index="0" name="mode" type="VideoMode"> - </argument> - <description> - Change the current videomode (if available). - </description> - </method> - <method name="get_video_mode"> - <return type="VideoMode"> - </return> - <description> - Get the current videomode. - </description> - </method> - <method name="get_date"> - <return type="Date"> - </return> - <description> - Get the current date. - </description> - </method> - <method name="get_time"> - <return type="Time"> - </return> - <description> - Get the current time. - </description> - </method> - <method name="get_ticks_msec"> - <return type="int"> - </return> - <description> - Get the amount of milliseconds since the app started. - </description> - </method> - <method name="delay_usec"> - <argument index="0" name="usec" type="int"> - </argument> - <description> - Suspend the calling thread for "usec" milliseconds - </description> - </method> - </methods> -</class> -<class category="Core" name="Math"> - <brief_description> - Common math functions. - </brief_description> - <description> - Math provides implementations of commonly used math functions."Math" shouldt not be instanced since all members are static (called like Math.cos() ). - </description> - <methods> - <method name="sin"> - <argument index="0" name="rad" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="cos"> - <argument index="0" name="rad" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="tan"> - <argument index="0" name="rad" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="asin"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="acos"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="atan2"> - <argument index="0" name="x" type="real"> - </argument> - <argument index="1" name="y" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="deg2rad"> - <argument index="0" name="deg" type="real"> - </argument> - <return type="real"> - </return> - <description> - Degrees to Radians conversion. - </description> - </method> - <method name="sqrt"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="pow"> - <argument index="0" name="base" type="real"> - </argument> - <argument index="1" name="power" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="exp"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="log"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="fmod"> - <argument index="0" name="x" type="real"> - </argument> - <argument index="1" name="y" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="stepify"> - <argument index="0" name="x" type="real"> - </argument> - <argument index="1" name="step" type="real"> - </argument> - <return type="real"> - </return> - <description> - Round to nearest (lowest) value in given step. - </description> - </method> - <method name="floor"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="round"> - <argument index="0" name="s" type="real"> - </argument> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="decimals"> - <argument index="0" name="s" type="real"> - </argument> - <return type="int"> - </return> - <description> - Returns the amount of decimals used by "s". - </description> - </method> - <method name="randf"> - <return type="real"> - </return> - <description> - Returns a random number fro 0 to 1 - </description> - </method> - <method name="random"> - <argument index="0" name="min" type="real"> - </argument> - <argument index="1" name="max" type="real"> - </argument> - <return type="real"> - </return> - <description> - Returns a random number between "min" and "max" - </description> - </method> - </methods> - <constants> - <constant name="PI" value="3.14159265358979323846"> - </constant> - </constants> - -</class> -<class category="Core" name="Shell"> - <brief_description> - Shell Execution interface. - </brief_description> - <description> - Shell allows the application to open a given URL in the host OS. It can be anything the host OS understands, from a web page to a media file. - </description> - <methods> - <method name="exec"> - <argument index="0" name="url" type="String"> - </argument> - <description> - Open any URL the host OS understands. - </description> - </method> - </methods> -</class> -<class category="Core" name="ResourceLoader"> - <brief_description> - Resource Loader. - </brief_description> - <description> - ResourceLoader loads resources from disk and returns a resource object. - </description> - <methods> - <method name="load"> - <argument index="0" name="path" type="String"> - </argument> - <return type="Resource"> - null on failure. - </return> - <description> - Open a resource in the given path. - </description> - </method> - </methods> -</class> -<class category="Core" name="SceneLoader"> - <brief_description> - Scene Loader - </brief_description> - <description> - SceneLoader loads scenes from disk and returns a scene node. - </description> - <methods> - <method name="load"> - <argument index="0" name="path" type="String"> - </argument> - <return type="Node"> - A scene node, null on error. - </return> - <description> - Load a scene from disk at given "path" and return a node object. - </description> - </method> - </methods> -</class> -<class category="Core" name="Object"> - <brief_description> - Base class for the Object Model. - </brief_description> - <description> - Object is the building block of most of the high level engine interfaces. The "Object" interface contains a reference to an actual internal Object. - Usually, Object memory should not be managed by the API, as resources will be fred automatically when not in use and nodes are deleted by their parent nodes. - </description> - <methods> - <method name="free"> - <description> - Free the Object reference. This should not be used with nodes inside a scene tree, as they are removed by their parent node. This function can also be used to unreference resources. - </description> - </method> - <method name="get_type"> - <return type="String"> - </return> - <description> - Get a string with the type name of the object. - </description> - </method> - <method name="has_instance"> - <return type="bool"> - </return> - <description> - Returns true if the Object datatype contains a reference to an actual object instance. - </description> - </method> - <method name="get_instance_ID"> - <return type="bool"> - </return> - <description> - Return the instance ID of the object. Every Object has a unique instance ID. - </description> - </method> - <method name="is_type" qualifiers="const" > - <return type="bool" > - </return> - <argument index="0" name="type" type="String" > - </argument> - <description> - Return true if the type of the object class (or any base clases) match "type. - </description> - </method> - <method name="set" > - <argument index="0" name="property" type="String" > - </argument> - <argument index="1" name="value" type="var" > - </argument> - <description> - Set a property "property", with any value "value. This function can be inherited with "_set" (but base class "_set" will still be called). - </description> - </method> - <method name="get" qualifiers="const" > - <return type="var" > - </return> - <argument index="0" name="property" type="String" > - </argument> - <description> - Return a property "property". This function can be inherited with "_get" (but base class "_get" will still be called). - </description> - </method> - <method name="notification" > - <argument index="0" name="what" type="int" > - </argument> - <argument index="1" name="reverse" type="bool" default="false" > - </argument> - <description> - Perform a notification. Notifications are quick ways to tell an Object that something happened or changed regarding it's state and surroundings. This function can be inherited with "_notification" (but base class "_notification" will still be called). - </description> - </method> - <method name="set_script" > - <argument index="0" name="script" type="RefPtr" > - </argument> - <description> - Set the script of the object. Any object can contain a script. Scripts behave as if they inherited the object they are set to - </description> - </method> - <method name="get_script" qualifiers="const" > - <return type="RefPtr" > - </return> - <description> - Return the script of the object. Any object can contain a script. Scripts behave as if they inherited the object they are set to - </description> - </method> - <method name="set_meta" > - <argument index="0" name="name" type="String" > - </argument> - <description> - Set a meta property. Meta properties are just containers for setting and retrieving any custom data to an object. Metaproperties are also saved with the object. - </description> - </method> - <method name="get_meta" qualifiers="const" > - <argument index="0" name="name" type="String" > - </argument> - <description> - Return a meta property. Meta properties are just containers for setting and retrieving any custom data to an object. Metaproperties are also saved with the object. - </description> - </method> - <method name="has_meta" qualifiers="const" > - <return type="bool" > - </return> - <argument index="0" name="name" type="String" > - </argument> - <description> - Return wether an object has a meta property. Meta properties are just containers for setting and retrieving any custom data to an object. Metaproperties are also saved with the object. - </description> - </method> - <method name="get_meta_list" qualifiers="const" > - <return type="StringArray" > - </return> - <description> - Return the list of meta properties in the object. Meta properties are just containers for setting and retrieving any custom data to an object. Metaproperties are also saved with the object. - </description> - </method> - <method name="call" > - <argument index="0" name="method" type="String" > - </argument> - <description> - Call any method in the object (syntax: call("method", .. arguments..). - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_POSTINITIALIZE" value="0"> - This notification is called right after the object is done initializing - </constant> - <constant name="NOTIFICATION_PREDELETE" value="1"> - This notification is called right before the object will e deleted. - </constant> - </constants> -</class> -<class category="Core" name="Key"> - <brief_description> - All Symbolic Key Names - </brief_description> - <description> - Key is an enumaration containing the constants for all the symbolic key names. They are used directly (not with Key. prefix). This value is used in the "scancode" field of the "KEY" InputEvent. - </description> - <constants> - <constant name="SPKEY">Special Key Mask</constant> - <constant name="KEY_ESCAPE"></constant> - <constant name="KEY_TAB"></constant> - <constant name="KEY_BACKTAB"></constant> - <constant name="KEY_BACKSPACE"></constant> - <constant name="KEY_RETURN"></constant> - <constant name="KEY_ENTER"></constant> - <constant name="KEY_INSERT"></constant> - <constant name="KEY_DELETE"></constant> - <constant name="KEY_PAUSE"></constant> - <constant name="KEY_PRINT"></constant> - <constant name="KEY_SYSREQ"></constant> - <constant name="KEY_CLEAR"></constant> - <constant name="KEY_HOME"></constant> - <constant name="KEY_END"></constant> - <constant name="KEY_LEFT"></constant> - <constant name="KEY_UP"></constant> - <constant name="KEY_RIGHT"></constant> - <constant name="KEY_DOWN"></constant> - <constant name="KEY_PAGEUP"></constant> - <constant name="KEY_PAGEDOWN"></constant> - <constant name="KEY_SHIFT"></constant> - <constant name="KEY_CONTROL"></constant> - <constant name="KEY_META"></constant> - <constant name="KEY_ALT"></constant> - <constant name="KEY_CAPSLOCK"></constant> - <constant name="KEY_NUMLOCK"></constant> - <constant name="KEY_SCROLLLOCK"></constant> - <constant name="KEY_F1"></constant> - <constant name="KEY_F2"></constant> - <constant name="KEY_F3"></constant> - <constant name="KEY_F4"></constant> - <constant name="KEY_F5"></constant> - <constant name="KEY_F6"></constant> - <constant name="KEY_F7"></constant> - <constant name="KEY_F8"></constant> - <constant name="KEY_F9"></constant> - <constant name="KEY_F10"></constant> - <constant name="KEY_F11"></constant> - <constant name="KEY_F12"></constant> - <constant name="KEY_F13"></constant> - <constant name="KEY_F14"></constant> - <constant name="KEY_F15"></constant> - <constant name="KEY_F16"></constant> - <constant name="KEY_KP_ENTER"></constant> - <constant name="KEY_KP_MULTIPLY"></constant> - <constant name="KEY_KP_DIVIDE"></constant> - <constant name="KEY_KP_SUBSTRACT"></constant> - <constant name="KEY_KP_PERIOD"></constant> - <constant name="KEY_KP_ADD"></constant> - <constant name="KEY_KP_0"></constant> - <constant name="KEY_KP_1"></constant> - <constant name="KEY_KP_2"></constant> - <constant name="KEY_KP_3"></constant> - <constant name="KEY_KP_4"></constant> - <constant name="KEY_KP_5"></constant> - <constant name="KEY_KP_6"></constant> - <constant name="KEY_KP_7"></constant> - <constant name="KEY_KP_8"></constant> - <constant name="KEY_KP_9"></constant> - <constant name="KEY_SUPER_L"></constant> - <constant name="KEY_SUPER_R"></constant> - <constant name="KEY_MENU"></constant> - <constant name="KEY_HYPER_L"></constant> - <constant name="KEY_HYPER_R"></constant> - <constant name="KEY_HELP"></constant> - <constant name="KEY_DIRECTION_L"></constant> - <constant name="KEY_DIRECTION_R"></constant> - <constant name="KEY_BACK"></constant> - <constant name="KEY_FORWARD"></constant> - <constant name="KEY_STOP"></constant> - <constant name="KEY_REFRESH"></constant> - <constant name="KEY_VOLUMEDOWN"></constant> - <constant name="KEY_VOLUMEMUTE"></constant> - <constant name="KEY_VOLUMEUP"></constant> - <constant name="KEY_BASSBOOST"></constant> - <constant name="KEY_BASSUP"></constant> - <constant name="KEY_BASSDOWN"></constant> - <constant name="KEY_TREBLEUP"></constant> - <constant name="KEY_TREBLEDOWN"></constant> - <constant name="KEY_MEDIAPLAY"></constant> - <constant name="KEY_MEDIASTOP"></constant> - <constant name="KEY_MEDIAPREVIOUS"></constant> - <constant name="KEY_MEDIANEXT"></constant> - <constant name="KEY_MEDIARECORD"></constant> - <constant name="KEY_HOMEPAGE"></constant> - <constant name="KEY_FAVORITES"></constant> - <constant name="KEY_SEARCH"></constant> - <constant name="KEY_STANDBY"></constant> - <constant name="KEY_OPENURL"></constant> - <constant name="KEY_LAUNCHMAIL"></constant> - <constant name="KEY_LAUNCHMEDIA"></constant> - <constant name="KEY_LAUNCH0"></constant> - <constant name="KEY_LAUNCH1"></constant> - <constant name="KEY_LAUNCH2"></constant> - <constant name="KEY_LAUNCH3"></constant> - <constant name="KEY_LAUNCH4"></constant> - <constant name="KEY_LAUNCH5"></constant> - <constant name="KEY_LAUNCH6"></constant> - <constant name="KEY_LAUNCH7"></constant> - <constant name="KEY_LAUNCH8"></constant> - <constant name="KEY_LAUNCH9"></constant> - <constant name="KEY_LAUNCHA"></constant> - <constant name="KEY_LAUNCHB"></constant> - <constant name="KEY_LAUNCHC"></constant> - <constant name="KEY_LAUNCHD"></constant> - <constant name="KEY_LAUNCHE"></constant> - <constant name="KEY_LAUNCHF"></constant> - - <constant name="KEY_UNKNOWN"></constant> - <constant name="KEY_SPACE"></constant> - <constant name="KEY_EXCLAM"></constant> - <constant name="KEY_QUOTEDBL"></constant> - <constant name="KEY_NUMBERSIGN"></constant> - <constant name="KEY_DOLLAR"></constant> - <constant name="KEY_PERCENT"></constant> - <constant name="KEY_AMPERSAND"></constant> - <constant name="KEY_APOSTROPHE"></constant> - <constant name="KEY_PARENLEFT"></constant> - <constant name="KEY_PARENRIGHT"></constant> - <constant name="KEY_ASTERISK"></constant> - <constant name="KEY_PLUS"></constant> - <constant name="KEY_COMMA"></constant> - <constant name="KEY_MINUS"></constant> - <constant name="KEY_PERIOD"></constant> - <constant name="KEY_SLASH"></constant> - <constant name="KEY_0"></constant> - <constant name="KEY_1"></constant> - <constant name="KEY_2"></constant> - <constant name="KEY_3"></constant> - <constant name="KEY_4"></constant> - <constant name="KEY_5"></constant> - <constant name="KEY_6"></constant> - <constant name="KEY_7"></constant> - <constant name="KEY_8"></constant> - <constant name="KEY_9"></constant> - <constant name="KEY_COLON"></constant> - <constant name="KEY_SEMICOLON"></constant> - <constant name="KEY_LESS"></constant> - <constant name="KEY_EQUAL"></constant> - <constant name="KEY_GREATER"></constant> - <constant name="KEY_QUESTION"></constant> - <constant name="KEY_AT"></constant> - <constant name="KEY_A"></constant> - <constant name="KEY_B"></constant> - <constant name="KEY_C"></constant> - <constant name="KEY_D"></constant> - <constant name="KEY_E"></constant> - <constant name="KEY_F"></constant> - <constant name="KEY_G"></constant> - <constant name="KEY_H"></constant> - <constant name="KEY_I"></constant> - <constant name="KEY_J"></constant> - <constant name="KEY_K"></constant> - <constant name="KEY_L"></constant> - <constant name="KEY_M"></constant> - <constant name="KEY_N"></constant> - <constant name="KEY_O"></constant> - <constant name="KEY_P"></constant> - <constant name="KEY_Q"></constant> - <constant name="KEY_R"></constant> - <constant name="KEY_S"></constant> - <constant name="KEY_T"></constant> - <constant name="KEY_U"></constant> - <constant name="KEY_V"></constant> - <constant name="KEY_W"></constant> - <constant name="KEY_X"></constant> - <constant name="KEY_Y"></constant> - <constant name="KEY_Z"></constant> - <constant name="KEY_BRACKETLEFT"></constant> - <constant name="KEY_BACKSLASH"></constant> - <constant name="KEY_BRACKETRIGHT"></constant> - <constant name="KEY_ASCIICIRCUM"></constant> - <constant name="KEY_UNDERSCORE"></constant> - <constant name="KEY_QUOTELEFT"></constant> - <constant name="KEY_BRACELEFT"></constant> - <constant name="KEY_BAR"></constant> - <constant name="KEY_BRACERIGHT"></constant> - <constant name="KEY_ASCIITILDE"></constant> - <constant name="KEY_NOBREAKSPACE"></constant> - <constant name="KEY_EXCLAMDOWN"></constant> - <constant name="KEY_CENT"></constant> - <constant name="KEY_STERLING"></constant> - <constant name="KEY_CURRENCY"></constant> - <constant name="KEY_YEN"></constant> - <constant name="KEY_BROKENBAR"></constant> - <constant name="KEY_SECTION"></constant> - <constant name="KEY_DIAERESIS"></constant> - <constant name="KEY_COPYRIGHT"></constant> - <constant name="KEY_ORDFEMININE"></constant> - <constant name="KEY_GUILLEMOTLEFT"></constant> - <constant name="KEY_NOTSIGN"></constant> - <constant name="KEY_HYPHEN"></constant> - <constant name="KEY_REGISTERED"></constant> - <constant name="KEY_MACRON"></constant> - <constant name="KEY_DEGREE"></constant> - <constant name="KEY_PLUSMINUS"></constant> - <constant name="KEY_TWOSUPERIOR"></constant> - <constant name="KEY_THREESUPERIOR"></constant> - <constant name="KEY_ACUTE"></constant> - <constant name="KEY_MU"></constant> - <constant name="KEY_PARAGRAPH"></constant> - <constant name="KEY_PERIODCENTERED"></constant> - <constant name="KEY_CEDILLA"></constant> - <constant name="KEY_ONESUPERIOR"></constant> - <constant name="KEY_MASCULINE"></constant> - <constant name="KEY_GUILLEMOTRIGHT"></constant> - <constant name="KEY_ONEQUARTER"></constant> - <constant name="KEY_ONEHALF"></constant> - <constant name="KEY_THREEQUARTERS"></constant> - <constant name="KEY_QUESTIONDOWN"></constant> - <constant name="KEY_AGRAVE"></constant> - <constant name="KEY_AACUTE"></constant> - <constant name="KEY_ACIRCUMFLEX"></constant> - <constant name="KEY_ATILDE"></constant> - <constant name="KEY_ADIAERESIS"></constant> - <constant name="KEY_ARING"></constant> - <constant name="KEY_AE"></constant> - <constant name="KEY_CCEDILLA"></constant> - <constant name="KEY_EGRAVE"></constant> - <constant name="KEY_EACUTE"></constant> - <constant name="KEY_ECIRCUMFLEX"></constant> - <constant name="KEY_EDIAERESIS"></constant> - <constant name="KEY_IGRAVE"></constant> - <constant name="KEY_IACUTE"></constant> - <constant name="KEY_ICIRCUMFLEX"></constant> - <constant name="KEY_IDIAERESIS"></constant> - <constant name="KEY_ETH"></constant> - <constant name="KEY_NTILDE"></constant> - <constant name="KEY_OGRAVE"></constant> - <constant name="KEY_OACUTE"></constant> - <constant name="KEY_OCIRCUMFLEX"></constant> - <constant name="KEY_OTILDE"></constant> - <constant name="KEY_ODIAERESIS"></constant> - <constant name="KEY_MULTIPLY"></constant> - <constant name="KEY_OOBLIQUE"></constant> - <constant name="KEY_UGRAVE"></constant> - <constant name="KEY_UACUTE"></constant> - <constant name="KEY_UCIRCUMFLEX"></constant> - <constant name="KEY_UDIAERESIS"></constant> - <constant name="KEY_YACUTE"></constant> - <constant name="KEY_THORN"></constant> - <constant name="KEY_SSHARP"></constant> - - <constant name="KEY_DIVISION"></constant> - <constant name="KEY_YDIAERESIS"></constant> - - <constant name="KEY_CODE_MASK"></constant> - <constant name="KEY_MODIFIER_MASK"></constant> - - <constant name="KEY_MASK_SHIFT"></constant> - <constant name="KEY_MASK_ALT"></constant> - <constant name="KEY_MASK_META"></constant> - <constant name="KEY_MASK_CTRL"></constant> - <constant name="KEY_MASK_KPAD"></constant> - <constant name="KEY_MASK_GROUP_SWITCH"></constant> - - </constants> -</class> -<class category="Core" name="PropertyHint"> - <brief_description> - Property Hints. - </brief_description> - <description> - PropertyHint hints editors on how to edit a property. In many cases, hint_string (in the PropertyInfo) will contain extra data. These constants are used globally ("PropertyHint" class doesn't exist"). - </description> - <constants> - <constant name="PROPERTY_HINT_NONE"></constant> - <constant name="PROPERTY_HINT_RANGE">Hint_string defined as "min,max,step - "</constant> - <constant name="PROPERTY_HINT_ENUM">Values such as 0,1,2 are represented in hint_string as "A,B,C"</constant> - <constant name="PROPERTY_HINT_LENGTH">hint_string is the length of an array type.</constant> - <constant name="PROPERTY_HINT_FLAGS">Flags names are in hint_string from MSB to LSB as "flag8,fla7,flag6,,,,flag1"</constant> - <constant name="PROPERTY_HINT_PATH">Property is a path.</constant> - <constant name="PROPERTY_HINT_FILE">Property is a path to a file.</constant> - <constant name="PROPERTY_HINT_DIR">Property is a path to a dir.</constant> - <constant name="PROPERTY_HINT_RESOURCE_TYPE">hint_string contains the valid resource types the property accept (separated by ",").</constant> - </constants> -</class> -<class category="Core" name="PropertyUsage"> - <brief_description> - Usage for an object property. - </brief_description> - <description> - PropertyUsage defines a list of (inclusive) usages that can be ORed together to specify how the property will be treated in different scenarios. These constants are used globally ("PropertyUsage" class doesn't exist"). - </description> - <constants> - <constant name="PROPERTY_USAGE_STORAGE"> Property is Saved/Loaded from disk.</constant> - <constant name="PROPERTY_USAGE_EDITOR">Property is visible in editor (for editing).</constant> - <constant name="PROPERTY_USAGE_NETWORK">Property can be syncronized on network.</constant> - <constant name="PROPERTY_USAGE_DEFAULT">Default usage.</constant> - </constants> -</class> -<class category="Core" name="Type"> - <brief_description> - Valid Data Types. - </brief_description> - <description> - Type consists of a list of valid types. It is usually used for property type hinting. These constants are used globally ("Type" class doesn't exist"). - </description> - <constants> - <constant name="TYPE_NIL"></constant> - <constant name="TYPE_BOOL"></constant> - <constant name="TYPE_INT"></constant> - <constant name="TYPE_REAL"></constant> - <constant name="TYPE_STRING"></constant> - <constant name="TYPE_VECTOR2"></constant> - <constant name="TYPE_RECT2"></constant> - <constant name="TYPE_VECTOR3"></constant> - <constant name="TYPE_PLANE"></constant> - <constant name="TYPE_QUAT"></constant> - <constant name="TYPE_AABB"></constant> - <constant name="TYPE_MATRIX3"></constant> - <constant name="TYPE_TRANSFORM"></constant> - <constant name="TYPE_COLOR"></constant> - <constant name="TYPE_IMAGE"></constant> - <constant name="TYPE_NODE_PATH"></constant> - <constant name="TYPE_RESOURCE"></constant> - <constant name="TYPE_RID"></constant> - <constant name="TYPE_OBJECT"></constant> - <constant name="TYPE_INPUT_EVENT"></constant> - <constant name="TYPE_DICTIONARY"></constant> - <constant name="TYPE_ARRAY"></constant> - <constant name="TYPE_RAW_ARRAY"></constant> - <constant name="TYPE_INT_ARRAY"></constant> - <constant name="TYPE_REAL_ARRAY"></constant> - <constant name="TYPE_STRING_ARRAY"></constant> - <constant name="TYPE_VECTOR3_ARRAY"></constant> - <constant name="TYPE_COLOR_ARRAY"></constant> - </constants> -</class> - - -<class category="Core" name="Error"> - <brief_description> - List of generic errors. - </brief_description> - <description> - Error is a list of generic errors - </description> - <constants> - <constant name="OK"></constant> - <constant name="FAILED"> Generic fail error</constant> - <constant name="ERR_UNAVAILABLE"> What is requested is unsupported/unavailable</constant> - <constant name="ERR_UNCONFIGURED"> The object being used hasnt been properly set up yet</constant> - <constant name="ERR_UNAUTHORIZED"> Missing credentials for requested resource</constant> - <constant name="ERR_PARAMETER_RANGE_ERROR"> Parameter given out of range</constant> - <constant name="ERR_OUT_OF_MEMORY"> Out of memory</constant> - <constant name="ERR_FILE_NOT_FOUND"></constant> - <constant name="ERR_FILE_BAD_DRIVE"></constant> - <constant name="ERR_FILE_BAD_PATH"></constant> - <constant name="ERR_FILE_NO_PERMISSION"></constant> - <constant name="ERR_FILE_ALREADY_IN_USE"></constant> - <constant name="ERR_FILE_CANT_OPEN"></constant> - <constant name="ERR_FILE_CANT_WRITE"></constant> - <constant name="ERR_FILE_CANT_READ"></constant> - <constant name="ERR_FILE_UNRECOGNIZED"></constant> - <constant name="ERR_FILE_CORRUPT"></constant> - <constant name="ERR_FILE_EOF"></constant> - <constant name="ERR_CANT_OPEN"> Can't open a resource/socket/file</constant> - <constant name="ERR_CANT_CREATE"></constant> - <constant name="ERROR_QUERY_FAILED"></constant> - <constant name="ERR_ALREADY_IN_USE"></constant> - <constant name="ERR_LOCKED"> resource is locked</constant> - <constant name="ERR_TIMEOUT"></constant> - <constant name="ERR_CANT_AQUIRE_RESOURCE"></constant> - <constant name="ERR_INVALID_DATA"> Data passed is invalid</constant> - <constant name="ERR_INVALID_PARAMETER"> Parameter passed is invalid</constant> - <constant name="ERR_ALREADY_EXISTS"> When adding"> item already exists</constant> - <constant name="ERR_DOES_NOT_EXIST"> When retrieving/erasing"> it item does not exist</constant> - <constant name="ERR_DATABASE_CANT_READ"> database is full</constant> - <constant name="ERR_DATABASE_CANT_WRITE"> database is full</constant> - <constant name="ERR_COMPILATION_FAILED"></constant> - <constant name="ERR_METHOD_NOT_FOUND"></constant> - <constant name="ERR_LINK_FAILED"></constant> - <constant name="ERR_SCRIPT_FAILED"></constant> - <constant name="ERR_CYCLIC_LINK"></constant> - <constant name="ERR_BUSY"></constant> - <constant name="ERR_HELP"> user requested help!!</constant> - <constant name="ERR_BUG"> a bug in the software certainly happeneddue to a double check failing or unexpected behavior.</constant> - <constant name="ERR_WTF "> an impossible to trigger check due to paranoid programmer was triggered</constant> - </constants> -</class> -</doc> - - diff --git a/doc/deferred_format.txt b/doc/deferred_format.txt deleted file mode 100644 index 76a158a3ce..0000000000 --- a/doc/deferred_format.txt +++ /dev/null @@ -1,33 +0,0 @@ -deferred: - -ar ag ab gl - accumulation RGB + glow - -nx ny mx my? - normal, motion -dr dg db sm - diffuse, shademodel -sr sg sb sp - specular OR shadeparams - -ar ag ab gl -nx ny sp sp -dr dg db se -444 6 -se can be 6 bits, 2 for shade model - -shade models: - -0 - none -1 - wrap -2 - toon -3 - fresne - - - -sp: 2 bits what - 6 bits param - -16 - - - - - - - diff --git a/doc/demos.txt b/doc/demos.txt deleted file mode 100644 index cf56a5cbc6..0000000000 --- a/doc/demos.txt +++ /dev/null @@ -1,40 +0,0 @@ --Oceano --Portales --Grilla --Personaje --Auto (?) --Fisica --Fisica Idle --Low level APIS (Server) --Sonido Posicional --Custom Shaders --HDR --Trees Waving --luces --fixed material --shader material --synctoaudio speech and speex --particulas con gif animados para mostrar que es cada parametro --soporte de syntax hilight de gdscript para editores mas comunes --instanciar enemigos usando duplicate --simulated motion con animacion --animation player controla otro animation player (tipo camina de lugar a otro y saluda) --corutinas y loops con yield para animation, audio, etc --CCD (bullets) - --custom gizmos, editor plugins en script - -Clases que necesitan tutorial. - -Animation/AnimationPlayer -Area2D (space override, notifications) -custom container demo -custon drawing in a canvas item -ignore mouse on top of button -input in a game, with _unhandled_input -demo containers -Control, anchors e input event handling -lots of 2D physics examples -dictionary and array doc of passing by reference? - - diff --git a/doc/engine_classes.xml b/doc/engine_classes.xml deleted file mode 100644 index 43602e26e9..0000000000 --- a/doc/engine_classes.xml +++ /dev/null @@ -1,17940 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<doc version="0.99.2555-pre-beta" name="Engine Types"> -<class name="AcceptDialog" inherits="WindowDialog" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_ok"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_label"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_hide_on_ok"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_hide_on_ok" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="add_button"> - <return type="Button"> - </return> - <argument index="0" name="text" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="add_cancel"> - <return type="Button"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="register_text_enter"> - <argument index="0" name="line_edit" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="confirmed"> - <description> - </description> - </signal> - <signal name="custom_action"> - <argument index="0" name="action" type="String"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Animation" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_track"> - <return type="int"> - </return> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="at_pos" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="remove_track"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_track_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="track_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_path" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_set_path"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="track_move_up"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_move_down"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transform_track_insert_key"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time" type="real"> - </argument> - <argument index="2" name="loc" type="Vector3"> - </argument> - <argument index="3" name="rot" type="Quat"> - </argument> - <argument index="4" name="scale" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="track_insert_key"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time" type="real"> - </argument> - <argument index="2" name="key" type="var"> - </argument> - <argument index="3" name="transition" type="real" default="1"> - </argument> - <description> - </description> - </method> - <method name="track_remove_key"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_remove_key_at_pos"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="pos" type="real"> - </argument> - <description> - </description> - </method> - <method name="track_set_key_value"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="track_set_key_transition"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <argument index="2" name="transition" type="real"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_transition" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_value" qualifiers="const"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_time" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_find_key" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time" type="real"> - </argument> - <argument index="2" name="exact" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="track_set_interpolation_type"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="interpolation" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_interpolation_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transform_track_interpolate" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="value_track_set_continuous"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="continuous" type="bool"> - </argument> - <description> - </description> - </method> - <method name="value_track_is_continuous" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="value_track_get_key_indices" qualifiers="const"> - <return type="IntArray"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <argument index="2" name="delta" type="real"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_key_indices" qualifiers="const"> - <return type="IntArray"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <argument index="2" name="delta" type="real"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_params" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_length"> - <argument index="0" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_loop"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="TYPE_TRANSFORM" value="0"> - </constant> - <constant name="TYPE_VALUE" value="1"> - </constant> - <constant name="TYPE_METHOD" value="2"> - </constant> - <constant name="INTERPOLATION_NEAREST" value="0"> - </constant> - <constant name="INTERPOLATION_LINEAR" value="1"> - </constant> - <constant name="INTERPOLATION_CUBIC" value="2"> - </constant> - </constants> -</class> -<class name="AnimationPlayer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_animation"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="animation" type="Animation"> - </argument> - <description> - </description> - </method> - <method name="remove_animation"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="rename_animation"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="newname" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_animation" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_animation" qualifiers="const"> - <return type="Animation"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_animation_list" qualifiers="const"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - <method name="set_blend_time"> - <argument index="0" name="anim_from" type="String"> - </argument> - <argument index="1" name="anim_to" type="String"> - </argument> - <argument index="2" name="sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_blend_time" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="anim_from" type="String"> - </argument> - <argument index="1" name="anim_to" type="String"> - </argument> - <description> - </description> - </method> - <method name="play"> - <argument index="0" name="name" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="stop_all"> - <description> - </description> - </method> - <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_current_animation"> - <argument index="0" name="anim" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_current_animation" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="queue"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_pause"> - <argument index="0" name="paused" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_paused" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_speed"> - <argument index="0" name="speed" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_speed" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_autoplay"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_autoplay" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="seek"> - <argument index="0" name="pos_sec" type="real"> - </argument> - <argument index="1" name="update" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="find_animation" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="animation" type="Animation"> - </argument> - <description> - </description> - </method> - <method name="clear_caches"> - <description> - </description> - </method> - <method name="set_animation_process_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_animation_process_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="finished"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="ANIMATION_PROCESS_FIXED" value="0"> - </constant> - <constant name="ANIMATION_PROCESS_IDLE" value="1"> - </constant> - </constants> -</class> -<class name="AnimationTreePlayer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_node"> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_node_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="node_set_name"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="node_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="node_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="node_get_input_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="animation_node_set_animation"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="animation" type="Animation"> - </argument> - <description> - </description> - </method> - <method name="animation_node_get_animation" qualifiers="const"> - <return type="Animation"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_fadein_time"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_fadein_time" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_fadeout_time"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_fadeout_time" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart_delay"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="delay_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart_random_delay"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="rand_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_has_autorestart" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_autorestart_delay" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_autorestart_random_delay" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_start"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_stop"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="mix_node_set_amount"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="mix_node_get_amount" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend2_node_set_amount"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="real"> - </argument> - <description> - </description> - </method> - <method name="blend2_node_get_amount" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend3_node_set_amount"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="real"> - </argument> - <description> - </description> - </method> - <method name="blend3_node_get_amount" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend4_node_set_amount"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="blend4_node_get_amount" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="timescale_node_set_scale"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="timescale_node_get_scale" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="timeseek_node_seek"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="pos_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_input_count"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="count" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_input_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_delete_input"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_input_auto_advance"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <argument index="2" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="transition_node_has_input_auto_advance" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_xfade_time"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_xfade_time" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_current"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_current" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="node_set_pos"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="screen_pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="node_get_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_node"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="connect"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_id" type="int"> - </argument> - <argument index="2" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_id" type="int"> - </argument> - <argument index="2" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="disconnect"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_active"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_active" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_base_path"> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_base_path" qualifiers="const"> - <return type="NodePath"> - </return> - <description> - </description> - </method> - <method name="get_node_list"> - <return type="IntArray"> - </return> - <description> - </description> - </method> - <method name="reset"> - <description> - </description> - </method> - <method name="recompute_caches"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NODE_OUTPUT" value="0"> - </constant> - <constant name="NODE_ANIMATION" value="1"> - </constant> - <constant name="NODE_ONESHOT" value="2"> - </constant> - <constant name="NODE_MIX" value="3"> - </constant> - <constant name="NODE_BLEND2" value="4"> - </constant> - <constant name="NODE_BLEND3" value="5"> - </constant> - <constant name="NODE_BLEND4" value="6"> - </constant> - <constant name="NODE_TIMESCALE" value="7"> - </constant> - <constant name="NODE_TIMESEEK" value="8"> - </constant> - <constant name="NODE_TRANSITION" value="9"> - </constant> - </constants> -</class> -<class name="Area2D" inherits="CollisionObject2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_override_space_params"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_overriding_space_params" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_gravity_is_point"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_gravity_a_point" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_gravity_vector"> - <argument index="0" name="vector" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_gravity_vector" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_gravity"> - <argument index="0" name="gravity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_gravity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_density"> - <argument index="0" name="density" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_density" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_priority"> - <argument index="0" name="priority" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_priority" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_enable_monitoring"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_monitoring_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="body_enter"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="body_enter_shape"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="area_shape" type="int"> - </argument> - <description> - </description> - </signal> - <signal name="body_exit"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="body_exit_shape"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="area_shape" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="AudioServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="sample_create"> - <return type="RID"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="stereo" type="bool"> - </argument> - <argument index="2" name="length" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_set_description"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="description" type="String"> - </argument> - <description> - </description> - </method> - <method name="sample_get_description" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="sample_get_format" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_is_stereo" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_get_length" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_signed_data"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="data" type="RealArray"> - </argument> - <description> - </description> - </method> - <method name="sample_set_data"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="arg1" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="sample_get_data" qualifiers="const"> - <return type="RawArray"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_mix_rate"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="mix_rate" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_mix_rate" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_format"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="loop_format" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_format" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_begin"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_begin" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_end"> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_end" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="voice_play"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_set_volume"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="volume" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_pan"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="pan" type="real"> - </argument> - <argument index="2" name="depth" type="real" default="0"> - </argument> - <argument index="3" name="height" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="voice_set_filter"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="cutoff" type="real"> - </argument> - <argument index="3" name="resonance" type="real"> - </argument> - <argument index="4" name="gain" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="voice_set_chorus"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="chorus" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_reverb"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="room" type="int"> - </argument> - <argument index="2" name="reverb" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_mix_rate"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="rate" type="int"> - </argument> - <description> - </description> - </method> - <method name="voice_set_positional"> - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="voice_get_volume" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan_height" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan_depth" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_cutoff" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_resonance" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_chorus" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_reverb_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_reverb" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_mix_rate" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_is_positional" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_stop"> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="free_rid"> - <argument index="0" name="rid" type="RID"> - </argument> - <description> - </description> - </method> - <method name="set_stream_global_volume_scale"> - <argument index="0" name="scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_stream_global_volume_scale" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_mixer_global_volume_scale"> - <argument index="0" name="scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_mixer_global_volume_scale" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="SAMPLE_FORMAT_PCM8" value="0"> - </constant> - <constant name="SAMPLE_FORMAT_PCM16" value="1"> - </constant> - <constant name="SAMPLE_FORMAT_IMA_ADPCM" value="2"> - </constant> - <constant name="SAMPLE_LOOP_NONE" value="0"> - </constant> - <constant name="SAMPLE_LOOP_FORWARD" value="1"> - </constant> - <constant name="SAMPLE_LOOP_PING_PONG" value="2"> - </constant> - <constant name="FILTER_NONE" value="0"> - </constant> - <constant name="FILTER_LOWPASS" value="1"> - </constant> - <constant name="FILTER_BANDPASS" value="2"> - </constant> - <constant name="FILTER_HIPASS" value="3"> - </constant> - <constant name="FILTER_NOTCH" value="4"> - </constant> - <constant name="FILTER_BANDLIMIT" value="6"> - </constant> - <constant name="REVERB_SMALL" value="0"> - </constant> - <constant name="REVERB_MEDIUM" value="1"> - </constant> - <constant name="REVERB_LARGE" value="2"> - </constant> - <constant name="REVERB_HALL" value="3"> - </constant> - </constants> -</class> -<class name="AudioServerSW" inherits="AudioServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="AudioStream" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="play"> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="seek_pos"> - <argument index="0" name="pos" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_update_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="update"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="UPDATE_NONE" value="0"> - </constant> - <constant name="UPDATE_IDLE" value="1"> - </constant> - <constant name="UPDATE_THREAD" value="2"> - </constant> - </constants> -</class> -<class name="AudioStreamGibberish" inherits="AudioStream" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_phonemes"> - <argument index="0" name="phonemes" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_phonemes" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_pitch_scale"> - <argument index="0" name="pitch_scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_pitch_scale" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_pitch_random_scale"> - <argument index="0" name="pitch_random_scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_pitch_random_scale" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_xfade_time"> - <argument index="0" name="sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_xfade_time" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="AudioStreamMPC" inherits="AudioStreamResampled" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_file"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_file" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="AudioStreamOGGVorbis" inherits="AudioStreamResampled" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="AudioStreamResampled" inherits="AudioStream" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="AudioStreamSpeex" inherits="AudioStreamResampled" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_file"> - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_file" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="BCSFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BGColorFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BGImageFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BaseButton" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_pressed"> - <argument index="0" name="pressed" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_pressed" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_toggle_mode"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_toggle_mode" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_disabled"> - <argument index="0" name="disabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_disabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_click_on_press"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_click_on_press" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="toggled"> - <argument index="0" name="pressed" type="bool"> - </argument> - <description> - </description> - </signal> - <signal name="pressed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="BodyShape" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BoxContainer" inherits="Container" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BoxShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_extents"> - <argument index="0" name="extents" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_extents" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Button" inherits="BaseButton" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_icon"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="set_flat"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_clip_text"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_clip_text" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_flat" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ButtonArray" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_button"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="add_icon_button"> - <argument index="0" name="icon" type="Object"> - </argument> - <argument index="1" name="text" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="set_button_text"> - <argument index="0" name="button" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_button_icon"> - <argument index="0" name="button" type="int"> - </argument> - <argument index="1" name="icon" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_button_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="button" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button_icon" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="button" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selected" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_hovered" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_selected"> - <argument index="0" name="button" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_button"> - <argument index="0" name="button" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - </methods> - <signals> - <signal name="button_selected"> - <argument index="0" name="button" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="ALIGN_BEGIN" value="0"> - </constant> - <constant name="ALIGN_CENTER" value="1"> - </constant> - <constant name="ALIGN_END" value="2"> - </constant> - <constant name="ALIGN_FILL" value="3"> - </constant> - <constant name="ALIGN_EXPAND_FILL" value="4"> - </constant> - </constants> -</class> -<class name="ButtonGroup" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_pressed_button" qualifiers="const"> - <return type="BaseButton"> - </return> - <description> - </description> - </method> - <method name="get_pressed_button_index" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_focused_button" qualifiers="const"> - <return type="BaseButton"> - </return> - <description> - </description> - </method> - <method name="get_button_list" qualifiers="const"> - <return type="Array"> - </return> - <description> - </description> - </method> - <method name="set_pressed_button"> - <argument index="0" name="button" type="BaseButton"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Camera" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="project_ray_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="project_local_ray_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="project_ray_origin" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="unproject_position" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="world_point" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="project_position" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_perspective"> - <argument index="0" name="fov" type="real"> - </argument> - <argument index="1" name="z_near" type="real"> - </argument> - <argument index="2" name="z_far" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_orthogonal"> - <argument index="0" name="size" type="real"> - </argument> - <argument index="1" name="z_near" type="real"> - </argument> - <argument index="2" name="z_far" type="real"> - </argument> - <description> - </description> - </method> - <method name="make_current"> - <description> - </description> - </method> - <method name="clear_current"> - <description> - </description> - </method> - <method name="is_current" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_camera_transform" qualifiers="const"> - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="get_fov" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_size" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_zfar" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_znear" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_projection" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PROJECTION_PERSPECTIVE" value="0"> - </constant> - <constant name="PROJECTION_ORTHOGONAL" value="1"> - </constant> - </constants> -</class> -<class name="Camera2D" inherits="ScreenProximity2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_offset"> - <argument index="0" name="offset" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_centered"> - <argument index="0" name="centered" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_centered" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="make_current"> - <description> - </description> - </method> - <method name="is_current" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_limit"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="limit" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_limit" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_drag_margin"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="drag_margin" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_drag_margin" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_camera_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="force_update_scroll"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CanvasItem" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="edit_set_state"> - <argument index="0" name="state" type="var"> - </argument> - <description> - </description> - </method> - <method name="edit_get" qualifiers="const"> - <description> - </description> - </method> - <method name="edit_set_rect"> - <argument index="0" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="edit_rotate"> - <argument index="0" name="degrees" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_item_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_canvas_item" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="is_visible" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_hidden" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="show"> - <description> - </description> - </method> - <method name="hide"> - <description> - </description> - </method> - <method name="update"> - <description> - </description> - </method> - <method name="set_as_toplevel"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_set_as_toplevel" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_blend_mode"> - <argument index="0" name="blend_mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_blend_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_opacity"> - <argument index="0" name="opacity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_opacity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_self_opacity"> - <argument index="0" name="self_opacity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_self_opacity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="draw_line"> - <argument index="0" name="from" type="Vector2"> - </argument> - <argument index="1" name="to" type="Vector2"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="width" type="real" default="1"> - </argument> - <description> - </description> - </method> - <method name="draw_rect"> - <argument index="0" name="rect" type="Rect2"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="draw_circle"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <argument index="1" name="radius" type="real"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="draw_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="draw_texture_rect"> - <argument index="0" name="texture" type="Texture"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="tile" type="bool" default="false"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="draw_texture_rect_region"> - <argument index="0" name="texture" type="Texture"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <argument index="2" name="src_rect" type="Rect2"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <argument index="4" name="transpose" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="draw_style_box"> - <argument index="0" name="style_box" type="StyleBox"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="draw_primitive"> - <argument index="0" name="points" type="Vector2Array"> - </argument> - <argument index="1" name="colors" type="ColorArray"> - </argument> - <argument index="2" name="uvs" type="Vector2Array" default="Array()"> - </argument> - <argument index="3" name="texture" type="Texture" default="Object()"> - </argument> - <argument index="4" name="width" type="real" default="1"> - </argument> - <description> - </description> - </method> - <method name="draw_polygon"> - <argument index="0" name="points" type="Vector2Array"> - </argument> - <argument index="1" name="colors" type="ColorArray"> - </argument> - <argument index="2" name="uvs" type="Vector2Array"> - </argument> - <argument index="3" name="texture" type="Texture" default="Array()"> - </argument> - <argument index="4" name="arg4" type="real" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="draw_colored_polygon"> - <argument index="0" name="points" type="Vector2Array"> - </argument> - <argument index="1" name="color" type="ColorArray"> - </argument> - <argument index="2" name="uvs" type="Vector2Array"> - </argument> - <argument index="3" name="texture" type="Texture" default="Array()"> - </argument> - <argument index="4" name="arg4" type="real" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="draw_string"> - <argument index="0" name="font" type="Font"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="text" type="String"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <argument index="4" name="clip_w" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="draw_char"> - <return type="real"> - </return> - <argument index="0" name="font" type="Font"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="char" type="String"> - </argument> - <argument index="3" name="next" type="String"> - </argument> - <argument index="4" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="draw_set_transform"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <argument index="1" name="rot" type="real"> - </argument> - <argument index="2" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_transform_notify"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_transform_notify_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_rect_changed"> - <description> - </description> - </signal> - <signal name="draw"> - <description> - </description> - </signal> - <signal name="visibility_changed"> - <description> - </description> - </signal> - <signal name="hide"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="BLEND_MODE_MIX" value="0"> - </constant> - <constant name="BLEND_MODE_ADD" value="1"> - </constant> - <constant name="BLEND_MODE_SUB" value="2"> - </constant> - <constant name="BLEND_MODE_MUL" value="3"> - </constant> - <constant name="NOTIFICATION_DRAW" value="30"> - </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31"> - </constant> - <constant name="NOTIFICATION_ENTER_CANVAS" value="32"> - </constant> - <constant name="NOTIFICATION_EXIT_CANVAS" value="33"> - </constant> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="34"> - </constant> - </constants> -</class> -<class name="CanvasLayer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_layer"> - <argument index="0" name="layer" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_layer" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_transform"> - <argument index="0" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="get_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <description> - </description> - </method> - <method name="set_offset"> - <argument index="0" name="offset" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_rotation"> - <argument index="0" name="rotation" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_rotation" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_scale"> - <argument index="0" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_scale" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_canvas" qualifiers="const"> - <return type="Canvas"> - </return> - <description> - </description> - </method> - <method name="get_viewport" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CapsuleShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius"> - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height"> - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CapsuleShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius"> - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height"> - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CenterContainer" inherits="Container" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="CheckButton" inherits="BaseButton" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CircleShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius"> - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CollisionObject2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_shape"> - <argument index="0" name="shape" type="Shape2D"> - </argument> - <argument index="1" name="transform" type="Matrix32" default="1,0, 0,1, 0,0"> - </argument> - <description> - </description> - </method> - <method name="get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_shape"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="shape" type="Shape"> - </argument> - <description> - </description> - </method> - <method name="set_shape_transform"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="get_shape" qualifiers="const"> - <return type="Shape2D"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_shape_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_shape"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_shapes"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CollisionPolygon2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="CollisionShape2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="ColorPicker" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_show_alpha"> - <argument index="0" name="show" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_showing_alpha" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="color_changed"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="ConcavePolygonShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_faces"> - <argument index="0" name="faces" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="get_faces" qualifiers="const"> - <return type="Vector3Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ConcavePolygonShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_segments"> - <argument index="0" name="segments" type="Vector2Array"> - </argument> - <description> - </description> - </method> - <method name="get_segments" qualifiers="const"> - <return type="Vector2Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ConfirmationDialog" inherits="AcceptDialog" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_cancel"> - <return type="Button"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Container" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="queue_sort"> - <description> - </description> - </method> - <method name="fit_child_in_rect"> - <argument index="0" name="child" type="Control"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="sort_children"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="NOTIFICATION_SORT_CHILDREN" value="50"> - </constant> - </constants> -</class> -<class name="Control" inherits="CanvasItem" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="accept_event"> - <description> - </description> - </method> - <method name="get_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="is_window" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_window" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_anchor"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="anchor_mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_anchor" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_margin"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="offset" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_anchor_and_margin"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="anchor_mode" type="int"> - </argument> - <argument index="2" name="offset" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_begin"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_end"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_pos"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_size"> - <argument index="0" name="size" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_global_pos"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_margin" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_begin" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_end" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_parent_area_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_global_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_global_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="set_area_as_parent_rect"> - <argument index="0" name="margin" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="show_modal"> - <argument index="0" name="exclusive" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="set_focus_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="has_focus" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="grab_focus"> - <description> - </description> - </method> - <method name="release_focus"> - <description> - </description> - </method> - <method name="get_focus_owner" qualifiers="const"> - <return type="Control"> - </return> - <description> - </description> - </method> - <method name="set_h_size_flags"> - <argument index="0" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_h_size_flags" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_stretch_ratio"> - <argument index="0" name="ratio" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_stretch_ratio" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_v_size_flags"> - <argument index="0" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_v_size_flags" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_theme"> - <argument index="0" name="theme" type="Theme"> - </argument> - <description> - </description> - </method> - <method name="get_theme" qualifiers="const"> - <return type="Theme"> - </return> - <description> - </description> - </method> - <method name="add_icon_override"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="add_style_override"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="stylebox" type="StyleBox"> - </argument> - <description> - </description> - </method> - <method name="add_font_override"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="font" type="Font"> - </argument> - <description> - </description> - </method> - <method name="add_color_override"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_constant_override"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="constant" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_stylebox" qualifiers="const"> - <return type="StyleBox"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_parent_control" qualifiers="const"> - <return type="Control"> - </return> - <description> - </description> - </method> - <method name="set_tooltip"> - <argument index="0" name="tooltip" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="atpos" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="set_default_cursor_shape"> - <argument index="0" name="shape" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_default_cursor_shape" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_cursor_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="pos" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="set_focus_neighbour"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="neighbour" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_focus_neighbour" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_ignore_mouse"> - <argument index="0" name="ignore" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_ignoring_mouse" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="focus_enter"> - <description> - </description> - </signal> - <signal name="mouse_enter"> - <description> - </description> - </signal> - <signal name="resized"> - <description> - </description> - </signal> - <signal name="minimum_size_changed"> - <description> - </description> - </signal> - <signal name="size_flags_changed"> - <description> - </description> - </signal> - <signal name="focus_exit"> - <description> - </description> - </signal> - <signal name="input_event"> - <description> - </description> - </signal> - <signal name="mouse_exit"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="ANCHOR_BEGIN" value="0"> - </constant> - <constant name="ANCHOR_END" value="1"> - </constant> - <constant name="ANCHOR_RATIO" value="2"> - </constant> - <constant name="FOCUS_NONE" value="0"> - </constant> - <constant name="FOCUS_CLICK" value="1"> - </constant> - <constant name="FOCUS_ALL" value="2"> - </constant> - <constant name="NOTIFICATION_RESIZED" value="34"> - </constant> - <constant name="NOTIFICATION_MOUSE_ENTER" value="35"> - </constant> - <constant name="NOTIFICATION_MOUSE_EXIT" value="36"> - </constant> - <constant name="NOTIFICATION_FOCUS_ENTER" value="37"> - </constant> - <constant name="NOTIFICATION_FOCUS_EXIT" value="38"> - </constant> - <constant name="NOTIFICATION_THEME_CHANGED" value="39"> - </constant> - <constant name="NOTIFICATION_MODAL_CLOSE" value="40"> - </constant> - <constant name="CURSOR_ARROW" value="0"> - </constant> - <constant name="CURSOR_IBEAM" value="1"> - </constant> - <constant name="CURSOR_POINTING_HAND" value="2"> - </constant> - <constant name="CURSOR_CROSS" value="3"> - </constant> - <constant name="CURSOR_WAIT" value="4"> - </constant> - <constant name="CURSOR_BUSY" value="5"> - </constant> - <constant name="CURSOR_DRAG" value="6"> - </constant> - <constant name="CURSOR_CAN_DROP" value="7"> - </constant> - <constant name="CURSOR_FORBIDDEN" value="8"> - </constant> - <constant name="CURSOR_VSIZE" value="9"> - </constant> - <constant name="CURSOR_HSIZE" value="10"> - </constant> - <constant name="CURSOR_BDIAGSIZE" value="11"> - </constant> - <constant name="CURSOR_FDIAGSIZE" value="12"> - </constant> - <constant name="CURSOR_MOVE" value="13"> - </constant> - <constant name="CURSOR_VSPLIT" value="14"> - </constant> - <constant name="CURSOR_HSPLIT" value="15"> - </constant> - <constant name="CURSOR_HELP" value="16"> - </constant> - </constants> -</class> -<class name="ConvexPolygonShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_planes"> - <argument index="0" name="planes" type="Array"> - </argument> - <description> - </description> - </method> - <method name="get_planes" qualifiers="const"> - <return type="Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ConvexPolygonShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_points"> - <argument index="0" name="points" type="Vector2Array"> - </argument> - <description> - </description> - </method> - <method name="get_points" qualifiers="const"> - <return type="Vector2Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DOFBlurFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DampedSpringJoint2D" inherits="Joint2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_length"> - <argument index="0" name="length" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_rest_length"> - <argument index="0" name="rest_length" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_rest_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_stiffness"> - <argument index="0" name="stiffness" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_stiffness" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_damping"> - <argument index="0" name="damping" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_damping" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DirectionalLight" inherits="Light" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DynamicBody" inherits="PhysicsBody" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mass"> - <argument index="0" name="mass" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_friction"> - <argument index="0" name="friction" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_bounce"> - <argument index="0" name="bounce" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_mass" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_friction" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_bounce" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity"> - <argument index="0" name="linear_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity"> - <argument index="0" name="angular_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_sleeping"> - <argument index="0" name="sleeping" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_sleeping" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_applied_force"> - <argument index="0" name="applied_force" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_applied_force" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_applied_torque"> - <argument index="0" name="applied_torque" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_applied_torque" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="apply_local_impulse"> - <argument index="0" name="pos" type="Vector3"> - </argument> - <argument index="1" name="impulse" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="set_axis_velocity"> - <argument index="0" name="axis_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="set_direct_state_control"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_direct_state_control_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_omit_force_integration"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_omitting_force_integration" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DynamicCharacterBody" inherits="DynamicBody" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DynamicCustomBody" inherits="DynamicBody" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DynamicRigidBody" inherits="DynamicBody" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="EmptyControl" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_minsize"> - <argument index="0" name="minsize" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_minsize" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="_File" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="open"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="close"> - <description> - </description> - </method> - <method name="is_open" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="seek"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="seek_end"> - <argument index="0" name="pos" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_len" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="eof_reached" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_8" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_16" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_32" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_64" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_float" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_double" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_real" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_buffer" qualifiers="const"> - <return type="RawArray"> - </return> - <argument index="0" name="len" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_line" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_endian_swap"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_endian_swap"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_error" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_var" qualifiers="const"> - <description> - </description> - </method> - <method name="store_8"> - <argument index="0" name="value" type="int"> - </argument> - <description> - </description> - </method> - <method name="store_16"> - <argument index="0" name="value" type="int"> - </argument> - <description> - </description> - </method> - <method name="store_32"> - <argument index="0" name="value" type="int"> - </argument> - <description> - </description> - </method> - <method name="store_64"> - <argument index="0" name="value" type="int"> - </argument> - <description> - </description> - </method> - <method name="store_float"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="store_double"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="store_real"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="store_buffer"> - <argument index="0" name="buffer" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="store_line"> - <argument index="0" name="line" type="String"> - </argument> - <description> - </description> - </method> - <method name="store_string"> - <argument index="0" name="string" type="String"> - </argument> - <description> - </description> - </method> - <method name="store_var"> - <argument index="0" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="file_exists" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="READ" value="1"> - </constant> - <constant name="WRITE" value="2"> - </constant> - <constant name="READ_WRITE" value="3"> - </constant> - </constants> -</class> -<class name="FileDialog" inherits="ConfirmationDialog" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="clear_filters"> - <description> - </description> - </method> - <method name="add_filter"> - <argument index="0" name="filter" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_current_dir" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_current_file" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_current_path" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_current_dir"> - <argument index="0" name="dir" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_current_file"> - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_current_path"> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_vbox"> - <return type="VBoxContainer"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="dir_selected"> - <argument index="0" name="dir" type="String"> - </argument> - <description> - </description> - </signal> - <signal name="file_selected"> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="MODE_OPEN_FILE" value="0"> - </constant> - <constant name="MODE_OPEN_DIR" value="1"> - </constant> - <constant name="MODE_SAVE_FILE" value="2"> - </constant> - </constants> -</class> -<class name="FixedMaterial" inherits="Material" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_shader"> - <argument index="0" name="shader" type="Shader"> - </argument> - <description> - </description> - </method> - <method name="get_shader" qualifiers="const"> - <return type="Shader"> - </return> - <description> - </description> - </method> - <method name="set_parameter"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_parameter" qualifiers="const"> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_texture"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_texgen_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_texgen_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_texcoord_mode"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_texcoord_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_uv_transform"> - <argument index="0" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_uv_transform" qualifiers="const"> - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="set_detail_blend_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_detail_blend_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PARAM_DIFFUSE" value="0"> - </constant> - <constant name="PARAM_DETAIL" value="1"> - </constant> - <constant name="PARAM_SPECULAR" value="2"> - </constant> - <constant name="PARAM_EMISSION" value="3"> - </constant> - <constant name="PARAM_SPECULAR_EXP" value="4"> - </constant> - <constant name="PARAM_GLOW" value="5"> - </constant> - <constant name="PARAM_NORMAL" value="6"> - </constant> - <constant name="PARAM_SHADE_PARAM" value="7"> - </constant> - <constant name="PARAM_MAX" value="8"> - </constant> - <constant name="TEXGEN_SPHERE" value="1"> - </constant> - <constant name="TEXGEN_SCREEN" value="2"> - </constant> - <constant name="TEXGEN_SCREENZ" value="3"> - </constant> - <constant name="TEXGEN_LOCAL_XY" value="0"> - </constant> - <constant name="TEXCOORD_TEXGEN" value="3"> - </constant> - <constant name="TEXCOORD_UV" value="0"> - </constant> - <constant name="TEXCOORD_UV_TRANSFORM" value="1"> - </constant> - <constant name="TEXCOORD_UV2" value="2"> - </constant> - </constants> -</class> -<class name="FogFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="FollowCamera" inherits="Camera" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_orbit"> - <argument index="0" name="orbit" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_orbit" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_orbit_x"> - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_orbit_y"> - <argument index="0" name="y" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_min_orbit_x"> - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_min_orbit_x" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_max_orbit_x"> - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_max_orbit_x" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height"> - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_inclination"> - <argument index="0" name="inclination" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_inclination" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="rotate_orbit"> - <argument index="0" name="arg0" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_distance"> - <argument index="0" name="distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_distance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_max_distance"> - <argument index="0" name="max_distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_max_distance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_min_distance"> - <argument index="0" name="min_distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_min_distance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_clip"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_clip" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autoturn"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autoturn" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autoturn_tolerance"> - <argument index="0" name="degrees" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_autoturn_tolerance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_autoturn_speed"> - <argument index="0" name="speed" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_autoturn_speed" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_smoothing"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_smoothing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_rotation_smoothing"> - <argument index="0" name="amount" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_rotation_smoothing" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_translation_smoothing"> - <argument index="0" name="amount" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_translation_smoothing" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_use_lookat_target"> - <argument index="0" name="use" type="bool"> - </argument> - <argument index="1" name="lookat" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Font" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_height"> - <argument index="0" name="px" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_ascent"> - <argument index="0" name="px" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_ascent" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_descent" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="add_kerning_pair"> - <argument index="0" name="char_a" type="int"> - </argument> - <argument index="1" name="char_b" type="int"> - </argument> - <argument index="2" name="kerning" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_kerning_pair" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="add_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="add_char"> - <argument index="0" name="character" type="int"> - </argument> - <argument index="1" name="texture" type="int"> - </argument> - <argument index="2" name="rect" type="Rect2"> - </argument> - <argument index="3" name="align" type="Vector2" default="Vector2(0,0)"> - </argument> - <argument index="4" name="advance" type="real" default="-1"> - </argument> - <description> - </description> - </method> - <method name="get_char_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="char" type="int"> - </argument> - <argument index="1" name="next" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_string_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="string" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - <method name="draw" qualifiers="const"> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="string" type="String"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <argument index="4" name="clip_w" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="draw_char" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="char" type="int"> - </argument> - <argument index="3" name="next" type="int" default="-1"> - </argument> - <argument index="4" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GDNativeClass" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="new"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GDScript" inherits="Script" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="new"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GammaFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="_Geometry" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="build_box_planes"> - <return type="Array"> - </return> - <argument index="0" name="extents" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="build_cylinder_planes"> - <return type="Array"> - </return> - <argument index="0" name="radius" type="real"> - </argument> - <argument index="1" name="height" type="real"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="axis" type="int" default="2"> - </argument> - <description> - </description> - </method> - <method name="build_capsule_planes"> - <return type="Array"> - </return> - <argument index="0" name="radius" type="real"> - </argument> - <argument index="1" name="height" type="real"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="lats" type="int"> - </argument> - <argument index="4" name="axis" type="int" default="2"> - </argument> - <description> - </description> - </method> - <method name="segment_intersects_circle"> - <return type="real"> - </return> - <argument index="0" name="segment_from" type="Vector2"> - </argument> - <argument index="1" name="segment_to" type="Vector2"> - </argument> - <argument index="2" name="circle_pos" type="Vector2"> - </argument> - <argument index="3" name="circle_radius" type="real"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GeometryInstance" inherits="VisualInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_visible"> - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_visible" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_material_override"> - <argument index="0" name="material" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_material_override" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Globals" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_order"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_order" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_persisting"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_persisting" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="localize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="globalize_path" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GlowFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="GridMap" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_theme"> - <argument index="0" name="theme" type="MeshLibrary"> - </argument> - <description> - </description> - </method> - <method name="get_theme" qualifiers="const"> - <return type="MeshLibrary"> - </return> - <description> - </description> - </method> - <method name="set_cell_size"> - <argument index="0" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_cell_size" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_octant_size"> - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_octant_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_width"> - <argument index="0" name="width" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_width" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_height"> - <argument index="0" name="height" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_depth"> - <argument index="0" name="depth" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_depth" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_cell_item"> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <argument index="3" name="item" type="int"> - </argument> - <argument index="4" name="orientation" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_cell_item" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_cell_item_orientation" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <description> - </description> - </method> - <method name="resource_changed"> - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_center_x"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_x" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_center_y"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_y" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_center_z"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_z" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_clip"> - <argument index="0" name="enabled" type="bool"> - </argument> - <argument index="1" name="clipabove" type="bool" default="true"> - </argument> - <argument index="2" name="floor" type="int" default="0"> - </argument> - <argument index="3" name="axis" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="crate_area"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="area" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="area_get_bounds" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_exterior_portal"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="area_set_name"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="area_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_is_exterior_portal" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_distance"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_distance" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_color"> - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_area"> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_unused_area_id" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="INVALID_CELL_ITEM" value="-1"> - </constant> - </constants> -</class> -<class name="GrooveJoint2D" inherits="Joint2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_length"> - <argument index="0" name="length" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_initial_offset"> - <argument index="0" name="offset" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_initial_offset" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="HBoxContainer" inherits="BoxContainer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HButtonArray" inherits="ButtonArray" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HDRFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HScrollBar" inherits="ScrollBar" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HSeparator" inherits="Separator" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HSlider" inherits="Slider" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="IP" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="resolve_hostname"> - <return type="String"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <description> - </description> - </method> - <method name="resolve_hostname_queue_item"> - <return type="int"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_resolve_item_status" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_resolve_item_address" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_resolve_item"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="RESOLVER_STATUS_NONE" value="0"> - </constant> - <constant name="RESOLVER_STATUS_WAITING" value="1"> - </constant> - <constant name="RESOLVER_STATUS_DONE" value="2"> - </constant> - <constant name="RESOLVER_STATUS_ERROR" value="3"> - </constant> - <constant name="RESOLVER_MAX_QUERIES" value="32"> - </constant> - <constant name="RESOLVER_INVALID_ID" value="-1"> - </constant> - </constants> -</class> -<class name="IP_Unix" inherits="IP" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="InputMap" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="InterpolatedCamera" inherits="Camera" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_target_path"> - <argument index="0" name="target_path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_target_path" qualifiers="const"> - <return type="NodePath"> - </return> - <description> - </description> - </method> - <method name="set_target"> - <argument index="0" name="target" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_speed"> - <argument index="0" name="speed" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_speed" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_interpolation_enabled"> - <argument index="0" name="target_path" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_interpolation_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Joint2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_node_a"> - <argument index="0" name="node" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_node_a" qualifiers="const"> - <return type="NodePath"> - </return> - <description> - </description> - </method> - <method name="set_node_b"> - <argument index="0" name="node" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_node_b" qualifiers="const"> - <return type="NodePath"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Label" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_align"> - <argument index="0" name="align" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_align" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_valign"> - <argument index="0" name="valign" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_valign" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_autowrap"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autowrap" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_line_height" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="ALIGN_LEFT" value="0"> - </constant> - <constant name="ALIGN_CENTER" value="1"> - </constant> - <constant name="ALIGN_RIGHT" value="2"> - </constant> - <constant name="ALIGN_FILL" value="3"> - </constant> - <constant name="VALIGN_TOP" value="0"> - </constant> - <constant name="VALIGN_CENTER" value="1"> - </constant> - <constant name="VALIGN_BOTTOM" value="2"> - </constant> - <constant name="VALIGN_FILL" value="3"> - </constant> - </constants> -</class> -<class name="Light" inherits="VisualInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_parameter"> - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_parameter" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_color"> - <argument index="0" name="color" type="int"> - </argument> - <argument index="1" name="value" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_project_shadows"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_project_shadows" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_projector"> - <argument index="0" name="projector" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_projector" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="set_operator"> - <argument index="0" name="operator" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_operator" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PARAM_RADIUS" value="2"> - </constant> - <constant name="PARAM_ENERGY" value="3"> - </constant> - <constant name="PARAM_ATTENUATION" value="4"> - </constant> - <constant name="PARAM_SPOT_ANGLE" value="1"> - </constant> - <constant name="PARAM_SPOT_ATTENUATION" value="4"> - </constant> - <constant name="PARAM_SHADOW_DARKENING" value="5"> - </constant> - <constant name="COLOR_AMBIENT" value="0"> - </constant> - <constant name="COLOR_DIFFUSE" value="1"> - </constant> - <constant name="COLOR_SPECULAR" value="2"> - </constant> - </constants> -</class> -<class name="LineEdit" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="clear"> - <description> - </description> - </method> - <method name="select_all"> - <description> - </description> - </method> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_cursor_pos"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_cursor_pos" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_max_length"> - <argument index="0" name="chars" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_max_length" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="append_at_cursor"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_editable"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editable" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_secret"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_secret" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="select" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="text_entered"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </signal> - <signal name="text_changed"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="LineShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_normal"> - <argument index="0" name="normal" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_normal" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_d"> - <argument index="0" name="d" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_d" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="MainLoop" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="input_event"> - <argument index="0" name="arg0" type="InputEvent"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_WM_FOCUS_IN" value="5"> - </constant> - <constant name="NOTIFICATION_WM_FOCUS_OUT" value="6"> - </constant> - <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="7"> - </constant> - </constants> -</class> -<class name="MarginContainer" inherits="Container" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Material" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_flag"> - <argument index="0" name="flag" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="flag" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_hint"> - <argument index="0" name="hint" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_hint" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="hint" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_blend_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_blend_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_shade_model"> - <argument index="0" name="model" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_shade_model" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_line_width"> - <argument index="0" name="width" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_line_width" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_shader_param"> - <argument index="0" name="param" type="String"> - </argument> - <argument index="1" name="arg1" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_shader_param" qualifiers="const"> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="FLAG_VISIBLE" value="0"> - </constant> - <constant name="FLAG_DOUBLE_SIDED" value="1"> - </constant> - <constant name="FLAG_INVERT_FACES" value="2"> - </constant> - <constant name="FLAG_UNSHADED" value="3"> - </constant> - <constant name="FLAG_ONTOP" value="4"> - </constant> - <constant name="FLAG_WIREFRAME" value="5"> - </constant> - <constant name="FLAG_BILLBOARD_TOGGLE" value="6"> - </constant> - <constant name="FLAG_MAX" value="7"> - </constant> - <constant name="HINT_DECAL" value="0"> - </constant> - <constant name="HINT_OPAQUE_PRE_PASS" value="1"> - </constant> - <constant name="HINT_NO_SHADOW" value="2"> - </constant> - <constant name="HINT_NO_DEPTH_DRAW" value="3"> - </constant> - <constant name="HINT_MAX" value="4"> - </constant> - <constant name="SHADE_MODEL_LAMBERT" value="0"> - </constant> - <constant name="SHADE_MODEL_LAMBERT_WRAP" value="1"> - </constant> - <constant name="SHADE_MODEL_FRESNEL" value="2"> - </constant> - <constant name="SHADE_MODEL_TOON" value="3"> - </constant> - <constant name="SHADE_MODEL_CUSTOM_0" value="4"> - </constant> - <constant name="SHADE_MODEL_CUSTOM_1" value="5"> - </constant> - <constant name="SHADE_MODEL_CUSTOM_2" value="6"> - </constant> - <constant name="SHADE_MODEL_CUSTOM_3" value="7"> - </constant> - <constant name="BLEND_MODE_MIX" value="0"> - </constant> - <constant name="BLEND_MODE_ADD" value="1"> - </constant> - <constant name="BLEND_MODE_SUB" value="2"> - </constant> - </constants> -</class> -<class name="MenuButton" inherits="Button" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_popup"> - <return type="Object"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="about_to_show"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Mesh" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_morph_target"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_morph_target_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_morph_target_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_morph_targets"> - <description> - </description> - </method> - <method name="set_morph_target_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_morph_target_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="add_surface"> - <argument index="0" name="primitive" type="int"> - </argument> - <argument index="1" name="format" type="int"> - </argument> - <argument index="2" name="array_len" type="int"> - </argument> - <argument index="3" name="index_array_len" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_surface_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="surface_remove"> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_set_array"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="array" type="int"> - </argument> - <argument index="2" name="data" type="var"> - </argument> - <description> - </description> - </method> - <method name="surface_get_array" qualifiers="const"> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="array" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_get_array_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_get_array_index_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_get_format" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_get_primitive_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="surface_set_material"> - <argument index="0" name="surf_idx:Material" type="int"> - </argument> - <argument index="1" name="arg1" type="Object"> - </argument> - <description> - </description> - </method> - <method name="surface_get_material" qualifiers="const"> - <return type="Material"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NO_INDEX_ARRAY" value="-1"> - </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4"> - </constant> - <constant name="ARRAY_VERTEX" value="0"> - </constant> - <constant name="ARRAY_NORMAL" value="1"> - </constant> - <constant name="ARRAY_TANGENT" value="2"> - </constant> - <constant name="ARRAY_COLOR" value="3"> - </constant> - <constant name="ARRAY_TEX_UV" value="4"> - </constant> - <constant name="ARRAY_TEX_UV2" value="5"> - </constant> - <constant name="ARRAY_BONES" value="6"> - </constant> - <constant name="ARRAY_WEIGHTS" value="7"> - </constant> - <constant name="ARRAY_INDEX" value="8"> - </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> - </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> - </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> - </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> - </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> - </constant> - <constant name="ARRAY_FORMAT_TEX_UV2" value="32"> - </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> - </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> - </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> - </constant> - <constant name="PRIMITIVE_POINTS" value="0"> - </constant> - <constant name="PRIMITIVE_LINES" value="1"> - </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> - </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> - </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> - </constant> - </constants> -</class> -<class name="MeshInstance" inherits="GeometryInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mesh"> - <argument index="0" name="mesh" type="Mesh"> - </argument> - <description> - </description> - </method> - <method name="get_mesh" qualifiers="const"> - <return type="Mesh"> - </return> - <description> - </description> - </method> - <method name="get_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <description> - </description> - </method> - <method name="create_trimesh_collision"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="MeshLibrary" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="create_item"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_item_name"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_item_mesh"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="mesh" type="Mesh"> - </argument> - <description> - </description> - </method> - <method name="set_item_shape"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="shape" type="Shape"> - </argument> - <description> - </description> - </method> - <method name="get_item_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_mesh" qualifiers="const"> - <return type="Mesh"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_shape" qualifiers="const"> - <return type="Shape"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_item"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - <method name="get_item_list" qualifiers="const"> - <return type="IntArray"> - </return> - <description> - </description> - </method> - <method name="get_last_unused_item_id" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="MultiMesh" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mesh"> - <argument index="0" name="mesh" type="Mesh"> - </argument> - <description> - </description> - </method> - <method name="get_mesh" qualifiers="const"> - <return type="Mesh"> - </return> - <description> - </description> - </method> - <method name="set_instance_count"> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_instance_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_instance_transform"> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_instance_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_instance_color"> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_instance_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_aabb"> - <argument index="0" name="arg0" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="get_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <description> - </description> - </method> - <method name="generate_aabb"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="MultiMeshInstance" inherits="GeometryInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_multimesh"> - <argument index="0" name="multimesh" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_multimesh" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Node" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_name"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="add_child"> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="remove_child"> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="remove_and_delete_child"> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="get_child_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_child" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="has_node" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_node" qualifiers="const"> - <return type="Node"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_parent" qualifiers="const"> - <return type="Parent"> - </return> - <description> - </description> - </method> - <method name="has_node_and_resource" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_node_and_resource"> - <return type="Array"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="is_inside_scene" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_a_parent_of" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="is_greater_than" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="get_path" qualifiers="const"> - <return type="NodePath"> - </return> - <description> - </description> - </method> - <method name="get_path_to" qualifiers="const"> - <return type="NodePath"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="add_to_group"> - <argument index="0" name="group" type="String"> - </argument> - <argument index="1" name="arg1" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="remove_from_group"> - <argument index="0" name="group" type="String"> - </argument> - <description> - </description> - </method> - <method name="is_in_group" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="group" type="String"> - </argument> - <description> - </description> - </method> - <method name="move_child"> - <argument index="0" name="child_node" type="Node"> - </argument> - <argument index="1" name="to_pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="raise"> - <description> - </description> - </method> - <method name="set_owner"> - <argument index="0" name="owner" type="Node"> - </argument> - <description> - </description> - </method> - <method name="get_owner" qualifiers="const"> - <return type="Node"> - </return> - <description> - </description> - </method> - <method name="remove_and_skip"> - <description> - </description> - </method> - <method name="get_index" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="print_tree"> - <description> - </description> - </method> - <method name="set_filename"> - <argument index="0" name="filename" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_filename" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="propagate_notification"> - <argument index="0" name="what" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_process"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_process_time" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="is_processing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_idle_process"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_idle_process_time" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="is_idle_processing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_process_input"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_processing_input" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_process_unhandled_input"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_processing_unhandled_input" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_process_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_process_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="can_process" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="print_stray_nodes"> - <description> - </description> - </method> - <method name="set_world"> - <argument index="0" name="world" type="World"> - </argument> - <description> - </description> - </method> - <method name="get_world" qualifiers="const"> - <return type="World"> - </return> - <description> - </description> - </method> - <method name="get_current_world" qualifiers="const"> - <return type="World"> - </return> - <description> - </description> - </method> - <method name="get_scene" qualifiers="const"> - <return type="SceneMainLoop"> - </return> - <description> - </description> - </method> - <method name="duplicate" qualifiers="const"> - <return type="Node"> - </return> - <description> - </description> - </method> - <method name="replace_by"> - <argument index="0" name="node" type="Node"> - </argument> - <argument index="1" name="keep_data" type="bool" default="false"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="enter_scene"> - <description> - </description> - </signal> - <signal name="renamed"> - <description> - </description> - </signal> - <signal name="exit_scene"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="NOTIFICATION_ENTER_SCENE" value="10"> - </constant> - <constant name="NOTIFICATION_EXIT_SCENE" value="11"> - </constant> - <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12"> - </constant> - <constant name="NOTIFICATION_CHILDREN_CONFIGURED" value="13"> - </constant> - <constant name="NOTIFICATION_PROCESS" value="16"> - </constant> - <constant name="NOTIFICATION_IDLE_PROCESS" value="17"> - </constant> - <constant name="NOTIFICATION_PARENTED" value="18"> - </constant> - <constant name="NOTIFICATION_UNPARENTED" value="19"> - </constant> - <constant name="NOTIFICATION_ENTER_WORLD" value="20"> - </constant> - <constant name="NOTIFICATION_EXIT_WORLD" value="21"> - </constant> - <constant name="NOTIFICATION_PAUSED" value="14"> - </constant> - <constant name="NOTIFICATION_UNPAUSED" value="15"> - </constant> - <constant name="PROCESS_NORMAL" value="0"> - </constant> - <constant name="PROCESS_PAUSE" value="1"> - </constant> - <constant name="PROCESS_ALWAYS" value="2"> - </constant> - </constants> -</class> -<class name="Node2D" inherits="CanvasItem" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_pos"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_rot"> - <argument index="0" name="rot" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_scale"> - <argument index="0" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_rot" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_scale" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_global_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="_OS" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mouse_show"> - <argument index="0" name="show" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_mouse_grab"> - <argument index="0" name="grab" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_mouse_grab_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_mouse_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_clipboard"> - <argument index="0" name="clipboard" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_clipboard" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_video_mode"> - <argument index="0" name="size" type="Vector2"> - </argument> - <argument index="1" name="fullscreen" type="bool"> - </argument> - <argument index="2" name="resizable" type="bool"> - </argument> - <argument index="3" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_video_mode_size" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="is_video_mode_fullscreen" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="is_video_mode_resizable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_fullscreen_mode_list" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_iterations_per_second"> - <argument index="0" name="iterations_per_second" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_iterations_per_second" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_low_processor_usage_mode"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_in_low_processor_usage_mode" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_executable_path" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="execute"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="arguments" type="StringArray"> - </argument> - <argument index="2" name="blocking" type="bool"> - </argument> - <description> - </description> - </method> - <method name="kill"> - <return type="int"> - </return> - <argument index="0" name="pid" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_environment" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="environment" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_environment" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="environment" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_cmdline_args"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - <method name="get_main_loop" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_date" qualifiers="const"> - <return type="Dictionary"> - </return> - <description> - </description> - </method> - <method name="get_time" qualifiers="const"> - <return type="Dictionary"> - </return> - <description> - </description> - </method> - <method name="delay_usec" qualifiers="const"> - <argument index="0" name="usec" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_ticks_msec" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_locale" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="can_draw" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_frames_drawn"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="is_stdout_verbose" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_mouse_button_state" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="dump_memory_to_file"> - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="dump_resources_to_file"> - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="print_resources_in_use"> - <argument index="0" name="short" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="print_all_resources"> - <argument index="0" name="tofile" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_static_memory_usage" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_static_memory_peak_usage" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_dynamic_memory_usage" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="DAY_SUNDAY" value="0"> - </constant> - <constant name="DAY_MONDAY" value="1"> - </constant> - <constant name="DAY_TUESDAY" value="2"> - </constant> - <constant name="DAY_WEDNESDAY" value="3"> - </constant> - <constant name="DAY_THURSDAY" value="4"> - </constant> - <constant name="DAY_FRIDAY" value="5"> - </constant> - <constant name="DAY_SATURDAY" value="6"> - </constant> - <constant name="MONTH_JANUARY" value="0"> - </constant> - <constant name="MONTH_FEBRUARY" value="1"> - </constant> - <constant name="MONTH_MARCH" value="2"> - </constant> - <constant name="MONTH_APRIL" value="3"> - </constant> - <constant name="MONTH_MAY" value="4"> - </constant> - <constant name="MONTH_JUNE" value="5"> - </constant> - <constant name="MONTH_JULY" value="6"> - </constant> - <constant name="MONTH_AUGUST" value="7"> - </constant> - <constant name="MONTH_SEPTEMBER" value="8"> - </constant> - <constant name="MONTH_OCTOBER" value="9"> - </constant> - <constant name="MONTH_NOVEMBER" value="10"> - </constant> - <constant name="MONTH_DECEMBER" value="11"> - </constant> - </constants> -</class> -<class name="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_type" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="is_type" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="set"> - <argument index="0" name="property" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get" qualifiers="const"> - <argument index="0" name="property" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_property_list" qualifiers="const"> - <return type="Array"> - </return> - <description> - </description> - </method> - <method name="notification"> - <argument index="0" name="what" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="get_instance_ID" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_script"> - <argument index="0" name="script" type="Script"> - </argument> - <description> - </description> - </method> - <method name="get_script" qualifiers="const"> - <return type="Script"> - </return> - <description> - </description> - </method> - <method name="set_meta"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_meta" qualifiers="const"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_meta" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_meta_list" qualifiers="const"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - <method name="call"> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="arg1" type="var" default="NULL"> - </argument> - <argument index="2" name="arg2" type="var" default="NULL"> - </argument> - <argument index="3" name="arg3" type="var" default="NULL"> - </argument> - <argument index="4" name="arg4" type="var" default="NULL"> - </argument> - <description> - </description> - </method> - <method name="call_deferred"> - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="arg1" type="var" default="NULL"> - </argument> - <argument index="2" name="arg2" type="var" default="NULL"> - </argument> - <argument index="3" name="arg3" type="var" default="NULL"> - </argument> - <argument index="4" name="arg4" type="var" default="NULL"> - </argument> - <description> - </description> - </method> - <method name="add_user_signal"> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="arguments" type="Array" default="Array()"> - </argument> - <description> - </description> - </method> - <method name="emit_signal"> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="arguments" type="Array" default="Array()"> - </argument> - <description> - </description> - </method> - <method name="get_signal_list" qualifiers="const"> - <return type="Array"> - </return> - <description> - </description> - </method> - <method name="connect"> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <argument index="3" name="binds" type="Array" default="Array()"> - </argument> - <argument index="4" name="flags" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="disconnect"> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <description> - </description> - </method> - <method name="is_connected" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_block_signals"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_blocking_signals" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_message_translation"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="can_translate_messages"> - <argument index="0" name="arg0" type="bool"> - </argument> - <description> - </description> - </method> - <method name="XL_MESSAGE" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="message" type="String"> - </argument> - <description> - </description> - </method> - <method name="tr" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="message" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_POSTINITIALIZE" value="0"> - </constant> - <constant name="NOTIFICATION_PREDELETE" value="1"> - </constant> - <constant name="CONNECT_DEFERRED" value="1"> - </constant> - <constant name="CONNECT_PERSIST" value="2"> - </constant> - <constant name="CONNECT_ONESHOT" value="4"> - </constant> - </constants> -</class> -<class name="OmniLight" inherits="Light" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="OptimizedSaver" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_target_platform"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_target_platform" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_target_name"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="add_property"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="optimize_object"> - <return type="bool"> - </return> - <argument index="0" name="obj" type="Object"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="OptionButton" inherits="Button" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_item"> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="add_icon_item"> - <argument index="0" name="texture" type="Texture"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_item_text"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_item_icon"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_item_disabled"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_ID"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_item_metadata"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_item_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_icon" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_metadata" qualifiers="const"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="add_separator"> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - <method name="select"> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_selected" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selected_ID" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selected_metadata" qualifiers="const"> - <description> - </description> - </method> - <method name="remove_item"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_selected"> - <argument index="0" name="ID" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="PHashTranslation" inherits="Translation" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PacketPeer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PacketPeerStream" inherits="PacketPeer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream_peer"> - <argument index="0" name="peer" type="StreamPeer"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Panel" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="ParallaxBackground" inherits="CanvasLayer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_scroll_offset"> - <argument index="0" name="ofs" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_scroll_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_scroll_base_offset"> - <argument index="0" name="ofs" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_scroll_base_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_scroll_base_scale"> - <argument index="0" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_scroll_base_scale" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_limit_begin"> - <argument index="0" name="ofs" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_limit_begin" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_limit_end"> - <argument index="0" name="ofs" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_limit_end" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ParallaxLayer" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_motion_scale"> - <argument index="0" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_motion_scale" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_motion_wrap_begin"> - <argument index="0" name="wrap_begin" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_motion_wrap_begin" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_motion_wrap_end"> - <argument index="0" name="wrap_end" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_motion_wrap_end" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Particles" inherits="VisualInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_amount"> - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_amount" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_emitting"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_emitting" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_visibility_aabb"> - <argument index="0" name="aabb" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="get_visibility_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <description> - </description> - </method> - <method name="set_emission_half_extents"> - <argument index="0" name="half_extents" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_emission_half_extents" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_emission_base_velocity"> - <argument index="0" name="base_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_emission_base_velocity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_emission_points"> - <argument index="0" name="points" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="get_emission_points" qualifiers="const"> - <return type="Vector3Array"> - </return> - <description> - </description> - </method> - <method name="set_gravity_normal"> - <argument index="0" name="normal" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_gravity_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_variable"> - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_variable" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="variable" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_randomness"> - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="randomness" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_randomness" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_color_phase_pos"> - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="pos" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_color_phase_pos" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_color_phase_color"> - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color_phase_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_material"> - <argument index="0" name="material" type="Material"> - </argument> - <description> - </description> - </method> - <method name="get_material" qualifiers="const"> - <return type="Material"> - </return> - <description> - </description> - </method> - <method name="set_emit_timeout"> - <argument index="0" name="arg0" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_emit_timeout" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height_from_velocity"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_height_from_velocity" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_color_phases"> - <argument index="0" name="count" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_color_phases" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="VAR_LIFETIME" value="0"> - </constant> - <constant name="VAR_SPREAD" value="1"> - </constant> - <constant name="VAR_GRAVITY" value="2"> - </constant> - <constant name="VAR_LINEAR_VELOCITY" value="3"> - </constant> - <constant name="VAR_ANGULAR_VELOCITY" value="4"> - </constant> - <constant name="VAR_LINEAR_ACCELERATION" value="5"> - </constant> - <constant name="VAR_DRAG" value="6"> - </constant> - <constant name="VAR_TANGENTIAL_ACCELERATION" value="7"> - </constant> - <constant name="VAR_INITIAL_SIZE" value="9"> - </constant> - <constant name="VAR_FINAL_SIZE" value="10"> - </constant> - <constant name="VAR_INITIAL_ANGLE" value="11"> - </constant> - <constant name="VAR_HEIGHT" value="12"> - </constant> - <constant name="VAR_HEIGHT_SPEED_SCALE" value="13"> - </constant> - <constant name="VAR_MAX" value="14"> - </constant> - </constants> -</class> -<class name="Particles2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_emitting"> - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_emitting" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_amount"> - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_amount" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_lifetime"> - <argument index="0" name="lifetime" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_lifetime" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_pre_process_time"> - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_pre_process_time" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_emit_timeout"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_emit_timeout" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_param"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_randomness"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_randomness" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_texture"> - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="set_emissor_offset"> - <argument index="0" name="offset" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_emissor_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_emission_half_extents"> - <argument index="0" name="extents" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_emission_half_extents" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_color_phases"> - <argument index="0" name="phases" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_color_phases" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_color_phase_color"> - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color_phase_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_color_phase_pos"> - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="pos" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_color_phase_pos" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - </description> - </method> - <method name="pre_process"> - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_use_local_space"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_local_space" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_initial_velocity"> - <argument index="0" name="velocity" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_initial_velocity" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="testee"> - <argument index="0" name="arg0" type="int" default="0"> - </argument> - <argument index="1" name="arg1" type="int" default="1"> - </argument> - <argument index="2" name="arg2" type="int" default="2"> - </argument> - <argument index="3" name="arg3" type="int" default="3"> - </argument> - <argument index="4" name="arg4" type="int" default="4"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PARAM_DIRECTION" value="0"> - </constant> - <constant name="PARAM_SPREAD" value="1"> - </constant> - <constant name="PARAM_LINEAR_VELOCITY" value="2"> - </constant> - <constant name="PARAM_SPIN_VELOCITY" value="3"> - </constant> - <constant name="PARAM_GRAVITY_DIRECTION" value="4"> - </constant> - <constant name="PARAM_GRAVITY_STRENGTH" value="5"> - </constant> - <constant name="PARAM_RADIAL_ACCEL" value="6"> - </constant> - <constant name="PARAM_TANGENTIAL_ACCEL" value="7"> - </constant> - <constant name="PARAM_INITIAL_SIZE" value="9"> - </constant> - <constant name="PARAM_FINAL_SIZE" value="10"> - </constant> - <constant name="PARAM_HUE_VARIATION" value="11"> - </constant> - <constant name="PARAM_MAX" value="12"> - </constant> - <constant name="MAX_COLOR_PHASES" value="4"> - </constant> - </constants> -</class> -<class name="PathRemap" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_remap"> - <argument index="0" name="from" type="String"> - </argument> - <argument index="1" name="to" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_remap"> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_remap" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="erase_remap"> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_remaps"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Physics2DDirectBodyState" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_total_gravity" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_total_density" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_mass" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_inertia" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity"> - <argument index="0" name="velocity" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity"> - <argument index="0" name="velocity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_transform"> - <argument index="0" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="get_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <description> - </description> - </method> - <method name="set_sleep_state"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_sleeping" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_contact_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_contact_local_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_normal" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_object" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_velocity_at_pos" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_step" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="integrate_forces"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Physics2DDirectBodyStateSW" inherits="Physics2DDirectBodyState" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Physics2DServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="shape_create"> - <return type="RID"> - </return> - <argument index="0" name="type" type="int"> - </argument> - <description> - </description> - </method> - <method name="shape_set_data"> - <argument index="0" name="shape" type="RID"> - </argument> - <argument index="1" name="data" type="var"> - </argument> - <description> - </description> - </method> - <method name="shape_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shape_get_data" qualifiers="const"> - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="space_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="space_set_active"> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="space_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <description> - </description> - </method> - <method name="space_set_param"> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="space_get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="space" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="area_set_space"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_add_shape"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape" type="int"> - </argument> - <argument index="2" name="transform" type="RID" default="1,0, 0,1, 0,0"> - </argument> - <description> - </description> - </method> - <method name="area_set_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_shape_transform"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="area_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_shape_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_remove_shape"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_clear_shapes"> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_set_param" qualifiers="const"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_param" qualifiers="const"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_attach_object_instance_ID"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_object_instance_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_create"> - <return type="RID"> - </return> - <argument index="0" name="mode" type="int" default="1"> - </argument> - <argument index="1" name="init_sleeping" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="body_set_space"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_get_space" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_mode"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_add_shape"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Matrix32" default="1,0, 0,1, 0,0"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape_transform"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_transform" qualifiers="const"> - <return type="Matrix32"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_remove_shape"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_clear_shapes"> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_attach_object_instance_ID"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_object_instance_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_enable_continuous_collision_detection"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="body_is_continuous_collision_detection_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_param"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="body_get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_static_simulate_motion"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="new_xform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="body_set_state"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="body_get_state" qualifiers="const"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_apply_impulse"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="impulse" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="body_set_axis_velocity"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis_velocity" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="body_add_collision_exception"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_remove_collision_exception"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="excepted_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_max_contacts_reported"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_max_contacts_reported" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_omit_force_integration"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="body_is_omitting_force_integration" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="pin_joint_create"> - <return type="RID"> - </return> - <argument index="0" name="anchor" type="Vector2"> - </argument> - <argument index="1" name="body_a" type="RID"> - </argument> - <argument index="2" name="body_b" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="groove_joint_create"> - <return type="RID"> - </return> - <argument index="0" name="groove1_a" type="Vector2"> - </argument> - <argument index="1" name="groove2_a" type="Vector2"> - </argument> - <argument index="2" name="anchor_b" type="Vector2"> - </argument> - <argument index="3" name="body_a" type="RID" default="RID()"> - </argument> - <argument index="4" name="body_b" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="damped_spring_joint_create"> - <return type="RID"> - </return> - <argument index="0" name="anchor_a" type="Vector2"> - </argument> - <argument index="1" name="anchor_b" type="Vector2"> - </argument> - <argument index="2" name="body_a" type="RID"> - </argument> - <argument index="3" name="body_b" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="damped_string_joint_set_param"> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="real" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="damped_string_joint_get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="joint_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="joint" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_create"> - <return type="RID"> - </return> - <argument index="0" name="receiver" type="Object"> - </argument> - <argument index="1" name="callback" type="String"> - </argument> - <argument index="2" name="userdata" type="var" default="NULL"> - </argument> - <argument index="3" name="persist" type="bool" default="true"> - </argument> - <description> - </description> - </method> - <method name="query_body_state"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_body_direct_state"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_area"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_intersection"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> - <argument index="2" name="notify_hint_only" type="bool" default="false"> - </argument> - <argument index="3" name="exclude" type="Array" default="Array()"> - </argument> - <argument index="4" name="usermask" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_ray"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="from" type="Vector2"> - </argument> - <argument index="2" name="dir" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_segment"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="from" type="Vector2"> - </argument> - <argument index="2" name="to" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_shape"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="query_clear"> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_target" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="free"> - <argument index="0" name="rid" type="RID"> - </argument> - <description> - </description> - </method> - <method name="set_active"> - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="SHAPE_LINE" value="0"> - </constant> - <constant name="SHAPE_SEGMENT" value="1"> - </constant> - <constant name="SHAPE_CIRCLE" value="2"> - </constant> - <constant name="SHAPE_RECTANGLE" value="3"> - </constant> - <constant name="SHAPE_CAPSULE" value="4"> - </constant> - <constant name="SHAPE_CONVEX_POLYGON" value="5"> - </constant> - <constant name="SHAPE_CONCAVE_POLYGON" value="6"> - </constant> - <constant name="SHAPE_CUSTOM" value="7"> - </constant> - <constant name="AREA_PARAM_OVERRIDE_PARAMS" value="0"> - </constant> - <constant name="AREA_PARAM_GRAVITY" value="1"> - </constant> - <constant name="AREA_PARAM_GRAVITY_VECTOR" value="2"> - </constant> - <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="3"> - </constant> - <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4"> - </constant> - <constant name="AREA_PARAM_DENSITY" value="5"> - </constant> - <constant name="AREA_PARAM_PRIORITY" value="6"> - </constant> - <constant name="BODY_MODE_STATIC" value="0"> - </constant> - <constant name="BODY_MODE_RIGID" value="1"> - </constant> - <constant name="BODY_MODE_CHARACTER" value="2"> - </constant> - <constant name="BODY_PARAM_BOUNCE" value="0"> - </constant> - <constant name="BODY_PARAM_FRICTION" value="1"> - </constant> - <constant name="BODY_PARAM_MASS" value="2"> - </constant> - <constant name="BODY_PARAM_MAX" value="3"> - </constant> - <constant name="BODY_STATE_TRANSFORM" value="0"> - </constant> - <constant name="BODY_STATE_LINEAR_VELOCITY" value="1"> - </constant> - <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2"> - </constant> - <constant name="BODY_STATE_SLEEPING" value="3"> - </constant> - <constant name="JOINT_PIN" value="0"> - </constant> - <constant name="JOINT_GROOVE" value="1"> - </constant> - <constant name="JOINT_DAMPED_SPRING" value="2"> - </constant> - <constant name="DAMPED_STRING_REST_LENGTH" value="0"> - </constant> - <constant name="DAMPED_STRING_STIFFNESS" value="1"> - </constant> - <constant name="DAMPED_STRING_DAMPING" value="2"> - </constant> - <constant name="TYPE_BODY" value="0"> - </constant> - <constant name="TYPE_AREA" value="1"> - </constant> - <constant name="AREA_BODY_ADDED" value="0"> - </constant> - <constant name="AREA_BODY_REMOVED" value="1"> - </constant> - <constant name="QUERY_NONE" value="0"> - </constant> - <constant name="QUERY_BODY_STATE" value="1"> - </constant> - <constant name="QUERY_BODY_DIRECT_STATE" value="2"> - </constant> - <constant name="QUERY_AREA_MONITOR" value="3"> - </constant> - <constant name="QUERY_INTERSECTION" value="4"> - </constant> - </constants> -</class> -<class name="Physics2DServerSW" inherits="Physics2DServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsBody" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_shape"> - <argument index="0" name="shape" type="Shape"> - </argument> - <argument index="1" name="transform" type="Transform" default="Transform()"> - </argument> - <description> - </description> - </method> - <method name="get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_shape"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="shape" type="Shape"> - </argument> - <description> - </description> - </method> - <method name="set_shape_transform"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_shape" qualifiers="const"> - <return type="Shape"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_shape_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_shape"> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_shapes"> - <description> - </description> - </method> - <method name="get_body" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="set_max_contacts_reported"> - <argument index="0" name="contacts" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_max_contacts_reported" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_contacts_reported_depth_treshold"> - <argument index="0" name="depth" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_contacts_reported_depth_treshold" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsBody2D" inherits="CollisionObject2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsDirectBodyState" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_total_gravity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="get_total_density" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_mass" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_inertia_tensor" qualifiers="const"> - <return type="Matrix3"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity"> - <argument index="0" name="velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity"> - <argument index="0" name="velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_transform"> - <argument index="0" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_transform" qualifiers="const"> - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="set_sleep_state"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_sleeping" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_contact_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_contact_local_pos" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_normal" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_pos" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_id" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_shape" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_velocity_at_pos" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsDirectBodyStateSW" inherits="PhysicsDirectBodyState" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="shape_create"> - <return type="RID"> - </return> - <argument index="0" name="shape_type" type="int"> - </argument> - <description> - </description> - </method> - <method name="shape_set_data"> - <argument index="0" name="shape" type="RID"> - </argument> - <argument index="1" name="data" type="var" default="-1"> - </argument> - <description> - </description> - </method> - <method name="shape_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shape_get_data" qualifiers="const"> - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="space_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="area_create"> - <return type="RID"> - </return> - <argument index="0" name="space" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="area_set_param"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="area_set_shape"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_set_bounds"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="bounds" type="Dictionary"> - </argument> - <description> - </description> - </method> - <method name="area_set_transform"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="area_get_param" qualifiers="const"> - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_bounds" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_create"> - <return type="RID"> - </return> - <argument index="0" name="space" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="body_set_mode"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_add_shape"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform" default="Transform()"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape_transform"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_attach_object_instance_ID"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="ID" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_object_instance_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_user_flags"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="user_flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_user_flags" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_set_param"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="body_get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_static_simulate_motion"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="motion" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="body_set_state"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="body_get_state" qualifiers="const"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_set_applied_force"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="applied_force" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_get_applied_force" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_applied_torque"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="applied_torque" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_get_applied_torque" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_axis_velocity"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_apply_impulse"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector3"> - </argument> - <argument index="2" name="impulse" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_add_collision_exception"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="against_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_remove_collision_exception"> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="against_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_create"> - <return type="RID"> - </return> - <argument index="0" name="receiver" type="Object"> - </argument> - <argument index="1" name="callback" type="String"> - </argument> - <argument index="2" name="userdata" type="var"> - </argument> - <argument index="3" name="persist" type="bool" default="true"> - </argument> - <description> - </description> - </method> - <method name="query_body_state"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_body_direct_state"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_area"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_intersection"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> - <argument index="2" name="exclude" type="Array" default="Array()"> - </argument> - <argument index="3" name="usermask" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_ray"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="origin" type="Vector3"> - </argument> - <argument index="2" name="dir" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_segment"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="from" type="Vector3"> - </argument> - <argument index="2" name="to" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_shape"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_bounds"> - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="bounds" type="Dictionary"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="query_clear"> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_target" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="free"> - <argument index="0" name="rid" type="RID"> - </argument> - <description> - </description> - </method> - <method name="set_active"> - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="SHAPE_PLANE" value="0"> - </constant> - <constant name="SHAPE_SPHERE" value="2"> - </constant> - <constant name="SHAPE_BOX" value="3"> - </constant> - <constant name="SHAPE_CAPSULE" value="4"> - </constant> - <constant name="SHAPE_CONVEX_POLYGON" value="5"> - </constant> - <constant name="SHAPE_CONCAVE_POLYGON" value="6"> - </constant> - <constant name="SHAPE_HEIGHTMAP" value="7"> - </constant> - <constant name="SHAPE_CUSTOM" value="8"> - </constant> - <constant name="AREA_PARAM_OVERRIDE_PARAMS" value="0"> - </constant> - <constant name="AREA_PARAM_GRAVITY" value="1"> - </constant> - <constant name="AREA_PARAM_GRAVITY_VECTOR" value="2"> - </constant> - <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="3"> - </constant> - <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4"> - </constant> - <constant name="AREA_PARAM_DENSITY" value="5"> - </constant> - <constant name="AREA_PARAM_PRIORITY" value="6"> - </constant> - <constant name="BODY_MODE_STATIC" value="0"> - </constant> - <constant name="BODY_MODE_RIGID" value="1"> - </constant> - <constant name="BODY_MODE_CHARACTER" value="2"> - </constant> - <constant name="BODY_PARAM_BOUNCE" value="0"> - </constant> - <constant name="BODY_PARAM_FRICTION" value="1"> - </constant> - <constant name="BODY_PARAM_MASS" value="2"> - </constant> - <constant name="BODY_STATE_TRANSFORM" value="0"> - </constant> - <constant name="BODY_STATE_LINEAR_VELOCITY" value="1"> - </constant> - <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2"> - </constant> - <constant name="BODY_STATE_SLEEPING" value="3"> - </constant> - <constant name="HINGE_VAR_ANGULAR_ONLY" value="0"> - </constant> - <constant name="HINGE_VAR_LOWER_LIMIT" value="1"> - </constant> - <constant name="HINGE_VAR_HIGHER_LIMIT" value="2"> - </constant> - <constant name="HINGE_VAR_LIMIT_SOFTNESS" value="3"> - </constant> - <constant name="HINGE_VAR_RELAXATION" value="4"> - </constant> - <constant name="HINGE_VAR_MOTOR_ENABLED" value="5"> - </constant> - <constant name="HINGE_VAR_MOTOR_TARGET_VELOCITY" value="6"> - </constant> - <constant name="HINGE_VAR_MOTOR_IMPULSE" value="7"> - </constant> - <constant name="CONE_TWIST_VAR_SWING_SPAN_LIMIT_1" value="0"> - </constant> - <constant name="CONE_TWIST_VAR_SWING_SPAN_LIMIT_2" value="1"> - </constant> - <constant name="CONE_TWIST_VAR_TWIST_SPAN_LIMIT" value="2"> - </constant> - <constant name="CONE_TWIST_VAR_BIAS" value="3"> - </constant> - <constant name="CONE_TWIST_VAR_RELAXATION" value="4"> - </constant> - <constant name="TYPE_BODY" value="0"> - </constant> - <constant name="TYPE_AREA" value="1"> - </constant> - <constant name="QUERY_NONE" value="0"> - </constant> - <constant name="QUERY_BODY_STATE" value="1"> - </constant> - <constant name="QUERY_BODY_DIRECT_STATE" value="2"> - </constant> - <constant name="QUERY_AREA_MONITOR" value="3"> - </constant> - <constant name="QUERY_INTERSECTION" value="4"> - </constant> - </constants> -</class> -<class name="PhysicsServerSW" inherits="PhysicsServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PinJoint2D" inherits="Joint2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PlaneShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_plane"> - <argument index="0" name="plane" type="Plane"> - </argument> - <description> - </description> - </method> - <method name="get_plane" qualifiers="const"> - <return type="Plane"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Popup" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="popup_centered"> - <argument index="0" name="size" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="popup_centered_ratio"> - <argument index="0" name="ratio" type="real" default="0.75"> - </argument> - <description> - </description> - </method> - <method name="popup_centered_minsize"> - <argument index="0" name="minsize" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="popup"> - <description> - </description> - </method> - <method name="set_exclusive"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_exclusive" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="about_to_show"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="NOTIFICATION_POST_POPUP" value="80"> - </constant> - </constants> -</class> -<class name="PopupDialog" inherits="Popup" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PopupMenu" inherits="Popup" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_icon_item"> - <argument index="0" name="texture" type="Object"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="add_item"> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="add_icon_check_item"> - <argument index="0" name="texture" type="Object"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="add_check_item"> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="add_submenu_item"> - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="submenu" type="int"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="set_item_text"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_item_icon"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="icon" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_item_accelerator"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="accel" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_item_metadata"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="var"> - </argument> - <description> - </description> - </method> - <method name="set_item_checked"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_disabled"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_submenu"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="submenu" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_item_as_separator"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_as_checkable"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_ID"> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_icon" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_metadata" qualifiers="const"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_accelerator" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_submenu" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_separator" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_checkable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_checked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_disabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_index" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="add_separator"> - <description> - </description> - </method> - <method name="remove_item"> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_pressed"> - <argument index="0" name="ID" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="PopupPanel" inherits="Popup" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Portal" inherits="VisualInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_shape"> - <argument index="0" name="points" type="Vector2Array"> - </argument> - <description> - </description> - </method> - <method name="get_shape" qualifiers="const"> - <return type="Vector2Array"> - </return> - <description> - </description> - </method> - <method name="set_enabled"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_disable_distance"> - <argument index="0" name="distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_disable_distance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_disabled_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_disabled_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_connect_range"> - <argument index="0" name="range" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_connect_range" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Position2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Position3D" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="ProximityGroup" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_group_name"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="broadcast"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="parameters" type="var"> - </argument> - <description> - </description> - </method> - <method name="set_dispatch_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_grid_radius"> - <argument index="0" name="radius" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_grid_radius" qualifiers="const"> - <return type="Vector3"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="broadcast"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="parameters" type="Array"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="ProximityGroup2D" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_group_size"> - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_group_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_group_notifym"> - <argument index="0" name="notify" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_group_notify" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="grouped"> - <argument index="0" name="pgroup" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="ungrouped"> - <argument index="0" name="pgroup" type="Object"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Range" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_val" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_value" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_min" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_max" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_step" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_page" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_unit_value" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_rounded_values" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_val"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_value"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_min"> - <argument index="0" name="minimum" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_max"> - <argument index="0" name="maximum" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_step"> - <argument index="0" name="step" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_page"> - <argument index="0" name="pagesize" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_unit_value"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_rounded_values"> - <argument index="0" name="arg0" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_exp_unit_value"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_unit_value_exp" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="share"> - <argument index="0" name="with" type="Object"> - </argument> - <description> - </description> - </method> - <method name="unshare"> - <description> - </description> - </method> - </methods> - <signals> - <signal name="value_changed"> - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </signal> - <signal name="changed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="RayShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_length"> - <argument index="0" name="length" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="RectangleShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_extents"> - <argument index="0" name="extents" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_extents" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Reference" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="init_ref"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="reference"> - <description> - </description> - </method> - <method name="unreference"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ReferenceFrame" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Resource" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_path"> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_path" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_name"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="changed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="_ResourceLoader" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="load"> - <return type="Resource"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type_hint" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_recognized_extensions_for_type"> - <return type="StringArray"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ResourcePreloader" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_resource"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="resource" type="Object"> - </argument> - <description> - </description> - </method> - <method name="remove_resource"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="rename_resource"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="newname" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_resource" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_resource" qualifiers="const"> - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_resource_list" qualifiers="const"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="_ResourceSaver" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="save"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="resource" type="Resource"> - </argument> - <description> - </description> - </method> - <method name="get_recognized_extensions"> - <return type="StringArray"> - </return> - <argument index="0" name="type" type="Object"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="RichTextLabel" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="add_image"> - <argument index="0" name="image" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="newline"> - <description> - </description> - </method> - <method name="push_font"> - <argument index="0" name="font" type="Object"> - </argument> - <description> - </description> - </method> - <method name="push_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="push_align"> - <argument index="0" name="align" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_indent"> - <argument index="0" name="level" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_list"> - <argument index="0" name="type" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_meta"> - <argument index="0" name="data" type="var"> - </argument> - <description> - </description> - </method> - <method name="push_underline"> - <description> - </description> - </method> - <method name="pop"> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - <method name="set_meta_underline"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_meta_underlined" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_scroll_active"> - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_scroll_active" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_scroll_follow"> - <argument index="0" name="follow" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_scroll_following" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_tab_size"> - <argument index="0" name="spaces" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_tab_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="meta_clicked"> - <argument index="0" name="meta" type="Nil"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="ALIGN_LEFT" value="0"> - </constant> - <constant name="ALIGN_CENTER" value="1"> - </constant> - <constant name="ALIGN_RIGHT" value="2"> - </constant> - <constant name="ALIGN_FILL" value="3"> - </constant> - <constant name="LIST_NUMBERS" value="0"> - </constant> - <constant name="LIST_LETTERS" value="1"> - </constant> - <constant name="LIST_DOTS" value="2"> - </constant> - <constant name="ITEM_MAIN" value="0"> - </constant> - <constant name="ITEM_TEXT" value="1"> - </constant> - <constant name="ITEM_IMAGE" value="2"> - </constant> - <constant name="ITEM_NEWLINE" value="3"> - </constant> - <constant name="ITEM_FONT" value="4"> - </constant> - <constant name="ITEM_COLOR" value="5"> - </constant> - <constant name="ITEM_UNDERLINE" value="6"> - </constant> - <constant name="ITEM_ALIGN" value="7"> - </constant> - <constant name="ITEM_INDENT" value="8"> - </constant> - <constant name="ITEM_LIST" value="9"> - </constant> - <constant name="ITEM_META" value="10"> - </constant> - </constants> -</class> -<class name="RigidBody2D" inherits="PhysicsBody2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_mass"> - <argument index="0" name="mass" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_mass" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_weight"> - <argument index="0" name="weight" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_weight" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_friction"> - <argument index="0" name="friction" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_friction" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_bounce"> - <argument index="0" name="bounce" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_bounce" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity"> - <argument index="0" name="linear_velocity" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity"> - <argument index="0" name="angular_velocity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_max_contacts_reported"> - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_max_contacts_reported" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_use_custom_integrator"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_custom_integrator"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_contact_monitor"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_contact_monitor_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_use_continuous_collision_detection"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_continuous_collision_detection" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_axis_velocity"> - <argument index="0" name="axis_velocity" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="apply_impulse"> - <argument index="0" name="pos" type="Vector2"> - </argument> - <argument index="1" name="impulse" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_active"> - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_active" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="body_enter"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="body_enter_shape"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> - <description> - </description> - </signal> - <signal name="body_exit"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="body_exit_shape"> - <argument index="0" name="body_id" type="int"> - </argument> - <argument index="1" name="body" type="Object"> - </argument> - <argument index="2" name="body_shape" type="int"> - </argument> - <argument index="3" name="local_shape" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="MODE_STATIC" value="1"> - </constant> - <constant name="MODE_RIGID" value="0"> - </constant> - <constant name="MODE_CHARACTER" value="2"> - </constant> - </constants> -</class> -<class name="Room" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_bounds"> - <argument index="0" name="bsp_tree" type="Dictionary"> - </argument> - <description> - </description> - </method> - <method name="get_bounds" qualifiers="const"> - <return type="Dictionary"> - </return> - <description> - </description> - </method> - <method name="set_geometry_hint"> - <argument index="0" name="triangles" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="get_geometry_hint" qualifiers="const"> - <return type="Vector3Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="RoomInstance" inherits="VisualInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_room"> - <argument index="0" name="room" type="Room"> - </argument> - <description> - </description> - </method> - <method name="get_room" qualifiers="const"> - <return type="Room"> - </return> - <description> - </description> - </method> - <method name="compute_room_from_subtree"> - <description> - </description> - </method> - <method name="set_simulate_acoustics"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_simulating_acoustics" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SSAOFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Sample" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="create"> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="stereo" type="bool"> - </argument> - <argument index="2" name="length" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_format" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="is_stereo" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_data"> - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="get_data" qualifiers="const"> - <return type="RawArray"> - </return> - <description> - </description> - </method> - <method name="set_mix_rate"> - <argument index="0" name="hz" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_mix_rate" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_loop_format"> - <argument index="0" name="format" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_loop_format" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_loop_begin"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_loop_begin" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_loop_end"> - <argument index="0" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_loop_end" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="FORMAT_PCM8" value="0"> - </constant> - <constant name="FORMAT_PCM16" value="1"> - </constant> - <constant name="FORMAT_IMA_ADPCM" value="2"> - </constant> - <constant name="LOOP_NONE" value="0"> - </constant> - <constant name="LOOP_FORWARD" value="1"> - </constant> - <constant name="LOOP_PING_PONG" value="2"> - </constant> - </constants> -</class> -<class name="SampleLibrary" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_sample"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="sample" type="Sample"> - </argument> - <description> - </description> - </method> - <method name="get_sample" qualifiers="const"> - <return type="Sample"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_sample" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="remove_sample"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SamplePlayer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_sample_library"> - <argument index="0" name="library" type="SampleLibrary"> - </argument> - <description> - </description> - </method> - <method name="get_sample_library" qualifiers="const"> - <return type="SampleLibrary"> - </return> - <description> - </description> - </method> - <method name="set_voice_count"> - <argument index="0" name="max_voices" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_voice_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="play"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="unique" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="stop"> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="stop_all"> - <description> - </description> - </method> - <method name="set_mix_rate"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="hz" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_pitch_scale"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_volume"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="nrg" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_volume_db"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="nrg" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_pan"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="pan" type="real"> - </argument> - <argument index="2" name="depth" type="real" default="0"> - </argument> - <argument index="3" name="height" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_filter"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="cutoff_hz" type="real"> - </argument> - <argument index="3" name="resonance" type="real"> - </argument> - <argument index="4" name="gain" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_chorus"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_reverb"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="room_type" type="int"> - </argument> - <argument index="2" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_mix_rate" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_pitch_scale" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_volume" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_volume_db" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_pan" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_pan_depth" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_pan_height" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_filter_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_filter_cutoff" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_filter_resonance" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_filter_gain" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_chorus" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_reverb_room" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_reverb" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_default_pitch_scale"> - <argument index="0" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_volume"> - <argument index="0" name="nrg" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_volume_db"> - <argument index="0" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_pan"> - <argument index="0" name="pan" type="real"> - </argument> - <argument index="1" name="depth" type="real" default="0"> - </argument> - <argument index="2" name="height" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_default_filter"> - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="cutoff_hz" type="real"> - </argument> - <argument index="2" name="resonance" type="real"> - </argument> - <argument index="3" name="gain" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_default_chorus"> - <argument index="0" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_reverb"> - <argument index="0" name="room_type" type="int"> - </argument> - <argument index="1" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_default_pitch_scale" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_volume" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_volume_db" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan_depth" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan_height" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_type" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_cutoff" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_resonance" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_gain" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_chorus" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_reverb_room" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_reverb" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="is_active" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_voice_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="FILTER_NONE" value="0"> - </constant> - <constant name="FILTER_LOWPASS" value="1"> - </constant> - <constant name="FILTER_BANDPASS" value="2"> - </constant> - <constant name="FILTER_HIPASS" value="3"> - </constant> - <constant name="FILTER_NOTCH" value="4"> - </constant> - <constant name="FILTER_PEAK" value="5"> - </constant> - <constant name="FILTER_BANDLIMIT" value="6"> - </constant> - <constant name="FILTER_LOW_SHELF" value="7"> - </constant> - <constant name="FILTER_HIGH_SHELF" value="8"> - </constant> - <constant name="REVERB_SMALL" value="0"> - </constant> - <constant name="REVERB_MEDIUM" value="1"> - </constant> - <constant name="REVERB_LARGE" value="2"> - </constant> - <constant name="REVERB_HALL" value="3"> - </constant> - </constants> -</class> -<class name="ScenarioFX" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SceneIO" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="load"> - <return type="Object"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="save"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="scene" type="Object"> - </argument> - <argument index="2" name="flags" type="int" default="0"> - </argument> - <argument index="3" name="optimizer" type="Object" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="load_interactive"> - <return type="SceneInteractiveLoader"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SceneMainLoop" inherits="MainLoop" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_default_world" qualifiers="const"> - <return type="World"> - </return> - <description> - </description> - </method> - <method name="get_default_viewport" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="get_default_viewport_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_default_canvas" qualifiers="const"> - <return type="Canvas"> - </return> - <description> - </description> - </method> - <method name="get_default_space_2d" qualifiers="const"> - <return type="Space2D"> - </return> - <description> - </description> - </method> - <method name="notify_group"> - <argument index="0" name="call_flags" type="int"> - </argument> - <argument index="1" name="group" type="String"> - </argument> - <argument index="2" name="notification" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_group"> - <argument index="0" name="call_flags" type="int"> - </argument> - <argument index="1" name="group" type="String"> - </argument> - <argument index="2" name="property" type="String"> - </argument> - <argument index="3" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_root_node"> - <return type="Node"> - </return> - <description> - </description> - </method> - <method name="set_root_node"> - <argument index="0" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="set_auto_accept_quit"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_editor_hint"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editor_hint" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_pause"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_paused" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_input_as_handled"> - <description> - </description> - </method> - <method name="get_frame" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="quit"> - <description> - </description> - </method> - <method name="call_group"> - <argument index="0" name="flags" type="int"> - </argument> - <argument index="1" name="group" type="String"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <argument index="3" name="arg0" type="var" default="NULL"> - </argument> - <argument index="4" name="arg1" type="var" default="NULL"> - </argument> - <argument index="5" name="arg2" type="var" default="NULL"> - </argument> - <argument index="6" name="arg3" type="var" default="NULL"> - </argument> - <argument index="7" name="arg4" type="var" default="NULL"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="screen_resized"> - <description> - </description> - </signal> - <signal name="node_removed"> - <argument index="0" name="node" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="tree_changed"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="GROUP_CALL_DEFAULT" value="0"> - </constant> - <constant name="GROUP_CALL_REVERSE" value="1"> - </constant> - <constant name="GROUP_CALL_REALTIME" value="2"> - </constant> - <constant name="GROUP_CALL_UNIQUE" value="4"> - </constant> - </constants> -</class> -<class name="ScenePreloader" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="load_scene"> - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_scene_path" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="instance" qualifiers="const"> - <return type="Node"> - </return> - <description> - </description> - </method> - <method name="can_instance" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ScreenProximity2D" inherits="ProximityGroup2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="enter_screen"> - <description> - </description> - </method> - <method name="exit_screen"> - <description> - </description> - </method> - </methods> - <signals> - <signal name="enter_screen"> - <description> - </description> - </signal> - <signal name="exit_screen"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Script" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="can_instance" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="instance_has" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="base_object" type="Object"> - </argument> - <description> - </description> - </method> - <method name="has_source_code" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_source_code" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_source_code"> - <argument index="0" name="source" type="String"> - </argument> - <description> - </description> - </method> - <method name="reload"> - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ScrollBar" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_custom_step"> - <argument index="0" name="step" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_custom_step" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SegmentShape2D" inherits="Shape2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_a"> - <argument index="0" name="a" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_a" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_b"> - <argument index="0" name="b" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_b" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Separator" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Shader" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_vertex_code"> - <argument index="0" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_vertex_code" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_fragment_code"> - <argument index="0" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_fragment_code" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_use_world_transform"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_world_transform" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_param"> - <argument index="0" name="param" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const"> - <argument index="0" name="param" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_param_list" qualifiers="const"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="MODE_MATERIAL" value="0"> - </constant> - <constant name="MODE_POST_PROCESS" value="1"> - </constant> - </constants> -</class> -<class name="ShaderMaterial" inherits="Material" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_shader"> - <argument index="0" name="shader" type="Shader"> - </argument> - <description> - </description> - </method> - <method name="get_shader" qualifiers="const"> - <return type="Shader"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Shape" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Shape2D" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Skeleton" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_bone"> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="find_bone" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_bone_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_bone_parent" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_bone_parent"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="parent_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_bone_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_bone_rest" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_bone_rest"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="rest" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="bind_child_node_to_bone"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="unbind_child_node_from_bone"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="node" type="Node"> - </argument> - <description> - </description> - </method> - <method name="get_bound_child_nodes_to_bone" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_bones"> - <description> - </description> - </method> - <method name="get_bone_pose" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_bone_pose"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="pose" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_bone_custom_pose" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_bone_custom_pose"> - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="custom_pose" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_bone_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_UPDATE_SKELETON" value="50"> - </constant> - </constants> -</class> -<class name="SkyBoxFX" inherits="ScenarioFX" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Slider" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_ticks"> - <argument index="0" name="count" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_ticks" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_ticks_on_borders" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_ticks_on_borders"> - <argument index="0" name="ticks_on_border" type="bool"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SoundRoomParams" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_param"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_reverb_mode"> - <argument index="0" name="reverb_mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_reverb_mode" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_force_params_to_all_sources"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_forcing_params_to_all_sources"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Spatial" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_transform"> - <argument index="0" name="local" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_transform" qualifiers="const"> - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="set_global_transform"> - <argument index="0" name="global" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_global_transform" qualifiers="const"> - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="get_parent_spatial" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="update_gizmo"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_UPDATE_GIZMO" value="43"> - </constant> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="40"> - </constant> - <constant name="NOTIFICATION_SCENARIO_CHANGED" value="41"> - </constant> - </constants> -</class> -<class name="SpatialPlayer" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_param"> - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PARAM_VOLUME_DB" value="0"> - </constant> - <constant name="PARAM_PITCH_SCALE" value="1"> - </constant> - <constant name="PARAM_ATTENUATION_MIN_DISTANCE" value="2"> - </constant> - <constant name="PARAM_ATTENUATION_MAX_DISTANCE" value="3"> - </constant> - <constant name="PARAM_ATTENUATION_DISTANCE_EXP" value="4"> - </constant> - <constant name="PARAM_EMISSION_CONE_DEGREES" value="5"> - </constant> - <constant name="PARAM_EMISSION_CONE_ATTENUATION_DB" value="6"> - </constant> - <constant name="PARAM_MAX" value="7"> - </constant> - </constants> -</class> -<class name="SpatialSamplePlayer" inherits="SpatialPlayer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_sample_library"> - <argument index="0" name="library" type="SampleLibrary"> - </argument> - <description> - </description> - </method> - <method name="get_sample_library" qualifiers="const"> - <return type="SampleLibrary"> - </return> - <description> - </description> - </method> - <method name="set_polyphony"> - <argument index="0" name="voices" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_polyphony" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="play"> - <return type="int"> - </return> - <argument index="0" name="sample" type="String"> - </argument> - <argument index="1" name="voice" type="int" default="-2"> - </argument> - <description> - </description> - </method> - <method name="voice_set_pitch_scale"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_volume_scale_db"> - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="is_voice_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="stop_voice"> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="stop_all"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="INVALID_VOICE" value="-1"> - </constant> - <constant name="NEXT_VOICE" value="-2"> - </constant> - </constants> -</class> -<class name="SpatialSoundServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SpatialSoundServerSW" inherits="SpatialSoundServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SpatialStreamPlayer" inherits="SpatialPlayer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream"> - <argument index="0" name="stream" type="Stream"> - </argument> - <description> - </description> - </method> - <method name="get_stream" qualifiers="const"> - <return type="Stream"> - </return> - <description> - </description> - </method> - <method name="play"> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="seek_pos"> - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SphereShape" inherits="Shape" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius"> - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SpinBox" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_suffix"> - <argument index="0" name="suffix" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_suffix" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_prefix"> - <argument index="0" name="prefix" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_prefix" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_editable"> - <argument index="0" name="editable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editable" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SpotLight" inherits="Light" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Sprite" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="set_centered"> - <argument index="0" name="centered" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_centered" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_flip_h"> - <argument index="0" name="flip_h" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_flipped_h" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_flip_v"> - <argument index="0" name="flip_v" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_flipped_v" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_region"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_region" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_region_rect"> - <argument index="0" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="get_region_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="set_frame"> - <argument index="0" name="frame" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_frame" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_vframes"> - <argument index="0" name="vframes" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_vframes" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_hframes"> - <argument index="0" name="hframes" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_hframes" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_modulate"> - <argument index="0" name="modulate" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_modulate" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SquirrelScript" inherits="Script" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="StaticBody" inherits="PhysicsBody" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_simulated_motion"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_simulating_motion" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="simulate_motion"> - <argument index="0" name="new_transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="create_shapes_from_child_meshes"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StaticBody2D" inherits="PhysicsBody2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_simulate_motion"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_simulating_motion" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_constant_linear_velocity"> - <argument index="0" name="vel" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_constant_angular_velocity"> - <argument index="0" name="vel" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_constant_linear_velocity" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_constant_angular_velocity" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPeer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="put_data"> - <return type="int"> - </return> - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="put_partial_data"> - <return type="Array"> - </return> - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="get_data"> - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_partial_data"> - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPeerTCP" inherits="StreamPeer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="connect"> - <return type="int"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="ip" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_connected" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_connected_host" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_connected_port" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="disconnect"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPlayer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream"> - <argument index="0" name="stream" type="Stream"> - </argument> - <description> - </description> - </method> - <method name="get_stream" qualifiers="const"> - <return type="Stream"> - </return> - <description> - </description> - </method> - <method name="play"> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_paused"> - <argument index="0" name="paused" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_paused" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_volume"> - <argument index="0" name="volume" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_volume_db"> - <argument index="0" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume_db" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="seek_pos"> - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_autoplay"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autoplay" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_length" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBox" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="test_mask" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="set_default_margin"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="offset" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_default_margin" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_margin" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_minimum_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_center_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="draw" qualifiers="const"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxEmpty" inherits="StyleBox" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxFlat" inherits="StyleBox" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_bg_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_bg_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_light_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_light_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_dark_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_dark_color" qualifiers="const"> - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_border_size"> - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_border_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_border_blend"> - <argument index="0" name="blend" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_border_blend" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_draw_center"> - <argument index="0" name="size" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_draw_center" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxImageMask" inherits="StyleBox" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_image"> - <argument index="0" name="image" type="Image"> - </argument> - <description> - </description> - </method> - <method name="get_image" qualifiers="const"> - <return type="Image"> - </return> - <description> - </description> - </method> - <method name="set_expand"> - <argument index="0" name="expand" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_expand" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_expand_margin_size"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_expand_margin_size" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxTexture" inherits="StyleBox" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="set_margin_size"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_margin_size" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_expand_margin_size"> - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_expand_margin_size" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_draw_center"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_draw_center" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SurfaceTool" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="begin"> - <argument index="0" name="primitive" type="int"> - </argument> - <description> - </description> - </method> - <method name="add_vertex"> - <argument index="0" name="vertex" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_normal"> - <argument index="0" name="normal" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_tangent"> - <argument index="0" name="tangent" type="Plane"> - </argument> - <description> - </description> - </method> - <method name="add_uv"> - <argument index="0" name="uv" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_uv2"> - <argument index="0" name="uv2" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_bones"> - <argument index="0" name="bones" type="IntArray"> - </argument> - <description> - </description> - </method> - <method name="add_weights"> - <argument index="0" name="weights" type="RealArray"> - </argument> - <description> - </description> - </method> - <method name="set_material"> - <argument index="0" name="material" type="Material"> - </argument> - <description> - </description> - </method> - <method name="index"> - <description> - </description> - </method> - <method name="deindex"> - <description> - </description> - </method> - <method name="generate_flat_normals"> - <description> - </description> - </method> - <method name="generate_smooth_normals"> - <description> - </description> - </method> - <method name="generate_tangents"> - <description> - </description> - </method> - <method name="commit"> - <return type="Mesh"> - </return> - <argument index="0" name="existing" type="Mesh" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TCP_Server" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="listen"> - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="accepted_hosts" type="StringArray" default="StringArray()"> - </argument> - <description> - </description> - </method> - <method name="is_connection_available" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="take_connection"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TabContainer" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_tab_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_current_tab"> - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_current_tab" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_tab_align"> - <argument index="0" name="align" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_tab_align" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_tabs_visible"> - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="are_tabs_visible" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_tab_title"> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tab_title" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_tab_icon"> - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="icon" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_tab_icon" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="tab_changed"> - <argument index="0" name="tab" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="TestCube" inherits="GeometryInstance" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="TextEdit" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_text"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="insert_text_at_cursor"> - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_line_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_text"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_line"> - <return type="String"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_column"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_line"> - <argument index="0" name="line" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_get_column" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="cursor_get_line" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_readonly"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_wrap"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_max_chars"> - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="cut"> - <description> - </description> - </method> - <method name="copy"> - <description> - </description> - </method> - <method name="paste"> - <description> - </description> - </method> - <method name="select_all"> - <description> - </description> - </method> - <method name="select"> - <argument index="0" name="from_line" type="int"> - </argument> - <argument index="1" name="from_column" type="int"> - </argument> - <argument index="2" name="to_line" type="int"> - </argument> - <argument index="3" name="to_column" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_selection_active" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_selection_from_line" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_from_column" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_to_line" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_to_column" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_text" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="search" qualifiers="const"> - <return type="IntArray"> - </return> - <argument index="0" name="flags" type="String"> - </argument> - <argument index="1" name="from_line" type="int"> - </argument> - <argument index="2" name="from_column" type="int"> - </argument> - <argument index="3" name="to_line" type="int"> - </argument> - <description> - </description> - </method> - <method name="undo"> - <description> - </description> - </method> - <method name="redo"> - <description> - </description> - </method> - <method name="clear_undo_history"> - <description> - </description> - </method> - <method name="set_syntax_coloring"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_syntax_coloring_enabled" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="add_keyword_color"> - <argument index="0" name="keyword" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_color_region"> - <argument index="0" name="begin_key" type="String"> - </argument> - <argument index="1" name="end_key" type="String"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="line_only" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="set_symbol_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="set_custom_bg_color"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_colors"> - <description> - </description> - </method> - </methods> - <signals> - <signal name="text_changed"> - <description> - </description> - </signal> - <signal name="cursor_changed"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="SEARCH_MATCH_CASE" value="1"> - </constant> - <constant name="SEARCH_WHOLE_WORDS" value="2"> - </constant> - <constant name="SEARCH_BACKWARDS" value="4"> - </constant> - </constants> -</class> -<class name="Texture" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="create"> - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="format" type="int"> - </argument> - <argument index="3" name="flags" type="int"> - </argument> - <argument index="4" name="arg4" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="create_from_image"> - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="flags" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="set_flags"> - <argument index="0" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_flags" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_format" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="load"> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_data"> - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="cube_side" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_data" qualifiers="const"> - <return type="Image"> - </return> - <argument index="0" name="cube_side" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_width" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_height" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_size" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_rid" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="has_alpha" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="draw" qualifiers="const"> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="FLAG_MIPMAPS" value="1"> - </constant> - <constant name="FLAG_REPEAT" value="2"> - </constant> - <constant name="FLAG_FILTER" value="4"> - </constant> - <constant name="FLAG_CUBEMAP" value="8"> - </constant> - <constant name="FLAG_VIDEO_SURFACE" value="16"> - </constant> - <constant name="FLAGS_DEFAULT" value="7"> - </constant> - <constant name="CUBEMAP_LEFT" value="0"> - </constant> - <constant name="CUBEMAP_RIGHT" value="1"> - </constant> - <constant name="CUBEMAP_BOTTOM" value="2"> - </constant> - <constant name="CUBEMAP_TOP" value="3"> - </constant> - <constant name="CUBEMAP_FRONT" value="4"> - </constant> - <constant name="CUBEMAP_BACK" value="5"> - </constant> - </constants> -</class> -<class name="TextureButton" inherits="BaseButton" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_normal_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_pressed_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_hover_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_disabled_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_focused_texture"> - <argument index="0" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="set_click_mask"> - <argument index="0" name="texture:Image" type="Image"> - </argument> - <description> - </description> - </method> - <method name="get_normal_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="get_pressed_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="get_hover_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="get_disabled_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="get_focused_texture" qualifiers="const"> - <return type="Texture"> - </return> - <description> - </description> - </method> - <method name="get_click_mask" qualifiers="const"> - <return type="Image"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TextureFrame" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture"> - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_expand"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_expand" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TextureProgress" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_under_texture"> - <argument index="0" name="tex" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_under_texture" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_progress_texture"> - <argument index="0" name="tex" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_progress_texture" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_over_texture"> - <argument index="0" name="tex" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_over_texture" qualifiers="const"> - <return type="Object"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Theme" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_icon"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_icon" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_icon"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_icon_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_stylebox"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="texture" type="StyleBox"> - </argument> - <description> - </description> - </method> - <method name="get_stylebox" qualifiers="const"> - <return type="StyleBox"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_stylebox" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_stylebox"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_stylebox_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_font"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="font" type="Font"> - </argument> - <description> - </description> - </method> - <method name="get_font" qualifiers="const"> - <return type="Font"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_font" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_font"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_font_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_color"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_color" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_color"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_color_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_constant"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="constant" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_constant" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_constant" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_constant"> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_constant_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_type_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="copy_default_theme"> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TileMap" inherits="Node2D" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_tileset"> - <argument index="0" name="tileset" type="TileSet"> - </argument> - <description> - </description> - </method> - <method name="get_tileset" qualifiers="const"> - <return type="TileSet"> - </return> - <description> - </description> - </method> - <method name="set_cell_size"> - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_cell_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_quadrant_size"> - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_quadrant_size" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_center_x"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_x" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_center_y"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_y" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_cell"> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="tile" type="int"> - </argument> - <argument index="3" name="flip_x" type="bool" default="false"> - </argument> - <argument index="4" name="flip_y" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="get_cell" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_cell_x_flipped" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_cell_y_flipped" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - </methods> - <constants> - <constant name="INVALID_CELL" value="-1"> - </constant> - </constants> -</class> -<class name="TileSet" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="create_tile"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="tile_set_name"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="tile_get_name" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="tile_set_texture"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="tile_get_texture" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="tile_set_offset"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="offset" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="tile_get_offset" qualifiers="const"> - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="tile_set_region"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="region" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="tile_get_region" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="tile_set_shape"> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="shape" type="Shape2D"> - </argument> - <description> - </description> - </method> - <method name="tile_get_shape" qualifiers="const"> - <return type="Shape2D"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_tile"> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear"> - <description> - </description> - </method> - <method name="get_last_unused_tile_id" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="find_tile_by_name" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tiles_ids" qualifiers="const"> - <return type="Array"> - </return> - <description> - - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Timer" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_wait_time"> - <argument index="0" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_wait_time" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_one_shot"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_one_shot" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autostart"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autostart" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="start"> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="get_time_left" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="timeout"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Translation" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_locale"> - <argument index="0" name="locale" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_locale" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="add_message"> - <argument index="0" name="src_message" type="String"> - </argument> - <argument index="1" name="xlated_message" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_message" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="src_message" type="String"> - </argument> - <description> - </description> - </method> - <method name="erase_message"> - <argument index="0" name="src_message" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_message_list" qualifiers="const"> - <return type="StringArray"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TranslationServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Tree" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="clear"> - <description> - </description> - </method> - <method name="create_item"> - <return type="TreeItem"> - </return> - <argument index="0" name="parent" type="TreeItem" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="get_root"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="set_column_min_width"> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_column_expand"> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_column_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_hide_root"> - <argument index="0" name="arg0" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_next_selected"> - <return type="TreeItem"> - </return> - <argument index="0" name="from" type="TreeItem"> - </argument> - <description> - </description> - </method> - <method name="get_selected" qualifiers="const"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_selected_column" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pressed_button" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_select_mode"> - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_columns"> - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_columns" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_edited" qualifiers="const"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_edited_column" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_custom_popup_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_item_area_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="item" type="TreeItem"> - </argument> - <argument index="1" name="column" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="ensure_cursor_is_visible"> - <description> - </description> - </method> - <method name="set_column_titles_visible"> - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="are_column_titles_visible" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_column_title"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_column_title" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_scroll" qualifiers="const"> - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_activated"> - <description> - </description> - </signal> - <signal name="multi_selected"> - <argument index="0" name="item" type="Object"> - </argument> - <argument index="1" name="column" type="int"> - </argument> - <argument index="2" name="selected" type="bool"> - </argument> - <description> - </description> - </signal> - <signal name="custom_popup_edited"> - <argument index="0" name="arrow_clicked" type="bool"> - </argument> - <description> - </description> - </signal> - <signal name="item_edited"> - <description> - </description> - </signal> - <signal name="item_selected"> - <description> - </description> - </signal> - <signal name="cell_selected"> - <description> - </description> - </signal> - <signal name="button_pressed"> - <argument index="0" name="item" type="Object"> - </argument> - <argument index="1" name="column" type="int"> - </argument> - <argument index="2" name="id" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="SELECT_SINGLE" value="0"> - </constant> - <constant name="SELECT_ROW" value="1"> - </constant> - <constant name="SELECT_MULTI" value="2"> - </constant> - </constants> -</class> -<class name="TreeItem" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_cell_mode"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_cell_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_checked"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="checked" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_checked" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_text"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_icon"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="texture" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_icon_region"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="region" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="get_icon_region" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_icon_max_width"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="width" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_icon_max_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_range"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_range" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_range_config"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="min" type="real"> - </argument> - <argument index="2" name="max" type="real"> - </argument> - <argument index="3" name="step" type="real"> - </argument> - <argument index="4" name="expr" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="get_range_config"> - <return type="Dictionary"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_metadata"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="meta" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_metadata" qualifiers="const"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_collapsed"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_collapsed"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_next"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_prev"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_parent"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_children"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_next_visible"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="get_prev_visible"> - <return type="TreeItem"> - </return> - <description> - </description> - </method> - <method name="remove_child"> - <argument index="0" name="child" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_selectable"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="selectable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_selectable" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_selected"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="select"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="deselect"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_editable"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editable"> - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_custom_color"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_custom_color"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_custom_bg_color"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_custom_bg_color"> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_custom_bg_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="add_button"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button" type="Texture"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button" qualifiers="const"> - <return type="Texture"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_button"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_tooltip"> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="tooltip" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tooltip" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="CELL_MODE_STRING" value="0"> - </constant> - <constant name="CELL_MODE_CHECK" value="1"> - </constant> - <constant name="CELL_MODE_RANGE" value="2"> - </constant> - <constant name="CELL_MODE_ICON" value="3"> - </constant> - <constant name="CELL_MODE_CUSTOM" value="4"> - </constant> - </constants> -</class> -<class name="VBoxContainer" inherits="BoxContainer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VButtonArray" inherits="ButtonArray" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VScrollBar" inherits="ScrollBar" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VSeparator" inherits="Separator" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VSlider" inherits="Slider" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VideoPlayer" inherits="Control" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream"> - <argument index="0" name="stream" type="Stream"> - </argument> - <description> - </description> - </method> - <method name="get_stream" qualifiers="const"> - <return type="Stream"> - </return> - <description> - </description> - </method> - <method name="play"> - <description> - </description> - </method> - <method name="stop"> - <description> - </description> - </method> - <method name="is_playing" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_paused"> - <argument index="0" name="paused" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_paused" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_volume"> - <argument index="0" name="volume" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_volume_db"> - <argument index="0" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume_db" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const"> - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_autoplay"> - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autoplay" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_expand"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_expand" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VideoStream" inherits="AudioStreamResampled" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_pending_frame_count" qualifiers="const"> - <return type="int"> - </return> - <description> - </description> - </method> - <method name="pop_frame"> - <return type="Image"> - </return> - <description> - </description> - </method> - <method name="peek_frame" qualifiers="const"> - <return type="Image"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VideoStreamTheora" inherits="VideoStream" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Viewport" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_rect"> - <argument index="0" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="get_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_visible_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="set_transparent_background"> - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_transparent_background" qualifiers="const"> - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_viewport" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VisualInstance" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_base"> - <argument index="0" name="base" type="RID"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VisualServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="texture_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="texture_create_from_image"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="Image"> - </argument> - <argument index="1" name="arg1" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="texture_set_flags"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="texture_get_flags" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="texture_get_width" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="texture_get_height" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_create"> - <return type="RID"> - </return> - <argument index="0" name="mode" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="shader_set_mode"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="shader_get_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_vertex_code"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_vertex_code" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_fragment_code"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_fragment_code" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_param"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="String"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="shader_get_param" qualifiers="const"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_param_list" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_use_world_transform"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="shader_is_using_world_transform" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="material_set_shader"> - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_get_shader" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_set_param"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="var"> - </argument> - <description> - </description> - </method> - <method name="material_get_param" qualifiers="const"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="material_set_flag"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="bool"> - </argument> - <description> - </description> - </method> - <method name="material_get_flag" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="material_set_blend_mode"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="material_get_blend_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_set_line_width"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="material_get_line_width" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_parameter"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="var"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_parameter" qualifiers="const"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texture"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texture" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texgen_mode"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texgen_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texcoord_mode"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texcoord_mode" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_uv_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_uv_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="mesh_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="mesh_add_surface"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <argument index="3" name="arg3" type="int"> - </argument> - <argument index="4" name="arg4" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_set_array"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <argument index="3" name="arg3" type="var"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array" qualifiers="const"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_set_material"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_material" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array_index_len" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_format" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_primitive_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_erase_surface"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_get_surface_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="multimesh_set_mesh"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_set_aabb"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_set_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_set_color"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="multimesh_get_mesh" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_get_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_get_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="poly_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="poly_set_material"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <argument index="2" name="arg2" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="poly_clear"> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="particles_set_amount"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_amount" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_emitting"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="particles_is_emitting" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_visibility_aabb"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="particles_get_visibility_aabb" qualifiers="const"> - <return type="AABB"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_variable"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_variable" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_randomness"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_randomness" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phases"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phases" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phase_pos"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phase_pos" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phase_color"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phase_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractors"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractors" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractor_pos"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractor_pos" qualifiers="const"> - <return type="Vector3"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractor_strength"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractor_strength" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_material"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <argument index="2" name="arg2" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="particles_set_height_from_velocity"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="particles_has_height_from_velocity" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_create"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="light_get_type" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_color"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="light_get_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="light_set_shadow"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="light_has_shadow" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_volumetric"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="light_is_volumetric" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_projector"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_get_projector" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_var"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="light_get_var" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="skeleton_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="skeleton_resize"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="skeleton_get_bone_count" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="skeleton_bone_set_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="skeleton_bone_get_transform"> - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="room_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="room_set_bounds"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Dictionary"> - </argument> - <description> - </description> - </method> - <method name="room_get_bounds" qualifiers="const"> - <return type="Dictionary"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="portal_set_shape"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2Array"> - </argument> - <description> - </description> - </method> - <method name="portal_get_shape" qualifiers="const"> - <return type="Vector2Array"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_enabled"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="portal_is_enabled" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_disable_distance"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="portal_get_disable_distance" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_disabled_color"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Color"> - </argument> - <description> - </description> - </method> - <method name="portal_get_disabled_color" qualifiers="const"> - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="camera_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="camera_set_perspective"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <argument index="3" name="arg3" type="real"> - </argument> - <description> - </description> - </method> - <method name="camera_set_orthogonal"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <argument index="3" name="arg3" type="real"> - </argument> - <description> - </description> - </method> - <method name="camera_set_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="viewport_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="viewport_set_rect"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_rect" qualifiers="const"> - <return type="Rect2"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_attach_camera"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_attached_camera" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_scenario" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_attach_canvas"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_remove_canvas"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="scenario_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="scenario_set_debug"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effects" qualifiers="const"> - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_set_active"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="bool"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_is_active" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effect_params" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effect_param" qualifiers="const"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_set_effect_param"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="String"> - </argument> - <argument index="3" name="arg3" type="var"> - </argument> - <description> - </description> - </method> - <method name="instance_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="instance_get_base" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_base_aabb" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="instance_get_transform" qualifiers="const"> - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_attach_object_instance_ID"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="instance_get_object_instance_ID" qualifiers="const"> - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_attach_skeleton"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_skeleton" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_room"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_room" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_exterior"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="instance_is_exterior" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_aabb" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="arg0" type="AABB"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_ray" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="arg0" type="Vector3"> - </argument> - <argument index="1" name="arg1" type="Vector3"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_convex" qualifiers="const"> - <return type="Array"> - </return> - <argument index="0" name="arg0" type="Vector3"> - </argument> - <argument index="1" name="arg1" type="Vector3"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_set_visible"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_is_visible" qualifiers="const"> - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_override_material_param" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_get_material_param" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="canvas_item_create"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="canvas_item_set_parent"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_parent" qualifiers="const"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_custom_rect"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <argument index="2" name="arg2" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_clip"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_opacity"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_opacity" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_self_opacity"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_self_opacity" qualifiers="const"> - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_line"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2"> - </argument> - <argument index="2" name="arg2" type="Vector2"> - </argument> - <argument index="3" name="arg3" type="Color"> - </argument> - <argument index="4" name="arg4" type="real" default="1"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_rect"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_texture_rect"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="bool"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_texture_rect_region"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="Rect2"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_style_box"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="RealArray"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_circle"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <argument index="3" name="arg3" type="Color"> - </argument> - <description> - </description> - </method> - <method name="viewport_set_canvas_transform"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <argument index="2" name="arg2" type="Matrix32"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_clear"> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_raise"> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_rotation"> - <argument index="0" name="arg0" type="real"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_texture"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_visible"> - <argument index="0" name="arg0" type="bool"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_pos"> - <argument index="0" name="arg0" type="Vector2"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="make_sphere_mesh"> - <return type="RID"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="mesh_add_surface_from_planes"> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Array"> - </argument> - <description> - </description> - </method> - <method name="free"> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NO_INDEX_ARRAY" value="-1"> - </constant> - <constant name="CUSTOM_ARRAY_SIZE" value="8"> - </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4"> - </constant> - <constant name="MAX_PARTICLE_COLOR_PHASES" value="4"> - </constant> - <constant name="MAX_PARTICLE_ATTRACTORS" value="4"> - </constant> - <constant name="MAX_CURSORS" value="8"> - </constant> - <constant name="TEXTURE_FLAG_MIPMAPS" value="1"> - </constant> - <constant name="TEXTURE_FLAG_REPEAT" value="2"> - </constant> - <constant name="TEXTURE_FLAG_FILTER" value="4"> - </constant> - <constant name="TEXTURE_FLAG_CUBEMAP" value="8"> - </constant> - <constant name="TEXTURE_FLAGS_DEFAULT" value="7"> - </constant> - <constant name="CUBEMAP_LEFT" value="0"> - </constant> - <constant name="CUBEMAP_RIGHT" value="1"> - </constant> - <constant name="CUBEMAP_BOTTOM" value="2"> - </constant> - <constant name="CUBEMAP_TOP" value="3"> - </constant> - <constant name="CUBEMAP_FRONT" value="4"> - </constant> - <constant name="CUBEMAP_BACK" value="5"> - </constant> - <constant name="SHADER_MATERIAL" value="0"> - </constant> - <constant name="SHADER_POST_PROCESS" value="1"> - </constant> - <constant name="MATERIAL_FLAG_VISIBLE" value="0"> - </constant> - <constant name="MATERIAL_FLAG_DOUBLE_SIDED" value="1"> - </constant> - <constant name="MATERIAL_FLAG_INVERT_FACES" value="2"> - </constant> - <constant name="MATERIAL_FLAG_UNSHADED" value="3"> - </constant> - <constant name="MATERIAL_FLAG_ONTOP" value="4"> - </constant> - <constant name="MATERIAL_FLAG_WIREFRAME" value="5"> - </constant> - <constant name="MATERIAL_FLAG_BILLBOARD" value="6"> - </constant> - <constant name="MATERIAL_FLAG_MAX" value="7"> - </constant> - <constant name="MATERIAL_BLEND_MODE_MIX" value="0"> - </constant> - <constant name="MATERIAL_BLEND_MODE_ADD" value="1"> - </constant> - <constant name="MATERIAL_BLEND_MODE_SUB" value="2"> - </constant> - <constant name="MATERIAL_BLEND_MODE_MUL" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_DIFFUSE" value="0"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_DETAIL" value="1"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_SPECULAR" value="2"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_EMISSION" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_SPECULAR_EXP" value="4"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_GLOW" value="5"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_NORMAL" value="6"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_SHADE_PARAM" value="7"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_MAX" value="8"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SPHERE" value="1"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SCREEN" value="2"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SCREENZ" value="3"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_LOCAL_XY" value="0"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_TEXGEN" value="3"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV" value="0"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV_TRANSFORM" value="1"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV2" value="2"> - </constant> - <constant name="ARRAY_VERTEX" value="0"> - </constant> - <constant name="ARRAY_NORMAL" value="1"> - </constant> - <constant name="ARRAY_TANGENT" value="2"> - </constant> - <constant name="ARRAY_COLOR" value="3"> - </constant> - <constant name="ARRAY_TEX_UV" value="4"> - </constant> - <constant name="ARRAY_BONES" value="6"> - </constant> - <constant name="ARRAY_WEIGHTS" value="7"> - </constant> - <constant name="ARRAY_INDEX" value="8"> - </constant> - <constant name="ARRAY_MAX" value="9"> - </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> - </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> - </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> - </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> - </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> - </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> - </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> - </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> - </constant> - <constant name="PRIMITIVE_POINTS" value="0"> - </constant> - <constant name="PRIMITIVE_LINES" value="1"> - </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> - </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> - </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> - </constant> - <constant name="PRIMITIVE_MAX" value="7"> - </constant> - <constant name="PARTICLE_LIFETIME" value="0"> - </constant> - <constant name="PARTICLE_SPREAD" value="1"> - </constant> - <constant name="PARTICLE_GRAVITY" value="2"> - </constant> - <constant name="PARTICLE_LINEAR_VELOCITY" value="3"> - </constant> - <constant name="PARTICLE_ANGULAR_VELOCITY" value="4"> - </constant> - <constant name="PARTICLE_LINEAR_ACCELERATION" value="5"> - </constant> - <constant name="PARTICLE_RADIAL_ACCELERATION" value="6"> - </constant> - <constant name="PARTICLE_TANGENTIAL_ACCELERATION" value="7"> - </constant> - <constant name="PARTICLE_INITIAL_SIZE" value="9"> - </constant> - <constant name="PARTICLE_FINAL_SIZE" value="10"> - </constant> - <constant name="PARTICLE_INITIAL_ANGLE" value="11"> - </constant> - <constant name="PARTICLE_HEIGHT" value="12"> - </constant> - <constant name="PARTICLE_HEIGHT_SPEED_SCALE" value="13"> - </constant> - <constant name="PARTICLE_VAR_MAX" value="14"> - </constant> - <constant name="LIGHT_DIRECTIONAL" value="0"> - </constant> - <constant name="LIGHT_OMNI" value="1"> - </constant> - <constant name="LIGHT_SPOT" value="2"> - </constant> - <constant name="LIGHT_COLOR_AMBIENT" value="0"> - </constant> - <constant name="LIGHT_COLOR_DIFFUSE" value="1"> - </constant> - <constant name="LIGHT_COLOR_SPECULAR" value="2"> - </constant> - <constant name="LIGHT_VAR_SPOT_ATTENUATION" value="0"> - </constant> - <constant name="LIGHT_VAR_SPOT_ANGLE" value="1"> - </constant> - <constant name="LIGHT_VAR_RADIUS" value="2"> - </constant> - <constant name="LIGHT_VAR_ENERGY" value="3"> - </constant> - <constant name="LIGHT_VAR_ATTENUATION" value="4"> - </constant> - <constant name="LIGHT_VAR_MAX" value="6"> - </constant> - <constant name="SCENARIO_DEBUG_DISABLED" value="0"> - </constant> - <constant name="SCENARIO_DEBUG_WIREFRAME" value="1"> - </constant> - <constant name="SCENARIO_DEBUG_OVERDRAW" value="2"> - </constant> - <constant name="INSTANCE_MESH" value="1"> - </constant> - <constant name="INSTANCE_MULTIMESH" value="2"> - </constant> - <constant name="INSTANCE_POLY" value="3"> - </constant> - <constant name="INSTANCE_PARTICLES" value="4"> - </constant> - <constant name="INSTANCE_LIGHT" value="5"> - </constant> - <constant name="INSTANCE_ROOM" value="6"> - </constant> - <constant name="INSTANCE_PORTAL" value="7"> - </constant> - <constant name="INSTANCE_GEOMETRY_MASK" value="30"> - </constant> - <constant name="INFO_OBJECTS_IN_FRAME" value="0"> - </constant> - <constant name="INFO_MATERIAL_CHANGES_IN_FRAME" value="1"> - </constant> - <constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="2"> - </constant> - <constant name="INFO_VIDEO_MEM_USED" value="3"> - </constant> - <constant name="INFO_TEXTURE_MEM_USED" value="4"> - </constant> - <constant name="INFO_VERTEX_MEM_USED" value="5"> - </constant> - </constants> -</class> -<class name="WindowDialog" inherits="Popup" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_title"> - <argument index="0" name="title" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_title" qualifiers="const"> - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_close_button"> - <return type="TextureButton"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="World" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_space" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="get_scenario" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="get_sound_space" qualifiers="const"> - <return type="RID"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -</doc> diff --git a/doc/examples/physics/script/test_base.sq b/doc/examples/physics/script/test_base.sq deleted file mode 100644 index 9d5451728f..0000000000 --- a/doc/examples/physics/script/test_base.sq +++ /dev/null @@ -1,295 +0,0 @@ - -class PhysicsTestBase extends MainLoopScripted { - - - bodies=[] - type_mesh_map={} - type_shape_map={} - cameratr=Transform() - - - function body_changed_transform(p_transform, p_velocity, p_angular_velocity,p_sleeping, p_visual_instance) { - - VisualServer.instance_set_transform(p_visual_instance,p_transform); - } - - - function create_body(p_shape, p_body_mode, p_location, p_active=true) { - - local mesh_instance = VisualServer.instance_create( type_mesh_map[p_shape] ) - local body = PhysicsServer.body_create(RID(),p_body_mode,!p_active) - PhysicsServer.body_add_shape(body,type_shape_map[p_shape]) - - local query = PhysicsServer.query_create(this,"body_changed_transform",mesh_instance) - PhysicsServer.query_body_state(query, body) - - PhysicsServer.body_set_state( body, PhysicsServer.BODY_STATE_TRANSFORM, p_location ) - bodies.append( body ) - return body - - } - - - function create_static_plane(p_plane) { - - local plane_shape = PhysicsServer.shape_create(PhysicsServer.SHAPE_PLANE) - PhysicsServer.shape_set_data( plane_shape, p_plane ); - - local b = PhysicsServer.body_create(RID(), PhysicsServer.BODY_MODE_STATIC ); - PhysicsServer.body_add_shape(b, plane_shape); - return b; - } - - function configure_body( p_body, p_mass, p_friction, p_bounce) { - - PhysicsServer.body_set_param( p_body, PhysicsServer.BODY_PARAM_MASS, p_mass ); - PhysicsServer.body_set_param( p_body, PhysicsServer.BODY_PARAM_FRICTION, p_friction ); - PhysicsServer.body_set_param( p_body, PhysicsServer.BODY_PARAM_BOUNCE, p_bounce ); - - } - - function init_shapes() { - - - /* SPHERE SHAPE */ - local sphere_mesh = VisualServer.make_sphere_mesh(10,20,1.0); - local sphere_material = VisualServer.fixed_material_create(); - //VisualServer.material_set_flag( sphere_material, VisualServer.MATERIAL_FLAG_WIREFRAME, true ); - VisualServer.fixed_material_set_parameter( sphere_material, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(0.7,0.8,3.0) ); - VisualServer.mesh_surface_set_material( sphere_mesh, 0, sphere_material ); - type_mesh_map[PhysicsServer.SHAPE_SPHERE] <- sphere_mesh; - - local sphere_shape=PhysicsServer.shape_create(PhysicsServer.SHAPE_SPHERE); - PhysicsServer.shape_set_data( sphere_shape, 1.0 ); - type_shape_map[PhysicsServer.SHAPE_SPHERE] <- sphere_shape; - - /* BOX SHAPE */ - - local box_planes = GeometryUtils.build_box_planes(Vector3(0.5,0.5,0.5)); - local box_material = VisualServer.fixed_material_create(); - VisualServer.fixed_material_set_parameter( box_material, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(1.0,0.2,0.2) ); - local box_mesh = VisualServer.mesh_create(); - - VisualServer.mesh_add_surface_from_planes(box_mesh,box_planes); - VisualServer.mesh_surface_set_material( box_mesh, 0, box_material ); - type_mesh_map[PhysicsServer.SHAPE_BOX]<- box_mesh; - - local box_shape=PhysicsServer.shape_create(PhysicsServer.SHAPE_BOX); - PhysicsServer.shape_set_data( box_shape, Vector3(0.5,0.5,0.5) ); - type_shape_map[PhysicsServer.SHAPE_BOX]<- box_shape; - - /* CYLINDER SHAPE */ - - local cylinder_planes = GeometryUtils.build_cylinder_planes(0.5,1,12 - ,Vector3.AXIS_Z); - local cylinder_material = VisualServer.fixed_material_create(); - VisualServer.fixed_material_set_parameter( cylinder_material, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(0.3,0.4,1.0) ); - local cylinder_mesh = VisualServer.mesh_create(); - - VisualServer.mesh_add_surface_from_planes(cylinder_mesh,cylinder_planes); - VisualServer.mesh_surface_set_material( cylinder_mesh, 0, cylinder_material ); - type_mesh_map[PhysicsServer.SHAPE_CYLINDER]<- cylinder_mesh; - - local cylinder_shape=PhysicsServer.shape_create(PhysicsServer.SHAPE_CYLINDER); - local cylinder_params={} - cylinder_params["radius"]<- 0.5; - cylinder_params["height"]<- 2; - PhysicsServer.shape_set_data( cylinder_shape, cylinder_params ); - type_shape_map[PhysicsServer.SHAPE_CYLINDER]<- cylinder_shape; - - /* CAPSULE SHAPE */ - - local capsule_planes = GeometryUtils.build_capsule_planes(0.5,0.7,12,Vector3.AXIS_Z); - local capsule_material = VisualServer.fixed_material_create(); - VisualServer.fixed_material_set_parameter( capsule_material, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(0.3,0.4,1.0) ); - - local capsule_mesh = VisualServer.mesh_create(); - - VisualServer.mesh_add_surface_from_planes(capsule_mesh,capsule_planes); - VisualServer.mesh_surface_set_material( capsule_mesh, 0, capsule_material ); - type_mesh_map[PhysicsServer.SHAPE_CAPSULE]<-capsule_mesh; - - local capsule_shape=PhysicsServer.shape_create(PhysicsServer.SHAPE_CAPSULE); - local capsule_params={} - capsule_params["radius"]<- 0.5; - capsule_params["height"]<- 1.4; - PhysicsServer.shape_set_data( capsule_shape, capsule_params ); - type_shape_map[PhysicsServer.SHAPE_CAPSULE]<- capsule_shape; - - /* CONVEX SHAPE */ - - local convex_planes = GeometryUtils.build_cylinder_planes(0.5,0.7,5,Vector3.AXIS_Z); - local convex_material = VisualServer.fixed_material_create(); - VisualServer.fixed_material_set_parameter( convex_material, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(0.8,0.2,0.9)); - - local convex_mesh = VisualServer.mesh_create(); - VisualServer.mesh_add_surface_from_planes(convex_mesh,convex_planes); - VisualServer.mesh_surface_set_material( convex_mesh, 0, convex_material ); - type_mesh_map[PhysicsServer.SHAPE_CONVEX_POLYGON]<- convex_mesh; - - local convex_shape=PhysicsServer.shape_create(PhysicsServer.SHAPE_CONVEX_POLYGON); - PhysicsServer.shape_set_data( convex_shape, convex_planes ); - type_shape_map[PhysicsServer.SHAPE_CONVEX_POLYGON]<- convex_shape; - - } - - function make_trimesh(p_faces,p_xform=Transform()) { - - local trimesh_shape = PhysicsServer.shape_create(PhysicsServer.SHAPE_CONCAVE_POLYGON); - PhysicsServer.shape_set_data(trimesh_shape, p_faces); - p_faces=PhysicsServer.shape_get_data(trimesh_shape); // optimized one - normals=[] - - for (i=0;i<p_faces.length()/3;i++) { - - p=Plane( p_faces[i*3+0],p_faces[i*3+1], p_faces[i*3+2] ); - normals.append(p.normal); - normals.append(p.normal); - normals.append(p.normal); - } - - local trimesh_mesh = VisualServer.mesh_create(); - VisualServer.mesh_add_surface(trimesh_mesh, VS::PRIMITIVE_TRIANGLES, VS::ARRAY_FORMAT_VERTEX|VS::ARRAY_FORMAT_NORMAL, p_faces.length() ); - VisualServer.mesh_surface_set_array(trimesh_mesh,0,VS::ARRAY_VERTEX, p_faces ); - VisualServer.mesh_surface_set_array(trimesh_mesh,0,VS::ARRAY_NORMAL, normals ); - local trimesh_mat = VisualServer.fixed_material_create(); - VisualServer.fixed_material_set_parameter( trimesh_mat, VisualServer.FIXED_MATERIAL_PARAM_DIFFUSE, Color(1.0,0.5,0.8)); - //VisualServer.material_set_flag( trimesh_mat, VisualServer.MATERIAL_FLAG_UNSHADED,true); - VisualServer.mesh_surface_set_material( trimesh_mesh, 0, trimesh_mat ); - - local triins = VisualServer.instance_create(trimesh_mesh); - - - local tribody = PhysicsServer.body_create(RID(), PhysicsServer.BODY_MODE_STATIC); - PhysicsServer.body_add_shape(tribody, trimesh_shape); - tritrans = p_xform; - PhysicsServer.body_set_state( tribody, PhysicsServer.BODY_STATE_TRANSFORM, tritrans ); - VisualServer.instance_set_transform( triins, tritrans ); - //RID trimesh_material = VisualServer.fixed_material_create(); - //VisualServer.material_generate( trimesh_material, Color(0.2,0.4,0.6) ); - //VisualServer.mesh_surface_set_material( trimesh_mesh, 0, trimesh_material ); - - } - - function make_grid(p_width,p_height,p_cellsize,p_cellheight,p_xform=Transform()) { - - local grid = [] - - for (local i =0;i<p_width;i++) { - - local row = [] - - for (local j=0;j<p_height;j++) { - - local val = 1.0+Math.random(-p_cellheight, p_cellheight ); - row.append(val) - } - grid.append(row) - } - - local faces=[] - - for (local i =1;i<p_width;i++) { - - for (local j=1;j<p_height;j++) { - - function MAKE_VERTEX(m_x,m_z) { - local v= Vector3( (m_x-p_width/2)*p_cellsize, grid[m_x][m_z], (m_z-p_height/2)*p_cellsize ) - faces.push_back(v) - } - - - MAKE_VERTEX(i,j-1) - MAKE_VERTEX(i,j) - MAKE_VERTEX(i-1,j) - - MAKE_VERTEX(i-1,j-1) - MAKE_VERTEX(i,j-1) - MAKE_VERTEX(i-1,j) - - } - } - - make_trimesh(faces,p_xform); - } - - quit=false - - transform = Transform() - camera=RID() - - function init_internal() {} - function iteration_internal(time) {} -//public - - - function input_event(p_event) { - - - } - - function request_quit() { - - quit=true; - } - - function init() { - - init_shapes(); - - - /* LIGHT */ - local lightaux = VisualServer.light_create( VisualServer.LIGHT_DIRECTIONAL ); - //VisualServer.light_set_color( lightaux, VisualServer.LIGHT_COLOR_AMBIENT, Color(0.0,0.0,0.0) ); - VisualServer.light_set_shadow(lightaux,true); - local light = VisualServer.instance_create( lightaux ); - local t=Transform() - t.rotate(Vector3(1.0,0,0),0.6); - VisualServer.instance_set_transform(light,t); - - - /* CAMERA */ - - camera = VisualServer.camera_create(); - local viewport = VisualServer.viewport_create(); - VisualServer.viewport_attach_camera( viewport, camera ); - VisualServer.viewport_set_parent(viewport, RID() ); - - VisualServer.camera_set_perspective(camera,60,0.1,20.0); - cameratr=Transform( Matrix3(), Vector3(0,2,8)) - VisualServer.camera_set_transform(camera,cameratr); - - quit=false; - - init_internal() - - } - - - function iteration(p_time) { - - // VisualServer.camera_set_transform(camera,cameratr); - iteration_internal(p_time) - - return quit; - } - - function idle(p_time) { - - return quit; - } - - - function finish() { - - } - - - constructor() { - MainLoopScripted.constructor(); - } - -} - - -return PhysicsTestBase; diff --git a/doc/examples/physics/script/test_fall.sq b/doc/examples/physics/script/test_fall.sq deleted file mode 100644 index 79526da8b4..0000000000 --- a/doc/examples/physics/script/test_fall.sq +++ /dev/null @@ -1,42 +0,0 @@ - -include("test_base.sq") - -class TestFall extends PhysicsTestBase { - - - fall_elements=10 - - function init_internal() { - - for (local i=0;i<10;i++) { - - local shape_idx=[ - PhysicsServer.SHAPE_SPHERE, - PhysicsServer.SHAPE_BOX, - PhysicsServer.SHAPE_CAPSULE, - PhysicsServer.SHAPE_CYLINDER, - PhysicsServer.SHAPE_CONVEX_POLYGON - ]; - - local stype=shape_idx[i%5]; -// stype=PhysicsServer.SHAPE_SPHERE; - - local t=Transform() - t.set_origin(Vector3(-0.7+0.0*i,3.5+4.1*i,0)) - t.rotate_basis(Vector3(1,0,0),Math.PI/4*i) - - local b = create_body(stype,PhysicsServer.BODY_MODE_RIGID,t); - - } - - create_static_plane( Plane( Vector3(0,1,0), -1) ); - - } - - constructor() { - PhysicsTestBase.constructor() - } -} - - -return TestFall diff --git a/doc/gdscript.lyx b/doc/gdscript.lyx deleted file mode 100644 index a4b2230121..0000000000 --- a/doc/gdscript.lyx +++ /dev/null @@ -1,2531 +0,0 @@ -#LyX 2.0 created this file. For more info see http://www.lyx.org/ -\lyxformat 413 -\begin_document -\begin_header -\textclass article -\use_default_options true -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman default -\font_sans default -\font_typewriter default -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 -\font_tt_scale 100 - -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\use_hyperref false -\papersize default -\use_geometry false -\use_amsmath 1 -\use_esint 1 -\use_mhchem 1 -\use_mathdots 1 -\cite_engine basic -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date false -\use_refstyle 0 -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\quotes_language english -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -GD Scripting Language (GDScript) -\end_layout - -\begin_layout Section -Introduction -\end_layout - -\begin_layout Standard -GDScript is a high level, dynamically typed programming language used to - create content. - It uses a syntax that is very similar to the Python language (blocks are - indent-based) and it's goal is to be very optimal and tigthly integrated - with the engine, allowing great flexibility for content creation and integratio -n. - -\end_layout - -\begin_layout Section -Example -\end_layout - -\begin_layout Standard -Some people can learn better by just taking a look at the syntax, so here's - a simple example of how it looks. - -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -#a file is a class! -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#inheritance -\end_layout - -\begin_layout Plain Layout - -extends BaseClass -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#member variables -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -var a=5 -\end_layout - -\begin_layout Plain Layout - -var s="Hello" -\end_layout - -\begin_layout Plain Layout - -var arr=[1,2,3] -\end_layout - -\begin_layout Plain Layout - -var dict={"key":"value", 2:3} -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#constants -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -const answer=42 -\end_layout - -\begin_layout Plain Layout - -const thename="Charly" -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#built-in vector types -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -var v2 = Vector2(1,2) -\end_layout - -\begin_layout Plain Layout - -var v3 = Vector3(1,2,3) -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#function -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -func some_function(param1,param2): -\end_layout - -\begin_layout Plain Layout - - var local_var=5 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - if param1 < local_var: -\end_layout - -\begin_layout Plain Layout - - print(param1) -\end_layout - -\begin_layout Plain Layout - - elif param2 > 5: -\end_layout - -\begin_layout Plain Layout - - print(param2) -\end_layout - -\begin_layout Plain Layout - - else: -\end_layout - -\begin_layout Plain Layout - - print("fail!") -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - for i in range(20): -\end_layout - -\begin_layout Plain Layout - - print(i) -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - while(param2!=0): -\end_layout - -\begin_layout Plain Layout - - param2-=1 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - var local_var2 = param1+3 -\end_layout - -\begin_layout Plain Layout - - return local_var2 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#subclass -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -class Something: -\end_layout - -\begin_layout Plain Layout - - var a=10 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#constructor -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -func _init(): -\end_layout - -\begin_layout Plain Layout - - print("constructed!") -\end_layout - -\begin_layout Plain Layout - - var lv = Something.new() -\end_layout - -\begin_layout Plain Layout - - print(lv.a) -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Language -\end_layout - -\begin_layout Subsection -Identifiers -\end_layout - -\begin_layout Standard -Any string that restricts itself to alphabetic characters ('a' to 'z' and - 'A' to 'Z'), digits ('0' to '9') and '_' qualifies as an identifier. - As an extra restriction, identifiers must not begin with a digit. - Identifiers are case-sensitive ('foo' is different to 'FOO'). -\end_layout - -\begin_layout Subsection -Keywords -\end_layout - -\begin_layout Standard -The following is the list of keywords supported by the language. - Since keywords are reserved words (tokens), they can't be used as identifiers. -\end_layout - -\begin_layout Subsection -Operators -\end_layout - -\begin_layout Standard -The following is the list of supported operators and their precedence (TODO, - change since this was made to reflect python operators) -\end_layout - -\begin_layout Standard -\begin_inset Tabular -<lyxtabular version="3" rows="18" columns="2"> -<features tabularvalignment="middle"> -<column alignment="center" valignment="top" width="0"> -<column alignment="center" valignment="top" width="0"> -<row> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Operator -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Note -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -x[index] -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Subscription, Highest Priority -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -x.attribute -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Attribute Reference -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -extends -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Instance Type Checker -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -~ -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Bitwise NOT -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout --x -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Negative -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -* / % -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Mult / Div / Remainder -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -+ - -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Addition / Substraction -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -<< >> -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Bit Shifting -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -& -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Bitwise AND -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -^ -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Bitwise XOR -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -| -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Bitwise OR -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -< > == != >= <= -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Comparisons -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -in -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Content Test -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -! not -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Boolean NOT -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -and && -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Boolean AND -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -or || -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Boolean OR -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -= += -= *= /= ^= &= |= -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Assignment, Lowest Priority -\end_layout - -\end_inset -</cell> -</row> -</lyxtabular> - -\end_inset - - -\end_layout - -\begin_layout Subsection -Literals -\end_layout - -\begin_layout Standard -\begin_inset Tabular -<lyxtabular version="3" rows="6" columns="2"> -<features tabularvalignment="middle"> -<column alignment="center" valignment="top" width="0"> -<column alignment="center" valignment="top" width="0"> -<row> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Literal -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Name -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -45 -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Base 10 Integer -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -0x8F51 -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Base 16 (hex) Integer -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -3.14, 58.1e-10 -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Floating Point Number (real) -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -'Hello', -\begin_inset Quotes eld -\end_inset - -Hi -\begin_inset Quotes erd -\end_inset - - -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Strings -\end_layout - -\end_inset -</cell> -</row> -<row> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -@'Hello', @'Hi' -\end_layout - -\end_inset -</cell> -<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none"> -\begin_inset Text - -\begin_layout Plain Layout -Internationalized Strings -\end_layout - -\end_inset -</cell> -</row> -</lyxtabular> - -\end_inset - - -\end_layout - -\begin_layout Subsection -Comments -\end_layout - -\begin_layout Standard -Anything from a '#' to the end of the line is ignored and is considered - a comment. -\end_layout - -\begin_layout Standard -\begin_inset listings -lstparams "language=Python" -inline false -status open - -\begin_layout Plain Layout - -# This is a comment -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Built-in Types -\end_layout - -\begin_layout Subsection -Basic Bult-In Types -\end_layout - -\begin_layout Standard -A variable in GDScript can be assigned many of several built-in types. - -\end_layout - -\begin_layout Subsubsection -null -\end_layout - -\begin_layout Standard -'null' is a data type that contains no information, nothing assigned, and - it's just empy. - It can only be set to one value: 'null'. -\end_layout - -\begin_layout Subsubsection -bool -\end_layout - -\begin_layout Standard -Boolean data type, can only contain 'true' or 'false'. -\end_layout - -\begin_layout Subsubsection -int -\end_layout - -\begin_layout Standard -Integer data type, can only contain integer numbers, negative and positive. -\end_layout - -\begin_layout Subsubsection -float -\end_layout - -\begin_layout Standard -contains a floating point value (real). -\end_layout - -\begin_layout Subsubsection -String -\end_layout - -\begin_layout Standard -Sequence of characters in unicode format. - Strings can contain the standard C escape sequences. -\end_layout - -\begin_layout Subsection -Vector Built-In Types -\end_layout - -\begin_layout Subsubsection -Vector2/Size2 -\end_layout - -\begin_layout Standard -2D vector type, containing x and y fields. - Can alternatively access fields as width and height for readability. - Can also be accessed as array. -\end_layout - -\begin_layout Subsubsection -Rect2 -\end_layout - -\begin_layout Standard -2D Rectangle type. - Contains 2 vectors fields, -\begin_inset Quotes eld -\end_inset - -pos -\begin_inset Quotes erd -\end_inset - - and size -\begin_inset Quotes erd -\end_inset - -. - Alternatively contains an -\begin_inset Quotes eld -\end_inset - -end -\begin_inset Quotes erd -\end_inset - - field which is -\begin_inset Quotes eld -\end_inset - -pos+size -\begin_inset Quotes erd -\end_inset - -. -\end_layout - -\begin_layout Subsubsection -Vector3 -\end_layout - -\begin_layout Standard -3D vector type. - Contains x, y and z fields. - Can also be accessed as array. -\end_layout - -\begin_layout Subsubsection -Matrix32 -\end_layout - -\begin_layout Standard -3x2 matrix used for 2D transforms. -\end_layout - -\begin_layout Subsubsection -Plane -\end_layout - -\begin_layout Standard -3D Plane type in normalized form. - Contains a -\begin_inset Quotes eld -\end_inset - -normal -\begin_inset Quotes erd -\end_inset - - vector field and a -\begin_inset Quotes eld -\end_inset - -d -\begin_inset Quotes erd -\end_inset - - scalar distance. -\end_layout - -\begin_layout Subsubsection -Quat -\end_layout - -\begin_layout Standard -Quaternion, datatype used for representing a 3D rotation. - It's useful for interpolating rotations. -\end_layout - -\begin_layout Subsubsection -AABB/Box3 -\end_layout - -\begin_layout Standard -Axis Aligned bounding box (or alternatively, 3D box). - Contains 2 vectors fields, -\begin_inset Quotes eld -\end_inset - -pos -\begin_inset Quotes erd -\end_inset - - and size -\begin_inset Quotes erd -\end_inset - -. - Alternatively contains an -\begin_inset Quotes eld -\end_inset - -end -\begin_inset Quotes erd -\end_inset - - field which is -\begin_inset Quotes eld -\end_inset - -pos+size -\begin_inset Quotes erd -\end_inset - -. -\end_layout - -\begin_layout Subsubsection -Matrix3 -\end_layout - -\begin_layout Standard -3x3 matrix used for 3D rotation and scale. - Contains 3 vector fields x,y and z. - Can also be accessed as array of 3D vectors. -\end_layout - -\begin_layout Subsubsection -Transform -\end_layout - -\begin_layout Standard -3D Transform, contains a Matrix3 field -\begin_inset Quotes eld -\end_inset - -basis -\begin_inset Quotes erd -\end_inset - - and a Vector3 field -\begin_inset Quotes eld -\end_inset - -origin -\begin_inset Quotes erd -\end_inset - -. -\end_layout - -\begin_layout Subsection -Engine Built-In Types -\end_layout - -\begin_layout Subsubsection -Color -\end_layout - -\begin_layout Standard -Color datatype, contains r,g,b,a fields. - Can also be accessed as h,s,v for hue/saturation/value. -\end_layout - -\begin_layout Subsubsection -Image -\end_layout - -\begin_layout Standard -Contains a 2D Image of custom format and allows direct access to the pixels. -\end_layout - -\begin_layout Subsubsection -NodePath -\end_layout - -\begin_layout Standard -Compiled path to a node, used mainly in the scene system. - Can be easily asigned from/to a String. -\end_layout - -\begin_layout Subsubsection -RID -\end_layout - -\begin_layout Standard -Resource ID (RID). - Servers use generic RIDs to reference opaque data. -\end_layout - -\begin_layout Subsubsection -Object -\end_layout - -\begin_layout Standard -Base class for anything not a built-in type. - -\end_layout - -\begin_layout Subsubsection -InputEvent -\end_layout - -\begin_layout Standard -Events from input devices are contained in very compact form in InputEvent - objects. - Due to fact they can be received in high amounts from frame to frame, they - are optimized in their own datatype. - -\end_layout - -\begin_layout Subsection -Container Built-In Types -\end_layout - -\begin_layout Subsubsection -Array -\end_layout - -\begin_layout Standard -Generic sequence of objects. - It's size can be changed to anything and starts from index 0. - -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -var arr=[] -\end_layout - -\begin_layout Plain Layout - -arr=[1,2,3] -\end_layout - -\begin_layout Plain Layout - -arr[0]="Hi!" -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Arrays are allocated linearly in memory, so they are fast, but very large - arrays (more than tens of thousands of elements) may cause fragmentation. - There are specialized arrays for some built-in datatypes which do not suffer - from this and use much less memory. -\end_layout - -\begin_layout Subsubsection -Dictionary -\end_layout - -\begin_layout Standard -Associative container which contains values referenced by unique keys. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -var dict={4:5, "a key":"a value", 28:[1,2,3]} -\end_layout - -\begin_layout Plain Layout - -dict["Hi!"]=0 -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsubsection -ByteArray -\end_layout - -\begin_layout Standard -Array of bytes. - Can only contains bytes (integers from 0 to 255). - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -IntArray -\end_layout - -\begin_layout Standard -Array of integers. - Can only contain integers. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -FloatArray -\end_layout - -\begin_layout Standard -Array of floats, can only contain floats. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -StringArray -\end_layout - -\begin_layout Standard -Array of strings, can only contain strings. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -Vector2Array -\end_layout - -\begin_layout Standard -Array of Vector2, can only contain 2D Vectors. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -Vector3Array -\end_layout - -\begin_layout Standard -Array of Vector3, can only contain 3D Vectors. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Subsubsection -ColorArray -\end_layout - -\begin_layout Standard -Array of Color, can only contains colors. - Optimized for memory usage, can't fragment the memory. -\end_layout - -\begin_layout Section -Data -\end_layout - -\begin_layout Subsection -Variables -\end_layout - -\begin_layout Standard -Variables can exist as class members or local to functions. - They are created with the -\begin_inset Quotes eld -\end_inset - -var -\begin_inset Quotes erd -\end_inset - - keyword and may be, optionally, be assigned a value upon initialization. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -var a # datatype is null by default -\end_layout - -\begin_layout Plain Layout - -var b = 5 -\end_layout - -\begin_layout Plain Layout - -var c = 3.8 -\end_layout - -\begin_layout Plain Layout - -var d = b+c # variables are always initialized in order -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Constants -\end_layout - -\begin_layout Standard -Constants are similar to variables, but must be constants or constant expression -s and must be assigned on initialization. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -const a = 5 -\end_layout - -\begin_layout Plain Layout - -const b = Vector2(20,20) -\end_layout - -\begin_layout Plain Layout - -const c = 10+20 # constant expression -\end_layout - -\begin_layout Plain Layout - -const d = Vector2(20,30).x # constant expression: 20 -\end_layout - -\begin_layout Plain Layout - -const e = [1,2,3,4][0] # constant expression: 1 -\end_layout - -\begin_layout Plain Layout - -const f = sin(20) # sin() can be used in constant expression -\end_layout - -\begin_layout Plain Layout - -const g = x+20 # invalid, not a constant expression! -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Functions -\end_layout - -\begin_layout Standard -Functions always belong to a class. - The scope priority for variable look-up is: local -> class member -> global. - -\begin_inset Quotes eld -\end_inset - -self -\begin_inset Quotes erd -\end_inset - - is provided as an option for accessing class members but is not required - always (and must -\emph on -not -\emph default - be defined as first parameter, like in Python). - For performance reasons, functions are not considered class members, so - they can't be referenced directly. - A function can return at any point. - The default return value is null. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -func myfunction(a,b): -\end_layout - -\begin_layout Plain Layout - - print(a) -\end_layout - -\begin_layout Plain Layout - - print(b) -\end_layout - -\begin_layout Plain Layout - - return a+b # return is optional, otherwise null is returned -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsubsection -Statements and Control Flow -\end_layout - -\begin_layout Standard -Statements are standard, and can be assignments, function calls, control - flow structures, etc (see below). - -\begin_inset Quotes eld -\end_inset - -; -\begin_inset Quotes erd -\end_inset - - as separator is entirely optional. -\end_layout - -\begin_layout Subsubsection -if/else/elif -\end_layout - -\begin_layout Standard -Simple conditions are created by using the -\emph on -if/else/elif -\emph default - syntax. - Parenthesis around statements is allowed but not requiered. - Given the nature of the tab-based indentation, elif can be used instead - of else:/if: to mantain a level of indentation. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -if [expression]: -\end_layout - -\begin_layout Plain Layout - - statement(s) -\end_layout - -\begin_layout Plain Layout - -elif [expression]: -\end_layout - -\begin_layout Plain Layout - - statement(s) -\end_layout - -\begin_layout Plain Layout - -else: -\end_layout - -\begin_layout Plain Layout - - statement(s) -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsubsection -while -\end_layout - -\begin_layout Standard -Simple loops are created by using -\emph on -while -\emph default - syntax. - Loops can be broken using -\emph on -break -\emph default -, or continued using -\emph on -continue -\emph default -: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -while [expression]: -\end_layout - -\begin_layout Plain Layout - - statement(s) -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsubsection -for -\end_layout - -\begin_layout Standard -To iterate a range, array or table a -\emph on -for -\emph default - loop is used. - For loops store the index in the loop variable on each iteration. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -for i in [0,1,2]: -\end_layout - -\begin_layout Plain Layout - - statement # loop iterates 3 times, i being 0,1 and 2 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -var dict = {"a":0, "b":1, "c": 2} -\end_layout - -\begin_layout Plain Layout - -for i in dict: -\end_layout - -\begin_layout Plain Layout - - print(dict[i]) # loop iterates the keys, i being "a","b" and c". - It prints 0, 1 and 2. -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -for i in range(3): -\end_layout - -\begin_layout Plain Layout - - statement # similar to [0,1,2] but does not allocate an array -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -for i in range(1,3): -\end_layout - -\begin_layout Plain Layout - - statement # similar to [1,2] but does not allocate an array -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -for i in range(2,8,2): -\end_layout - -\begin_layout Plain Layout - - statement # similar to [2,4,6] but does not allocate an array -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Classes -\end_layout - -\begin_layout Standard -By default, the body of a script file is an unnamed class, and it can only - be referenced externally as a resource or file. - Class syntax is meant to be very compact and can only contain member variables - or functions. - Static functions are allowed, but not static members (in the spirit of - thread safety, since scripts can be initialized in separate threads without - the user knowing). - In the same way, member variables (including arrays and dictionaries) are - initialized every time an instance is created. - -\end_layout - -\begin_layout Subsection -Class File Example -\end_layout - -\begin_layout Standard -Example of a class file, imagine it being stored in a file like myclass.gd. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -var a=5 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -function print_value_of_a(): -\end_layout - -\begin_layout Plain Layout - - print(a) -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Inheritance -\end_layout - -\begin_layout Standard -A class-file can inherit from a global class, another file or a subclass - inside another file. - Multiple inheritance is not allowed. - The -\begin_inset Quotes eld -\end_inset - -extends -\begin_inset Quotes erd -\end_inset - - syntax is used: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -# extend from some class (global) -\end_layout - -\begin_layout Plain Layout - -extends SomeClass -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -# optionally, extend from another file -\end_layout - -\begin_layout Plain Layout - -extends "somefile.gd" -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -# extend from a subclass in another file -\end_layout - -\begin_layout Plain Layout - -extends "somefile.gd".Subclass -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Inheritance Testing -\end_layout - -\begin_layout Standard -It is possible to check if an instance inherits from a given class. - For this the -\begin_inset Quotes eld -\end_inset - -extends -\begin_inset Quotes erd -\end_inset - - keyword can be used as an operator instead: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -static var enemy_class = preload("enemy.gd") # cache the enemy class -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -[..] -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -if ( entity extends enemy_class ): -\end_layout - -\begin_layout Plain Layout - - entity.apply_damage() -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Constructor -\end_layout - -\begin_layout Standard -A class can have an optional constructor, a function named -\begin_inset Quotes eld -\end_inset - -_init -\begin_inset Quotes erd -\end_inset - - that is called when the class is instanced. -\end_layout - -\begin_layout Subsection -Sub Classes -\end_layout - -\begin_layout Standard -A class file can have subclasses. - Syntax should be straightforward: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -class SomeSubClass: -\end_layout - -\begin_layout Plain Layout - - var a=5 -\end_layout - -\begin_layout Plain Layout - - function print_value_of_a(): -\end_layout - -\begin_layout Plain Layout - - print(a) -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -function _init(): -\end_layout - -\begin_layout Plain Layout - - var sc = SomeSubClass.new() #instance by calling built-in new -\end_layout - -\begin_layout Plain Layout - - sc.print_value_of_a() -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Classes as Objects -\end_layout - -\begin_layout Standard -It may be desired at some point to load a class from a file and then instance - it. - Since the global scope does not exist, classes must be loaded as a resource. - Instancing is done by calling the -\begin_inset Quotes eld -\end_inset - -new -\begin_inset Quotes erd -\end_inset - - function in a class object: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -#load the class (loaded every time the script is instanced) -\end_layout - -\begin_layout Plain Layout - -var MyClass = load("myclass.gd") -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#alternatively, using the preload() function preloads the class at compile - time -\end_layout - -\begin_layout Plain Layout - -var MyClass2 = preload("myclass.gd") -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -function _init(): -\end_layout - -\begin_layout Plain Layout - - var a = MyClass.new() -\end_layout - -\begin_layout Plain Layout - - a.somefunction() -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Exports -\end_layout - -\begin_layout Standard -Class members can be exported. - This means their value gets saved along with a scene. - If class members have initializers to constant expressions, they will be - available for editing in the property editor. - Exporting is done by using the export keyword: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -extends Button -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export var data # value will be saved -\end_layout - -\begin_layout Plain Layout - -export var number=5 # also available to the property editor -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -One of the fundamental benefits of exporting member variables is to have - them visible in the property editor. - This way artists and game designers can modify values that later influence - how the program runs. - For this, a special export syntax is provided for more detail in the exported - variables: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -#if the exported value assigns a constant or constant expression, the type - will be infered and used in the editor -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export var number=5 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#export can take a basic datatype as argument, which will be used in the - editor -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(int) var number -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#export can also take a resource type as hint -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(Texture) var character_face -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#integers and strings hint enumerated values -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(int,"Warrior","Magician","Thief") var character_class # (editor will - set them as 0,1 and 2) -\end_layout - -\begin_layout Plain Layout - -export(String,"Rebecca","Mary","Leah") var character_name -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#strings as paths -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(String,FILE) var f # string is a path to a file -\end_layout - -\begin_layout Plain Layout - -export(String,DIR) var f # string is a path to a directory -\end_layout - -\begin_layout Plain Layout - -export(String,FILE,"*.txt") var f # string is a path to a file, custom filter - provided as hint -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#integers and floats hint ranges -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(int,20) var i # 0 to 20 allowed -\end_layout - -\begin_layout Plain Layout - -export(int,-10,20) var j # -10 to 20 allowed -\end_layout - -\begin_layout Plain Layout - -export(float,-10,20,0.2) var k # -10 to 20 allowed, with stepping of 0.2 -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -#color can hint availability of alpha -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -export(Color,RGB) var col # Color is RGB -\end_layout - -\begin_layout Plain Layout - -export(Color,RGBA) var col # Color is RGBA -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -It must be noted that even if the script is not being run while at the editor, - the exported properties are still editable (see below for -\begin_inset Quotes eld -\end_inset - -tool -\begin_inset Quotes erd -\end_inset - -). -\end_layout - -\begin_layout Subsection -Static Functions -\end_layout - -\begin_layout Standard -A function can be declared static. - When static, it has no access to the instance member variables or -\begin_inset Quotes eld -\end_inset - -self -\begin_inset Quotes erd -\end_inset - -. - This is mainly useful to make libraries of helper functions: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -static func sum2(a,b): -\end_layout - -\begin_layout Plain Layout - - return a+b -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Asserting -\end_layout - -\begin_layout Standard -It is possible to assert a condition, which will cause a debugger break - if false. - Just use the built-in 'assert' function. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -assert(a==2) -\end_layout - -\begin_layout Plain Layout - -# if a is not 2, it will generate a debugger break -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Tool Mode -\end_layout - -\begin_layout Standard -Scripts by default don't run inside the editor, and only the exported properties - can be changed. - In some cases it is desired that they do (as long as they don't execute - game code or manually avoid doing so). - For this, the -\begin_inset Quotes eld -\end_inset - -tool -\begin_inset Quotes erd -\end_inset - - keyword exists, and must be placed at the top of the file: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -tool -\end_layout - -\begin_layout Plain Layout - -extends Button -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -func _init(): -\end_layout - -\begin_layout Plain Layout - - print("Hello") -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Memory Management -\end_layout - -\begin_layout Standard -If a class inherits from -\emph on -Reference -\emph default -, then instances will be freed when no longer in use. - No garbage collector exists, just simple reference counting. - By default, all classes that don't define inheritance extend -\emph on -Reference -\emph default -. - If this is not desired, then a class must inherit -\emph on -Object -\emph default - manually and must call instance.free(). - To avoid reference cycles that can't be freed, a weakref() function is - provided for creating weak references. - -\end_layout - -\begin_layout Subsection -Function References -\end_layout - -\begin_layout Standard -Functions can't be referenced because they are not treated as class members. - There are two alternatives to this, though. - The -\begin_inset Quotes eld -\end_inset - -call -\begin_inset Quotes erd -\end_inset - - function or the funcref() helper. -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -instance.call("funcname",args) # call a function by bane -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -var fr = funcref(instance,"funcname") #create a function ref -\end_layout - -\begin_layout Plain Layout - -fr.exec(args) -\end_layout - -\end_inset - - -\end_layout - -\end_body -\end_document diff --git a/doc/godot_splash.png b/doc/godot_splash.png Binary files differdeleted file mode 100644 index da56fa15cc..0000000000 --- a/doc/godot_splash.png +++ /dev/null diff --git a/doc/header.txt b/doc/header.txt deleted file mode 100644 index 359949cc3b..0000000000 --- a/doc/header.txt +++ /dev/null @@ -1,12 +0,0 @@ -/*************************************************/ -/* $filename */ -/*************************************************/ -/* This file is part of: */ -/* GODOT ENGINE */ -/*************************************************/ -/* Source code within this file is: */ -/* (c) 2007-2010 Juan Linietsky, Ariel Manzur */ -/* All Rights Reserved. */ -/*************************************************/ - - diff --git a/doc/html/@GDScript.html b/doc/html/@GDScript.html deleted file mode 100644 index 5d5d77ffbf..0000000000 --- a/doc/html/@GDScript.html +++ /dev/null @@ -1,93 +0,0 @@ -<html><link href="main.css" rel="stylesheet" type="text/css" /><body><table class="top_table"><tr><td class="top_table"><image src="images/logo.png" /></td><td class="top_table"><a href="index.html">Index</a></td><td class="top_table"><a href="alphabetical.html">Classes</a></td><td class="top_table"><a href="category.html">Categories</a></td><td><a href="inheritance.html">Inheritance</a></td></tr></table><hr /><div class="class"><a name="@GDScript"><h3 class="title class_title">@GDScript</h3></a><div class="description class_description"> - Built-in GDScript functions. - </div><br /><div class="category"><span class="category">Category: </span><a class="category_ref" href="category.html#CATEGORY_Core">Core</a></div><h4>Public Methods:</h4><table class="method_list"><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_sin">sin</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_cos">cos</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_tan">tan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_sinh">sinh</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_cosh">cosh</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_tanh">tanh</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_asin">asin</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_acos">acos</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_atan">atan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_atan2">atan2</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_sqrt">sqrt</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_fmod">fmod</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_fposmod">fposmod</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_floor">floor</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_ceil">ceil</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_round">round</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_abs">abs</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_sign">sign</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_pow">pow</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_log">log</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_exp">exp</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_isnan">isnan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_isinf">isinf</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_ease">ease</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>curve</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_decimals">decimals</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>step</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_stepify">stepify</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>step</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="int.html">int </a></td><td><span class="identifier funcdef"><a href="#@GDScript_rand">rand</a></span><span class="symbol"> (</span><span class="symbol">)</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_randf">randf</a></span><span class="symbol"> (</span><span class="symbol">)</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_rand_range">rand_range</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>from</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>to</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Array.html">Array </a></td><td><span class="identifier funcdef"><a href="#@GDScript_rand_seed">rand_seed</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>seed</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_deg2rad">deg2rad</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>deg</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_rad2deg">rad2deg</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>rad</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_linear2db">linear2db</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>nrg</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_db2linear">db2linear</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>db</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_max">max</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>a</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>b</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_min">min</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>a</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>b</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="real.html">real </a></td><td><span class="identifier funcdef"><a href="#@GDScript_clamp">clamp</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>val</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>min</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>max</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="int.html">int </a></td><td><span class="identifier funcdef"><a href="#@GDScript_nearest_po2">nearest_po2</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="int.html">int </a><span>val</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Object.html">Object </a></td><td><span class="identifier funcdef"><a href="#@GDScript_weakref">weakref</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="Object.html">Object </a><span>obj</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Object.html">Object </a></td><td><span class="identifier funcdef"><a href="#@GDScript_convert">convert</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><a class="datatype_existing" href="int.html">int </a><span>type</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="String.html">String </a></td><td><span class="identifier funcdef"><a href="#@GDScript_str">str</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Nil.html">Nil </a></td><td><span class="identifier funcdef"><a href="#@GDScript_print">print</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Nil.html">Nil </a></td><td><span class="identifier funcdef"><a href="#@GDScript_printerr">printerr</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Nil.html">Nil </a></td><td><span class="identifier funcdef"><a href="#@GDScript_printraw">printraw</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></td></tr><tr class="method"><td align="right"><a class="datatype_existing" href="Array.html">Array </a></td><td><span class="identifier funcdef"><a href="#@GDScript_range">range</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></td></tr></table><h4>Description:</h4><div class="description"> - This contains the list of built-in gdscript functions. Mostly math functions and other utilities. Everything else is expanded by objects. - </div><h4>Method Documentation:</h4><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_sin">@GDScript::sin</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Standard sine function. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_cos">@GDScript::cos</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Standard cosine function. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_tan">@GDScript::tan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Standard tangent function. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_sinh">@GDScript::sinh</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Hyperbolic sine. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_tanh">@GDScript::tanh</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Hyperbolic tangent. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_asin">@GDScript::asin</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Arc-sine. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_acos">@GDScript::acos</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Arc-cosine. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_atan">@GDScript::atan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Arc-tangent. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_atan2">@GDScript::atan2</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></div><div class="description"> - Arc-tangent that takes a 2D vector as argument, retuns the full -pi to +pi range. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_sqrt">@GDScript::sqrt</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Square root. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_fmod">@GDScript::fmod</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></div><div class="description"> - Module (remainder of x/y). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_fposmod">@GDScript::fposmod</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></div><div class="description"> - Module (remainder of x/y) that wraps equally in positive and negative. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_floor">@GDScript::floor</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Floor (rounds down to nearest integer). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_ceil">@GDScript::ceil</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Ceiling (rounds up to nearest integer). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_round">@GDScript::round</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Round to nearest integer. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_abs">@GDScript::abs</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Remove sign (works for integer and float). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_sign">@GDScript::sign</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Return sign (-1 or +1). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_pow">@GDScript::pow</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>x</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>y</span><span class="symbol"> )</span></div><div class="description"> - Power function, x elevate to y. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_log">@GDScript::log</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Natural logarithm. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_exp">@GDScript::exp</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Exponential logarithm. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_isnan">@GDScript::isnan</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Return true if the float is not a number. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_isinf">@GDScript::isinf</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span class="symbol"> )</span></div><div class="description"> - Return true if the float is infinite. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_ease">@GDScript::ease</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>curve</span><span class="symbol"> )</span></div><div class="description"> - 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. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_decimals">@GDScript::decimals</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>step</span><span class="symbol"> )</span></div><div class="description"> - Return the amount of decimals in the floating point value. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_stepify">@GDScript::stepify</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>s</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>step</span><span class="symbol"> )</span></div><div class="description"> - Snap float value to a given step. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="int.html">int </a><span class="funcdecl"><a name="@GDScript_rand">@GDScript::rand</a></span><span class="symbol"> (</span><span class="symbol">)</span></div><div class="description"> - Random value (integer). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_randf">@GDScript::randf</a></span><span class="symbol"> (</span><span class="symbol">)</span></div><div class="description"> - Random value (0 to 1 float). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_rand_range">@GDScript::rand_range</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>from</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>to</span><span class="symbol"> )</span></div><div class="description"> - Random range. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Array.html">Array </a><span class="funcdecl"><a name="@GDScript_rand_seed">@GDScript::rand_seed</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>seed</span><span class="symbol"> )</span></div><div class="description"> - random from seed, pass a seed and an array with both number and new seed is returned. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_deg2rad">@GDScript::deg2rad</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>deg</span><span class="symbol"> )</span></div><div class="description"> - Convert from degrees to radians. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_rad2deg">@GDScript::rad2deg</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>rad</span><span class="symbol"> )</span></div><div class="description"> - Convert from radias to degrees. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_linear2db">@GDScript::linear2db</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>nrg</span><span class="symbol"> )</span></div><div class="description"> - Convert from linear energy to decibels (audio). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_db2linear">@GDScript::db2linear</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>db</span><span class="symbol"> )</span></div><div class="description"> - Convert from decibels to linear energy (audio). - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_max">@GDScript::max</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>a</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>b</span><span class="symbol"> )</span></div><div class="description"> - Return the maximum of two values. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_min">@GDScript::min</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>a</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>b</span><span class="symbol"> )</span></div><div class="description"> - Return the minimum of two values. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="real.html">real </a><span class="funcdecl"><a name="@GDScript_clamp">@GDScript::clamp</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="real.html">real </a><span>val</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>min</span><span>, </span><a class="datatype_existing" href="real.html">real </a><span>max</span><span class="symbol"> )</span></div><div class="description"> - Clamp both values to a range. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="int.html">int </a><span class="funcdecl"><a name="@GDScript_nearest_po2">@GDScript::nearest_po2</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="int.html">int </a><span>val</span><span class="symbol"> )</span></div><div class="description"> - Return the nearest larger power of 2 for an integer. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Object.html">Object </a><span class="funcdecl"><a name="@GDScript_weakref">@GDScript::weakref</a></span><span class="symbol"> (</span><span> </span><a class="datatype_existing" href="Object.html">Object </a><span>obj</span><span class="symbol"> )</span></div><div class="description"> - Return a weak reference to an object. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Object.html">Object </a><span class="funcdecl"><a name="@GDScript_convert">@GDScript::convert</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><a class="datatype_existing" href="int.html">int </a><span>type</span><span class="symbol"> )</span></div><div class="description"> - Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in Global Scope. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="String.html">String </a><span class="funcdecl"><a name="@GDScript_str">@GDScript::str</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></div><div class="description"> - Convert one or more arguments to strings in the best way possible. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Nil.html">Nil </a><span class="funcdecl"><a name="@GDScript_print">@GDScript::print</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></div><div class="description"> - Print one or more arguments to strings in the best way possible to a console line. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Nil.html">Nil </a><span class="funcdecl"><a name="@GDScript_printerr">@GDScript::printerr</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></div><div class="description"> - Print one or more arguments to strings in the best way possible to standard error line. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Nil.html">Nil </a><span class="funcdecl"><a name="@GDScript_printraw">@GDScript::printraw</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>what</span><span>, </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></div><div class="description"> - Print one or more arguments to strings in the best way possible to console. No newline is added at the end. - </div></div><div class="method_doc"><div class="method"><a class="datatype_existing" href="Array.html">Array </a><span class="funcdecl"><a name="@GDScript_range">@GDScript::range</a></span><span class="symbol"> (</span><span> </span><span class="datatype">var </span><span>...</span><span class="symbol"> )</span></div><div class="description"> - Return an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial,final-1,increment). - </div></div></div><hr /><span>Copyright 2008-2010 Codenix SRL</span></body></html>
\ No newline at end of file diff --git a/doc/html/@Global Scope.html b/doc/html/@Global Scope.html deleted file mode 100644 index 3324383c3d..0000000000 --- a/doc/html/@Global Scope.html +++ /dev/null @@ -1,459 +0,0 @@ -<html><link href="main.css" rel="stylesheet" type="text/css" /><body><table class="top_table"><tr><td class="top_table"><image src="images/logo.png" /></td><td class="top_table"><a href="index.html">Index</a></td><td class="top_table"><a href="alphabetical.html">Classes</a></td><td class="top_table"><a href="category.html">Categories</a></td><td><a href="inheritance.html">Inheritance</a></td></tr></table><hr /><div class="class"><a name="@Global Scope"><h3 class="title class_title">@Global Scope</h3></a><div class="description class_description"> - Global scope constants and variables. - </div><br /><div class="category"><span class="category">Category: </span><a class="category_ref" href="category.html#CATEGORY_Core">Core</a></div><h4>Public Variables:</h4><div class="member_list"><li><div class="member"><a class="datatype_existing" href="Globals.html">Globals </a><span class="identifier member_name"> Globals </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="IP.html">IP </a><span class="identifier member_name"> IP </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="Geometry.html">Geometry </a><span class="identifier member_name"> Geometry </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="ResourceLoader.html">ResourceLoader </a><span class="identifier member_name"> ResourceLoader </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="ResourceSaver.html">ResourceSaver </a><span class="identifier member_name"> ResourceSaver </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="PathRemap.html">PathRemap </a><span class="identifier member_name"> PathRemap </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="OS.html">OS </a><span class="identifier member_name"> OS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="TranslationServer.html">TranslationServer </a><span class="identifier member_name"> TranslationServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="TranslationServer.html">TranslationServer </a><span class="identifier member_name"> TS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="SceneIO.html">SceneIO </a><span class="identifier member_name"> SceneIO </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="VisualServer.html">VisualServer </a><span class="identifier member_name"> VisualServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="VisualServer.html">VisualServer </a><span class="identifier member_name"> VS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="AudioServer.html">AudioServer </a><span class="identifier member_name"> AudioServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="AudioServer.html">AudioServer </a><span class="identifier member_name"> AS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="PhysicsServer.html">PhysicsServer </a><span class="identifier member_name"> PhysicsServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="PhysicsServer.html">PhysicsServer </a><span class="identifier member_name"> PS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="Physics2DServer.html">Physics2DServer </a><span class="identifier member_name"> Physics2DServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="Physics2DServer.html">Physics2DServer </a><span class="identifier member_name"> PS2D </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="SpatialSound2DServer.html">SpatialSound2DServer </a><span class="identifier member_name"> SpatialSoundServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="SpatialSound2DServer.html">SpatialSound2DServer </a><span class="identifier member_name"> SS </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="SpatialSound2DServer.html">SpatialSound2DServer </a><span class="identifier member_name"> SpatialSound2DServer </span><span class="member_description"> - </span></div></li><li><div class="member"><a class="datatype_existing" href="SpatialSound2DServer.html">SpatialSound2DServer </a><span class="identifier member_name"> SS2D </span><span class="member_description"> - </span></div></li></div><h4>Constants:</h4><div class="constant_list"><li><div class="constant"><span class="identifier constant_name">MARGIN_LEFT </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">MARGIN_TOP </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">MARGIN_RIGHT </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">MARGIN_BOTTOM </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">VERTICAL </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">HORIZONTAL </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">HALIGN_LEFT </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">HALIGN_CENTER </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">HALIGN_RIGHT </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">VALIGN_TOP </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">VALIGN_CENTER </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">VALIGN_BOTTOM </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">SPKEY </span><span class="symbol">= </span><span class="constant_value">16777216 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ESCAPE </span><span class="symbol">= </span><span class="constant_value">16777217 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_TAB </span><span class="symbol">= </span><span class="constant_value">16777218 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BACKTAB </span><span class="symbol">= </span><span class="constant_value">16777219 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BACKSPACE </span><span class="symbol">= </span><span class="constant_value">16777220 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_RETURN </span><span class="symbol">= </span><span class="constant_value">16777221 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ENTER </span><span class="symbol">= </span><span class="constant_value">16777222 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_INSERT </span><span class="symbol">= </span><span class="constant_value">16777223 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DELETE </span><span class="symbol">= </span><span class="constant_value">16777224 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PAUSE </span><span class="symbol">= </span><span class="constant_value">16777225 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PRINT </span><span class="symbol">= </span><span class="constant_value">16777226 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SYSREQ </span><span class="symbol">= </span><span class="constant_value">16777227 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CLEAR </span><span class="symbol">= </span><span class="constant_value">16777228 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HOME </span><span class="symbol">= </span><span class="constant_value">16777229 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_END </span><span class="symbol">= </span><span class="constant_value">16777230 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LEFT </span><span class="symbol">= </span><span class="constant_value">16777231 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UP </span><span class="symbol">= </span><span class="constant_value">16777232 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_RIGHT </span><span class="symbol">= </span><span class="constant_value">16777233 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DOWN </span><span class="symbol">= </span><span class="constant_value">16777234 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PAGEUP </span><span class="symbol">= </span><span class="constant_value">16777235 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PAGEDOWN </span><span class="symbol">= </span><span class="constant_value">16777236 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SHIFT </span><span class="symbol">= </span><span class="constant_value">16777237 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CONTROL </span><span class="symbol">= </span><span class="constant_value">16777238 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_META </span><span class="symbol">= </span><span class="constant_value">16777239 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ALT </span><span class="symbol">= </span><span class="constant_value">16777240 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CAPSLOCK </span><span class="symbol">= </span><span class="constant_value">16777241 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_NUMLOCK </span><span class="symbol">= </span><span class="constant_value">16777242 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SCROLLLOCK </span><span class="symbol">= </span><span class="constant_value">16777243 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F1 </span><span class="symbol">= </span><span class="constant_value">16777244 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F2 </span><span class="symbol">= </span><span class="constant_value">16777245 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F3 </span><span class="symbol">= </span><span class="constant_value">16777246 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F4 </span><span class="symbol">= </span><span class="constant_value">16777247 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F5 </span><span class="symbol">= </span><span class="constant_value">16777248 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F6 </span><span class="symbol">= </span><span class="constant_value">16777249 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F7 </span><span class="symbol">= </span><span class="constant_value">16777250 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F8 </span><span class="symbol">= </span><span class="constant_value">16777251 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F9 </span><span class="symbol">= </span><span class="constant_value">16777252 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F10 </span><span class="symbol">= </span><span class="constant_value">16777253 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F11 </span><span class="symbol">= </span><span class="constant_value">16777254 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F12 </span><span class="symbol">= </span><span class="constant_value">16777255 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F13 </span><span class="symbol">= </span><span class="constant_value">16777256 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F14 </span><span class="symbol">= </span><span class="constant_value">16777257 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F15 </span><span class="symbol">= </span><span class="constant_value">16777258 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F16 </span><span class="symbol">= </span><span class="constant_value">16777259 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_ENTER </span><span class="symbol">= </span><span class="constant_value">16777344 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_MULTIPLY </span><span class="symbol">= </span><span class="constant_value">16777345 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_DIVIDE </span><span class="symbol">= </span><span class="constant_value">16777346 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_SUBSTRACT </span><span class="symbol">= </span><span class="constant_value">16777347 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_PERIOD </span><span class="symbol">= </span><span class="constant_value">16777348 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_ADD </span><span class="symbol">= </span><span class="constant_value">16777349 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_0 </span><span class="symbol">= </span><span class="constant_value">16777350 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_1 </span><span class="symbol">= </span><span class="constant_value">16777351 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_2 </span><span class="symbol">= </span><span class="constant_value">16777352 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_3 </span><span class="symbol">= </span><span class="constant_value">16777353 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_4 </span><span class="symbol">= </span><span class="constant_value">16777354 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_5 </span><span class="symbol">= </span><span class="constant_value">16777355 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_6 </span><span class="symbol">= </span><span class="constant_value">16777356 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_7 </span><span class="symbol">= </span><span class="constant_value">16777357 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_8 </span><span class="symbol">= </span><span class="constant_value">16777358 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_KP_9 </span><span class="symbol">= </span><span class="constant_value">16777359 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SUPER_L </span><span class="symbol">= </span><span class="constant_value">16777260 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SUPER_R </span><span class="symbol">= </span><span class="constant_value">16777261 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MENU </span><span class="symbol">= </span><span class="constant_value">16777262 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HYPER_L </span><span class="symbol">= </span><span class="constant_value">16777263 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HYPER_R </span><span class="symbol">= </span><span class="constant_value">16777264 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HELP </span><span class="symbol">= </span><span class="constant_value">16777265 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DIRECTION_L </span><span class="symbol">= </span><span class="constant_value">16777266 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DIRECTION_R </span><span class="symbol">= </span><span class="constant_value">16777267 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BACK </span><span class="symbol">= </span><span class="constant_value">16777280 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_FORWARD </span><span class="symbol">= </span><span class="constant_value">16777281 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_STOP </span><span class="symbol">= </span><span class="constant_value">16777282 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_REFRESH </span><span class="symbol">= </span><span class="constant_value">16777283 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_VOLUMEDOWN </span><span class="symbol">= </span><span class="constant_value">16777284 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_VOLUMEMUTE </span><span class="symbol">= </span><span class="constant_value">16777285 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_VOLUMEUP </span><span class="symbol">= </span><span class="constant_value">16777286 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BASSBOOST </span><span class="symbol">= </span><span class="constant_value">16777287 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BASSUP </span><span class="symbol">= </span><span class="constant_value">16777288 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BASSDOWN </span><span class="symbol">= </span><span class="constant_value">16777289 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_TREBLEUP </span><span class="symbol">= </span><span class="constant_value">16777290 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_TREBLEDOWN </span><span class="symbol">= </span><span class="constant_value">16777291 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MEDIAPLAY </span><span class="symbol">= </span><span class="constant_value">16777292 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MEDIASTOP </span><span class="symbol">= </span><span class="constant_value">16777293 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MEDIAPREVIOUS </span><span class="symbol">= </span><span class="constant_value">16777294 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MEDIANEXT </span><span class="symbol">= </span><span class="constant_value">16777295 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MEDIARECORD </span><span class="symbol">= </span><span class="constant_value">16777296 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HOMEPAGE </span><span class="symbol">= </span><span class="constant_value">16777297 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_FAVORITES </span><span class="symbol">= </span><span class="constant_value">16777298 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SEARCH </span><span class="symbol">= </span><span class="constant_value">16777299 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_STANDBY </span><span class="symbol">= </span><span class="constant_value">16777300 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OPENURL </span><span class="symbol">= </span><span class="constant_value">16777301 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHMAIL </span><span class="symbol">= </span><span class="constant_value">16777302 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHMEDIA </span><span class="symbol">= </span><span class="constant_value">16777303 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH0 </span><span class="symbol">= </span><span class="constant_value">16777304 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH1 </span><span class="symbol">= </span><span class="constant_value">16777305 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH2 </span><span class="symbol">= </span><span class="constant_value">16777306 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH3 </span><span class="symbol">= </span><span class="constant_value">16777307 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH4 </span><span class="symbol">= </span><span class="constant_value">16777308 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH5 </span><span class="symbol">= </span><span class="constant_value">16777309 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH6 </span><span class="symbol">= </span><span class="constant_value">16777310 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH7 </span><span class="symbol">= </span><span class="constant_value">16777311 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH8 </span><span class="symbol">= </span><span class="constant_value">16777312 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCH9 </span><span class="symbol">= </span><span class="constant_value">16777313 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHA </span><span class="symbol">= </span><span class="constant_value">16777314 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHB </span><span class="symbol">= </span><span class="constant_value">16777315 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHC </span><span class="symbol">= </span><span class="constant_value">16777316 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHD </span><span class="symbol">= </span><span class="constant_value">16777317 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHE </span><span class="symbol">= </span><span class="constant_value">16777318 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LAUNCHF </span><span class="symbol">= </span><span class="constant_value">16777319 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UNKNOWN </span><span class="symbol">= </span><span class="constant_value">33554431 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SPACE </span><span class="symbol">= </span><span class="constant_value">32 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EXCLAM </span><span class="symbol">= </span><span class="constant_value">33 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_QUOTEDBL </span><span class="symbol">= </span><span class="constant_value">34 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_NUMBERSIGN </span><span class="symbol">= </span><span class="constant_value">35 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DOLLAR </span><span class="symbol">= </span><span class="constant_value">36 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PERCENT </span><span class="symbol">= </span><span class="constant_value">37 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_AMPERSAND </span><span class="symbol">= </span><span class="constant_value">38 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_APOSTROPHE </span><span class="symbol">= </span><span class="constant_value">39 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PARENLEFT </span><span class="symbol">= </span><span class="constant_value">40 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PARENRIGHT </span><span class="symbol">= </span><span class="constant_value">41 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ASTERISK </span><span class="symbol">= </span><span class="constant_value">42 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PLUS </span><span class="symbol">= </span><span class="constant_value">43 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_COMMA </span><span class="symbol">= </span><span class="constant_value">44 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MINUS </span><span class="symbol">= </span><span class="constant_value">45 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PERIOD </span><span class="symbol">= </span><span class="constant_value">46 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SLASH </span><span class="symbol">= </span><span class="constant_value">47 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_0 </span><span class="symbol">= </span><span class="constant_value">48 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_1 </span><span class="symbol">= </span><span class="constant_value">49 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_2 </span><span class="symbol">= </span><span class="constant_value">50 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_3 </span><span class="symbol">= </span><span class="constant_value">51 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_4 </span><span class="symbol">= </span><span class="constant_value">52 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_5 </span><span class="symbol">= </span><span class="constant_value">53 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_6 </span><span class="symbol">= </span><span class="constant_value">54 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_7 </span><span class="symbol">= </span><span class="constant_value">55 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_8 </span><span class="symbol">= </span><span class="constant_value">56 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_9 </span><span class="symbol">= </span><span class="constant_value">57 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_COLON </span><span class="symbol">= </span><span class="constant_value">58 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SEMICOLON </span><span class="symbol">= </span><span class="constant_value">59 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_LESS </span><span class="symbol">= </span><span class="constant_value">60 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EQUAL </span><span class="symbol">= </span><span class="constant_value">61 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_GREATER </span><span class="symbol">= </span><span class="constant_value">62 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_QUESTION </span><span class="symbol">= </span><span class="constant_value">63 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_AT </span><span class="symbol">= </span><span class="constant_value">64 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_A </span><span class="symbol">= </span><span class="constant_value">65 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_B </span><span class="symbol">= </span><span class="constant_value">66 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_C </span><span class="symbol">= </span><span class="constant_value">67 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_D </span><span class="symbol">= </span><span class="constant_value">68 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_E </span><span class="symbol">= </span><span class="constant_value">69 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_F </span><span class="symbol">= </span><span class="constant_value">70 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_G </span><span class="symbol">= </span><span class="constant_value">71 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_H </span><span class="symbol">= </span><span class="constant_value">72 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_I </span><span class="symbol">= </span><span class="constant_value">73 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_J </span><span class="symbol">= </span><span class="constant_value">74 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_K </span><span class="symbol">= </span><span class="constant_value">75 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_L </span><span class="symbol">= </span><span class="constant_value">76 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_M </span><span class="symbol">= </span><span class="constant_value">77 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_N </span><span class="symbol">= </span><span class="constant_value">78 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_O </span><span class="symbol">= </span><span class="constant_value">79 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_P </span><span class="symbol">= </span><span class="constant_value">80 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_Q </span><span class="symbol">= </span><span class="constant_value">81 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_R </span><span class="symbol">= </span><span class="constant_value">82 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_S </span><span class="symbol">= </span><span class="constant_value">83 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_T </span><span class="symbol">= </span><span class="constant_value">84 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_U </span><span class="symbol">= </span><span class="constant_value">85 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_V </span><span class="symbol">= </span><span class="constant_value">86 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_W </span><span class="symbol">= </span><span class="constant_value">87 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_X </span><span class="symbol">= </span><span class="constant_value">88 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_Y </span><span class="symbol">= </span><span class="constant_value">89 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_Z </span><span class="symbol">= </span><span class="constant_value">90 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BRACKETLEFT </span><span class="symbol">= </span><span class="constant_value">91 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BACKSLASH </span><span class="symbol">= </span><span class="constant_value">92 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BRACKETRIGHT </span><span class="symbol">= </span><span class="constant_value">93 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ASCIICIRCUM </span><span class="symbol">= </span><span class="constant_value">94 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UNDERSCORE </span><span class="symbol">= </span><span class="constant_value">95 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_QUOTELEFT </span><span class="symbol">= </span><span class="constant_value">96 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BRACELEFT </span><span class="symbol">= </span><span class="constant_value">123 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BAR </span><span class="symbol">= </span><span class="constant_value">124 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BRACERIGHT </span><span class="symbol">= </span><span class="constant_value">125 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ASCIITILDE </span><span class="symbol">= </span><span class="constant_value">126 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_NOBREAKSPACE </span><span class="symbol">= </span><span class="constant_value">160 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EXCLAMDOWN </span><span class="symbol">= </span><span class="constant_value">161 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CENT </span><span class="symbol">= </span><span class="constant_value">162 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_STERLING </span><span class="symbol">= </span><span class="constant_value">163 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CURRENCY </span><span class="symbol">= </span><span class="constant_value">164 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_YEN </span><span class="symbol">= </span><span class="constant_value">165 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_BROKENBAR </span><span class="symbol">= </span><span class="constant_value">166 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SECTION </span><span class="symbol">= </span><span class="constant_value">167 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DIAERESIS </span><span class="symbol">= </span><span class="constant_value">168 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_COPYRIGHT </span><span class="symbol">= </span><span class="constant_value">169 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ORDFEMININE </span><span class="symbol">= </span><span class="constant_value">170 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_GUILLEMOTLEFT </span><span class="symbol">= </span><span class="constant_value">171 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_NOTSIGN </span><span class="symbol">= </span><span class="constant_value">172 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_HYPHEN </span><span class="symbol">= </span><span class="constant_value">173 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_REGISTERED </span><span class="symbol">= </span><span class="constant_value">174 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MACRON </span><span class="symbol">= </span><span class="constant_value">175 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DEGREE </span><span class="symbol">= </span><span class="constant_value">176 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PLUSMINUS </span><span class="symbol">= </span><span class="constant_value">177 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_TWOSUPERIOR </span><span class="symbol">= </span><span class="constant_value">178 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_THREESUPERIOR </span><span class="symbol">= </span><span class="constant_value">179 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ACUTE </span><span class="symbol">= </span><span class="constant_value">180 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MU </span><span class="symbol">= </span><span class="constant_value">181 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PARAGRAPH </span><span class="symbol">= </span><span class="constant_value">182 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_PERIODCENTERED </span><span class="symbol">= </span><span class="constant_value">183 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CEDILLA </span><span class="symbol">= </span><span class="constant_value">184 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ONESUPERIOR </span><span class="symbol">= </span><span class="constant_value">185 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASCULINE </span><span class="symbol">= </span><span class="constant_value">186 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_GUILLEMOTRIGHT </span><span class="symbol">= </span><span class="constant_value">187 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ONEQUARTER </span><span class="symbol">= </span><span class="constant_value">188 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ONEHALF </span><span class="symbol">= </span><span class="constant_value">189 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_THREEQUARTERS </span><span class="symbol">= </span><span class="constant_value">190 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_QUESTIONDOWN </span><span class="symbol">= </span><span class="constant_value">191 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_AGRAVE </span><span class="symbol">= </span><span class="constant_value">192 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_AACUTE </span><span class="symbol">= </span><span class="constant_value">193 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ACIRCUMFLEX </span><span class="symbol">= </span><span class="constant_value">194 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ATILDE </span><span class="symbol">= </span><span class="constant_value">195 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ADIAERESIS </span><span class="symbol">= </span><span class="constant_value">196 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ARING </span><span class="symbol">= </span><span class="constant_value">197 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_AE </span><span class="symbol">= </span><span class="constant_value">198 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CCEDILLA </span><span class="symbol">= </span><span class="constant_value">199 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EGRAVE </span><span class="symbol">= </span><span class="constant_value">200 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EACUTE </span><span class="symbol">= </span><span class="constant_value">201 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ECIRCUMFLEX </span><span class="symbol">= </span><span class="constant_value">202 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_EDIAERESIS </span><span class="symbol">= </span><span class="constant_value">203 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_IGRAVE </span><span class="symbol">= </span><span class="constant_value">204 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_IACUTE </span><span class="symbol">= </span><span class="constant_value">205 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ICIRCUMFLEX </span><span class="symbol">= </span><span class="constant_value">206 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_IDIAERESIS </span><span class="symbol">= </span><span class="constant_value">207 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ETH </span><span class="symbol">= </span><span class="constant_value">208 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_NTILDE </span><span class="symbol">= </span><span class="constant_value">209 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OGRAVE </span><span class="symbol">= </span><span class="constant_value">210 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OACUTE </span><span class="symbol">= </span><span class="constant_value">211 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OCIRCUMFLEX </span><span class="symbol">= </span><span class="constant_value">212 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OTILDE </span><span class="symbol">= </span><span class="constant_value">213 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_ODIAERESIS </span><span class="symbol">= </span><span class="constant_value">214 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MULTIPLY </span><span class="symbol">= </span><span class="constant_value">215 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_OOBLIQUE </span><span class="symbol">= </span><span class="constant_value">216 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UGRAVE </span><span class="symbol">= </span><span class="constant_value">217 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UACUTE </span><span class="symbol">= </span><span class="constant_value">218 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UCIRCUMFLEX </span><span class="symbol">= </span><span class="constant_value">219 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_UDIAERESIS </span><span class="symbol">= </span><span class="constant_value">220 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_YACUTE </span><span class="symbol">= </span><span class="constant_value">221 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_THORN </span><span class="symbol">= </span><span class="constant_value">222 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_SSHARP </span><span class="symbol">= </span><span class="constant_value">223 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_DIVISION </span><span class="symbol">= </span><span class="constant_value">247 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_YDIAERESIS </span><span class="symbol">= </span><span class="constant_value">255 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_CODE_MASK </span><span class="symbol">= </span><span class="constant_value">33554431 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MODIFIER_MASK </span><span class="symbol">= </span><span class="constant_value">-16777216 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_SHIFT </span><span class="symbol">= </span><span class="constant_value">33554432 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_ALT </span><span class="symbol">= </span><span class="constant_value">67108864 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_META </span><span class="symbol">= </span><span class="constant_value">134217728 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_CTRL </span><span class="symbol">= </span><span class="constant_value">268435456 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_KPAD </span><span class="symbol">= </span><span class="constant_value">536870912 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">KEY_MASK_GROUP_SWITCH </span><span class="symbol">= </span><span class="constant_value">1073741824 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_LEFT </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_RIGHT </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_MIDDLE </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_WHEEL_UP </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_WHEEL_DOWN </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_MASK_LEFT </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_MASK_RIGHT </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">BUTTON_MASK_MIDDLE </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_0 </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_1 </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_2 </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_3 </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_4 </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_5 </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_6 </span><span class="symbol">= </span><span class="constant_value">6 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_7 </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_8 </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_9 </span><span class="symbol">= </span><span class="constant_value">9 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_10 </span><span class="symbol">= </span><span class="constant_value">10 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_11 </span><span class="symbol">= </span><span class="constant_value">11 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_12 </span><span class="symbol">= </span><span class="constant_value">12 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_13 </span><span class="symbol">= </span><span class="constant_value">13 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_14 </span><span class="symbol">= </span><span class="constant_value">14 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_15 </span><span class="symbol">= </span><span class="constant_value">15 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_BUTTON_MAX </span><span class="symbol">= </span><span class="constant_value">16 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SNES_A </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SNES_B </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SNES_X </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SNES_Y </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SONY_CIRCLE </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SONY_X </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SONY_SQUARE </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SONY_TRIANGLE </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SEGA_B </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SEGA_A </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SEGA_X </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SEGA_Y </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_XBOX_B </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_XBOX_A </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_XBOX_X </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_XBOX_Y </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DS_A </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DS_B </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DS_X </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DS_Y </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_SELECT </span><span class="symbol">= </span><span class="constant_value">10 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_START </span><span class="symbol">= </span><span class="constant_value">11 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DPAD_UP </span><span class="symbol">= </span><span class="constant_value">12 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DPAD_DOWN </span><span class="symbol">= </span><span class="constant_value">13 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DPAD_LEFT </span><span class="symbol">= </span><span class="constant_value">14 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_DPAD_RIGHT </span><span class="symbol">= </span><span class="constant_value">15 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_L </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_L2 </span><span class="symbol">= </span><span class="constant_value">6 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_L3 </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_R </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_R2 </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_R3 </span><span class="symbol">= </span><span class="constant_value">9 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_0 </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_1 </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_2 </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_3 </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_4 </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_5 </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_6 </span><span class="symbol">= </span><span class="constant_value">6 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_7 </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_AXIS_MAX </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_0_X </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_0_Y </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_1_X </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_1_Y </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_2_X </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">JOY_ANALOG_2_Y </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">OK </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">FAILED </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_UNAVAILABLE </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_UNCONFIGURED </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_UNAUTHORIZED </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_PARAMETER_RANGE_ERROR </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_OUT_OF_MEMORY </span><span class="symbol">= </span><span class="constant_value">6 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_NOT_FOUND </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_BAD_DRIVE </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_BAD_PATH </span><span class="symbol">= </span><span class="constant_value">9 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_NO_PERMISSION </span><span class="symbol">= </span><span class="constant_value">10 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_ALREADY_IN_USE </span><span class="symbol">= </span><span class="constant_value">11 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_CANT_OPEN </span><span class="symbol">= </span><span class="constant_value">12 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_CANT_WRITE </span><span class="symbol">= </span><span class="constant_value">13 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_CANT_READ </span><span class="symbol">= </span><span class="constant_value">14 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_UNRECOGNIZED </span><span class="symbol">= </span><span class="constant_value">15 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_CORRUPT </span><span class="symbol">= </span><span class="constant_value">16 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_FILE_EOF </span><span class="symbol">= </span><span class="constant_value">17 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_CANT_OPEN </span><span class="symbol">= </span><span class="constant_value">18 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_CANT_CREATE </span><span class="symbol">= </span><span class="constant_value">19 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERROR_QUERY_FAILED </span><span class="symbol">= </span><span class="constant_value">20 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_ALREADY_IN_USE </span><span class="symbol">= </span><span class="constant_value">21 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_LOCKED </span><span class="symbol">= </span><span class="constant_value">22 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_TIMEOUT </span><span class="symbol">= </span><span class="constant_value">23 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_CANT_AQUIRE_RESOURCE </span><span class="symbol">= </span><span class="constant_value">24 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_INVALID_DATA </span><span class="symbol">= </span><span class="constant_value">26 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_INVALID_PARAMETER </span><span class="symbol">= </span><span class="constant_value">27 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_ALREADY_EXISTS </span><span class="symbol">= </span><span class="constant_value">28 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_DOES_NOT_EXIST </span><span class="symbol">= </span><span class="constant_value">29 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_DATABASE_CANT_READ </span><span class="symbol">= </span><span class="constant_value">30 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_DATABASE_CANT_WRITE </span><span class="symbol">= </span><span class="constant_value">31 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_COMPILATION_FAILED </span><span class="symbol">= </span><span class="constant_value">32 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_METHOD_NOT_FOUND </span><span class="symbol">= </span><span class="constant_value">33 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_LINK_FAILED </span><span class="symbol">= </span><span class="constant_value">34 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_SCRIPT_FAILED </span><span class="symbol">= </span><span class="constant_value">35 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_CYCLIC_LINK </span><span class="symbol">= </span><span class="constant_value">36 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_BUSY </span><span class="symbol">= </span><span class="constant_value">40 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_HELP </span><span class="symbol">= </span><span class="constant_value">42 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_BUG </span><span class="symbol">= </span><span class="constant_value">43 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">ERR_WTF </span><span class="symbol">= </span><span class="constant_value">45 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_NONE </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - No hint for edited property. - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_RANGE </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_EXP_RANGE </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - Hint string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats. - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_ENUM </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - Property hint is an enumerated value, like "Hello,Something,Else". This is valid for integers, floats and strings properties. - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_LENGTH </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_FLAGS </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - Property hint is a bitmask description, for bits 0,1,2,3 abd 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers. - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_FILE </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "*.doc". - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_DIR </span><span class="symbol">= </span><span class="constant_value">9 </span><span class="constant_description"> - String property is a directory (so pop up a file dialog when edited). - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_HINT_RESOURCE_TYPE </span><span class="symbol">= </span><span class="constant_value">10 </span><span class="constant_description"> - String property is a resource, so open the resource popup menu when edited. - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_USAGE_STORAGE </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - Property will be used as storage (default). - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_USAGE_STORAGE </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - Property will be used as storage (default). - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_USAGE_EDITOR </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - Property will be visible in editor (default). - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_USAGE_NETWORK </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">PROPERTY_USAGE_DEFAULT </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - Default usage (storage and editor). - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_NIL </span><span class="symbol">= </span><span class="constant_value">0 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_BOOL </span><span class="symbol">= </span><span class="constant_value">1 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_INT </span><span class="symbol">= </span><span class="constant_value">2 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_REAL </span><span class="symbol">= </span><span class="constant_value">3 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_STRING </span><span class="symbol">= </span><span class="constant_value">4 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_VECTOR2 </span><span class="symbol">= </span><span class="constant_value">5 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_RECT2 </span><span class="symbol">= </span><span class="constant_value">6 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_VECTOR3 </span><span class="symbol">= </span><span class="constant_value">7 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_MATRIX32 </span><span class="symbol">= </span><span class="constant_value">8 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_PLANE </span><span class="symbol">= </span><span class="constant_value">9 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_QUAT </span><span class="symbol">= </span><span class="constant_value">10 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_AABB </span><span class="symbol">= </span><span class="constant_value">11 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_MATRIX3 </span><span class="symbol">= </span><span class="constant_value">12 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_TRANSFORM </span><span class="symbol">= </span><span class="constant_value">13 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_COLOR </span><span class="symbol">= </span><span class="constant_value">14 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_IMAGE </span><span class="symbol">= </span><span class="constant_value">15 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_NODE_PATH </span><span class="symbol">= </span><span class="constant_value">16 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_RID </span><span class="symbol">= </span><span class="constant_value">17 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_OBJECT </span><span class="symbol">= </span><span class="constant_value">18 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_INPUT_EVENT </span><span class="symbol">= </span><span class="constant_value">19 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_DICTIONARY </span><span class="symbol">= </span><span class="constant_value">20 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_ARRAY </span><span class="symbol">= </span><span class="constant_value">21 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_RAW_ARRAY </span><span class="symbol">= </span><span class="constant_value">22 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_INT_ARRAY </span><span class="symbol">= </span><span class="constant_value">23 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_REAL_ARRAY </span><span class="symbol">= </span><span class="constant_value">24 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_STRING_ARRAY </span><span class="symbol">= </span><span class="constant_value">25 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_VECTOR2_ARRAY </span><span class="symbol">= </span><span class="constant_value">26 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_VECTOR3_ARRAY </span><span class="symbol">= </span><span class="constant_value">27 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_COLOR_ARRAY </span><span class="symbol">= </span><span class="constant_value">28 </span><span class="constant_description"> - </span></div></li><li><div class="constant"><span class="identifier constant_name">TYPE_MAX </span><span class="symbol">= </span><span class="constant_value">29 </span><span class="constant_description"> - </span></div></li></div><h4>Description:</h4><div class="description"> - Global scope constants and variables. This is all that resides in the globals, constants regarding error codes, scancodes, property hints, etc. It's not much. - Singletons are also documented here, since they can be accessed from anywhere. - </div><h4>Method Documentation:</h4></div><hr /><span>Copyright 2008-2010 Codenix SRL</span></body></html>
\ No newline at end of file diff --git a/doc/html/@Squirrel.html b/doc/html/@Squirrel.html deleted file mode 100644 index ad4aaa49d8..0000000000 --- a/doc/html/@Squirrel.html +++ /dev/null @@ -1,2 +0,0 @@ -<html><link href="main.css" rel="stylesheet" type="text/css" /><body><table class="top_table"><tr><td class="top_table"><image src="images/logo.png" /></td><td class="top_table"><a href="index.html">Index</a></td><td class="top_table"><a href="alphabetical.html">Classes</a></td><td class="top_table"><a href="category.html">Categories</a></td><td><a href="inheritance.html">Inheritance</a></td></tr></table><hr /><div class="class"><a name="@Squirrel"><h3 class="title class_title">@Squirrel</h3></a><div class="description class_description"> - </div><br /><div class="category"><span class="category">Category: </span><a class="category_ref" href="category.html#CATEGORY_Core">Core</a></div><h4>Method Documentation:</h4></div><hr /><span>Copyright 2008-2010 Codenix SRL</span></body></html>
\ No newline at end of file diff --git a/doc/html/tutorial01/0_home_red_coding_godot_doc_math_position.png b/doc/html/tutorial01/0_home_red_coding_godot_doc_math_position.png Binary files differdeleted file mode 100644 index df52c05462..0000000000 --- a/doc/html/tutorial01/0_home_red_coding_godot_doc_math_position.png +++ /dev/null diff --git a/doc/html/tutorial01/1_home_red_coding_godot_doc_math_direction.png b/doc/html/tutorial01/1_home_red_coding_godot_doc_math_direction.png Binary files differdeleted file mode 100644 index 5b58274bcb..0000000000 --- a/doc/html/tutorial01/1_home_red_coding_godot_doc_math_direction.png +++ /dev/null diff --git a/doc/html/tutorial01/2_home_red_coding_godot_doc_math_normals.png b/doc/html/tutorial01/2_home_red_coding_godot_doc_math_normals.png Binary files differdeleted file mode 100644 index 73681a58ce..0000000000 --- a/doc/html/tutorial01/2_home_red_coding_godot_doc_math_normals.png +++ /dev/null diff --git a/doc/html/tutorial01/tutorial.css b/doc/html/tutorial01/tutorial.css deleted file mode 100644 index a518c6dff7..0000000000 --- a/doc/html/tutorial01/tutorial.css +++ /dev/null @@ -1,128 +0,0 @@ - -/* start css.sty */ -.cmr-7{font-size:70%;} -.cmmi-7{font-size:70%;font-style: italic;} -.cmmi-10{font-style: italic;} -.ectt-1000{ font-family: monospace;} -.ectt-1000{ font-family: monospace;} -.ectt-1000{ font-family: monospace;} -.ectt-1000{ font-family: monospace;} -.ectt-1000{ font-family: monospace;} -.ecti-1000{ font-style: italic;} -.ecti-1000{ font-style: italic;} -.ecti-1000{ font-style: italic;} -.ecti-1000{ font-style: italic;} -.ecti-1000{ font-style: italic;} -.ecti-0700{font-size:70%; font-style: italic;} -.ecti-0700{ font-style: italic;} -.ecti-0700{ font-style: italic;} -.ecti-0700{ font-style: italic;} -.ecti-0700{ font-style: italic;} -.ecrm-0700{font-size:70%;} -p.noindent { text-indent: 0em } -td p.noindent { text-indent: 0em; margin-top:0em; } -p.nopar { text-indent: 0em; } -p.indent{ text-indent: 1.5em } -@media print {div.crosslinks {visibility:hidden;}} -a img { border-top: 0; border-left: 0; border-right: 0; } -center { margin-top:1em; margin-bottom:1em; } -td center { margin-top:0em; margin-bottom:0em; } -.Canvas { position:relative; } -img.math{vertical-align:middle;} -li p.indent { text-indent: 0em } -.enumerate1 {list-style-type:decimal;} -.enumerate2 {list-style-type:lower-alpha;} -.enumerate3 {list-style-type:lower-roman;} -.enumerate4 {list-style-type:upper-alpha;} -div.newtheorem { margin-bottom: 2em; margin-top: 2em;} -.obeylines-h,.obeylines-v {white-space: nowrap; } -div.obeylines-v p { margin-top:0; margin-bottom:0; } -.overline{ text-decoration:overline; } -.overline img{ border-top: 1px solid black; } -td.displaylines {text-align:center; white-space:nowrap;} -.centerline {text-align:center;} -.rightline {text-align:right;} -div.verbatim {font-family: monospace; white-space: nowrap; text-align:left; clear:both; } -.fbox {padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } -div.fbox {display:table} -div.center div.fbox {text-align:center; clear:both; padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } -table.minipage{width:100%;} -div.center, div.center div.center {text-align: center; margin-left:1em; margin-right:1em;} -div.center div {text-align: left;} -div.flushright, div.flushright div.flushright {text-align: right;} -div.flushright div {text-align: left;} -div.flushleft {text-align: left;} -.underline{ text-decoration:underline; } -.underline img{ border-bottom: 1px solid black; margin-bottom:1pt; } -.framebox-c, .framebox-l, .framebox-r { padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } -.framebox-c {text-align:center;} -.framebox-l {text-align:left;} -.framebox-r {text-align:right;} -span.thank-mark{ vertical-align: super } -span.footnote-mark sup.textsuperscript, span.footnote-mark a sup.textsuperscript{ font-size:80%; } -div.tabular, div.center div.tabular {text-align: center; margin-top:0.5em; margin-bottom:0.5em; } -table.tabular td p{margin-top:0em;} -table.tabular {margin-left: auto; margin-right: auto;} -div.td00{ margin-left:0pt; margin-right:0pt; } -div.td01{ margin-left:0pt; margin-right:5pt; } -div.td10{ margin-left:5pt; margin-right:0pt; } -div.td11{ margin-left:5pt; margin-right:5pt; } -table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } -td.td00{ padding-left:0pt; padding-right:0pt; } -td.td01{ padding-left:0pt; padding-right:5pt; } -td.td10{ padding-left:5pt; padding-right:0pt; } -td.td11{ padding-left:5pt; padding-right:5pt; } -table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } -.hline hr, .cline hr{ height : 1px; margin:0px; } -.tabbing-right {text-align:right;} -span.TEX {letter-spacing: -0.125em; } -span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;} -a span.TEX span.E {text-decoration: none; } -span.LATEX span.A{ position:relative; top:-0.5ex; left:-0.4em; font-size:85%;} -span.LATEX span.TEX{ position:relative; left: -0.4em; } -div.float img, div.float .caption {text-align:center;} -div.figure img, div.figure .caption {text-align:center;} -.marginpar {width:20%; float:right; text-align:left; margin-left:auto; margin-top:0.5em; font-size:85%; text-decoration:underline;} -.marginpar p{margin-top:0.4em; margin-bottom:0.4em;} -table.equation {width:100%;} -.equation td{text-align:center; } -td.equation { margin-top:1em; margin-bottom:1em; } -td.equation-label { width:5%; text-align:center; } -td.eqnarray4 { width:5%; white-space: normal; } -td.eqnarray2 { width:5%; } -table.eqnarray-star, table.eqnarray {width:100%;} -div.eqnarray{text-align:center;} -div.array {text-align:center;} -div.pmatrix {text-align:center;} -table.pmatrix {width:100%;} -span.pmatrix img{vertical-align:middle;} -div.pmatrix {text-align:center;} -table.pmatrix {width:100%;} -img.cdots{vertical-align:middle;} -.partToc a, .partToc, .likepartToc a, .likepartToc {line-height: 200%; font-weight:bold; font-size:110%;} -.index-item, .index-subitem, .index-subsubitem {display:block} -.caption td.id{font-weight: bold; white-space: nowrap; } -table.caption {text-align:center;} -h1.partHead{text-align: center} -p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } -p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } -.paragraphHead, .likeparagraphHead { margin-top:2em; font-weight: bold;} -.subparagraphHead, .likesubparagraphHead { font-weight: bold;} -.quote {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; margin-right:1em; text-align:justify;} -.verse{white-space:nowrap; margin-left:2em} -div.maketitle {text-align:center;} -h2.titleHead{text-align:center;} -div.maketitle{ margin-bottom: 2em; } -div.author, div.date {text-align:center;} -div.thanks{text-align:left; margin-left:10%; font-size:85%; font-style:italic; } -div.author{white-space: nowrap;} -.quotation {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; } -.abstract p {margin-left:5%; margin-right:5%;} -table.abstract {width:100%;} -.lstlisting .label{margin-right:0.5em; } -div.lstlisting{font-family: monospace; white-space: nowrap; margin-top:0.5em; margin-bottom:0.5em; } -div.lstinputlisting{ font-family: monospace; white-space: nowrap; } -.lstinputlisting .label{margin-right:0.5em;} -.figure img.graphics {margin-left:10%;} -/* end css.sty */ - diff --git a/doc/html/tutorial01/tutorial.html b/doc/html/tutorial01/tutorial.html deleted file mode 100644 index 45c0258709..0000000000 --- a/doc/html/tutorial01/tutorial.html +++ /dev/null @@ -1,902 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> -<html > -<head><title></title> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> -<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)"> -<!-- html --> -<meta name="src" content="tutorial.tex"> -<meta name="date" content="2009-10-07 00:28:00"> -<link rel="stylesheet" type="text/css" href="tutorial.css"> -</head><body -> - <h3 class="sectionHead"><span class="titlemark">1 </span> <a - id="x1-10001"></a>Introduction to 3D Math</h3> -<!--l. 27--><p class="noindent" > - <h4 class="subsectionHead"><span class="titlemark">1.1 </span> <a - id="x1-20001.1"></a>Introduction</h4> -<!--l. 29--><p class="noindent" >There are many approaches to understanding the type of 3D math used in video -games, modelling, ray-tracing, etc. The usual is through vector algebra, matrices, and -linear transformations and, while they are not completely necesary to understand -most of the aspects of 3D game programming (from the theorical point of view), they -provide a common language to communicate with other programmers or -engineers. -<!--l. 36--><p class="indent" > This tutorial will focus on explaining all the basic concepts needed for a -programmer to understand how to develop 3D games without getting too deep into -algebra. Instead of a math-oriented language, code examples will be given instead -when possible. The reason for this is that. while programmers may have -different backgrounds or experience (be it scientific, engineering or self taught), -code is the most familiar language and the lowest common denominator for -understanding. -<!--l. 45--><p class="noindent" > - <h4 class="subsectionHead"><span class="titlemark">1.2 </span> <a - id="x1-30001.2"></a>Vectors</h4> -<!--l. 48--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.1 </span> <a - id="x1-40001.2.1"></a>Brief Introduction</h5> -<!--l. 50--><p class="noindent" >When writing 2D games, interfaces and other applications, the typical convention is -to define coordinates as an <span -class="ecti-1000">x,y </span>pair, <span -class="ecti-1000">x </span>representing the horizontal offset and <span -class="ecti-1000">y </span>the -vertical one. In most cases, the unit for both is <span -class="ecti-1000">pixels</span>. This makes sense given the -screen is just a rectangle in two dimensions. -<!--l. 56--><p class="indent" > An <span -class="ecti-1000">x,y </span>pair can be used for two purposes. It can be an absolute position (screen -cordinate in the previous case), or a relative direction, if we trace an arrow from the -origin (0,0 coordinates) to it’s position. -<div class="center" -> -<!--l. 60--><p class="noindent" > - -<div class="tabular"> - <table id="TBL-1" class="tabular" -cellspacing="0" cellpadding="0" -><colgroup id="TBL-1-1g"><col -id="TBL-1-1"><col -id="TBL-1-2"><col -id="TBL-1-3"></colgroup><tr - style="vertical-align:baseline;" id="TBL-1-1-"><td style="white-space:nowrap; text-align:center;" id="TBL-1-1-1" -class="td11"><img -src="tutorial0x.png" alt="PIC" class="graphics" width="100.375pt" height="100.375pt" ><!--tex4ht:graphics -name="tutorial0x.png" src="0_home_red_coding_godot_doc_math_position.eps" ---></td><td style="white-space:nowrap; text-align:center;" id="TBL-1-1-2" -class="td11"></td><td style="white-space:nowrap; text-align:center;" id="TBL-1-1-3" -class="td11"><img -src="tutorial1x.png" alt="PIC" class="graphics" width="100.375pt" height="100.375pt" ><!--tex4ht:graphics -name="tutorial1x.png" src="1_home_red_coding_godot_doc_math_direction.eps" ---></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-1-2-"><td style="white-space:nowrap; text-align:center;" id="TBL-1-2-1" -class="td11"> <span -class="ecti-0700">Position </span></td><td style="white-space:nowrap; text-align:center;" id="TBL-1-2-2" -class="td11"></td><td style="white-space:nowrap; text-align:center;" id="TBL-1-2-3" -class="td11"> <span -class="ecti-0700">Direction </span></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-1-3-"><td style="white-space:nowrap; text-align:center;" id="TBL-1-3-1" -class="td11"> </td> -</tr></table></div> -</div> -<!--l. 67--><p class="indent" > When used as a direction, this pair is called a <span -class="ecti-1000">vector</span>, and two properties can be -observed: The first is the <span -class="ecti-1000">magnitude </span>or <span -class="ecti-1000">length </span>, and the second is the direction. In -two dimensions, direction can be an angle. The <span -class="ecti-1000">magnitude </span>or <span -class="ecti-1000">length </span>can be computed -by simply using Pithagoras theorem: -<div class="center" -> -<!--l. 73--><p class="noindent" > -<div class="tabular"> <table id="TBL-2" class="tabular" -cellspacing="0" cellpadding="0" -><colgroup id="TBL-2-1g"><col -id="TBL-2-1"><col -id="TBL-2-2"></colgroup><tr - style="vertical-align:baseline;" id="TBL-2-1-"><td style="white-space:nowrap; text-align:center;" id="TBL-2-1-1" -class="td11"><img -src="tutorial2x.png" alt="∘x2-+-y2-" class="sqrt" ></td><td style="white-space:nowrap; text-align:center;" id="TBL-2-1-2" -class="td11"><img -src="tutorial3x.png" alt="∘x2-+-y2 +-z2" class="sqrt" ></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-2-2-"><td style="white-space:nowrap; text-align:center;" id="TBL-2-2-1" -class="td11"> <span -class="ecti-0700">2D </span></td><td style="white-space:nowrap; text-align:center;" id="TBL-2-2-2" -class="td11"> <span -class="ecti-0700">3D </span></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-2-3-"><td style="white-space:nowrap; text-align:center;" id="TBL-2-3-1" -class="td11"> </td> -</tr></table></div> -</div> -<!--l. 80--><p class="indent" > The direction can be an arbitrary angle from either the <span -class="ecti-1000">x </span>or <span -class="ecti-1000">y </span>axis, and could be -computed by using trigonometry, or just using the usual <span -class="ecti-1000">atan2 </span>function present in -most math libraries. However, when dealing with 3D, the direction can’t be described -as an angle. To separate magnitude and direction, 3D uses the concept of <span -class="ecti-1000">normal</span> -<span -class="ecti-1000">vectors.</span> -<!--l. 88--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.2 </span> <a - id="x1-50001.2.2"></a>Implementation</h5> -<!--l. 90--><p class="noindent" >Vectors are implemented in Godot Engine as a class named <span -class="ecti-1000">Vector3 </span>for 3D, and as -both <span -class="ecti-1000">Vector2</span>, <span -class="ecti-1000">Point2 </span>or <span -class="ecti-1000">Size2 </span>in 2D (they are all aliases). They are used for any -purpose where a pair of 2D or 3D values (described as <span -class="ecti-1000">x,y </span>or <span -class="ecti-1000">x,y,z) </span>is needed. This is -somewhat a standard in most libraries or engines. In the script API, they can be -instanced like this: - <!--l. 98--> - <div class="lstlisting"><span class="label"><a - id="x1-5001r1"></a></span>a = Vector3() <br /><span class="label"><a - id="x1-5002r2"></a></span>a = Vector2( 2.0, 3.4 ) - </div> - -<!--l. 104--><p class="indent" > Vectors also support the common operators <span -class="ecti-1000">+, -, / and * </span>for addition, -substraction, multiplication and division. - <!--l. 108--> - <div class="lstlisting"><span class="label"><a - id="x1-5003r1"></a></span>a = Vector3(1,2,3) <br /><span class="label"><a - id="x1-5004r2"></a></span>b = Vector3(4,5,6) <br /><span class="label"><a - id="x1-5005r3"></a></span>c = Vector3() <br /><span class="label"><a - id="x1-5006r4"></a></span> <br /><span class="label"><a - id="x1-5007r5"></a></span>// writing <br /><span class="label"><a - id="x1-5008r6"></a></span> <br /><span class="label"><a - id="x1-5009r7"></a></span>c = a + b <br /><span class="label"><a - id="x1-5010r8"></a></span> <br /><span class="label"><a - id="x1-5011r9"></a></span>// is the same as writing <br /><span class="label"><a - id="x1-5012r10"></a></span> <br /><span class="label"><a - id="x1-5013r11"></a></span>c.x = a.x + b.x <br /><span class="label"><a - id="x1-5014r12"></a></span>c.y = a.y + b.y <br /><span class="label"><a - id="x1-5015r13"></a></span>c.z = a.z + b.z <br /><span class="label"><a - id="x1-5016r14"></a></span> <br /><span class="label"><a - id="x1-5017r15"></a></span>// both will result in a vector containing (5,7,9). <br /><span class="label"><a - id="x1-5018r16"></a></span>// the same happens for the rest of the operators. - </div> -<!--l. 128--><p class="indent" > Vectors also can perform a wide variety of built-in functions, their most common -usages will be explored next. -<!--l. 132--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.3 </span> <a - id="x1-60001.2.3"></a>Normal Vectors</h5> -<!--l. 134--><p class="noindent" >Two points ago, it was mentioned that 3D vectors can’t describe their direction as an -agle (as 2D vectors can). Because of this, <span -class="ecti-1000">normal vectors </span>become important for -separating a vector between <span -class="ecti-1000">direction </span>and <span -class="ecti-1000">magnitude.</span> -<!--l. 139--><p class="indent" > A <span -class="ecti-1000">normal vector </span>is a vector with a <span -class="ecti-1000">magnitude </span>of <span -class="ecti-1000">1. </span>This means, no matter where -the vector is pointing to, it’s length is always <span -class="ecti-1000">1</span>. - <div class="tabular"> - <table id="TBL-3" class="tabular" -cellspacing="0" cellpadding="0" -><colgroup id="TBL-3-1g"><col -id="TBL-3-1"></colgroup><tr - style="vertical-align:baseline;" id="TBL-3-1-"><td style="white-space:nowrap; text-align:center;" id="TBL-3-1-1" -class="td11"><img -src="tutorial4x.png" alt="PIC" class="graphics" width="100.375pt" height="100.375pt" ><!--tex4ht:graphics -name="tutorial4x.png" src="2_home_red_coding_godot_doc_math_normals.eps" ---></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-3-2-"><td style="white-space:nowrap; text-align:center;" id="TBL-3-2-1" -class="td11"> <span -class="ecrm-0700">Normal vectors aroud the origin. </span></td> -</tr><tr - style="vertical-align:baseline;" id="TBL-3-3-"><td style="white-space:nowrap; text-align:center;" id="TBL-3-3-1" -class="td11"> </td> </tr></table> -</div> -<!--l. 148--><p class="indent" > Normal vectors have endless uses in 3D graphics programming, so it’s -recommended to get familiar with them as much as possible. -<!--l. 152--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.4 </span> <a - id="x1-70001.2.4"></a>Normalization</h5> -<!--l. 154--><p class="noindent" >Normalization is the process through which normal vectors are obtained -from regular vectors. In other words, normalization is used to reduce the -<span -class="ecti-1000">magnitude </span>of any vector to <span -class="ecti-1000">1</span>. (except of course, unless the vector is (0,0,0) -). -<!--l. 159--><p class="indent" > To normalize a vector, it must be divided by its magnitude (which should be -greater than zero): - <!--l. 163--> - <div class="lstlisting"><span class="label"><a - id="x1-7001r1"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">custom</span><span -class="ecti-1000"> </span><span -class="ecti-1000">vector</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">created</span> <br /><span class="label"><a - id="x1-7002r2"></a></span>a = Vector3(4,5,6) <br /><span class="label"><a - id="x1-7003r3"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">’</span><span -class="ecti-1000">l</span><span -class="ecti-1000">’</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">single</span><span -class="ecti-1000"> </span><span -class="ecti-1000">real</span><span -class="ecti-1000"> </span><span -class="ecti-1000">number</span><span -class="ecti-1000"> </span><span -class="ecti-1000">(</span><span -class="ecti-1000">or</span><span -class="ecti-1000"> </span><span -class="ecti-1000">scalar</span><span -class="ecti-1000">)</span><span -class="ecti-1000"> </span><span -class="ecti-1000">containight</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">length</span> <br /><span class="label"><a - id="x1-7004r4"></a></span>l = Math.sqrt( a.x<span -class="cmsy-10">*</span>a.x + a.y<span -class="cmsy-10">*</span>a.y + a.z<span -class="cmsy-10">*</span>a.z ) <br /><span class="label"><a - id="x1-7005r5"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">vector</span><span -class="ecti-1000"> </span><span -class="ecti-1000">’</span><span -class="ecti-1000">a</span><span -class="ecti-1000">’</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">divided</span><span -class="ecti-1000"> </span><span -class="ecti-1000">by</span><span -class="ecti-1000"> </span><span -class="ecti-1000">its</span><span -class="ecti-1000"> </span><span -class="ecti-1000">length</span><span -class="ecti-1000">,</span><span -class="ecti-1000"> </span><span -class="ecti-1000">by</span><span -class="ecti-1000"> </span><span -class="ecti-1000">performing</span><span -class="ecti-1000"> </span><span -class="ecti-1000">scalar</span><span -class="ecti-1000"> </span><span -class="ecti-1000">divide</span> <br /><span class="label"><a - id="x1-7006r6"></a></span>a = a / l <br /><span class="label"><a - id="x1-7007r7"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">which</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">same</span><span -class="ecti-1000"> </span><span -class="ecti-1000">as</span> <br /><span class="label"><a - id="x1-7008r8"></a></span>a.x = a.x / l <br /><span class="label"><a - id="x1-7009r9"></a></span>a.y = a.y / l <br /><span class="label"><a - id="x1-7010r10"></a></span>a.z = a.z / l - - </div> -<!--l. 177--><p class="indent" > Vector3 contains two built in functions for normalization: - <!--l. 180--> - <div class="lstlisting"><span class="label"><a - id="x1-7011r1"></a></span>a = Vector3(4,5,6) <br /><span class="label"><a - id="x1-7012r2"></a></span>a.normalize() <span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">in</span><span -class="cmsy-10">-</span><span -class="ecti-1000">place</span><span -class="ecti-1000"> </span><span -class="ecti-1000">normalization</span> <br /><span class="label"><a - id="x1-7013r3"></a></span>b = a.normalized() <span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">returns</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">copy</span><span -class="ecti-1000"> </span><span -class="ecti-1000">of</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000">,</span><span -class="ecti-1000"> </span><span -class="ecti-1000">normalized</span> - </div> -<!--l. 188--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.5 </span> <a - id="x1-80001.2.5"></a>Dot Product</h5> -<!--l. 190--><p class="noindent" >The dot product is, pheraps, the most useful operation that can be applied to 3D -vectors. In the surface, it’s multiple usages are not very obvious, but in depth it can -provide very useful information between two vectors (be it direction or just points in -space). -<!--l. 195--><p class="indent" > The dot product takes two vectors (<span -class="ecti-1000">a </span>and <span -class="ecti-1000">b </span>in the example) and returns a scalar -(single real number): -<div class="center" -> -<!--l. 198--><p class="noindent" > -<!--l. 199--><p class="noindent" ><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">x</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">x</span></sub> <span -class="cmr-10">+ </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">y</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">y</span></sub> <span -class="cmr-10">+ </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">z</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">z</span></sub> -</div> -<!--l. 202--><p class="indent" > The same expressed in code: - <!--l. 205--> - <div class="lstlisting"><span class="label"><a - id="x1-8001r1"></a></span>a = Vector3(...) <br /><span class="label"><a - id="x1-8002r2"></a></span>b = Vector3(...) <br /><span class="label"><a - id="x1-8003r3"></a></span> <br /><span class="label"><a - id="x1-8004r4"></a></span>c = a.x<span -class="cmsy-10">*</span>b.x + a.y<span -class="cmsy-10">*</span>b.y + a.z<span -class="cmsy-10">*</span>b.z <br /><span class="label"><a - id="x1-8005r5"></a></span> <br /><span class="label"><a - id="x1-8006r6"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">using</span><span -class="ecti-1000"> </span><span -class="ecti-1000">built</span><span -class="cmsy-10">-</span><span -class="ecti-1000">in</span><span -class="ecti-1000"> </span><span -class="ecti-1000">dot</span><span -class="ecti-1000">()</span><span -class="ecti-1000"> </span><span -class="ecti-1000">function</span> <br /><span class="label"><a - id="x1-8007r7"></a></span> <br /><span class="label"><a - id="x1-8008r8"></a></span>c = a.dot(b) - </div> -<!--l. 218--><p class="indent" > The dot product presents several useful properties: - <ul class="itemize1"> - <li class="itemize">If both <span -class="ecti-1000">a </span>and <span -class="ecti-1000">b </span>parameters to a <span -class="ecti-1000">dot product </span>are direction vectors, dot - product will return positive if both point towards the same direction, - negative if both point towards opposite directions, and zero if they are - orthogonal (one is perpendicular to the other). - </li> - <li class="itemize">If both <span -class="ecti-1000">a </span>and <span -class="ecti-1000">b </span>parameters to a <span -class="ecti-1000">dot product </span>are <span -class="ecti-1000">normalized </span>direction - vectors, then the dot product will return the cosine of the angle between - them (ranging from 1 if they are equal, 0 if they are orthogonal, and -1 if - they are opposed (a == -b)). - </li> - <li class="itemize">If <span -class="ecti-1000">a </span>is a <span -class="ecti-1000">normalized </span>direction vector and <span -class="ecti-1000">b </span>is a point, the dot product will - return the distance from <span -class="ecti-1000">b </span>to the plane passing through the origin, with - normal <span -class="ecti-1000">a (see item about planes)</span> - - </li> - <li class="itemize">More uses will be presented later in this tutorial.</li></ul> -<!--l. 236--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.2.6 </span> <a - id="x1-90001.2.6"></a>Cross Product</h5> -<!--l. 238--><p class="noindent" >The <span -class="ecti-1000">cross product </span>also takes two vectors <span -class="ecti-1000">a </span>and <span -class="ecti-1000">b</span>, but returns another vector <span -class="ecti-1000">c </span>that is -orthogonal to the two previous ones. -<div class="center" -> -<!--l. 242--><p class="noindent" > -<!--l. 243--><p class="noindent" ><span -class="cmmi-10">c</span><sub><span -class="cmmi-7">x</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">x</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">z</span></sub> <span -class="cmsy-10">- </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">z</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">y</span></sub> -</div> -<div class="center" -> -<!--l. 246--><p class="noindent" > -<!--l. 247--><p class="noindent" ><span -class="cmmi-10">c</span><sub><span -class="cmmi-7">y</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">z</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">x</span></sub> <span -class="cmsy-10">- </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">x</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">z</span></sub> -</div> -<div class="center" -> -<!--l. 250--><p class="noindent" > -<!--l. 251--><p class="noindent" ><span -class="cmmi-10">c</span><sub><span -class="cmmi-7">z</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">x</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">y</span></sub> <span -class="cmsy-10">- </span><span -class="cmmi-10">a</span><sub><span -class="cmmi-7">y</span></sub><span -class="cmmi-10">b</span><sub><span -class="cmmi-7">x</span></sub> -</div> -<!--l. 254--><p class="indent" > The same in code: - <!--l. 257--> - <div class="lstlisting"><span class="label"><a - id="x1-9001r1"></a></span>a = Vector3(...) <br /><span class="label"><a - id="x1-9002r2"></a></span>b = Vector3(...) <br /><span class="label"><a - id="x1-9003r3"></a></span>c = Vector3(...) <br /><span class="label"><a - id="x1-9004r4"></a></span> <br /><span class="label"><a - id="x1-9005r5"></a></span>c.x = a.x<span -class="cmsy-10">*</span>b.z <span -class="cmsy-10">-</span> a.z<span -class="cmsy-10">*</span>b.y <br /><span class="label"><a - id="x1-9006r6"></a></span>c.y = a.z<span -class="cmsy-10">*</span>b.x <span -class="cmsy-10">-</span> a.x<span -class="cmsy-10">*</span>b.z <br /><span class="label"><a - id="x1-9007r7"></a></span>c.z = a.x<span -class="cmsy-10">*</span>b.y <span -class="cmsy-10">-</span> a.y<span -class="cmsy-10">*</span>b.x <br /><span class="label"><a - id="x1-9008r8"></a></span> <br /><span class="label"><a - id="x1-9009r9"></a></span>// or using the built<span -class="cmsy-10">-</span>in function <br /><span class="label"><a - id="x1-9010r10"></a></span> <br /><span class="label"><a - id="x1-9011r11"></a></span>c = a.cross(b) - </div> -<!--l. 273--><p class="indent" > The <span -class="ecti-1000">cross product </span>also presents several useful properties: - <ul class="itemize1"> - <li class="itemize">As mentioned, the resulting vector <span -class="ecti-1000">c </span>is orthogonal to the input vectors <span -class="ecti-1000">a</span> - and <span -class="ecti-1000">b.</span> - </li> - <li class="itemize">Since the <span -class="ecti-1000">cross product </span>is anticommutative, swapping <span -class="ecti-1000">a </span>and <span -class="ecti-1000">b </span>will result - in a negated vector <span -class="ecti-1000">c.</span> - - </li> - <li class="itemize">if <span -class="ecti-1000">a </span>and <span -class="ecti-1000">b </span>are taken from two of the segmets <span -class="ecti-1000">AB</span>, <span -class="ecti-1000">BC </span>or <span -class="ecti-1000">CA </span>that form a - 3D triangle, the magnitude of the resulting vector divided by 2 is the area - of that triangle. - </li> - <li class="itemize">The direction of the resulting vector <span -class="ecti-1000">c </span>in the previous triangle example - determines wether the points A,B and C are arranged in clocwise or - counter-clockwise order.</li></ul> -<!--l. 287--><p class="noindent" > - <h4 class="subsectionHead"><span class="titlemark">1.3 </span> <a - id="x1-100001.3"></a>Plane</h4> -<!--l. 290--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.3.1 </span> <a - id="x1-110001.3.1"></a>Theory</h5> -<!--l. 292--><p class="noindent" >A plane can be considered as an infinite, flat surface that splits space in two halves, -usually one named positive and one named negative. In regular mathematics, a plane -formula is described as: -<div class="center" -> -<!--l. 296--><p class="noindent" > -<!--l. 297--><p class="noindent" ><span -class="cmmi-10">ax </span><span -class="cmr-10">+ </span><span -class="cmmi-10">by </span><span -class="cmr-10">+ </span><span -class="cmmi-10">cz </span><span -class="cmr-10">+ </span><span -class="cmmi-10">d</span> -</div> -<!--l. 300--><p class="indent" > However, in 3D programming, this form alone is often of little use. For planes to -become useful, they must be in normalized form. -<!--l. 303--><p class="indent" > A normalized plane consists of a <span -class="ecti-1000">normal vector n </span>and a <span -class="ecti-1000">distance d. </span>To normalize -a plane, a vector <span -class="ecti-1000">n </span>and distance <span -class="ecti-1000">d’ </span>are created this way: -<!--l. 307--><p class="indent" > <span -class="cmmi-10">n</span><sub><span -class="cmmi-7">x</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">a</span> -<!--l. 309--><p class="indent" > <span -class="cmmi-10">n</span><sub><span -class="cmmi-7">y</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">b</span> -<!--l. 311--><p class="indent" > <span -class="cmmi-10">n</span><sub><span -class="cmmi-7">z</span></sub> <span -class="cmr-10">= </span><span -class="cmmi-10">c</span> -<!--l. 313--><p class="indent" > <span -class="cmmi-10">d</span><span -class="cmsy-10">′ </span><span -class="cmr-10">= </span><span -class="cmmi-10">d</span> -<!--l. 315--><p class="indent" > Finally, both <span -class="ecti-1000">n </span>and <span -class="ecti-1000">d’ </span>are both divided by the magnitude of n. -<!--l. 318--><p class="indent" > In any case, normalizing planes is not often needed (this was mostly for -explanation purposes), and normalized planes are useful because they can be created -and used easily. -<!--l. 322--><p class="indent" > A normalized plane could be visualized as a plane pointing towards normal <span -class="ecti-1000">n,</span> -offseted by <span -class="ecti-1000">d </span>in the direction of <span -class="ecti-1000">n</span>. -<!--l. 325--><p class="indent" > In other words, take <span -class="ecti-1000">n</span>, multiply it by scalar <span -class="ecti-1000">d </span>and the resulting point will be part -of the plane. This may need some thinking, so an example with a 2D normal vector -(z is 0, so plane is orthogonal to it) is provided: -<!--l. 330--><p class="indent" > Some operations can be done with normalized planes: - - <ul class="itemize1"> - <li class="itemize">Given any point <span -class="ecti-1000">p</span>, the distance from it to a plane can be computed by - doing: n.dot(p) - d - </li> - <li class="itemize">If the resulting distance in the previous point is negative, the point is - below the plane. - </li> - <li class="itemize">Convex polygonal shapes can be defined by enclosing them in planes (the - physics engine uses this property)</li></ul> -<!--l. 340--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.3.2 </span> <a - id="x1-120001.3.2"></a>Implementation</h5> -<!--l. 342--><p class="noindent" >Godot Engine implements normalized planes by using the <span -class="ecti-1000">Plane </span>class. - <!--l. 346--> - <div class="lstlisting"><span class="label"><a - id="x1-12001r1"></a></span>//creates a plane with normal (0,1,0) and distance 5 <br /><span class="label"><a - id="x1-12002r2"></a></span>p = Plane( Vector3(0,1,0), 5 ) <br /><span class="label"><a - id="x1-12003r3"></a></span>// get the distance to a point <br /><span class="label"><a - id="x1-12004r4"></a></span>d = p.distance( Vector3(4,5,6) ) - </div> -<!--l. 355--><p class="noindent" > - <h4 class="subsectionHead"><span class="titlemark">1.4 </span> <a - id="x1-130001.4"></a>Matrices, Quaternions and Coordinate Systems</h4> -<!--l. 357--><p class="noindent" >It is very often needed to store the location/rotation of something. In 2D, it is often -enough to store an <span -class="ecti-1000">x,y </span>location and maybe an angle as the rotation, as that should -be enough to represent any posible position. -<!--l. 362--><p class="indent" > In 3D this becomes a little more difficult, as there is nothing as simple as an angle -to store a 3-axis rotation. -<!--l. 365--><p class="indent" > The first think that may come to mind is to use 3 angles, one for x, one for y and -one for z. However this suffers from the problem that it becomes very cumbersome to -use, as the individual rotations in each axis need to be performed one after another -(they can’t be performed at the same time), leading to a problem called “gimbal -lock”. Also, it becomes impossible to accumulate rotations (add a rotation to an -existing one). -<!--l. 373--><p class="indent" > To solve this, there are two known diferent approaches that aid in solving -rotation, <span -class="ecti-1000">Quaternions </span>and <span -class="ecti-1000">Oriented Coordinate Systems.</span> -<!--l. 378--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.4.1 </span> <a - id="x1-140001.4.1"></a>Oriented Coordinate Systems</h5> -<!--l. 380--><p class="noindent" ><span -class="ecti-1000">Oriented Coordinate Systems </span>(<span -class="ecti-1000">OCS</span>) are a way of representing a coordinate system -inside the cartesian coordinate system. They are mainly composed of 3 Vectors, one -for each axis. The first vector is the <span -class="ecti-1000">x </span>axis, the second the <span -class="ecti-1000">y </span>axis, and the third is the - -<span -class="ecti-1000">z </span>axis. The OCS vectors can be rotated around freely as long as they are kept the -same length (as changing the length of an axis changes its cale), and as long as they -remain orthogonal to eachother (as in, the same as the default cartesian system, -with <span -class="ecti-1000">y </span>pointing up, <span -class="ecti-1000">x </span>pointing left and <span -class="ecti-1000">z </span>pointing front, but all rotated -together). -<!--l. 391--><p class="indent" > <span -class="ecti-1000">Oriented Coordinate Systems </span>are represented in 3D programming as a 3x3 matrix, -where each row (or column, depending on the implementation) contains one of the -axis vectors. Transforming a Vector by a rotated OCS Matrix results in the rotation -being applied to the resulting vector. OCS Matrices can also be multiplied to -accumulate their transformations. -<!--l. 397--><p class="indent" > Godot Engine implements OCS Matrices in the <span -class="ecti-1000">Matrix3 </span>class: - <!--l. 400--> - <div class="lstlisting"><span class="label"><a - id="x1-14001r1"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000">create</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">3</span><span -class="ecti-1000">x3</span><span -class="ecti-1000"> </span><span -class="ecti-1000">matrix</span> <br /><span class="label"><a - id="x1-14002r2"></a></span>m = Matrix3() <br /><span class="label"><a - id="x1-14003r3"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000">rotate</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">matrix</span><span -class="ecti-1000"> </span><span -class="ecti-1000">in</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">y</span><span -class="ecti-1000"> </span><span -class="ecti-1000">axis</span><span -class="ecti-1000">,</span><span -class="ecti-1000"> </span><span -class="ecti-1000">by</span><span -class="ecti-1000"> </span><span -class="ecti-1000">45</span><span -class="ecti-1000"> </span><span -class="ecti-1000">degrees</span> <br /><span class="label"><a - id="x1-14004r4"></a></span>m.rotate( Vector3(0,1,0), Math.deg2rad(45) ) <br /><span class="label"><a - id="x1-14005r5"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000">transform</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">vector</span><span -class="ecti-1000"> </span><span -class="ecti-1000">v</span><span -class="ecti-1000"> </span><span -class="ecti-1000">(</span><span -class="ecti-1000">xform</span><span -class="ecti-1000"> </span><span -class="ecti-1000">method</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">used</span><span -class="ecti-1000">)</span> <br /><span class="label"><a - id="x1-14006r6"></a></span>v = Vector3(...) <br /><span class="label"><a - id="x1-14007r7"></a></span>result = m.xform( v ) - </div> -<!--l. 412--><p class="indent" > However, in most usage cases, one wants to store a translation together with the -rotation. For this, an <span -class="ecti-1000">origin </span>vector must be added to the OCS, thus transforming it -into a 3x4 (or 4x3, depending on preference) matrix. Godot engine implements this -functionality in the <span -class="ecti-1000">Transform </span>class: - <!--l. 419--> - <div class="lstlisting"><span class="label"><a - id="x1-14010r1"></a></span>t = Transform() <br /><span class="label"><a - id="x1-14011r2"></a></span>//rotate the transform in the y axis, by 45 degrees <br /><span class="label"><a - id="x1-14012r3"></a></span>t.rotate( Vector3(0,1,0), Math.deg2rad(45) ) <br /><span class="label"><a - id="x1-14013r4"></a></span>//translate the transform by 5 in the z axis <br /><span class="label"><a - id="x1-14014r5"></a></span>t.translate( Vector3( 0,0,5 ) ) <br /><span class="label"><a - id="x1-14015r6"></a></span>//transform a vector v (xform method is used) <br /><span class="label"><a - id="x1-14016r7"></a></span>v = Vector3(...) <br /><span class="label"><a - id="x1-14017r8"></a></span>result = t.xform( v ) - </div> -<!--l. 431--><p class="indent" > Transform contains internally a Matrix3 “basis” and a Vector3 “origin” (which can -be modified individually). -<!--l. 435--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.4.2 </span> <a - id="x1-150001.4.2"></a>Transform Internals</h5> -<!--l. 437--><p class="noindent" >Internally, the xform() process is quite simple, to apply a 3x3 transform to a vector, -the transposed axis vectors are used (as using the regular axis vectors will result on -an inverse of the desired transform): - <!--l. 442--> - <div class="lstlisting"><span class="label"><a - id="x1-15001r1"></a></span>m = Matrix3(...) <br /><span class="label"><a - id="x1-15002r2"></a></span>v = Vector3(..) <br /><span class="label"><a - id="x1-15003r3"></a></span>result = Vector3(...) <br /><span class="label"><a - id="x1-15004r4"></a></span> <br /><span class="label"><a - id="x1-15005r5"></a></span>x_axis = m.get_axis(0) <br /><span class="label"><a - id="x1-15006r6"></a></span>y_axis = m.get_axis(1) <br /><span class="label"><a - id="x1-15007r7"></a></span>z_axis = m.get_axis(2) <br /><span class="label"><a - id="x1-15008r8"></a></span> <br /><span class="label"><a - id="x1-15009r9"></a></span>result.x = Vector3(x_axis.x, y_axis.x, z_axis.x).dot(v) <br /><span class="label"><a - id="x1-15010r10"></a></span>result.y = Vector3(x_axis.y, y_axis.y, z_axis.y).dot(v) <br /><span class="label"><a - id="x1-15011r11"></a></span>result.z = Vector3(x_axis.z, y_axis.z, z_axis.z).dot(v) <br /><span class="label"><a - id="x1-15012r12"></a></span> <br /><span class="label"><a - id="x1-15013r13"></a></span>// is the same as doing <br /><span class="label"><a - id="x1-15014r14"></a></span> <br /><span class="label"><a - id="x1-15015r15"></a></span>result = m.xform(v) <br /><span class="label"><a - id="x1-15016r16"></a></span> <br /><span class="label"><a - id="x1-15017r17"></a></span>// if m this was a Transform(), the origin would be added <br /><span class="label"><a - id="x1-15018r18"></a></span>// like this: <br /><span class="label"><a - id="x1-15019r19"></a></span> <br /><span class="label"><a - id="x1-15020r20"></a></span>result = result + t.get_origin() - </div> -<!--l. 468--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.4.3 </span> <a - id="x1-160001.4.3"></a>Using The Transform</h5> -<!--l. 470--><p class="noindent" >So, it is often desired apply sucessive operations to a transformation. For example, -let’s a assume that there is a turtle sitting at the origin (the turtle is a logo reference, - -for those familiar with it). The <span -class="ecti-1000">y </span>axis is up, and the the turtle’s nose is pointing -towards the <span -class="ecti-1000">z </span>axis. -<!--l. 476--><p class="indent" > The turtle (like many other animals, or vehicles!) can only walk towards the -direction it’s looking at. So, moving the turtle around a little should be something -like this: - <!--l. 481--> - <div class="lstlisting"><span class="label"><a - id="x1-16001r1"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">turtle</span><span -class="ecti-1000"> </span><span -class="ecti-1000">at</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">origin</span> <br /><span class="label"><a - id="x1-16002r2"></a></span>turtle = Transform() <br /><span class="label"><a - id="x1-16003r3"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">turtle</span><span -class="ecti-1000"> </span><span -class="ecti-1000">will</span><span -class="ecti-1000"> </span><span -class="ecti-1000">walk</span><span -class="ecti-1000"> </span><span -class="ecti-1000">5</span><span -class="ecti-1000"> </span><span -class="ecti-1000">units</span><span -class="ecti-1000"> </span><span -class="ecti-1000">in</span><span -class="ecti-1000"> </span><span -class="ecti-1000">z</span><span -class="ecti-1000"> </span><span -class="ecti-1000">axis</span> <br /><span class="label"><a - id="x1-16004r4"></a></span>turtle.translate( Vector3(0,0,5) ) <br /><span class="label"><a - id="x1-16005r5"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">turtle</span><span -class="ecti-1000"> </span><span -class="ecti-1000">eyes</span><span -class="ecti-1000"> </span><span -class="ecti-1000">a</span><span -class="ecti-1000"> </span><span -class="ecti-1000">lettuce</span><span -class="ecti-1000"> </span><span -class="ecti-1000">3</span><span -class="ecti-1000"> </span><span -class="ecti-1000">units</span><span -class="ecti-1000"> </span><span -class="ecti-1000">away</span><span -class="ecti-1000">,</span><span -class="ecti-1000"> </span><span -class="ecti-1000">will</span><span -class="ecti-1000"> </span><span -class="ecti-1000">rotate</span><span -class="ecti-1000"> </span><span -class="ecti-1000">45</span><span -class="ecti-1000"> </span><span -class="ecti-1000">degrees</span><span -class="ecti-1000"> </span><span -class="ecti-1000">right</span> <br /><span class="label"><a - id="x1-16006r6"></a></span>turtle.rotate( Vector3(0,1,0), Math.deg2rad(45) ) <br /><span class="label"><a - id="x1-16007r7"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">turtle</span><span -class="ecti-1000"> </span><span -class="ecti-1000">approaches</span><span -class="ecti-1000"> </span><span -class="ecti-1000">the</span><span -class="ecti-1000"> </span><span -class="ecti-1000">lettuce</span> <br /><span class="label"><a - id="x1-16008r8"></a></span>turtle.translate( Vector3(0,0,5) ) <br /><span class="label"><a - id="x1-16009r9"></a></span><span -class="ecti-1000">//</span><span -class="ecti-1000"> </span><span -class="ecti-1000">happy</span><span -class="ecti-1000"> </span><span -class="ecti-1000">turtle</span><span -class="ecti-1000"> </span><span -class="ecti-1000">over</span><span -class="ecti-1000"> </span><span -class="ecti-1000">lettuce</span><span -class="ecti-1000"> </span><span -class="ecti-1000">is</span><span -class="ecti-1000"> </span><span -class="ecti-1000">at</span> <br /><span class="label"><a - id="x1-16010r10"></a></span>print(turtle.get_origin()) - </div> -<!--l. 496--><p class="indent" > As can be seen, every new action the turtle takes is based on the previous one it -took. Had the order of actions been different and the turtle would have never reached -the lettuce. -<!--l. 500--><p class="indent" > Transforms are just that, a mean of “accumulating” rotation, translation, scale, -etc. -<!--l. 504--><p class="noindent" > - <h5 class="subsubsectionHead"><span class="titlemark">1.4.4 </span> <a - id="x1-170001.4.4"></a>A Warning about Numerical Precision</h5> -<!--l. 506--><p class="noindent" >Performing several actions over a transform will slowly and gradually lead to -precision loss (objects that draw according to a transform may get jittery, bigger, -smaller, skewed, etc). This happens due to the nature of floating point numbers. if -transforms/matrices are created from other kind of values (like a position and -some angular rotation) this is not needed, but if has been accumulating -transformations and was never recreated, it can be normalized by calling the -.orthonormalize() built-in function. This function has little cost and calling it every -now and then will avoid the effects from precision loss to become visible. - -</body></html> - - - diff --git a/doc/html/tutorial01/tutorial0x.png b/doc/html/tutorial01/tutorial0x.png Binary files differdeleted file mode 100644 index a0ed4f53ff..0000000000 --- a/doc/html/tutorial01/tutorial0x.png +++ /dev/null diff --git a/doc/html/tutorial01/tutorial1x.png b/doc/html/tutorial01/tutorial1x.png Binary files differdeleted file mode 100644 index 80f0d099f7..0000000000 --- a/doc/html/tutorial01/tutorial1x.png +++ /dev/null diff --git a/doc/html/tutorial01/tutorial2x.png b/doc/html/tutorial01/tutorial2x.png Binary files differdeleted file mode 100644 index 76c502b6da..0000000000 --- a/doc/html/tutorial01/tutorial2x.png +++ /dev/null diff --git a/doc/html/tutorial01/tutorial3x.png b/doc/html/tutorial01/tutorial3x.png Binary files differdeleted file mode 100644 index 8431e9d15c..0000000000 --- a/doc/html/tutorial01/tutorial3x.png +++ /dev/null diff --git a/doc/html/tutorial01/tutorial4x.png b/doc/html/tutorial01/tutorial4x.png Binary files differdeleted file mode 100644 index 1ce7a2bb45..0000000000 --- a/doc/html/tutorial01/tutorial4x.png +++ /dev/null diff --git a/doc/make_doc.sh b/doc/make_doc.sh deleted file mode 100644 index a76f568bfc..0000000000 --- a/doc/make_doc.sh +++ /dev/null @@ -1,17 +0,0 @@ -#! /bin/bash -here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -godotHome=$(dirname "$here") -docTarget=${here}/html/class_list -toolsRoot=${godotHome}/tools - -throw() { - echo "$@" >&2 - exit 1 -} - -[ -d "$docTarget" ] || mkdir -p "$docTarget" || throw "Could not create doc target $docTarget" - -cd "$docTarget" -python ${toolsRoot}/docdump/makehtml.py -multipage ${here}/base/classes.xml -cd "$here" - diff --git a/doc/notes.txt b/doc/notes.txt deleted file mode 100644 index 39c03ca4c5..0000000000 --- a/doc/notes.txt +++ /dev/null @@ -1,20 +0,0 @@ -
-in FileDialog file_selected -> file_activated
-focus script/shader editor when gaining focus
-detect if errors in editor and don't allow play
-
-
--tree of files (all recognized extensions)
-
-*export: *keep|export|bundle
-*options: [make binary for xnl], then options for each filetype (texture compress method, etc)
-
-
-config.h deberia teber varias cosas de plataforma
-
-_FORCE_INLINE_
-copymem
-ftoi
-defines de funciones matematicas
-
-
diff --git a/doc/phys_engine.png b/doc/phys_engine.png Binary files differdeleted file mode 100644 index 15539d47d7..0000000000 --- a/doc/phys_engine.png +++ /dev/null diff --git a/doc/squirrel.lyx b/doc/squirrel.lyx deleted file mode 100644 index 05270c1b8f..0000000000 --- a/doc/squirrel.lyx +++ /dev/null @@ -1,984 +0,0 @@ -#LyX 2.0 created this file. For more info see http://www.lyx.org/ -\lyxformat 413 -\begin_document -\begin_header -\textclass article -\use_default_options true -\maintain_unincluded_children false -\language english -\language_package default -\inputencoding auto -\fontencoding global -\font_roman default -\font_sans default -\font_typewriter default -\font_default_family default -\use_non_tex_fonts false -\font_sc false -\font_osf false -\font_sf_scale 100 -\font_tt_scale 100 - -\graphics default -\default_output_format default -\output_sync 0 -\bibtex_command default -\index_command default -\paperfontsize default -\use_hyperref false -\papersize default -\use_geometry false -\use_amsmath 1 -\use_esint 1 -\use_mhchem 1 -\use_mathdots 1 -\cite_engine basic -\use_bibtopic false -\use_indices false -\paperorientation portrait -\suppress_date false -\use_refstyle 1 -\index Index -\shortcut idx -\color #008000 -\end_index -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\paragraph_indentation default -\quotes_language english -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\html_math_output 0 -\html_css_as_file 0 -\html_be_strict false -\end_header - -\begin_body - -\begin_layout Title -Squirrel Usage in Godot -\end_layout - -\begin_layout Section -Introduction -\end_layout - -\begin_layout Standard -Squirrel is a nice scripting language. - It's sort of a mix between Lua, Java and JavaScript and ends up being easy - to learn for most programmers. - It has more language features than GDScript but it's also slower, more - limited and not as well integrated. - This guide will explain how Squirrel is integrated to Godot and all the - quirks that are needed to know in order to use it properly. -\end_layout - -\begin_layout Section -Enabling Squirrel -\end_layout - -\begin_layout Standard -Squirrel may not be enabled by default in a Godot build. - To enable it, execute SCons with the following parameters: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -shell$ scons squirrel=yes <target_binary> -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Documentation -\end_layout - -\begin_layout Standard -Godot utilizes Squirrel 2.2. - Documentation can be found at: -\begin_inset CommandInset href -LatexCommand href -target "http://squirrel-lang.org/#documentation" - -\end_inset - - -\end_layout - -\begin_layout Section -Class Files -\end_layout - -\begin_layout Standard -Unless writing a library, Godot expects a class for scripting an object. - Since a Squirrel source file can contain many classes, the main class must - be returned. - The following is an example of extending a button: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -class MyButton extends Button { -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - constructor() { -\end_layout - -\begin_layout Plain Layout - - // ALWAYS call parent constructor -\end_layout - -\begin_layout Plain Layout - - Button.constructor() -\end_layout - -\begin_layout Plain Layout - - } -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -return MyButton // main class returned -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Additionally, classes are all copied to the root table, so all class names - in scripts must be different if they are attempted to be loaded simultaneously. - The same can be said for any other globals declared in the script. - -\end_layout - -\begin_layout Standard -Finally, squirrel scripts must be saved with the .nut or .sq extensions (both - are recognized). -\end_layout - -\begin_layout Section -Including Other Scripts -\end_layout - -\begin_layout Standard -Other scripts can be included with the include() directive. - Full and relative paths are supported. - When included, the classes and globals are moved to the root table, so - they become immediately available. - Constants, however, are only inlined in the current class on load, so Squirrel - does not make them available. - Example of including scripts: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -include("my_button.nut") # // relative to current script, expected to be - in the same path -\end_layout - -\begin_layout Plain Layout - -include("res://buttons/my_button.nut") // using resource path -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Built-In Types -\end_layout - -\begin_layout Standard -There are some small differences between the Built-In types in Godot and - the ones in Squirrel, so the documentation will not match. - The differences are documented here. -\end_layout - -\begin_layout Standard -An attempt will be made to document everything here,but if in doubt about - bindings on built-in types, you can always take a loot at the bindings - source file in script/squirrel/sq_bind_types.cpp. -\end_layout - -\begin_layout Standard -Built-In Types in Squirrel are passed by reference (unlike by value like - in GD). - They also don't need to be freed. -\end_layout - -\begin_layout Subsection -AABB -\end_layout - -\begin_layout Standard -\begin_inset Quotes eld -\end_inset - -pos -\begin_inset Quotes erd -\end_inset - -, -\begin_inset Quotes eld -\end_inset - -size -\begin_inset Quotes erd -\end_inset - - and -\begin_inset Quotes eld -\end_inset - -end -\begin_inset Quotes erd -\end_inset - - are not available Use get_pos()/set_pos and get_size()/set_size(). -\end_layout - -\begin_layout Subsection -InputEvent -\end_layout - -\begin_layout Standard -InputEvent is a single datatype and contains everything. - Use only the fields meant for the event type: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -//for mouse motion and button -\end_layout - -\begin_layout Plain Layout - -int mouse_x -\end_layout - -\begin_layout Plain Layout - -int mouse_y -\end_layout - -\begin_layout Plain Layout - -int mouse_button_mask -\end_layout - -\begin_layout Plain Layout - -int mouse_global_x -\end_layout - -\begin_layout Plain Layout - -int mouse_global_y -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//for mouse button -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int mouse_button_index -\end_layout - -\begin_layout Plain Layout - -bool mouse_button_pressed -\end_layout - -\begin_layout Plain Layout - -bool mouse_button_doubleclick -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//for mouse motion -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int mouse_motion_x -\end_layout - -\begin_layout Plain Layout - -int mouse_motion_y -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//for keyboard -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int key_scancode -\end_layout - -\begin_layout Plain Layout - -int key_unicode -\end_layout - -\begin_layout Plain Layout - -bool key_pressed -\end_layout - -\begin_layout Plain Layout - -bool key_echo -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//for keyboard and mouse -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -bool mod_alt -\end_layout - -\begin_layout Plain Layout - -bool mod_shift -\end_layout - -\begin_layout Plain Layout - -bool mod_meta -\end_layout - -\begin_layout Plain Layout - -bool mod_control -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//joy button -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int joy_button_index -\end_layout - -\begin_layout Plain Layout - -bool joy_button_pressed -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//joy axis -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int joy_axis -\end_layout - -\begin_layout Plain Layout - -float joy_axis_value -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//screen drag and touch -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int screen_index -\end_layout - -\begin_layout Plain Layout - -int screen_x -\end_layout - -\begin_layout Plain Layout - -int screen_y -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//screen touch -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int screen_index -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -//action -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -int action_id -\end_layout - -\begin_layout Plain Layout - -bool action_pressed -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Subsection -Matrix3 -\end_layout - -\begin_layout Standard -x,y,z member vectors are not available. - Use get_row() and set_row() instead. - Individual float values of the matrix are available as swizzle masks such - as xxy, xyz, zzx, etc. -\end_layout - -\begin_layout Standard -Additional in-place versions of some functions are available: transpose(), - invert(), rotate(), scale(), orthonormalize(). -\end_layout - -\begin_layout Subsection -Transform -\end_layout - -\begin_layout Standard -\begin_inset Quotes eld -\end_inset - -basis -\begin_inset Quotes erd -\end_inset - - and -\begin_inset Quotes eld -\end_inset - -origin -\begin_inset Quotes erd -\end_inset - - members are not available. - Use get_basis()/set_basis() and get_origin()/set_origin() instead. - Additional in-place versions of some functions are available: invert(), - affine_invert(), orthonormalize(), rotate(), translate(), scale(). -\end_layout - -\begin_layout Standard -Vector2 -\end_layout - -\begin_layout Subsection -Plane -\end_layout - -\begin_layout Standard -\begin_inset Quotes eld -\end_inset - -normal -\begin_inset Quotes erd -\end_inset - - member vector is not available. - Use get_normal(), set_normal() instead. -\end_layout - -\begin_layout Subsection -Rect2 -\end_layout - -\begin_layout Standard -\begin_inset Quotes eld -\end_inset - -pos -\begin_inset Quotes erd -\end_inset - -, -\begin_inset Quotes eld -\end_inset - -size -\begin_inset Quotes erd -\end_inset - - and -\begin_inset Quotes eld -\end_inset - -end -\begin_inset Quotes erd -\end_inset - - are not available Use get_pos()/set_pos and get_size()/set_size(). -\end_layout - -\begin_layout Subsection -Native Arrays -\end_layout - -\begin_layout Standard -Native arrays such as RawArray, IntArray,StringArray, etc are not supported. - Use regular squirrel arrays instead, since conversion to/from them will - happen automatically. -\end_layout - -\begin_layout Subsection -Math Functions -\end_layout - -\begin_layout Standard -Math functions are inside the Math namespace in Squirrel. - For example Math.sin , Math.PI, Math.atan2(). -\end_layout - -\begin_layout Subsection -Native Types -\end_layout - -\begin_layout Standard -Array, Dictionary and NodePath are not available. - Use a native array, table and string respectively. -\end_layout - -\begin_layout Section -_get , _set -\end_layout - -\begin_layout Standard -_get and _set are reserved in Squirrel, for overriding Godot Object property - getter/setter, use _get_property and _set_property. -\end_layout - -\begin_layout Section -Member Export -\end_layout - -\begin_layout Standard -Simple exporting of members (so far only integer, floating point and string - are supported) is supported by the @export extension. - It is used like this: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -class MyButton extends Button { -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - aprop=1 // @export -\end_layout - -\begin_layout Plain Layout - - bprop=2.0 // @export -\end_layout - -\begin_layout Plain Layout - - cprop="3" // @export -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - - //these will be available to the property editor, and will be loaded/saved - with the scene. -\end_layout - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Always Enabled Scripts -\end_layout - -\begin_layout Standard -Scripts are not enabled in the editor by default. - To enable a script always, add an @always_enabled comment. - Example: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -//@always_enabled -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -class MyButton extends Button { -\end_layout - -\begin_layout Plain Layout - -\end_layout - -\begin_layout Plain Layout - -... -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Section -Threads -\end_layout - -\begin_layout Standard -Thread support in Squirrel is very poor. - This is because of the stack-based nature of the language implementation. - Since godot can run in multiple threads, it will forcibily lock the whole - VM when accessed from multiple threads, which will result in degraded performan -ce. - Creating user threads in Squirrel is definitely not recomended, as it may - completely lock the main thread. -\end_layout - -\begin_layout Section -References -\end_layout - -\begin_layout Standard -Godot has a built-in reference counted type used in conjunction with a template - (objects that inherit the -\begin_inset Quotes eld -\end_inset - -Reference -\begin_inset Quotes erd -\end_inset - - class). - Since Squirrel also uses reference counting, it becomes impossible for - such types in godot to contain a script, because it would result in an - un-breakable reference cycle. - To avoid this, a Ref() class was created in Squirrel. - -\end_layout - -\begin_layout Standard -When calling Godot API functions, returned references are wrapped inside - Ref() transparently, but the problem arises when creating a Reference-derived - object from the code. - In such cases, the reference must be wrapped manually like this: -\end_layout - -\begin_layout Standard -\begin_inset listings -inline false -status open - -\begin_layout Plain Layout - -local f = Ref( File() ) -\end_layout - -\begin_layout Plain Layout - -local err = f.open("hello.txt",File.READ) -\end_layout - -\end_inset - - -\end_layout - -\begin_layout Standard -Anything not a reference that inherits from Object can be freed manually - by calling .free(), just like in GDScript. - Object classes are in itself weak references to engine objects, and their - validity can be checked by calling the -\begin_inset Quotes eld -\end_inset - -has_instance() -\begin_inset Quotes erd -\end_inset - - built-in method. -\end_layout - -\begin_layout Section -Unicode -\end_layout - -\begin_layout Standard -Squirrel source code is supposed to support Unicode, but the implementation - is very broken (Squirrel attempts to use 16 bit chars no matter what, making - it incompatible when the host OS is 32 bit, like Linux). - Squirrel source code is parsed as UTF-8, and strings also contain UTF-8. - Wide char access in strings is not supported. -\end_layout - -\begin_layout Section -Debugging -\end_layout - -\begin_layout Standard -Squirrel is well integrated into the Godot debugger. - To run the project in debug mode, execute the godot binary with the -debug - argument. - Godot will break on squirrel errors and allow the programmer to debug. -\end_layout - -\begin_layout Section -Utility Functions -\end_layout - -\begin_layout Standard -There are a few squirrel-only utility functions available: -\end_layout - -\begin_layout Subsection -print(value[,value]) -\end_layout - -\begin_layout Standard -Print stuff to stdout. -\end_layout - -\begin_layout Subsection -dofile(path) -\end_layout - -\begin_layout Standard -Execute a squirrel script file and return whatever the file returns. - Not recommended to use in production because it can't be optimized. -\end_layout - -\begin_layout Subsection -nativeref(var) -\end_layout - -\begin_layout Standard -Convert any squirrel type to an engine type. - When this type returns to squirrel, it's converted back. - This is useful to add to Godot callbacks to ensure that the datatype is - not converted. -\end_layout - -\begin_layout Subsection -unicode_split(string) -\end_layout - -\begin_layout Standard -Split an unicode string (utf8) into an array of widechars. - Useful since there is no wide char access from Squirrel. -\end_layout - -\begin_layout Subsection -breakpoint() -\end_layout - -\begin_layout Standard -Stop the debugger when reaches here (when run inside the debugger). -\end_layout - -\begin_layout Subsection -backtrace() -\end_layout - -\begin_layout Standard -Print a backtrace of the call stack. -\end_layout - -\begin_layout Subsection -tr(text) -\end_layout - -\begin_layout Standard -Translate text (use string lookup in Godot translation system). -\end_layout - -\begin_layout Subsection -printerr(text) -\end_layout - -\begin_layout Standard -Print a string to stderr. -\end_layout - -\end_body -\end_document diff --git a/doc/todo.txt b/doc/todo.txt deleted file mode 100644 index 511b5dbbe2..0000000000 --- a/doc/todo.txt +++ /dev/null @@ -1,39 +0,0 @@ --Fisica 2D - *terminar constraints - *terminar queries - *desactivar on suspend - -bugs supongo? - --Fisica 3D - -portar engine 2D a 3D mayoritariamente (si puedo esperar, mejor) - -hacer que skeletons se vuelvan ragdolls de alguna forma - -hacer bien lo de enganchar cosas a huesos de esqueleto - --GUI - - Tree necesita resizear desde los headers - --Escena 3D - -Deshabilitar 3D (Opcional en compilacion) - -Particulas 3D - -Heightmaps - -Arreglar fixed pipeline - -arreglar glow y ssao - --Editor codigo - -Editor de codigo (esta, pero esta lleno de bugs) - -Debugger (esta, pero hay que integrar bien) - --UI General - -Cambiar lugar el tema de resources porque es MUY poco intuitivo - -Tal vez arreglar un poquito el theme y la estetica (para release, low priority) - -Run deberia correr la escena main - -new script deberia dar opcion de crear en disco - -los scripts de deberian mantener abiertos al abrir otra escena - - - --Settings - -Hacer pantalla de optimizacion general del proyecto - --A futuro: - -Scripting Propio - -Portar a DX9/GL3
\ No newline at end of file diff --git a/tools/docdump/doc_merge.py b/doc/tools/doc_merge.py index 872f38ed87..6cc7019324 100644 --- a/tools/docdump/doc_merge.py +++ b/doc/tools/doc_merge.py @@ -1,3 +1,6 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + import sys import xml.etree.ElementTree as ET diff --git a/tools/docdump/locales/es/LC_MESSAGES/makedocs.mo b/doc/tools/locales/es/LC_MESSAGES/makedocs.mo Binary files differindex 8d7ea2689e..8d7ea2689e 100644 --- a/tools/docdump/locales/es/LC_MESSAGES/makedocs.mo +++ b/doc/tools/locales/es/LC_MESSAGES/makedocs.mo diff --git a/tools/docdump/locales/es/LC_MESSAGES/makedocs.po b/doc/tools/locales/es/LC_MESSAGES/makedocs.po index 82115dd897..82115dd897 100644 --- a/tools/docdump/locales/es/LC_MESSAGES/makedocs.po +++ b/doc/tools/locales/es/LC_MESSAGES/makedocs.po diff --git a/doc/html/main.css b/doc/tools/main.css index a76e6bbed8..a76e6bbed8 100644 --- a/doc/html/main.css +++ b/doc/tools/main.css diff --git a/tools/docdump/makedocs.pot b/doc/tools/makedocs.pot index be3220f686..be3220f686 100644 --- a/tools/docdump/makedocs.pot +++ b/doc/tools/makedocs.pot diff --git a/tools/docdump/makedocs.py b/doc/tools/makedocs.py index be57891abc..db9f04b091 100644 --- a/tools/docdump/makedocs.py +++ b/doc/tools/makedocs.py @@ -24,7 +24,7 @@ # TODO: # * Refactor code. # * Adapt this script for generating content in other markup formats like -# DokuWiki, Markdown, etc. +# reStructuredText, Markdown, DokuWiki, etc. # # Also check other TODO entries in this script for more information on what is # left to do. diff --git a/tools/docdump/makedoku.py b/doc/tools/makedoku.py index e8207715fe..1ab16841b1 100644 --- a/tools/docdump/makedoku.py +++ b/doc/tools/makedoku.py @@ -1,3 +1,6 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + import sys import xml.etree.ElementTree as ET @@ -8,7 +11,7 @@ for arg in sys.argv[1:]: input_list.append(arg) if len(input_list) < 1: - print("usage: makedoku.py <class_list.xml>") + print("usage: makedoku.py <classes.xml>") sys.exit(0) diff --git a/tools/docdump/makehtml.py b/doc/tools/makehtml.py index 9b9c62f33b..34db47e424 100644 --- a/tools/docdump/makehtml.py +++ b/doc/tools/makehtml.py @@ -1,3 +1,6 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + import sys import xml.etree.ElementTree as ET from xml.sax.saxutils import escape, unescape @@ -29,7 +32,7 @@ for arg in sys.argv[1:]: input_list.append(arg) if len(input_list) < 1: - print("usage: makehtml.py <class_list.xml>") + print("usage: makehtml.py <classes.xml>") sys.exit(0) diff --git a/tools/docdump/makemd.py b/doc/tools/makemd.py index f85d145d5e..e012287b0e 100644 --- a/tools/docdump/makemd.py +++ b/doc/tools/makemd.py @@ -1,5 +1,6 @@ #!/usr/bin/python # -*- coding: utf-8 -*- + import sys import xml.etree.ElementTree as ET @@ -9,7 +10,7 @@ for arg in sys.argv[1:]: input_list.append(arg) if len(input_list) < 1: - print 'usage: makedoku.py <class_list.xml>' + print 'usage: makemd.py <classes.xml>' sys.exit(0) diff --git a/doc/tutorial/01 Getting Started.lyx b/doc/tutorial/01 Getting Started.lyx deleted file mode 100644 index bdb4c7706d..0000000000 --- a/doc/tutorial/01 Getting Started.lyx +++ /dev/null @@ -1,557 +0,0 @@ -#LyX 1.6.5 created this file. For more info see http://www.lyx.org/ -\lyxformat 345 -\begin_document -\begin_header -\textclass article -\use_default_options true -\language english -\inputencoding auto -\font_roman default -\font_sans default -\font_typewriter default -\font_default_family default -\font_sc false -\font_osf false -\font_sf_scale 100 -\font_tt_scale 100 - -\graphics default -\paperfontsize default -\use_hyperref false -\papersize default -\use_geometry false -\use_amsmath 1 -\use_esint 1 -\cite_engine basic -\use_bibtopic false -\paperorientation portrait -\secnumdepth 3 -\tocdepth 3 -\paragraph_separation indent -\defskip medskip -\quotes_language english -\papercolumns 1 -\papersides 1 -\paperpagestyle default -\tracking_changes false -\output_changes false -\author "" -\author "" -\end_header - -\begin_body - -\begin_layout Title -01. - Getting Started with Godot Engine -\end_layout - -\begin_layout Section* -Introduction: -\end_layout - -\begin_layout Standard -Godot Engine is designed to be useful. - This may sound rather vague and is difficult to explain without repeating - the same claims that every other engine does, but, as we progress through - this (and the next) tutorials, hopefully it will be made clear what -\begin_inset Quotes eld -\end_inset - -useful -\begin_inset Quotes erd -\end_inset - - means. -\end_layout - -\begin_layout Standard -Godot Engine has many components, both high and low level, and is usually - more abstract and complex than most other engines. - This is, however, to the advantage of the user as complexity is presented - in a way that it only needs to be discovered when more power needs to be - untapped. - This helps to provide an easy learning curve. -\end_layout - -\begin_layout Standard -Design wise, the whole API and set of components were created with a clear - goal in mind, which is to allow for smooth integration of design ideas, - code and assets. - This is achieved by defining the following rules: -\end_layout - -\begin_layout Itemize -Implementing a game feature should never be too many steps away from an - existing component. -\end_layout - -\begin_layout Itemize -More complex features should be leveraged by combining or extending existing - components. -\end_layout - -\begin_layout Itemize -If the above fails, creating custom components should be extremely simple. -\end_layout - -\begin_layout Standard -Ultimately, Godot Engine provides an editor and tools that allows everyone - to work with it: -\end_layout - -\begin_layout Itemize -Programmers can script and extend any component of the project. -\end_layout - -\begin_layout Itemize -Designers can tweak and animate any parameter from a friendly user interface. -\end_layout - -\begin_layout Itemize -Artists can import their art and models and tweak the look of everything - in realtime. -\end_layout - -\begin_layout Section* -Editor: -\end_layout - -\begin_layout Standard -As mentioned before, Godot Engine is very abstract so projects consist of - just a -\emph on -path -\emph default - (ie: C: -\backslash -games -\backslash -mygame5). - Projects don't have to be specifically created, and many can be placed - inside the same path (useful for not wasting folders on tests and experiments). - -\end_layout - -\begin_layout Standard -In any case, to ease the management of projects, a graphical util exists. -\end_layout - -\begin_layout Subsection* -Running From The Project Manager -\end_layout - -\begin_layout Standard -Godot Engine includes a built-in project manager. - This is installed by default on Windows and OSX and it allows for the creation - and removal projects that will be remembered at the next startup: -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename pm.png - -\end_inset - - -\end_layout - -\begin_layout Standard -To create a new project, the [Create] button must be pressed and a dialog - will appear, prompting for a path and project name. - Afterwards, the [Open] button will close the project manager and open the - desired project. -\end_layout - -\begin_layout Subsection* -Running From the Command Line -\end_layout - -\begin_layout Standard -To create and manage projects, it is perfectly possible to use the command - line. - Many users prefer this way of working with project data. -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename pmc.png - -\end_inset - - -\end_layout - -\begin_layout Standard -For ease of use, it is recommended that the -\begin_inset Quotes eld -\end_inset - -godot -\begin_inset Quotes erd -\end_inset - - binary exists in the path, so any project can be opened easily aywhere - just by changing location to the projec and executing the editor. -\end_layout - -\begin_layout Subsection* -Godot Editor -\end_layout - -\begin_layout Standard -Godot Editor should have been opened by now, if not please check the previous - steps again. -\end_layout - -\begin_layout Standard -Godot has a powerful buit-in editor. - It uses the graphics toolkint within itself to display the UI, so it runs - identical on any platform (even consoles or phones!). -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename editor.png - -\end_inset - - -\end_layout - -\begin_layout Standard -In the above screenshots, a few regions are labelled to be explained as - follows: -\end_layout - -\begin_layout Subsubsection* -Viewport -\end_layout - -\begin_layout Standard -The -\emph on -Viewport -\emph default - is the main space where the content is displayed. - Content includes 3D Nodes or Graphical User Interface (GUI) controls. - Other types of data spawn editors of their own when being edited. - The default viewport is the 3D viewport, which can be panned, zoomed, etc. -\end_layout - -\begin_layout Subsubsection* -Scene Tree -\end_layout - -\begin_layout Standard -The -\emph on -Scene Tree -\emph default - is a small dock that displays the tree of the current scene being edited. - A scene is a collection of nodes arranged in a tree-hierarchy (any node - can have several owned children-nodes). - The meaning of this ownership depends purely on the -\emph on -type -\emph default - of the node, but it will become clear after going through the examples. - In a -\emph on -MVC -\emph default - pattern, the scene tree could be considered the -\emph on -View -\emph default -. -\end_layout - -\begin_layout Subsubsection* -Property Editor -\end_layout - -\begin_layout Standard -The -\emph on -Property Editor -\emph default - is another small dock. - Every node contains a finite number of -\emph on -properties -\emph default -, which can be edited. - Properties can be of several types, such as integers, strings, images, - matrices, etc. - Usually, changes to properties are reflected in the -\emph on -viewport -\emph default - in real time. -\end_layout - -\begin_layout Section* -Examples: -\end_layout - -\begin_layout Standard -From now, a few, simple examples will be presented that will help understand - a little better how Godot Engine works. - -\end_layout - -\begin_layout Subsubsection* -Hello, World! -\end_layout - -\begin_layout Enumerate -Open the editor -\end_layout - -\begin_layout Enumerate -Click on -\begin_inset Quotes eld -\end_inset - -Node -\begin_inset Quotes erd -\end_inset - - (Node Menu), then on -\begin_inset Quotes eld -\end_inset - -Create Root -\begin_inset Quotes erd -\end_inset - - -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_1.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Enumerate -Create a node of type -\emph on -Label, -\emph default -then instruct the -\emph on -editor -\emph default -to switch to GUI editing mode. - A few red squares will appear on the top left corner, don't mind them yet. -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_2.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_2b.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_3c.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Enumerate -Select the -\emph on -Label -\emph default -node in the -\emph on -Scene Tree -\emph default - (if it's not selected yet), the properties of the selected node will appear - in the -\emph on -Property Editor -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_3a.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_3b.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Enumerate -Look for the -\emph on -Text -\emph default - property in the -\emph on -Property Editor -\emph default - and click the right column, so it becomes editable. - Enter the text -\begin_inset Quotes eld -\end_inset - -Hello, World! -\begin_inset Quotes erd -\end_inset - -. - A red square containing -\begin_inset Quotes eld -\end_inset - -Hello World! -\begin_inset Quotes erd -\end_inset - - will appear at the top left, move it to the center. -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_4a.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_4b.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Enumerate -Save the scene. -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_5a.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_5b.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Enumerate -Press PLAY. - A new window will appear running the application. -\end_layout - -\begin_deeper -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_6.png - -\end_inset - - -\end_layout - -\begin_layout Standard -\align center -\begin_inset Graphics - filename tute1_7.png - -\end_inset - - -\end_layout - -\end_deeper -\begin_layout Subsubsection* -Hello World 2 (a little more complex) -\end_layout - -\begin_layout Subsubsection* -A 3D Cube in Space -\end_layout - -\begin_layout Standard - -\end_layout - -\begin_layout Standard -In many cases, nodes and other types of engine objects need to express changes - in their state, such as a button being pressed, a scroll being dragged, - or a projectile colliding against a tank. - Godot Engine utilizes the concept of signals for this. - Different types of nodes and objects can emit signals, and any other node - or object can connect to them. - -\end_layout - -\end_body -\end_document diff --git a/doc/tutorial/editor.png b/doc/tutorial/editor.png Binary files differdeleted file mode 100644 index 92255a6f17..0000000000 --- a/doc/tutorial/editor.png +++ /dev/null diff --git a/doc/tutorial/pm.png b/doc/tutorial/pm.png Binary files differdeleted file mode 100644 index 00d46d9a64..0000000000 --- a/doc/tutorial/pm.png +++ /dev/null diff --git a/doc/tutorial/pmc.png b/doc/tutorial/pmc.png Binary files differdeleted file mode 100644 index 847d32b3a2..0000000000 --- a/doc/tutorial/pmc.png +++ /dev/null diff --git a/doc/tutorial/tute1_1.png b/doc/tutorial/tute1_1.png Binary files differdeleted file mode 100644 index 82152c7255..0000000000 --- a/doc/tutorial/tute1_1.png +++ /dev/null diff --git a/doc/tutorial/tute1_2.png b/doc/tutorial/tute1_2.png Binary files differdeleted file mode 100644 index 852015894c..0000000000 --- a/doc/tutorial/tute1_2.png +++ /dev/null diff --git a/doc/tutorial/tute1_2b.png b/doc/tutorial/tute1_2b.png Binary files differdeleted file mode 100644 index e97a40b4c5..0000000000 --- a/doc/tutorial/tute1_2b.png +++ /dev/null diff --git a/doc/tutorial/tute1_3a.png b/doc/tutorial/tute1_3a.png Binary files differdeleted file mode 100644 index 5feef01e03..0000000000 --- a/doc/tutorial/tute1_3a.png +++ /dev/null diff --git a/doc/tutorial/tute1_3b.png b/doc/tutorial/tute1_3b.png Binary files differdeleted file mode 100644 index 1f2ded42bb..0000000000 --- a/doc/tutorial/tute1_3b.png +++ /dev/null diff --git a/doc/tutorial/tute1_3c.png b/doc/tutorial/tute1_3c.png Binary files differdeleted file mode 100644 index 2c52ccd780..0000000000 --- a/doc/tutorial/tute1_3c.png +++ /dev/null diff --git a/doc/tutorial/tute1_4a.png b/doc/tutorial/tute1_4a.png Binary files differdeleted file mode 100644 index 8d0d04ff6b..0000000000 --- a/doc/tutorial/tute1_4a.png +++ /dev/null diff --git a/doc/tutorial/tute1_4b.png b/doc/tutorial/tute1_4b.png Binary files differdeleted file mode 100644 index fff5f8d723..0000000000 --- a/doc/tutorial/tute1_4b.png +++ /dev/null diff --git a/doc/tutorial/tute1_5a.png b/doc/tutorial/tute1_5a.png Binary files differdeleted file mode 100644 index 37bea04570..0000000000 --- a/doc/tutorial/tute1_5a.png +++ /dev/null diff --git a/doc/tutorial/tute1_5b.png b/doc/tutorial/tute1_5b.png Binary files differdeleted file mode 100644 index df9a987ef3..0000000000 --- a/doc/tutorial/tute1_5b.png +++ /dev/null diff --git a/doc/tutorial/tute1_6.png b/doc/tutorial/tute1_6.png Binary files differdeleted file mode 100644 index bbe04c8547..0000000000 --- a/doc/tutorial/tute1_6.png +++ /dev/null diff --git a/doc/tutorial/tute1_7.png b/doc/tutorial/tute1_7.png Binary files differdeleted file mode 100644 index 7653a89064..0000000000 --- a/doc/tutorial/tute1_7.png +++ /dev/null diff --git a/doc/undoredoapi.txt b/doc/undoredoapi.txt deleted file mode 100644 index eb73b8ccff..0000000000 --- a/doc/undoredoapi.txt +++ /dev/null @@ -1,25 +0,0 @@ -undo/redo api proposal - - - -o o o o o o o o - - -undoredo.create_method(); -undoredo.add_do_method(node,"add_child",node_to_add); -undoredo.add_undo_method(node,"remove_child",node_to_add); -undoredo.add_add_data(node_to_add); -undoredo.commit() - -undoredo.create_method(); -undoredo.add_do_method(node,"remove_node",node_to_remove); -undoredo.add_undo_method(node,"add_node",node_to_remove); -undoredo.add_remove_data(node_to_remove); -undoredo.commit() - - -undoredo.create_property(); -undoredo.add_do_set(node,"property",value); -undoredo.add_undo_set(node,"property",previous_value); -undoredo.add_remove_data(node_to_remove); -undoredo.commit() diff --git a/drivers/openssl/stream_peer_openssl.cpp b/drivers/openssl/stream_peer_openssl.cpp index ef07f11334..81795fdc60 100644 --- a/drivers/openssl/stream_peer_openssl.cpp +++ b/drivers/openssl/stream_peer_openssl.cpp @@ -479,6 +479,13 @@ Error StreamPeerOpenSSL::get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_ return OK; } +int StreamPeerOpenSSL::get_available_bytes() const { + + ERR_FAIL_COND_V(!connected,0); + + return SSL_pending(ssl); + +} StreamPeerOpenSSL::StreamPeerOpenSSL() { ctx=NULL; diff --git a/drivers/openssl/stream_peer_openssl.h b/drivers/openssl/stream_peer_openssl.h index a66b641dd4..64f5a1d7ac 100644 --- a/drivers/openssl/stream_peer_openssl.h +++ b/drivers/openssl/stream_peer_openssl.h @@ -71,6 +71,8 @@ public: virtual Error get_data(uint8_t* p_buffer, int p_bytes); virtual Error get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_received); + virtual int get_available_bytes() const; + static void initialize_ssl(); static void finalize_ssl(); diff --git a/drivers/unix/stream_peer_tcp_posix.cpp b/drivers/unix/stream_peer_tcp_posix.cpp index 5aa3915893..edf5e02971 100644 --- a/drivers/unix/stream_peer_tcp_posix.cpp +++ b/drivers/unix/stream_peer_tcp_posix.cpp @@ -38,6 +38,7 @@ #include <string.h> #include <netdb.h> #include <sys/types.h> +#include <sys/ioctl.h> #ifndef NO_FCNTL #ifdef __HAIKU__ #include <fcntl.h> @@ -367,6 +368,14 @@ Error StreamPeerTCPPosix::get_partial_data(uint8_t* p_buffer, int p_bytes,int &r return read(p_buffer, p_bytes, r_received, false); }; +int StreamPeerTCPPosix::get_available_bytes() const { + + unsigned long len; + int ret = ioctl(sockfd,FIONREAD,&len); + ERR_FAIL_COND_V(ret==-1,0) + return len; + +} IP_Address StreamPeerTCPPosix::get_connected_host() const { return peer_host; diff --git a/drivers/unix/stream_peer_tcp_posix.h b/drivers/unix/stream_peer_tcp_posix.h index 9b1716ac42..817f24c91c 100644 --- a/drivers/unix/stream_peer_tcp_posix.h +++ b/drivers/unix/stream_peer_tcp_posix.h @@ -67,6 +67,8 @@ public: virtual Error get_data(uint8_t* p_buffer, int p_bytes); virtual Error get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_received); + virtual int get_available_bytes() const; + void set_socket(int p_sockfd, IP_Address p_host, int p_port); virtual IP_Address get_connected_host() const; diff --git a/logo_small.png b/logo_small.png Binary files differdeleted file mode 100644 index 61e4cc95d6..0000000000 --- a/logo_small.png +++ /dev/null diff --git a/makerel.bat b/makerel.bat deleted file mode 100644 index 7db76e1dd7..0000000000 --- a/makerel.bat +++ /dev/null @@ -1 +0,0 @@ -"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" && c:\python27\scons p=windows target=debug_release tools=no diff --git a/platform/windows/stream_peer_winsock.cpp b/platform/windows/stream_peer_winsock.cpp index e8245c92e5..5bc3e34107 100644 --- a/platform/windows/stream_peer_winsock.cpp +++ b/platform/windows/stream_peer_winsock.cpp @@ -342,6 +342,14 @@ void StreamPeerWinsock::set_nodelay(bool p_enabled) { setsockopt(sockfd, IPPROTO_TCP, TCP_NODELAY, (char*)&flag, sizeof(int)); } +int StreamPeerWinsock::get_available_bytes() const { + + unsigned long len; + int ret = ioctlsocket(sockfd,FIONREAD,&len); + ERR_FAIL_COND_V(ret==-1,0) + return len; + +} IP_Address StreamPeerWinsock::get_connected_host() const { diff --git a/platform/windows/stream_peer_winsock.h b/platform/windows/stream_peer_winsock.h index 373b502d2c..5dd836aa0c 100644 --- a/platform/windows/stream_peer_winsock.h +++ b/platform/windows/stream_peer_winsock.h @@ -66,6 +66,8 @@ public: virtual Error get_data(uint8_t* p_buffer, int p_bytes); virtual Error get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_received); + virtual int get_available_bytes() const; + void set_socket(int p_sockfd, IP_Address p_host, int p_port); virtual IP_Address get_connected_host() const; diff --git a/scene/resources/packed_scene.cpp b/scene/resources/packed_scene.cpp index f8283bb5ca..443d1630a7 100644 --- a/scene/resources/packed_scene.cpp +++ b/scene/resources/packed_scene.cpp @@ -1537,6 +1537,7 @@ void SceneState::add_editable_instance(const NodePath& p_path){ SceneState::SceneState() { base_scene_idx=-1; + last_modified_time=0; } @@ -1596,6 +1597,15 @@ Node *PackedScene::instance(bool p_gen_edit_state) const { return s; } +void PackedScene::recreate_state() { + + state = Ref<SceneState>( memnew( SceneState )); + state->set_path(get_path()); +#ifdef TOOLS_ENABLED + state->set_last_modified_time(get_last_modified_time()); +#endif +} + Ref<SceneState> PackedScene::get_state() { return state; @@ -1607,6 +1617,7 @@ void PackedScene::set_path(const String& p_path,bool p_take_over) { Resource::set_path(p_path,p_take_over); } + void PackedScene::_bind_methods() { ObjectTypeDB::bind_method(_MD("pack","path:Node"),&PackedScene::pack); diff --git a/scene/resources/packed_scene.h b/scene/resources/packed_scene.h index f3ec0afb6d..67d0f4ba01 100644 --- a/scene/resources/packed_scene.h +++ b/scene/resources/packed_scene.h @@ -99,6 +99,8 @@ class SceneState : public Reference { String path; + uint64_t last_modified_time; + _FORCE_INLINE_ Ref<SceneState> _get_base_scene_state() const; static bool disable_placeholders; @@ -162,6 +164,9 @@ public: void add_connection(int p_from,int p_to, int p_signal, int p_method, int p_flags,const Vector<int>& p_binds); void add_editable_instance(const NodePath& p_path); + virtual void set_last_modified_time(uint64_t p_time) { last_modified_time=p_time; } + uint64_t get_last_modified_time() const { return last_modified_time; } + SceneState(); }; @@ -189,8 +194,13 @@ public: bool can_instance() const; Node *instance(bool p_gen_edit_state=false) const; + void recreate_state(); + virtual void set_path(const String& p_path,bool p_take_over=false); +#ifdef TOOLS_ENABLED + virtual void set_last_modified_time(uint64_t p_time) { state->set_last_modified_time(p_time); } +#endif Ref<SceneState> get_state(); PackedScene(); diff --git a/tools/doc/doc_data.cpp b/tools/doc/doc_data.cpp index c1d3e5e314..3161e380b9 100644 --- a/tools/doc/doc_data.cpp +++ b/tools/doc/doc_data.cpp @@ -187,14 +187,13 @@ void DocData::generate(bool p_basic_types) { arginfo=E->get().return_val; - if (arginfo.type==Variant::NIL) - continue; #ifdef DEBUG_METHODS_ENABLED if (m && m->get_return_type()!=StringName()) method.return_type=m->get_return_type(); - else + else if (arginfo.type!=Variant::NIL) { #endif method.return_type=(arginfo.hint==PROPERTY_HINT_RESOURCE_TYPE)?arginfo.hint_string:Variant::get_type_name(arginfo.type); + } } else { diff --git a/tools/docdump/class_list.xml b/tools/docdump/class_list.xml deleted file mode 100644 index 3d07f84177..0000000000 --- a/tools/docdump/class_list.xml +++ /dev/null @@ -1,13625 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<doc version="0.99.1384-pre-beta" name="Engine Types"> -<class name="Animation" inherits="Resource" category="Resources"> - <brief_description> - Contains data used to animate everything in the engine. - </brief_description> - <description> - An Animation resource contains data used to animate everything in the engine. Animations are divided into tracks, and each track must be linked to a node. The state of that node can be changed through time, by adding timed keys (signals) to the track. [html br/] Animations are just data containers, and must be added to odes such as an [AnimationPlayer] or [AnimationTreePlayer] to be played back. - </description> - <methods> - <method name="add_track" > - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - Add a track to the Animation. The track type must be specified as any of the values in te TYPE_* enumeration. - </description> - </method> - <method name="remove_track" > - <argument index="0" name="idx" type="int"> - </argument> - <description> - Remove a track by specifying the track index. - </description> - </method> - <method name="get_track_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of tracks in the animation. - </description> - </method> - <method name="track_get_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Get the type of a track. - </description> - </method> - <method name="track_get_path" qualifiers="const" > - <return type="NodePath"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Get the path of a track. for more information on the path format, see [method track_set_path] - </description> - </method> - <method name="track_set_path" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="path" type="NodePath"> - </argument> - <description> - Set the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ":". Example: "character/skeleton:ankle" or "character/mesh:transform/local:" - </description> - </method> - <method name="track_move_up" > - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_move_down" > - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transform_track_insert_key" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time" type="real"> - </argument> - <argument index="2" name="loc" type="Vector3"> - </argument> - <argument index="3" name="rot" type="Quat"> - </argument> - <argument index="4" name="scale" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="track_insert_key" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key" type="real"> - </argument> - <argument index="2" name="arg2" type="var"> - </argument> - <argument index="3" name="arg3" type="real"> - </argument> - <description> - </description> - </method> - <method name="track_remove_key" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the amount of keys in a given track. - </description> - </method> - <method name="track_get_key_value" qualifiers="const" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_key_time" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - Return the time at which the key is located. - </description> - </method> - <method name="track_find_key" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time" type="real"> - </argument> - <argument index="2" name="exact" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="track_set_interpolation_type" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="interpolation" type="int"> - </argument> - <description> - </description> - </method> - <method name="track_get_interpolation_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transform_track_interpolate" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="value_track_interpolate" qualifiers="const" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="blend_track_interpolate" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="property_track_get_key_indices" qualifiers="const" > - <return type="IntArray"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <argument index="2" name="delta" type="real"> - </argument> - <description> - </description> - </method> - <method name="property_track_get_key_value" qualifiers="const" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="property_track_get_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_key_indices" qualifiers="const" > - <return type="IntArray"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <argument index="2" name="delta" type="real"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="method_track_get_params" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="key_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_length" > - <argument index="0" name="time_sec" type="real"> - </argument> - <description> - Set the total length of the animation (in seconds). Note that length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping. - </description> - </method> - <method name="get_length" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the total length of the animation (in seconds). - </description> - </method> - <method name="set_loop" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set a flag indicating that the animation must loop. This is uses for correct interpolation of animation cycles, and for hinting the player that it must restart the animation once it's over. - </description> - </method> - <method name="has_loop" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the animation has the loop flag set. - </description> - </method> - </methods> - <constants> - <constant name="INTERPOLATION_CUBIC" value="2"> - </constant> - <constant name="TYPE_TRANSFORM" value="0"> - Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are Interpolated. - </constant> - <constant name="TYPE_BLEND" value="4"> - </constant> - <constant name="TYPE_PROPERTY" value="2"> - TODO will be changed and bleh - </constant> - <constant name="TYPE_VALUE" value="1"> - Value tracks set values in node properties, but only those which can be Interpolated. - </constant> - <constant name="INTERPOLATION_NEAREST" value="0"> - </constant> - <constant name="INTERPOLATION_LINEAR" value="1"> - </constant> - <constant name="TYPE_METHOD" value="3"> - </constant> - </constants> -</class> -<class name="AnimationPlayer" inherits="Misc" category="Nodes/Animation Nodes"> - <brief_description> - Container and player of [Animaton] resources. - </brief_description> - <description> - An animation player is used for general purpose playback of [Animation] resources. It contains a dictionary of animations (referenced by name) and custom blend times between their transitions. Additionally, animations can be played and blended in diferent channels. - </description> - <methods> - <method name="add_animation" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="animation" type="Object"> - </argument> - <description> - Add an animation resource to the player, which will be later referenced by the "name" argument. - </description> - </method> - <method name="remove_animation" > - <argument index="0" name="name" type="String"> - </argument> - <description> - Remove an animation from the player (by supplying the same name used to add it). - </description> - </method> - <method name="rename_animation" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="newname" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_animation" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - Request wether an [Animation] name exist within the player. - </description> - </method> - <method name="get_animation" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - Get an [Animation] resource by requesting a name. - </description> - </method> - <method name="get_animation_list" qualifiers="const" > - <return type="StringArray"> - </return> - <description> - Get the list of names of the animations stored in the player. - </description> - </method> - <method name="set_blend_time" > - <argument index="0" name="anim_from" type="String"> - </argument> - <argument index="1" name="anim_to" type="String"> - </argument> - <argument index="2" name="sec" type="real"> - </argument> - <description> - Specify a blend time (in seconds) between two animations, referemced by their names. - </description> - </method> - <method name="get_blend_time" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="anim_from" type="String"> - </argument> - <argument index="1" name="anim_to" type="String"> - </argument> - <description> - Get the blend time between two animations, referemced by their names. - </description> - </method> - <method name="play" > - <argument index="0" name="name" type="String" default=""""> - </argument> - <argument index="1" name="channel" type="int" default="0"> - </argument> - <description> - Start playback of an animation (referenced by "name"). Optionally a channel can be specified. - </description> - </method> - <method name="stop" > - <argument index="0" name="channel" type="int" default="0"> - </argument> - <description> - Start playback of an animation channel. (or channel 0 if none is provided). - </description> - </method> - <method name="stop_all" > - <description> - Stop playback on all animation channels. - </description> - </method> - <method name="is_playing" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="channel" type="int" default="0"> - </argument> - <description> - Return wether an animation chanel is playing (or channel 0 if none is provided). - </description> - </method> - <method name="get_current_animation" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="channel" type="int" default="0"> - </argument> - <description> - Return the name of the animation being played in a channel (or channel 0 if none is provided). - </description> - </method> - <method name="set_pause" > - <argument index="0" name="paused" type="bool"> - </argument> - <description> - Pause the playback in all animation channels. - </description> - </method> - <method name="is_paused" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return [html i]true[html /i] if all playback is paused. - </description> - </method> - <method name="set_speed" > - <argument index="0" name="speed" type="real"> - </argument> - <argument index="1" name="channel" type="int" default="0"> - </argument> - <description> - Set a speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [html i]1[html /i] (no scaling). - </description> - </method> - <method name="get_speed" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="channel" type="int" default="0"> - </argument> - <description> - Get the speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [html i]1[html /i] (no scaling). - </description> - </method> - <method name="seek" > - <argument index="0" name="pos_sec" type="real"> - </argument> - <argument index="1" name="channel" type="int" default="0"> - </argument> - <description> - Seek the animation in an animation channel (or channel 0 if none is provided) to a specific position (in seconds). - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="channel" type="int" default="0"> - </argument> - <description> - Return the playback position (in seconds) in an animation channel (or channel 0 if none is provided) - </description> - </method> - <method name="find_animation" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="animation" type="Object"> - </argument> - <description> - </description> - </method> - <method name="clear_caches" > - <description> - The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again. - </description> - </method> - </methods> - <constants> - <constant name="MAX_CHANNELS" value="8"> - Maximum amount of animation channels. - </constant> - </constants> -</class> -<class name="AnimationTreePlayer" inherits="Node" category="Nodes/Animation Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_node" > - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_node_id" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="node_set_name" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="node_get_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="node_get_input_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="animation_node_set_animation" > - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="Object"> - </argument> - <description> - </description> - </method> - <method name="animation_node_get_animation" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_fadein_time" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_fadein_time" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_fadeout_time" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_fadeout_time" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart_delay" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="delay_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_set_autorestart_random_delay" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="rand_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_has_autorestart" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_autorestart_delay" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_get_autorestart_random_delay" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_start" > - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_stop" > - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="oneshot_node_is_active" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="mix_node_set_amount" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="mix_node_get_amount" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend2_node_set_amount" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="real"> - </argument> - <description> - </description> - </method> - <method name="blend2_node_get_amount" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend3_node_set_amount" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="real"> - </argument> - <description> - </description> - </method> - <method name="blend3_node_get_amount" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="blend4_node_set_amount" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="blend" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="blend4_node_get_amount" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="timescale_node_set_scale" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="scale" type="real"> - </argument> - <description> - </description> - </method> - <method name="timescale_node_get_scale" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="timeseek_node_seek" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="pos_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_input_count" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="count" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_input_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_delete_input" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_input_auto_advance" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <argument index="2" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="transition_node_has_input_auto_advance" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_xfade_time" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_xfade_time" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_set_current" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="transition_node_get_current" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="node_set_pos" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="screen_pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="node_get_pos" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_node" > - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="connect" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_id" type="int"> - </argument> - <argument index="2" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_connected" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_id" type="int"> - </argument> - <argument index="2" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="disconnect" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="dst_input_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_active" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_active" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_base_path" > - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_base_path" qualifiers="const" > - <return type="NodePath"> - </return> - <description> - </description> - </method> - <method name="reset" > - <description> - </description> - </method> - <method name="recompute_caches" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="AudioServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="sample_create" > - <return type="RID"> - </return> - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="stereo" type="bool"> - </argument> - <argument index="2" name="length" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_set_description" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="description" type="String"> - </argument> - <description> - </description> - </method> - <method name="sample_get_description" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="sample_get_format" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_is_stereo" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_get_length" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_signed_data" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="data" type="RealArray"> - </argument> - <description> - </description> - </method> - <method name="sample_set_data" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="arg1" type="RawArray"> - </argument> - <description> - </description> - </method> - <method name="sample_get_data" qualifiers="const" > - <return type="RawArray"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_mix_rate" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="mix_rate" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_mix_rate" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_format" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="loop_format" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_format" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_begin" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_begin" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="sample_set_loop_end" > - <argument index="0" name="sample" type="RID"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="sample_get_loop_end" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="voice_play" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="sample" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_set_volume" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="volume" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_pan" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="pan" type="real"> - </argument> - <argument index="2" name="depth" type="real" default="0"> - </argument> - <argument index="3" name="height" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="voice_set_filter" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="cutoff" type="real"> - </argument> - <argument index="3" name="resonance" type="real"> - </argument> - <argument index="4" name="gain" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="voice_set_chorus" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="chorus" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_reverb" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="room" type="int"> - </argument> - <argument index="2" name="reverb" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_mix_rate" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="rate" type="int"> - </argument> - <description> - </description> - </method> - <method name="voice_set_positional" > - <argument index="0" name="voice" type="RID"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="voice_get_volume" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan_height" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_pan_depth" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_cutoff" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_filter_resonance" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_chorus" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_reverb_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_reverb" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_get_mix_rate" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_is_positional" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="voice_stop" > - <argument index="0" name="voice" type="RID"> - </argument> - <description> - </description> - </method> - <method name="free" > - <argument index="0" name="rid" type="RID"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="SAMPLE_LOOP_PING_PONG" value="2"> - </constant> - <constant name="SAMPLE_FORMAT_IMA_ADPCM" value="2"> - </constant> - <constant name="FILTER_HIPASS" value="3"> - </constant> - <constant name="FILTER_NONE" value="0"> - </constant> - <constant name="REVERB_HALL" value="3"> - </constant> - <constant name="REVERB_MEDIUM" value="1"> - </constant> - <constant name="REVERB_SMALL" value="0"> - </constant> - <constant name="FILTER_LOWPASS" value="1"> - </constant> - <constant name="SAMPLE_LOOP_FORWARD" value="1"> - </constant> - <constant name="REVERB_LARGE" value="2"> - </constant> - <constant name="SAMPLE_FORMAT_PCM16" value="1"> - </constant> - <constant name="FILTER_BANDLIMIT" value="6"> - </constant> - <constant name="FILTER_NOTCH" value="4"> - </constant> - <constant name="FILTER_BANDPASS" value="2"> - </constant> - <constant name="SAMPLE_FORMAT_PCM8" value="0"> - </constant> - <constant name="SAMPLE_LOOP_NONE" value="0"> - </constant> - </constants> -</class> -<class name="AudioServerSW" inherits="AudioServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="AudioStream" inherits="Resource" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="play" > - <description> - </description> - </method> - <method name="stop" > - <description> - </description> - </method> - <method name="is_playing" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="seek_pos" > - <argument index="0" name="pos" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_update_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="update" > - <description> - </description> - </method> - </methods> - <constants> - <constant name="UPDATE_IDLE" value="1"> - </constant> - <constant name="UPDATE_THREAD" value="2"> - </constant> - <constant name="UPDATE_NONE" value="0"> - </constant> - </constants> -</class> -<class name="AudioStreamOGG" inherits="AudioStream" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BCSFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BGColorFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BGImageFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BaseButton" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - Provides a base class for different kinds of buttons. - </brief_description> - <description> - BaseButton is the abstract base class for buttons, so it shouldn't be used directly (It doesnt display anything). Other types of buttons inherit from it. - </description> - <methods> - <method name="set_pressed" > - <argument index="0" name="pressed" type="bool"> - </argument> - <description> - Set the button to pressed state (only if toggle_mode is active). - </description> - </method> - <method name="is_pressed" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return when the button is pressed (only if toggle_mode is active). - </description> - </method> - <method name="set_toggle_mode" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the button toggle_mode property. Toggle mode makes the button flip state between pressed and unpressed each time its area is clicked. - </description> - </method> - <method name="is_toggle_mode" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the toggle_mode property (see [method set_toggle_mode]). - </description> - </method> - <method name="set_disabled" > - <argument index="0" name="disabled" type="bool"> - </argument> - <description> - Set the button into disabled state. When a button is disabled, it can't be clicked or toggled. - </description> - </method> - <method name="is_disabled" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the button is in disabled state (see [method set_disabled]). - </description> - </method> - <method name="set_click_on_press" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set the button click_on_press mode. This mode generates click signals when a mousebutton or key is just pressed (by default signals are generated when the button/keys are released and both press and release occur in the visual area of the Button). - </description> - </method> - <method name="get_click_on_press" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the state of the click_on_press property (see [method set_click_on_press]). - </description> - </method> - </methods> - <signals> - <signal name="toggled"> - <argument index="0" name="pressed" type="bool"> - </argument> - <description> - This signal is emitted when the button was just toggled between pressed and normal states (only if toggle_mode is active). The new state is contained in the [html i]pressed[html /i] argument. - </description> - </signal> - <signal name="pressed"> - <description> - This signal is emitted every time the button is pressed or toggled. - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="BodyShape" inherits="Spatial" category="Nodes/3D/3D Physics Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="BoxShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_extents" > - <argument index="0" name="extents" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_extents" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Button" inherits="BaseButton" category="Nodes/GUI Nodes"> - <brief_description> - Standard themed Button. - </brief_description> - <description> - Button is just the standard themed button: [html image src="images/button_example.png"/] It can contain a text and an icon, and will display them according to the current theme. - </description> - <methods> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - Set the button text, which will be displayed inside the button area. - </description> - </method> - <method name="get_text" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the button text. - </description> - </method> - <method name="set_icon" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - Set the button icon, which will be displayed to the left of the text. - </description> - </method> - <method name="get_icon" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the button icon. - </description> - </method> - <method name="set_flat" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the [html i]flat[html /i] property of a Button. Flat buttons don't display decoration unless hoevered or pressed. - </description> - </method> - <method name="set_clip_text" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the [html i]clip_text[html /i] property of a Button. When this property is enabled, text that is too large to fit the button is clipped, when disabled (default) the Button will always be wide enough to hold the text. - </description> - </method> - <method name="get_clip_text" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the state of the [html i]clip_text[html /i] property (see [method set_clip_text]) - </description> - </method> - <method name="is_flat" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the state of the [html i]flat[html /i] property (see [method set_flat]) - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Camera" inherits="Spatial" category="Nodes/3D"> - <brief_description> - Camera node, displays from a point of view. - </brief_description> - <description> - Camera is a special node that displays what is visible from its current location. Cameras register themselves in the nearest [Viewport] node (when ascending the tree). Only one camera can be active per viewport. If no viewport is available ascending the tree, the Camera will register in the global viewport. In other words, a Camera just provides [html i]3D[html /i] display capabilities to a [Viewport], and, without one, a [Scene] registered in that [Viewport] (or higher viewports) can't be displayed. - </description> - <methods> - <method name="project_ray_normal" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - Return a normal vector in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera proyection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - </description> - </method> - <method name="project_ray_origin" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="screen_point" type="Vector2"> - </argument> - <description> - Return a 3D position in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera proyection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - </description> - </method> - <method name="unproject_position" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="world_point" type="Vector3"> - </argument> - <description> - Return how a 3D point in worldpsace maps to a 2D coordinate in the [Viewport] rectangle. - </description> - </method> - <method name="set_perspective" > - <argument index="0" name="fov" type="real"> - </argument> - <argument index="1" name="z_near" type="real"> - </argument> - <argument index="2" name="z_far" type="real"> - </argument> - <description> - Set the camera projection to perspective mode, by specifying a [html i]FOV[html /i] angle in degrees (FOV means Field of View), and the [html i]near[html /i] and [html i]far[html /i] clip planes in worldspace units. - </description> - </method> - <method name="set_orthogonal" > - <argument index="0" name="size" type="real"> - </argument> - <argument index="1" name="z_near" type="real"> - </argument> - <argument index="2" name="z_far" type="real"> - </argument> - <description> - Set the camera projection to orthogonal mode, by specifying a rectangle and the [html i]near[html /i] and [html i]far[html /i] clip planes in worldspace units. (As a hint, 2D games often use this projection, with values specified in pixels) - </description> - </method> - <method name="make_current" > - <description> - Make this camera the current Camera for the [Viewport] (see class description). If the Camera Node is outside the scene tree, it will attempt to become current once it's added. - </description> - </method> - <method name="clear_current" > - <description> - </description> - </method> - <method name="is_current" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the Camera is the current one in the [Viewport], or plans to become current (if outside the scene tree). - </description> - </method> - <method name="get_camera_transform" qualifiers="const" > - <return type="Transform"> - </return> - <description> - Get the camera transform. Subclassed cameras (such as CharacterCamera) may provide different transforms than the [Node] transform. - </description> - </method> - <method name="get_fov" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PROJECTION_PERSPECTIVE" value="0"> - Perspective Projection (object's size on the screen becomes smaller when far away). - </constant> - <constant name="PROJECTION_ORTHOGONAL" value="1"> - Orthogonal Projection (objects remain the same size on the screen no matter how far away they are). - </constant> - </constants> -</class> -<class name="CanvasItem" inherits="Node" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="edit_set_state" > - <argument index="0" name="state" type="var"> - </argument> - <description> - </description> - </method> - <method name="edit_get" qualifiers="const" > - <description> - </description> - </method> - <method name="edit_set_rect" > - <argument index="0" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="edit_rotate" > - <argument index="0" name="degrees" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_item_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_canvas_item" qualifiers="const" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="is_visible" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_hidden" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="show" > - <description> - </description> - </method> - <method name="hide" > - <description> - </description> - </method> - <method name="update" > - <description> - </description> - </method> - <method name="set_as_toplevel" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_set_as_toplevel" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_blend_mode" > - <argument index="0" name="blend_mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_blend_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_opacity" > - <argument index="0" name="opacity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_opacity" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_self_opacity" > - <argument index="0" name="self_opacity" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_self_opacity" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_rect_changed"> - <description> - </description> - </signal> - <signal name="draw"> - <description> - </description> - </signal> - <signal name="visibility_changed"> - <description> - </description> - </signal> - <signal name="hide"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="NOTIFICATION_EXIT_CANVAS" value="33"> - </constant> - <constant name="NOTIFICATION_DRAW" value="30"> - </constant> - <constant name="BLEND_MODE_MUL" value="3"> - </constant> - <constant name="BLEND_MODE_MIX" value="0"> - </constant> - <constant name="NOTIFICATION_ENTER_CANVAS" value="32"> - </constant> - <constant name="NOTIFICATION_VISIBILITY_CHANGED" value="31"> - </constant> - <constant name="BLEND_MODE_ADD" value="1"> - </constant> - <constant name="BLEND_MODE_SUB" value="2"> - </constant> - </constants> -</class> -<class name="CapsuleShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius" > - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height" > - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CheckButton" inherits="BaseButton" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ColorPicker" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_color" > - <argument index="0" name="arg0" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="color_changed"> - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="ConcavePolygonShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_faces" > - <argument index="0" name="faces" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="get_faces" qualifiers="const" > - <return type="Vector3Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="ConfirmationDialog" inherits="Popup" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_ok" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_cancel" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_hide_on_ok" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_hide_on_ok" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="register_text_enter" > - <argument index="0" name="line_edit" type="Object"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="confirmed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Control" inherits="CanvasItem" category="Core"> - <brief_description> - Control is the base class Node for all the GUI components. - </brief_description> - <description> - Control is the base class Node for all the GUI components. Every GUI component inherits from it, directly or indirectly. Control Nodes contain positions relative to their parent control nodes. In this way, sections of the scene tree made of contiguous Control Nodes, become user interfaces.[html br/] 	Controls contain a [html i]canvas item[html /i] RID from the visual server, and can draw to it when receiving a NOTIFICATION_DRAW.[html br/] 	TODO: Explain margins and anchors[html br/] 	TODO: explain focus[html br/] - </description> - <methods> - <method name="accept_event" > - <description> - </description> - </method> - <method name="get_minimum_size" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. - </description> - </method> - <method name="is_window" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether this control is a [html i]window[html /i]. Controls are considered windows when their parent [Node] is not a Control. - </description> - </method> - <method name="get_window" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the [html i]window[html /i] for this control, ascending the scene tree (see [method is_window]). - </description> - </method> - <method name="set_anchor" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="anchor_mode" type="int"> - </argument> - <description> - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Changing the anchor mode converts the current margin offset from the previos anchor mode to the new one, so margin offsets ([method set_margin]) must be done after setting anchors, or at the same time ([method set_anchor_and_margin]). - </description> - </method> - <method name="get_anchor" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). - </description> - </method> - <method name="set_margin" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="offset" type="real"> - </argument> - <description> - Set a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being set depends on the anchor mode. - </description> - </method> - <method name="set_anchor_and_margin" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="anchor_mode" type="int"> - </argument> - <argument index="2" name="offset" type="real"> - </argument> - <description> - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM), and also set its offset. This is a helper (see [method set_anchor] and [method set_margin]). - </description> - </method> - <method name="set_begin" > - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - Sets MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - </description> - </method> - <method name="set_end" > - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - Sets MARGIN_RIGHT and MARGIN_BOTTOM at the same time. This is a helper (see [method set_margin]). - </description> - </method> - <method name="set_pos" > - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - Move the Control to a new position, relative to the top-left corner of the parent Control, changing all margins if needed and without changing current anchor mode. This is a helper (see [method set_margin]). - </description> - </method> - <method name="set_size" > - <argument index="0" name="size" type="Vector2"> - </argument> - <description> - Changes MARGIN_RIGHT and MARGIN_BOTTOM to fit a given size. This is a helper (see [method set_margin]). - </description> - </method> - <method name="set_global_pos" > - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - Move the Control to a new position, relative to the top-left corner of the [html i]window[html /i] Control, and without changing current anchor mode. (see [method set_margin]). - </description> - </method> - <method name="get_margin" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - Return a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being returned depends on the anchor mode. - </description> - </method> - <method name="get_begin" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_end" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Returns MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Returns the Control position, relative to the top-left corner of the parent Control and independly of the anchor mode. - </description> - </method> - <method name="get_size" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Returns the size of the Control, computed from all margins, however the size returned will [html b]never be smaller than the minimum size reported by [method get_minimum_size][html /b]. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, [method get_minimum_size], [method set_margin], [method set_anchor]). - </description> - </method> - <method name="get_global_pos" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode. - </description> - </method> - <method name="get_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - Return position and size of the Control, relative to the top-left corner of the parent Control. This is a helper (see [method get_pos],[method get_size]). - </description> - </method> - <method name="get_global_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - Return position and size of the Control, relative to the top-left corner of the [html i]window[html /i] Control. This is a helper (see [method get_global_pos],[method get_size]). - </description> - </method> - <method name="set_area_as_parent_rect" > - <description> - Change all margins and anchors, so this Control always takes up the same area as the parent Control. This is a helper (see [method set_anchor],[method set_margin]). - </description> - </method> - <method name="show_modal" > - <argument index="0" name="exclusive" type="bool" default="false"> - </argument> - <description> - Display a Control as modal. Control must be a subwindow (see [method set_as_subwindow]). Modal controls capture the input signals until closed or the area outside them is accessed. When a modal control loses focus, or the ESC key is pressed, they automatically hide. Modal controls are used extensively for popup dialogs and menus. - </description> - </method> - <method name="set_focus_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals. - </description> - </method> - <method name="has_focus" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the Control is the current focused control (see [method set_focus_mode]). - </description> - </method> - <method name="grab_focus" > - <description> - Steal the focus from another control and become the focused control (see [method set_focus_mode]). - </description> - </method> - <method name="set_theme" > - <argument index="0" name="theme" type="Object"> - </argument> - <description> - Override whole the [Theme] for this Control and all its children controls. - </description> - </method> - <method name="get_theme" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return a [Theme] override, if one exists (see [method set_theme]). - </description> - </method> - <method name="add_icon_override" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="texture" type="Object"> - </argument> - <description> - Override a single icon ([Texture]) in the theme of this Control. If texture is empty, override is cleared. - </description> - </method> - <method name="add_style_override" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="stylebox" type="Object"> - </argument> - <description> - Override a single stylebox ([Stylebox]) in the theme of this Control. If stylebox is empty, override is cleared. - </description> - </method> - <method name="add_font_override" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="font" type="Object"> - </argument> - <description> - Override a single font (font) in the theme of this Control. If font is empty, override is cleared. - </description> - </method> - <method name="add_color_override" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_constant_override" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="constant" type="int"> - </argument> - <description> - Override a single constant (integer) in the theme of this Control. If constant equals Theme.INVALID_CONSTANT, override is cleared. - </description> - </method> - <method name="get_parent_control" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the parent Control. Unlike get_parent() in [Node], only returns a valid object if the parent is a Control. - </description> - </method> - <method name="set_tooltip" > - <argument index="0" name="tooltip" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tooltip" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="atpos" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="set_default_cursor_shape" > - <argument index="0" name="shape" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_default_cursor_shape" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_cursor_shape" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="pos" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - </description> - </method> - <method name="set_focus_neighbour" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="neighbour" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_focus_neighbour" qualifiers="const" > - <return type="NodePath"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="focus_enter"> - <description> - </description> - </signal> - <signal name="mouse_enter"> - <description> - </description> - </signal> - <signal name="resized"> - <description> - </description> - </signal> - <signal name="focus_exit"> - <description> - </description> - </signal> - <signal name="input_event"> - <description> - </description> - </signal> - <signal name="mouse_exit"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="CURSOR_FDIAGSIZE" value="12"> - </constant> - <constant name="CURSOR_CAN_DROP" value="7"> - </constant> - <constant name="CURSOR_DRAG" value="6"> - </constant> - <constant name="CURSOR_IBEAM" value="1"> - </constant> - <constant name="NOTIFICATION_FOCUS_ENTER" value="37"> - Control gained focus. - </constant> - <constant name="CURSOR_MOVE" value="13"> - </constant> - <constant name="NOTIFICATION_MOUSE_ENTER" value="35"> - Mouse pointer entered the area of the Control. - </constant> - <constant name="NOTIFICATION_RESIZED" value="34"> - Control changed size (get_size() reports the new size). - </constant> - <constant name="FOCUS_CLICK" value="1"> - Control can acquire focus only if clicked. - </constant> - <constant name="CURSOR_HELP" value="16"> - </constant> - <constant name="CURSOR_VSIZE" value="9"> - </constant> - <constant name="CURSOR_VSPLIT" value="14"> - </constant> - <constant name="CURSOR_BDIAGSIZE" value="11"> - </constant> - <constant name="CURSOR_CROSS" value="3"> - </constant> - <constant name="CURSOR_POINTING_HAND" value="2"> - </constant> - <constant name="NOTIFICATION_FOCUS_EXIT" value="38"> - Control lost focus. - </constant> - <constant name="FOCUS_NONE" value="0"> - Control can't acquire focus. - </constant> - <constant name="ANCHOR_BEGIN" value="0"> - X is relative to MARGIN_LEFT, Y is relative to MARGIN_TOP, - </constant> - <constant name="CURSOR_HSIZE" value="10"> - </constant> - <constant name="CURSOR_BUSY" value="5"> - </constant> - <constant name="CURSOR_ARROW" value="0"> - </constant> - <constant name="NOTIFICATION_MODAL_CLOSE" value="40"> - </constant> - <constant name="NOTIFICATION_MOUSE_EXIT" value="36"> - Mouse pointer exited the area of the Control. - </constant> - <constant name="FOCUS_ALL" value="2"> - Control can acquire focus if clicked, or by pressing TAB/Directionals in the keyboard from another Control. - </constant> - <constant name="CURSOR_HSPLIT" value="15"> - </constant> - <constant name="ANCHOR_RATIO" value="2"> - X and Y are a ratio (0 to 1) relative to the parent size 0 is left/top, 1 is right/bottom. - </constant> - <constant name="ANCHOR_END" value="1"> - X is relative to -MARGIN_RIGHT, Y is relative to -MARGIN_BOTTOM, - </constant> - <constant name="CURSOR_FORBIDDEN" value="8"> - </constant> - <constant name="CURSOR_WAIT" value="4"> - </constant> - <constant name="NOTIFICATION_THEME_CHANGED" value="39"> - </constant> - </constants> -</class> -<class name="ConvexPolygonShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_planes" > - <argument index="0" name="planes" type="Array"> - </argument> - <description> - </description> - </method> - <method name="get_planes" qualifiers="const" > - <return type="Array"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GridMap" inherits="Spatial" category="Nodes/3D"> - <brief_description> - GridMap is like a tile map, but in 3D. - </brief_description> - <description> - GridMap is a 3D Tile map, using [html i]3D Cells[html /i] instead of tiles. On each cell, a mesh and a collision volume can be placed from a [MeshLibrary]. GridMap is used for designing worlds quickly. Despite that GridMaps can contain up to hundreds millions of cells, they are very optimized, and only use resources for the cells that contain items. - </description> - <methods> - <method name="set_theme" > - <argument index="0" name="theme" type="Object"> - </argument> - <description> - Set a MeshLibrary. Cell indices refer to items in the theme. - </description> - </method> - <method name="get_theme" qualifiers="const" > - <return type="Object"> - </return> - <description> - Get the current MeshLibrary (if exists). - </description> - </method> - <method name="set_cell_size" > - <argument index="0" name="size" type="real"> - </argument> - <description> - Set the size of a cell, in worldpsace units. All cells in a GridMap are the same size. - </description> - </method> - <method name="get_cell_size" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the current cell size. - </description> - </method> - <method name="set_octant_size" > - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_octant_size" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_width" > - <argument index="0" name="width" type="int"> - </argument> - <description> - Set the width of the GridMap. Width is the amount of cells i the direction of the X coordinate. - </description> - </method> - <method name="get_width" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the width of the GridMap. Width is the amount of cells i the direction of the X coordinate. - </description> - </method> - <method name="set_height" > - <argument index="0" name="height" type="int"> - </argument> - <description> - Set the height of the GridMap. Height is the amount of cells i the direction of the Y coordinate. - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the height of the GridMap. Height is the amount of cells i the direction of the Y coordinate. - </description> - </method> - <method name="set_depth" > - <argument index="0" name="depth" type="int"> - </argument> - <description> - Set the depth of the GridMap. Depth is the amount of cells i the direction of the Z coordinate. - </description> - </method> - <method name="get_depth" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the depth of the GridMap. Depth is the amount of cells i the direction of the Z coordinate. - </description> - </method> - <method name="set_cell_item" > - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <argument index="3" name="item" type="int"> - </argument> - <argument index="4" name="orientation" type="int" default="0"> - </argument> - <description> - Set a cell item (x,y,z pos). Cell items are indices to items in the [MeshLibrary]. - </description> - </method> - <method name="get_cell_item" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <description> - Get a cell item (x,y,z pos). Cell items are indices to items in the [MeshLibrary]. - </description> - </method> - <method name="get_cell_item_orientation" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="z" type="int"> - </argument> - <description> - </description> - </method> - <method name="resource_changed" > - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_center_x" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_x" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_center_y" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_y" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_center_z" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_center_z" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_clip" > - <argument index="0" name="enabled" type="bool"> - </argument> - <argument index="1" name="clipabove" type="bool" default="true"> - </argument> - <argument index="2" name="floor" type="int" default="0"> - </argument> - <argument index="3" name="axis" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="crate_area" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="area" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="area_get_bounds" qualifiers="const" > - <return type="AABB"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_exterior_portal" > - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="area_set_name" > - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="area_get_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_is_exterior_portal" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_distance" > - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_distance" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_set_portal_disable_color" > - <argument index="0" name="area" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="area_get_portal_disable_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_area" > - <argument index="0" name="area" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_unused_area_id" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="INVALID_CELL_ITEM" value="-1"> - Value indicating that a cell item is not used or invalid. - </constant> - </constants> -</class> -<class name="MeshLibrary" inherits="Resource" category="Resources"> - <brief_description> - Theme for a [GridMap]. - </brief_description> - <description> - MeshLibrary is [Resource] containing the data used in a [GridMap]. It's filled with items, each containing a mesh and a collision shape. - </description> - <methods> - <method name="create_item" > - <argument index="0" name="id" type="int"> - </argument> - <description> - Create a new item, and assign it a given id. - </description> - </method> - <method name="set_item_name" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="name" type="String"> - </argument> - <description> - Set the name of an item, referenced by id. - </description> - </method> - <method name="set_item_mesh" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="mesh" type="Object"> - </argument> - <description> - Set the [Mesh] of an item, referenced by id. - </description> - </method> - <method name="set_item_shape" > - <argument index="0" name="id" type="int"> - </argument> - <argument index="1" name="shape" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_item_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - Get the name of an item, referenced by id. - </description> - </method> - <method name="get_item_mesh" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - Get the [Mesh] of an item, referenced by id. - </description> - </method> - <method name="get_item_shape" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_item" > - <argument index="0" name="id" type="int"> - </argument> - <description> - Remove an item, referenced by id. - </description> - </method> - <method name="clear" > - <description> - Clear all items contained in this resource. - </description> - </method> - <method name="get_item_list" qualifiers="const" > - <return type="IntArray"> - </return> - <description> - Get the list of item IDs contained in this theme. - </description> - </method> - <method name="get_last_unused_item_id" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the last unused item id. This is useful for creating new item IDs. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="CylinderShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius" > - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height" > - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DOFBlurFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DirectionalLight" inherits="Light" category="Nodes/3D/3D Visual Nodes/3D Light Nodes"> - <brief_description> - Directional Light, such as the Sun or the Moon. - </brief_description> - <description> - A DirectionalLight is a type of [Light] node that emits light constantly in one direction (the negative z axis of the node). It is used lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldpace location of the DirectionalLight transform (origin) is ignored, only the basis is used do determine light direction. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DynamicBody" inherits="PhysicsBody" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mass" > - <argument index="0" name="mass" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_friction" > - <argument index="0" name="friction" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_bounce" > - <argument index="0" name="bounce" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_mass" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_friction" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_bounce" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity" > - <argument index="0" name="linear_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity" > - <argument index="0" name="angular_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_sleeping" > - <argument index="0" name="sleeping" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_sleeping" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_applied_force" > - <argument index="0" name="applied_force" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_applied_force" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_applied_torque" > - <argument index="0" name="applied_torque" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_applied_torque" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="apply_local_impulse" > - <argument index="0" name="pos" type="Vector3"> - </argument> - <argument index="1" name="impulse" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="set_axis_velocity" > - <argument index="0" name="axis_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="set_direct_state_control" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_direct_state_control_enabled" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_omit_force_integration" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_omitting_force_integration" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DynamicCharacterBody" inherits="DynamicBody" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="DynamicCustomBody" inherits="DynamicBody" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="DynamicRigidBody" inherits="DynamicBody" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="FileDialog" inherits="Popup" category="Nodes/GUI Nodes"> - <brief_description> - Dialog for selecting files or directories in the filesystem. - </brief_description> - <description> - FileDialog is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. - </description> - <methods> - <method name="clear_filters" > - <description> - Clear all the added filters in the dialog. - </description> - </method> - <method name="add_filter" > - <argument index="0" name="filter" type="String"> - </argument> - <description> - Add a custom filter. Filter format is: "mask ; description. - </description> - </method> - <method name="get_current_dir" qualifiers="const" > - <return type="String"> - </return> - <description> - Get the current working directory of the file dialog. - </description> - </method> - <method name="get_current_file" qualifiers="const" > - <return type="String"> - </return> - <description> - Get the current selected file of the file dialog (empty if none). - </description> - </method> - <method name="get_current_path" qualifiers="const" > - <return type="String"> - </return> - <description> - Get the current selected path (directory and file) of the file dialog (empty if none). - </description> - </method> - <method name="set_current_dir" > - <argument index="0" name="dir" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_current_file" > - <argument index="0" name="file" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_current_path" > - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - Set the file dialog mode from the MODE_* enum. - </description> - </method> - <method name="get_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the file dialog mode from the MODE_* enum. - </description> - </method> - </methods> - <signals> - <signal name="dir_selected"> - <argument index="0" name="dir" type="String"> - </argument> - <description> - </description> - </signal> - <signal name="file_selected"> - <argument index="0" name="path" type="String"> - </argument> - <description> - Event emitted when the user selects a file (double clicks it or presses the OK button). - </description> - </signal> - </signals> - <constants> - <constant name="MODE_OPEN_DIR" value="1"> - </constant> - <constant name="MODE_OPEN_FILE" value="0"> - Editor will not allow to select nonexistent files. - </constant> - <constant name="MODE_SAVE_FILE" value="2"> - Editor will warn when a file exists. - </constant> - </constants> -</class> -<class name="FixedMaterial" inherits="Material" category="Resources"> - <brief_description> - Simple Material with a fixed parameter set. - </brief_description> - <description> - FixedMaterial is a simple type of material [Resource], which contains a fixed amount of paramters. It is the only type of material supported in fixed-pipeline devices and APIs. It is also an often a better alternative to [ShaderMaterial] for most simple use cases. - </description> - <methods> - <method name="set_shader" > - <argument index="0" name="shader" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_shader" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_parameter" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - Set a parameter, parameters are defined in the PARAM_* enum. The type of each parameter may change, so it's best to check the enum. - </description> - </method> - <method name="get_parameter" qualifiers="const" > - <argument index="0" name="param" type="int"> - </argument> - <description> - Return a parameter, parameters are defined in the PARAM_* enum. The type of each parameter may change, so it's best to check the enum. - </description> - </method> - <method name="set_texture" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="texture" type="Object"> - </argument> - <description> - Set a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). - </description> - </method> - <method name="get_texture" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - Return a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). - </description> - </method> - <method name="set_texgen_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - Set the texture coordinate generation mode. Materials have a unique, texgen mode which can generate texture coordinates on the fly. Texgen mode must be one of the values from the TEXGEN_* enum. TEXGEN can be selected as a texture coordinate mode (see [method set_texcoord_mode]). - </description> - </method> - <method name="get_texgen_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the texture coordinate generation mode. Materials have a unique, texgen mode which can generate texture coordinates on the fly. Texgen mode must be one of the values from the TEXGEN_* enum. TEXGEN can be selected as a texture coordinate mode (see [method set_texcoord_mode]). - </description> - </method> - <method name="set_texcoord_mode" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - Set the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. - </description> - </method> - <method name="get_texcoord_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - Return the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. - </description> - </method> - <method name="set_uv_transform" > - <argument index="0" name="transform" type="Transform"> - </argument> - <description> - Sets a special transform used to post-transform UV coordinates of the uv_xfrom tecoord mode: TEXCOORD_UV_TRANSFORM - </description> - </method> - <method name="get_uv_transform" qualifiers="const" > - <return type="Transform"> - </return> - <description> - Returns the special transform used to post-transform UV coordinates of the uv_xfrom tecoord mode: TEXCOORD_UV_TRANSFORM - </description> - </method> - </methods> - <constants> - <constant name="PARAM_SPECULAR_EXP" value="4"> - Specular Exponent (size of the specular dot) - </constant> - <constant name="PARAM_DETAIL" value="1"> - Detail Layer for diffuse lighting. - </constant> - <constant name="TEXCOORD_UV2" value="2"> - Read texture coordinates from the UV2 array. - </constant> - <constant name="TEXGEN_SCREENZ" value="3"> - Use the screen coordinates as UV, scaled by depth and the screenz coefficient. - </constant> - <constant name="TEXCOORD_UV_TRANSFORM" value="1"> - Read texture coordinates from the UV array and transform them by uv_xform. - </constant> - <constant name="TEXGEN_LOCAL_XY" value="0"> - Use object local X and Y coordinates as UV. - </constant> - <constant name="PARAM_SHADE_PARAM" value="8"> - </constant> - <constant name="PARAM_MAX" value="9"> - Maximum amount of parameters - </constant> - <constant name="PARAM_DIFFUSE" value="0"> - Diffuse Lighting (light scattered from surface). - </constant> - <constant name="PARAM_EMISSION" value="3"> - Emission Lighting (light emitted from the surface) - </constant> - <constant name="PARAM_SPECULAR" value="2"> - Specular Lighting (light reflected from the surface). - </constant> - <constant name="PARAM_DETAIL_MIX" value="6"> - Mix coefficient for the detail layer. - </constant> - <constant name="TEXGEN_SPHERE" value="1"> - Use view normal reflected by object normal as UV. - </constant> - <constant name="PARAM_NORMAL" value="7"> - Normal Map (irregularity map). - </constant> - <constant name="PARAM_GLOW" value="5"> - Glow (Visible emitted scattered light). - </constant> - <constant name="TEXCOORD_UV" value="0"> - Read texture coordinates from the UV array. - </constant> - <constant name="TEXCOORD_TEXGEN" value="3"> - Use texture coordinates from the texgen. - </constant> - <constant name="TEXGEN_SCREEN" value="2"> - Use the screen coordinates as UV. - </constant> - </constants> -</class> -<class name="FogFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="FollowCamera" inherits="Camera" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_orbit" > - <argument index="0" name="orbit" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_orbit" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_orbit_x" > - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_orbit_y" > - <argument index="0" name="y" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_min_orbit_x" > - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_min_orbit_x" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_max_orbit_x" > - <argument index="0" name="x" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_max_orbit_x" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height" > - <argument index="0" name="height" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_inclination" > - <argument index="0" name="inclination" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_inclination" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="rotate_orbit" > - <argument index="0" name="arg0" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_distance" > - <argument index="0" name="distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_distance" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_max_distance" > - <argument index="0" name="max_distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_max_distance" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_min_distance" > - <argument index="0" name="min_distance" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_min_distance" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_clip" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_clip" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autoturn" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autoturn" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autoturn_tolerance" > - <argument index="0" name="degrees" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_autoturn_tolerance" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_autoturn_speed" > - <argument index="0" name="speed" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_autoturn_speed" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_smoothing" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_smoothing" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_rotation_smoothing" > - <argument index="0" name="amount" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_rotation_smoothing" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_translation_smoothing" > - <argument index="0" name="amount" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_translation_smoothing" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_use_lookat_target" > - <argument index="0" name="use" type="bool"> - </argument> - <argument index="1" name="lookat" type="Vector3" default="Vector3(0, 0, 0)"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Font" inherits="Resource" category="Resources"> - <brief_description> - Internationalized font and text drawing support. - </brief_description> - <description> - Font contains an unicode compatible character set, as well as the ability to draw it with variable width, ascent, descent and kerning. For creating fonts from TTF files (or other font formats), see the editor support for fonts. TODO check wikipedia for graph of ascent/baseline/descent/height/etc. - </description> - <methods> - <method name="set_height" > - <argument index="0" name="px" type="real"> - </argument> - <description> - Set the total font height (ascent plus descent) in pixels. - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the total font height (ascent plus descent) in pixels. - </description> - </method> - <method name="set_ascent" > - <argument index="0" name="px" type="real"> - </argument> - <description> - Set the font ascent (number of pixels above the baseline). - </description> - </method> - <method name="get_ascent" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the font ascent (number of pixels above the baseline). - </description> - </method> - <method name="get_descent" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the font descent (number of pixels below the baseline). - </description> - </method> - <method name="add_kerning_pair" > - <argument index="0" name="char_a" type="int"> - </argument> - <argument index="1" name="char_b" type="int"> - </argument> - <argument index="2" name="kerning" type="int"> - </argument> - <description> - Add a kerning pair to the [Font] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. - </description> - </method> - <method name="get_kerning_pair" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - Return a kerning pair as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. - </description> - </method> - <method name="add_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - Add a texture to the [Font]. - </description> - </method> - <method name="add_char" > - <argument index="0" name="character" type="int"> - </argument> - <argument index="1" name="texture" type="int"> - </argument> - <argument index="2" name="rect" type="Rect2"> - </argument> - <argument index="3" name="align" type="Vector2" default="Vector2(0,0)"> - </argument> - <argument index="4" name="advance" type="real" default="-1"> - </argument> - <description> - Add a character to the font, where "character" is the unicode value, "texture" is the texture index, "rect" is the region in the texture (in pixels!), "align" is the (optional) alignment for the character and "advance" is the (optional) advance. - </description> - </method> - <method name="get_char_size" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="char" type="int"> - </argument> - <argument index="1" name="next" type="int" default="0"> - </argument> - <description> - Return the size of a character, optionally taking kerning into account if the next character is provided. - </description> - </method> - <method name="get_string_size" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="string" type="String"> - </argument> - <description> - Return the size of a string, taking kerning and advance into account. - </description> - </method> - <method name="clear" > - <description> - Clear all the font data. - </description> - </method> - <method name="draw" qualifiers="const" > - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="string" type="String"> - </argument> - <argument index="3" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <argument index="4" name="clip_w" type="int" default="-1"> - </argument> - <description> - Draw "string" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally clipping the width. "pos" specifies te baseline, not the top. To draw from the top, [html i]ascent[html /i] must be added to the Y axis. - </description> - </method> - <method name="draw_char" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="char" type="int"> - </argument> - <argument index="3" name="next" type="int" default="-1"> - </argument> - <argument index="4" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - Draw character "char" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally kerning if "next" is apassed. clipping the width. "pos" specifies te baseline, not the top. To draw from the top, [html i]ascent[html /i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GammaFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="_Geometry" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="build_box_planes" > - <return type="Array"> - </return> - <argument index="0" name="extents" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="build_cylinder_planes" > - <return type="Array"> - </return> - <argument index="0" name="radius" type="real"> - </argument> - <argument index="1" name="height" type="real"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="axis" type="int" default="2"> - </argument> - <description> - </description> - </method> - <method name="build_capsule_planes" > - <return type="Array"> - </return> - <argument index="0" name="radius" type="real"> - </argument> - <argument index="1" name="height" type="real"> - </argument> - <argument index="2" name="sides" type="int"> - </argument> - <argument index="3" name="lats" type="int"> - </argument> - <argument index="4" name="axis" type="int" default="2"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Globals" inherits="Object" category="Core"> - <brief_description> - Contains global variables accessible from everywhere. - </brief_description> - <description> - Contains global variables accessible from everywhere. Use the normal [Object] API, such as "Globals.get(variable)", "Globals.set(variable,value)" or "Globals.has(variable)" to access them. Variables stored in engine.cfg are also loaded into globals, making this object very useful for reading custom game configuration options. - </description> - <methods> - <method name="has" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_order" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="pos" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_order" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_persisting" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_persisting" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear" > - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="localize_path" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="globalize_path" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="GlowFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HDRFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HScrollBar" inherits="ScrollBar" category="Nodes/GUI Nodes"> - <brief_description> - Horizontal version of [ScrollBar], which goes from top (min) to bottom (max). - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HSeparator" inherits="Separator" category="Nodes/GUI Nodes"> - <brief_description> - Horizontal version of [Separator]. - </brief_description> - <description> - Horizontal version of [Separator]. It is used to separate objects vertiacally, though (but it looks horizontal!). - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="HSlider" inherits="Slider" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="IP" inherits="Object" category="Networking"> - <brief_description> - IP Protocol support functions. - </brief_description> - <description> - IP contains some support functions for the IPv4 protocol. TCP/IP support is in different classes (see [TCP_Client], [TCP_Server]). IP provides hostname resolution support, both blocking and threaded. - </description> - <methods> - <method name="resolve_hostname" > - <return type="String"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <description> - Resolve a given hostname, blocking. Resolved hostname is returned as an IP. - </description> - </method> - <method name="resolve_hostname_queue_item" > - <return type="int"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <description> - Create a queue item for resolving a given hostname. The queue ID is returned, or RESOLVER_INVALID_ID on error. - </description> - </method> - <method name="get_resolve_item_status" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - Return the status of hostname queued for resolving, given it's queue ID. Returned status can be any of the RESOLVER_STATUS_* enumeration. - </description> - </method> - <method name="get_resolve_item_address" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - Return a resolved item address, or an empty string if an error happened or resolution didn't happen yet (see [method get_resolve_item_status]). - </description> - </method> - <method name="erase_resolve_item" > - <argument index="0" name="id" type="int"> - </argument> - <description> - Erase a queue ID, removing it from the queue if needed. This should be used after a queue is completed to free it and enable more queries to happen. - </description> - </method> - </methods> - <constants> - <constant name="RESOLVER_INVALID_ID" value="-1"> - </constant> - <constant name="RESOLVER_MAX_QUERIES" value="32"> - </constant> - <constant name="RESOLVER_STATUS_NONE" value="0"> - </constant> - <constant name="RESOLVER_STATUS_ERROR" value="3"> - </constant> - <constant name="RESOLVER_STATUS_WAITING" value="1"> - </constant> - <constant name="RESOLVER_STATUS_DONE" value="2"> - </constant> - </constants> -</class> -<class name="IP_Unix" inherits="IP" category="Networking"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="InputMap" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Label" inherits="Range" category="Nodes/GUI Nodes"> - <brief_description> - Control that displays formatted text. - </brief_description> - <description> - Label is a control that displays formatted text, optionally autowrapping it to the [Control] area. It inherits from range to be able to scroll wrapped text vertically. - </description> - <methods> - <method name="set_align" > - <argument index="0" name="align" type="int"> - </argument> - <description> - Set the alignmend mode to any of the ALIGN_* enumeration values. - </description> - </method> - <method name="get_align" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the alignmend mode (any of the ALIGN_* enumeration values). - </description> - </method> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - Set the label text. Text can contain newlines. - </description> - </method> - <method name="get_text" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the label text. Text can contain newlines. - </description> - </method> - <method name="set_autowrap" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Set [html i]autowrap[html /i] mode. When enabled, autowrap will fit text to the control width, breaking sentences when they exceed the available horizontal space. When disabled, the label minimum width becomes the width of the longest row, and the minimum height large enough to fit all rows. - </description> - </method> - <method name="has_autowrap" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the state of the [html i]autowrap[html /i] mode (see [method set_autowrap]). - </description> - </method> - </methods> - <constants> - <constant name="ALIGN_CENTER" value="1"> - Align rows centered. - </constant> - <constant name="ALIGN_LEFT" value="0"> - Align rows to the left (default). - </constant> - <constant name="ALIGN_RIGHT" value="2"> - Align rows to the right (default). - </constant> - <constant name="ALIGN_FILL" value="3"> - Expand row whitespaces to fit the width. - </constant> - </constants> -</class> -<class name="Light" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes/3D Light Nodes"> - <brief_description> - Provides a base class for different kinds of light nodes. - </brief_description> - <description> - Light is the abstract base class for light nodes, so it shouldn't be used directly (It can't be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting. - </description> - <methods> - <method name="set_parameter" > - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_parameter" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_color" > - <argument index="0" name="color" type="int"> - </argument> - <argument index="1" name="value" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_project_shadows" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_project_shadows" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_projector" > - <argument index="0" name="projector" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_projector" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_operator" > - <argument index="0" name="operator" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_operator" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="COLOR_DIFFUSE" value="1"> - </constant> - <constant name="PARAM_SPOT_ANGLE" value="1"> - </constant> - <constant name="PARAM_ATTENUATION" value="4"> - </constant> - <constant name="COLOR_SPECULAR" value="2"> - </constant> - <constant name="COLOR_AMBIENT" value="0"> - </constant> - <constant name="PARAM_SHADOW_DARKENING" value="5"> - </constant> - <constant name="PARAM_RADIUS" value="2"> - </constant> - <constant name="PARAM_SPOT_ATTENUATION" value="4"> - </constant> - <constant name="PARAM_ENERGY" value="3"> - </constant> - </constants> -</class> -<class name="LineEdit" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - Control that provides single line string editing. - </brief_description> - <description> - LineEdit provides a single line string editor, used for text fields. - </description> - <methods> - <method name="clear" > - <description> - Clear the [LineEdit] text. - </description> - </method> - <method name="select_all" > - <description> - Select the whole string. - </description> - </method> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - Set the text in the [LineEdit], clearing the existing one and the selection. - </description> - </method> - <method name="get_text" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the text in the [LineEdit]. - </description> - </method> - <method name="set_cursor_pos" > - <argument index="0" name="pos" type="int"> - </argument> - <description> - Set the cursor position inside the [LineEdit], causing it to scroll if needed. - </description> - </method> - <method name="get_cursor_pos" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the cursor position inside the [LineEdit]. - </description> - </method> - <method name="set_max_length" > - <argument index="0" name="chars" type="int"> - </argument> - <description> - Set the maximum amount of characters the [LineEdit] can edit, and cropping existing text in case it exceeds that limit. Setting 0 removes the limit. - </description> - </method> - <method name="get_max_length" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the maximum amount of characters the [LineEdit] can edit. If 0 is returned, no limit exists. - </description> - </method> - <method name="append_at_cursor" > - <argument index="0" name="text" type="String"> - </argument> - <description> - Append text at cursor, scrolling the [LineEdit] when needed. - </description> - </method> - <method name="set_editable" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the [html i]editable[html /i] status of the [LineEdit]. When disabled, existing text can't be modified and new text can't be added. - </description> - </method> - <method name="is_editable" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the [html i]editable[html /i] status of the [LineEdit] (see [method set_editable]). - </description> - </method> - <method name="set_secret" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the [html i]secret[html /i] status of the [LineEdit]. When enabled, every character is displayed as "*". - </description> - </method> - <method name="is_secret" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the [html i]secret[html /i] status of the [LineEdit] (see [method set_secret]). - </description> - </method> - <method name="select" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="text_entered"> - <argument index="0" name="text" type="String"> - </argument> - <description> - This signal is emitted when the user presses KEY_ENTER on the [LineEdit]. This signal is often used as an alternate confirmation mechanism in dialogs. - </description> - </signal> - <signal name="text_changed"> - <argument index="0" name="text" type="String"> - </argument> - <description> - When the text changes, this signal is emitted. - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="MainLoop" inherits="Object" category="Main Loop"> - <brief_description> - Main loop is the abstract main loop base class. - </brief_description> - <description> - Main loop is the abstract main loop base class. All other main loop classes are derived from it. Upon application start, a [MainLoop] has to be provided to OS, else the application will exit. This happens automatically (and a [SceneMainLoop] is created), unless a main [Script] is supplied, which may or not create and return a [MainLoop]. - </description> - <methods> - </methods> - <constants> - <constant name="NOTIFICATION_WM_QUIT_REQUEST" value="7"> - </constant> - <constant name="NOTIFICATION_WM_FOCUS_IN" value="5"> - </constant> - <constant name="NOTIFICATION_WM_FOCUS_OUT" value="6"> - </constant> - </constants> -</class> -<class name="Material" inherits="Resource" category="Resources"> - <brief_description> - Abstract base [Resource] for coloring and shading geometry. - </brief_description> - <description> - Material is a base [Resource] used for coloring and shading geometry. All materials inherit from it and almost all [VisualInstance] derived nodes carry a Material. A few flags and parameters are shared between all material types and are configured here. - </description> - <methods> - <method name="set_flag" > - <argument index="0" name="flag" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - Set a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. - </description> - </method> - <method name="get_flag" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="flag" type="int"> - </argument> - <description> - Return a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. - </description> - </method> - <method name="set_hint" > - <argument index="0" name="hint" type="int"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_hint" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="hint" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_blend_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - Set blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [html i]may[html /i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. - </description> - </method> - <method name="get_blend_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - Return blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [html i]may[html /i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. - </description> - </method> - <method name="set_shade_model" > - <argument index="0" name="model" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_shade_model" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_line_width" > - <argument index="0" name="width" type="real"> - </argument> - <description> - Set the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). - </description> - </method> - <method name="get_line_width" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). - </description> - </method> - <method name="set_shader_param" > - <argument index="0" name="param" type="String"> - </argument> - <argument index="1" name="arg1" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_shader_param" qualifiers="const" > - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="SHADE_MODEL_FRESNEL" value="2"> - </constant> - <constant name="SHADE_MODEL_LAMBERT" value="0"> - </constant> - <constant name="HINT_DECAL" value="0"> - </constant> - <constant name="FLAG_WIREFRAME" value="5"> - Triangle geometry is drawn as lines if this flag is enabled. - </constant> - <constant name="SHADE_MODEL_TOON" value="3"> - </constant> - <constant name="SHADE_MODEL_LAMBERT_WRAP" value="1"> - </constant> - <constant name="HINT_NO_SHADOW" value="2"> - </constant> - <constant name="FLAG_DOUBLE_SIDED" value="1"> - Both front facing and back facing triangles are rendered when this flag is enabled. - </constant> - <constant name="FLAG_BILLBOARD_TOGGLE" value="6"> - Geometry world transform is computed as billboard if this flag is enabled, often used for impostors. - </constant> - <constant name="FLAG_UNSHADED" value="3"> - Shading (lighting) is disabled when this flag is enabled. - </constant> - <constant name="BLEND_MODE_MIX" value="0"> - Use the regular alpha blending equation (source and dest colors are faded) (default). - </constant> - <constant name="SHADE_MODEL_CUSTOM_0" value="4"> - </constant> - <constant name="SHADE_MODEL_CUSTOM_1" value="5"> - </constant> - <constant name="FLAG_MAX" value="7"> - Maximum amount of flags - </constant> - <constant name="FLAG_VISIBLE" value="0"> - Geometry is visible when this flag is enabled (default). - </constant> - <constant name="SHADE_MODEL_CUSTOM_2" value="6"> - </constant> - <constant name="HINT_MAX" value="4"> - </constant> - <constant name="HINT_NO_DEPTH_DRAW" value="3"> - </constant> - <constant name="BLEND_MODE_ADD" value="1"> - Use additive blending equation, often used for particle effects such as fire or light decals. - </constant> - <constant name="SHADE_MODEL_CUSTOM_3" value="7"> - </constant> - <constant name="HINT_OPAQUE_PRE_PASS" value="1"> - </constant> - <constant name="FLAG_ONTOP" value="4"> - </constant> - <constant name="BLEND_MODE_SUB" value="2"> - Use substractive blending equation, often used for some smoke effects or types of glass. - </constant> - <constant name="FLAG_INVERT_FACES" value="2"> - Front facing and back facing order is swapped when this flag is enabled. - </constant> - </constants> -</class> -<class name="MenuButton" inherits="Button" category="Nodes/GUI Nodes"> - <brief_description> - Special button that brings up a [PopupMenu] when clicked. - </brief_description> - <description> - Special button that brings up a [PopupMenu] when clicked. That's pretty much all it does, as it's just a helper class when bulding GUIs. - </description> - <methods> - <method name="get_popup" > - <return type="Object"> - </return> - <description> - Return the [PopupMenu] contained in this button. - </description> - </method> - </methods> - <signals> - <signal name="about_to_show"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Mesh" inherits="Resource" category="Resources"> - <brief_description> - A [Resource] that contains vertex-array based geometry. - </brief_description> - <description> - Mesh is a type of [Resource] that contains vertex-array based geometry, divided in [html i]surfaces[html /i]. Each surface contains a completely separate array and a material used to draw it. Design wise, a mesh with multiple surfaces is prefered to a single surface, because objects created in 3D editing software commonly contain multiple materials. - </description> - <methods> - <method name="add_morph_target" > - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_morph_target_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_morph_target" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="index" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_morph_targets" > - <description> - </description> - </method> - <method name="add_surface" > - <argument index="0" name="primitive" type="int"> - </argument> - <argument index="1" name="format" type="int"> - </argument> - <argument index="2" name="array_len" type="int"> - </argument> - <argument index="3" name="index_array_len" type="int"> - </argument> - <description> - Create a new surface ([method get_surface_count] will become surf_idx for this.[html br/] 			Surfaces are created to be rendered using a "primitive", which may be PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_LINE_STRIP, PRIMITIVE_LINE_LOOP, PRIMITIVE_TRIANGLES, PRIMITIVE_TRIANGLE_STRIP, PRIMITIVE_TRIANGLE_FAN. (As a note, when using indices, it is recommended to only use just points, lines or triangles).[html br/] 			The format of a surface determines which arrays it will allocate and hold, so "format" is a combination of ARRAY_FORMAT_* mask constants ORed together. ARRAY_FORMAT_VERTEX must be always present. "array_len" determines the amount of vertices in the array (not primitives!). if ARRAY_FORMAT_INDEX is in the format mask, then it means that an index array will be allocated and "index_array_len" must be passed. - </description> - </method> - <method name="get_surface_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of surfaces that the [Mesh] holds. - </description> - </method> - <method name="surface_remove" > - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Remove a surface at position surf_idx, shifting greater surfaces one surf_idx slot down. - </description> - </method> - <method name="surface_set_array" > - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="array" type="int"> - </argument> - <argument index="2" name="data" type="var"> - </argument> - <description> - Set a surface array, array must be defined in the format (see [method add_surface]), and which array being set in "data" must be indicated passing a value from the ARRAY_* enum (NOT THE ARRAY_FORMAT_ enum!!). A Mesh can't be displayed (error will be reported) if an array that is present in the format was not set. - </description> - </method> - <method name="surface_get_array" qualifiers="const" > - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="array" type="int"> - </argument> - <description> - Return a surface array, array must be defined in the format (see [method add_surface]), and which array being returned must be indicated passing a value from the ARRAY_* enum (NOT THE ARRAY_FORMAT_ enum!!) (see [method add_surface]). - </description> - </method> - <method name="surface_get_array_len" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Return the length in vertices of the vertex array in the requested surface (see [method add_surface]). - </description> - </method> - <method name="surface_get_array_index_len" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Return the length in indices of the index array in the requested surface (see [method add_surface]). - </description> - </method> - <method name="surface_get_format" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Return the format mask of the requested surface (see [method add_surface]). - </description> - </method> - <method name="surface_get_primitive_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Return the primitive type of the requested surface (see [method add_surface]). - </description> - </method> - <method name="surface_set_material" > - <argument index="0" name="surf_idx" type="int"> - </argument> - <argument index="1" name="arg1" type="Object"> - </argument> - <description> - Set a [Material] for a given surface. Surface will be rendered using this material. - </description> - </method> - <method name="surface_get_material" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="surf_idx" type="int"> - </argument> - <description> - Return a [Material] in a given surface. Surface is rendered using this material. - </description> - </method> - </methods> - <constants> - <constant name="PRIMITIVE_LINES" value="1"> - Render array as lines (every two vertices a line is created). - </constant> - <constant name="ARRAY_FORMAT_TEX_UV2" value="32"> - </constant> - <constant name="ARRAY_TEX_UV2" value="5"> - </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4"> - Amount of weights/bone indices per vertex (always 4). - </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> - Array format will include vertices (mandatory). - </constant> - <constant name="ARRAY_VERTEX" value="0"> - Vertex array (array of [Vector3]() vertices). - </constant> - <constant name="PRIMITIVE_POINTS" value="0"> - Render array as points (one vertex equals one point). - </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> - Array format will include bone indices. - </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> - Array format will include a color array. - </constant> - <constant name="ARRAY_BONES" value="6"> - Array of bone indices, as a float array. Each element in groups of 4 floats. - </constant> - <constant name="ARRAY_COLOR" value="3"> - Vertex array (array of [Color]() colors). - </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> - Index array will be used. - </constant> - <constant name="ARRAY_INDEX" value="8"> - Array of integers, used as indices referencing vertices. No index can be beyond the vertex array size. - </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> - Render array as triangle strips. - </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> - Array format will include tangents - </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> - Array format will include normals - </constant> - <constant name="ARRAY_TANGENT" value="2"> - 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_NORMAL" value="1"> - Normal array (array of [Vector3]() normals). - </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> - Render array as triangles (every three vertices a triangle is created). - </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> - Render array as line loop (like line strip, but closed). - </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> - Render array as line strip. - </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> - Array format will include bone weights. - </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> - Array format will include UVs. - </constant> - <constant name="ARRAY_WEIGHTS" value="7"> - Array of bone weights, as a float array. Each element in groups of 4 floats. - </constant> - <constant name="ARRAY_TEX_UV" value="4"> - UV array (array of [Vector3]() UVs or float array of groups of 2 floats (u,v)). - </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> - Render array as triangle fans. - </constant> - <constant name="NO_INDEX_ARRAY" value="-1"> - Default value used for index_array_len when no indices are present. - </constant> - </constants> -</class> -<class name="MeshInstance" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - Node that instances meshes into a [Scenario]. - </brief_description> - <description> - MeshInstance is a [Node] that takes a [Mesh] resource and adds it to the current [Scenario] by creating an instance of it. This is the class most often used to get 3D geometry rendered and can be used to instance a sigle [Mesh] in many places. This allows to reuse geometry and save on resources. When a [Mesh] has to be instanced more than thousands of times at close proximity, consider using a [MultiMesh] in a [MultiMeshInstance] instead. - </description> - <methods> - <method name="set_mesh" > - <argument index="0" name="mesh" type="Object"> - </argument> - <description> - Set the [Mesh] resource for the instance. - </description> - </method> - <method name="get_mesh" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the current [Mesh] resource for the instance. - </description> - </method> - <method name="get_aabb" qualifiers="const" > - <return type="AABB"> - </return> - <description> - Return the AABB of the mesh, in local coordinates. - </description> - </method> - <method name="create_trimesh_collision" > - <description> - This helper creates a [StaticBody] child [Node] using the mesh geometry as collision. It's mainly used for testing. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Misc" inherits="Node" category="Core"> - <brief_description> - Soon to be removed, bye bye. - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="MultiMesh" inherits="Resource" category="Resources"> - <brief_description> - Provides high perfomance mesh instancing. - </brief_description> - <description> - MultiMesh provides low level mesh instancing. If the amount of [Mesh] instances needed goes from hundreds to thousands (and most need to be visible at close proximity) creating such a large amount of [MeshInstance] nodes may affect performance by using too much CPU or video memory. [html br/]For this case a MultiMesh becomes very useful, as it can draw thousands of instances with little API overhead.[html br/] As a drawback, if the instances are too far away of each other, performance may be reduced as every sigle instance will always rendered (they are spatially indexed as one, for the whole object).[html br/] Since instances may have any behavior, the AABB used for visibility must be provided by the user, or generated with [method generate_aabb]. - </description> - <methods> - <method name="set_mesh" > - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - Set the [Mesh] resource to be drawn in multiple instances. - </description> - </method> - <method name="get_mesh" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the [Mesh] resource drawn as multiple instances. - </description> - </method> - <method name="set_instance_count" > - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Set the amount of instnces that is going to be drawn. Changing this number will erase all the existing instance transform and color data. - </description> - </method> - <method name="get_instance_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of instnces that is going to be drawn. - </description> - </method> - <method name="set_instance_transform" > - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - Set the transform for a specific instance. - </description> - </method> - <method name="get_instance_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Return the transform of a specific instance. - </description> - </method> - <method name="set_instance_color" > - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="Color"> - </argument> - <description> - Set the color of a specific instance. - </description> - </method> - <method name="get_instance_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Get the color of a specific instance. - </description> - </method> - <method name="set_aabb" > - <argument index="0" name="arg0" type="AABB"> - </argument> - <description> - Set the visibility AABB. If not provided, MultiMesh will not be visible. - </description> - </method> - <method name="get_aabb" qualifiers="const" > - <return type="AABB"> - </return> - <description> - Return the visibility AABB. - </description> - </method> - <method name="generate_aabb" > - <description> - Generate a new visibility AABB, using mesh AABB and instance transforms. Since instance information is stored in the [VisualServer], this function is VERY SLOW and must NOT be used often. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="MultiMeshInstance" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - Node that instances a [MultiMesh]. - </brief_description> - <description> - MultiMeshInstance is a [Node] that takes a [MultiMesh] resource and adds it to the current [Scenario] by creating an instance of it (yes, this is an instance of instances). - </description> - <methods> - <method name="set_multimesh" > - <argument index="0" name="multimesh" type="Object"> - </argument> - <description> - Set the [MultiMesh] to be instance. - </description> - </method> - <method name="get_multimesh" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the [MultiMesh] that is used for instancing. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Node" inherits="Object" category="Nodes"> - <brief_description> - Base class for all the "Scene" elements. - </brief_description> - <description> - Nodes can be set as children of other nodes, resulting in a tree arrangement. Any tree of nodes is called a "Scene".[html br/] Scenes can be saved to disk, and then instanced into other scenes. This allows for very high flexibility in the architecture and data model of the projects. Scenes become "active" and part of the "Scene Tree" once they are added as children of a [RootNode].[html br/][html br/] 	As an illustrative example, a Scene (tree of nodes): 	[html div align="center"][html img src="images/scene.png"/][html /div] 	This scene will was edited separatedly, then is added as part of a game (by instancing it), becoming part of a "Scene Tree": 	[html div align="center"][html img src="images/scene_tree.png"/][html /div] 	In short, nodes are an effective all-in-one way to create and organize assets, gameplay and game data. 	When a Node is freed (deleted), it will delete all its children 	nodes. 	TODO: explain better process/signal/group call ordering - </description> - <methods> - <method name="set_name" > - <argument index="0" name="name" type="String"> - </argument> - <description> - Set the name of the [Node]. Name must be unique within parent, and setting an already existing name will cause for the node to be automatically renamed. - </description> - </method> - <method name="get_name" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the name of the [Node]. Name is be unique within parent. - </description> - </method> - <method name="add_child" > - <argument index="0" name="node" type="Node"> - </argument> - <description> - Add a child [Node]. Nodes can have as many children as they want, but every child must have a unique name. Children nodes are automatically deleted when the parent node is deleted, so deleting a whole scene is performed by deleting its topmost node. - </description> - </method> - <method name="remove_child" > - <argument index="0" name="node" type="Node"> - </argument> - <description> - Remove a child [Node]. Node is NOT deleted and will have to be deleted manually. - </description> - </method> - <method name="get_child_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of children nodes. - </description> - </method> - <method name="get_child" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return a children node by it's index (see [method get_child_count]). This method is often used for iterating all children of a node. - </description> - </method> - <method name="has_node" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - </description> - </method> - <method name="get_node" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="path" type="NodePath"> - </argument> - <description> - Fetch a node. "path" must be valid (or else error will occur) and can be either the name of a child node, a relative path (from the current node to another node), or an absolute path to a node.[html br/] Examples ofa paths are: get_node("Sword") , get_node("../Swamp/Alligator") , get_node("/MyGame"). [html br/]Note: fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). - </description> - </method> - <method name="get_parent" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. - </description> - </method> - <method name="is_inside_scene" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="is_a_parent_of" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - Return [html i]true[html /i] if the "node" argument is a direct or indirect child of the current node, otherwise return [html i]false[html /i]. - </description> - </method> - <method name="is_greater_than" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - Return [html i]true[html /i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [html i]false[html /i]. - </description> - </method> - <method name="get_path" qualifiers="const" > - <return type="NodePath"> - </return> - <description> - Return the absolute path of the current node. This only works if the curent node is inside the scene tree (see [method is_inside_tree]). - </description> - </method> - <method name="get_path_to" qualifiers="const" > - <return type="NodePath"> - </return> - <argument index="0" name="node" type="Node"> - </argument> - <description> - Return the relative path from the current node to the specified node in "node" argument. Both nodes must be in the same scene, or else the function will fail. - </description> - </method> - <method name="add_to_group" > - <argument index="0" name="group" type="String"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - Add a node to a group. Groups are helpers to name and organize group of nodes, like for example: "Enemies" "Collectables", etc. A [Node] can be in any number of groups. Nodes can be assigned a group at any time, but will not be added to it until they are inside the scene tree (see [method is_inside_tree]). - </description> - </method> - <method name="remove_from_group" > - <argument index="0" name="group" type="String"> - </argument> - <description> - Remove a node from a group. - </description> - </method> - <method name="move_child" > - <argument index="0" name="child_node" type="Node"> - </argument> - <argument index="1" name="to_pos" type="int"> - </argument> - <description> - Move a child node to a different position (order) amongst the other children. Since calls, signals, etc are performed by tree order, changing the order of chilren nodes may be useful. - </description> - </method> - <method name="raise" > - <description> - Move this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree. - </description> - </method> - <method name="set_owner" > - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - Set the node owner. A node can have any other node as owner (as long as a valid parent, grandparent, etc ascending in the tree). When saving a node (using SceneSaver) all the nodes it owns will be saved with it. This allows to create complex SceneTrees, with instancing and subinstancing. - </description> - </method> - <method name="get_owner" qualifiers="const" > - <return type="Object"> - </return> - <description> - Get the node owner (see [method set_node_owner]). - </description> - </method> - <method name="remove_and_skip" > - <description> - Remove a node and set all its children as childrens of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed. - </description> - </method> - <method name="get_index" qualifiers="const" > - <return type="int"> - </return> - <description> - Get the node index in the parent (assuming it has a parent). - </description> - </method> - <method name="print_tree" > - <description> - Print the screne to stdout. Used mainly for debugging purposes. - </description> - </method> - <method name="set_filename" > - <argument index="0" name="filename" type="String"> - </argument> - <description> - A node can contain a filename. This filename should not be changed by the user, unless writing editors and tools. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded. - </description> - </method> - <method name="get_filename" qualifiers="const" > - <return type="String"> - </return> - <description> - Return a filename that may be containedA node can contained by the node. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded (see [method set_filename]). - </description> - </method> - <method name="propagate_notification" > - <argument index="0" name="what" type="int"> - </argument> - <description> - Notify the current node and all its chldren recursively by calling notification() in all of them. - </description> - </method> - <method name="set_process" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Enables or disables node processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS on every frame. It is common to check how much time was elapsed since the previous frame by calling [method get_process_time]. If the application is set to run at 60 fps, NOTIFICATION_PROCESS will be received 60 times per second (even if the visuals are running at faster or lower fps). Because of this, nodes that wish to do processing are recommended to use [method set_idle_process] instead, unless strong syncronization is requiered (for example, to modify the behavior of physics objects). - </description> - </method> - <method name="get_process_time" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the amount of time elapsed (in seconds) between two succesive NOTIFICATION_PROCESS notifications. - </description> - </method> - <method name="is_processing" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether processing is enabled in the current node. - </description> - </method> - <method name="set_idle_process" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Enables or disables node idle processing. When a node is being idle-processed, it will receive a NOTIFICATION_IDLE_PROCESS when idle. It is common to check how much time was elapsed since the previous idle time by calling [method get_idle_process_time]. Idle processing is commonly syncronized to [VisualServer] being done rendering a frame, so this type of processing is syncronized to the visible frames per second. To syncronize with the desired frames per second, see [method set_process] instead. - </description> - </method> - <method name="get_idle_process_time" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the amount of time elapsed (in seconds) between two succesive NOTIFICATION_IDLE_PROCESS notifications. - </description> - </method> - <method name="is_idle_processing" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether idle processing is enabled in the current node. - </description> - </method> - <method name="set_process_input" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_processing_input" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_process_unhandled_input" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_processing_unhandled_input" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_process_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_process_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_world" > - <argument index="0" name="world" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_world" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_current_world" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_scene" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="duplicate" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="arg0" type="Object"> - </argument> - <argument index="1" name="arg1" type="bool" default="NULL"> - </argument> - <description> - Return a duplicate of the scene, with all nodes and parameters copied. Subscriptions will not be duplicated. - </description> - </method> - <method name="replace_by" > - <argument index="0" name="node" type="Node"> - </argument> - <argument index="1" name="keep_data" type="bool" default="false"> - </argument> - <description> - Replace a node in a scene by a given one. Subscriptions that pass through this node will be lost. - </description> - </method> - </methods> - <signals> - <signal name="enter_scene"> - <description> - </description> - </signal> - <signal name="renamed"> - <description> - </description> - </signal> - <signal name="exit_scene"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="NOTIFICATION_ENTER_WORLD" value="20"> - </constant> - <constant name="PROCESS_PAUSE" value="1"> - </constant> - <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_CHILDREN_CONFIGURED" value="14"> - </constant> - <constant name="NOTIFICATION_PROCESS" value="16"> - Notification received every frame when the process flag is set (see [method set_process]). - </constant> - <constant name="NOTIFICATION_EXIT_SCENE" value="11"> - </constant> - <constant name="PROCESS_ALWAYS" value="2"> - </constant> - <constant name="PROCESS_NORMAL" value="0"> - </constant> - <constant name="NOTIFICATION_EXIT_WORLD" value="21"> - </constant> - <constant name="NOTIFICATION_MOVED_IN_PARENT" value="12"> - </constant> - <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_ENTER_SCENE" value="10"> - </constant> - <constant name="NOTIFICATION_IDLE_PROCESS" value="17"> - Notification received every time the application enters idle when the idle process flag is set (see [method set_process]). - </constant> - </constants> -</class> -<class name="Node2D" inherits="CanvasItem" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_pos" > - <argument index="0" name="pos" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="set_rot" > - <argument index="0" name="rot" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_scale" > - <argument index="0" name="scale" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_rot" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_scale" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_DRAW" value="30"> - </constant> - </constants> -</class> -<class name="_OS" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_mouse_show" > - <argument index="0" name="show" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_mouse_grab" > - <argument index="0" name="grab" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_mouse_grab_enabled" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_mouse_pos" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_clipboard" > - <argument index="0" name="clipboard" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_clipboard" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_video_mode" > - <argument index="0" name="size" type="Vector2"> - </argument> - <argument index="1" name="fullscreen" type="bool"> - </argument> - <argument index="2" name="resizable" type="bool"> - </argument> - <argument index="3" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_video_mode_size" qualifiers="const" > - <return type="Vector2"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="is_video_mode_fullscreen" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="is_video_mode_resizable" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_fullscreen_mode_list" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="screen" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_iterations_per_second" > - <argument index="0" name="iterations_per_second" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_iterations_per_second" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_low_processor_usage_mode" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_in_low_processor_usage_mode" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_executable_path" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="execute" > - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="arguments" type="StringArray"> - </argument> - <argument index="2" name="blocking" type="bool"> - </argument> - <description> - </description> - </method> - <method name="kill" > - <return type="int"> - </return> - <argument index="0" name="pid" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_environment" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="environment" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_environment" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="environment" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_name" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_cmdline_args" > - <return type="StringArray"> - </return> - <description> - </description> - </method> - <method name="get_main_loop" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_date" qualifiers="const" > - <return type="Dictionary"> - </return> - <description> - </description> - </method> - <method name="get_time" qualifiers="const" > - <return type="Dictionary"> - </return> - <description> - </description> - </method> - <method name="delay_usec" qualifiers="const" > - <argument index="0" name="usec" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_ticks_msec" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="can_draw" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_frames_drawn" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="is_stdout_verbose" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="MONTH_NOVEMBER" value="10"> - </constant> - <constant name="MONTH_OCTOBER" value="9"> - </constant> - <constant name="MONTH_DECEMBER" value="11"> - </constant> - <constant name="MONTH_SEPTEMBER" value="8"> - </constant> - <constant name="MONTH_MAY" value="4"> - </constant> - <constant name="DAY_FRIDAY" value="5"> - </constant> - <constant name="DAY_TUESDAY" value="2"> - </constant> - <constant name="MONTH_APRIL" value="3"> - </constant> - <constant name="MONTH_FEBRUARY" value="1"> - </constant> - <constant name="DAY_MONDAY" value="1"> - </constant> - <constant name="MONTH_AUGUST" value="7"> - </constant> - <constant name="MONTH_JUNE" value="5"> - </constant> - <constant name="MONTH_JANUARY" value="0"> - </constant> - <constant name="MONTH_MARCH" value="2"> - </constant> - <constant name="MONTH_JULY" value="6"> - </constant> - <constant name="DAY_THURSDAY" value="4"> - </constant> - <constant name="DAY_WEDNESDAY" value="3"> - </constant> - <constant name="DAY_SUNDAY" value="0"> - </constant> - <constant name="DAY_SATURDAY" value="6"> - </constant> - </constants> -</class> -<class name="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_type" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="is_type" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="set" > - <argument index="0" name="property" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get" qualifiers="const" > - <argument index="0" name="property" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_property_list" qualifiers="const" > - <return type="Array"> - </return> - <description> - </description> - </method> - <method name="notification" > - <argument index="0" name="what" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="get_instance_ID" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_script" > - <argument index="0" name="script" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_script" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_meta" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_meta" qualifiers="const" > - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_meta" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_meta_list" qualifiers="const" > - <return type="StringArray"> - </return> - <description> - </description> - </method> - <method name="call" > - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="arg1" type="var" default="NULL"> - </argument> - <argument index="2" name="arg2" type="var" default="NULL"> - </argument> - <argument index="3" name="arg3" type="var" default="NULL"> - </argument> - <argument index="4" name="arg4" type="var" default="NULL"> - </argument> - <description> - </description> - </method> - <method name="call_deferred" > - <argument index="0" name="method" type="String"> - </argument> - <argument index="1" name="arg1" type="var" default="NULL"> - </argument> - <argument index="2" name="arg2" type="var" default="NULL"> - </argument> - <argument index="3" name="arg3" type="var" default="NULL"> - </argument> - <argument index="4" name="arg4" type="var" default="NULL"> - </argument> - <description> - </description> - </method> - <method name="add_user_signal" > - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="arguments" type="Array" default="Array()"> - </argument> - <description> - </description> - </method> - <method name="emit_signal" > - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="arguments" type="Array" default="Array()"> - </argument> - <description> - </description> - </method> - <method name="get_signal_list" qualifiers="const" > - <return type="Array"> - </return> - <description> - </description> - </method> - <method name="connect" > - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <argument index="3" name="binds" type="Array" default="Array()"> - </argument> - <argument index="4" name="flags" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="disconnect" > - <argument index="0" name="signal" type="String"> - </argument> - <argument index="1" name="target" type="Object"> - </argument> - <argument index="2" name="method" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_block_signals" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_blocking_signals" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_POSTINITIALIZE" value="0"> - </constant> - <constant name="NOTIFICATION_PREDELETE" value="1"> - </constant> - </constants> -</class> -<class name="OmniLight" inherits="Light" category="Nodes/3D/3D Visual Nodes/3D Light Nodes"> - <brief_description> - OmniDirectional Light, such as a lightbulb or a candle. - </brief_description> - <description> - An OmniDirectional light is a type of [Light] node that emits lights in all directions. The light is attenuated through the distance and this attenuation can be configured by changing the energy, radius and attenuation parameters of [Light]. TODO: Image of an omnilight. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="OptionButton" inherits="Button" category="Nodes/GUI Nodes"> - <brief_description> - Button control that provides selectable options when pressed. - </brief_description> - <description> - OptionButton is a type button that provides a selectable list of items when pressed. The item selected becomes the "current" item and is displayed as the button text. - </description> - <methods> - <method name="add_item" > - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <description> - Add an item, with text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. - </description> - </method> - <method name="add_icon_item" > - <argument index="0" name="texture" type="Object"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int"> - </argument> - <description> - Add an item, with a "texture" icon, text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. - </description> - </method> - <method name="set_item_text" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - Set the text of an item at index "idx". - </description> - </method> - <method name="set_item_icon" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="texture" type="Object"> - </argument> - <description> - Set the icon of an item at index "idx". - </description> - </method> - <method name="set_item_disabled" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="disabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_ID" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - Set the ID of an item at index "idx". - </description> - </method> - <method name="set_item_metadata" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_item_text" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the text of the item at index "idx". - </description> - </method> - <method name="get_item_icon" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the icon of the item at index "idx". - </description> - </method> - <method name="get_item_ID" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the ID of the item at index "idx". - </description> - </method> - <method name="get_item_metadata" qualifiers="const" > - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_item_disabled" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of items in the OptionButton. - </description> - </method> - <method name="add_separator" > - <description> - Add a separator to the list of items. Separators help to group items. Separator also takes up an index and is appended at the end. - </description> - </method> - <method name="clear" > - <description> - Clear all the items in the [OptionButton]. - </description> - </method> - <method name="select" > - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Select an item by index and make it the current item. - </description> - </method> - <method name="get_selected" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the current item index - </description> - </method> - <method name="get_selected_ID" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selected_metadata" qualifiers="const" > - <description> - </description> - </method> - </methods> - <signals> - <signal name="item_selected"> - <argument index="0" name="ID" type="int"> - </argument> - <description> - This signal is emitted when the current item was changed by the user. ID of the item selected is passed as argument (if no IDs were added, ID will be just the item index). - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="PacketPeer" inherits="Object" category="Core"> - <brief_description> - Abstraction and base class for packet-based protocols. - </brief_description> - <description> - PacketPeer is an abstration and base class for packet-based protocols (such as UDP). It provides an API for sending and receiving packets both as raw data or variables. This makes it easy to transfer data over a protocol, without having to encode data as low level bytes or having to worry about network ordering. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PacketPeerStream" inherits="PacketPeer" category="Core"> - <brief_description> - Wrapper to use a PacketPeer over a StreamPeer. - </brief_description> - <description> - PacketStreamPeer provides a wrapper for working using packets over a stream. This allows for using packet based code with StreamPeers. PacketPeerStream implements a custom protocol over the StreamPeer, so the user should not read or write to the wrapped StreamPeer directly. - </description> - <methods> - <method name="set_stream_peer" > - <argument index="0" name="peer" type="Object"> - </argument> - <description> - Set the StreamPeer object to be wrapped - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Panel" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - Provides an opaque background for [Control] children. - </brief_description> - <description> - Panel is a [Control] that displays an opaque background. It's commoly used as a parent and container for other types of [Control] nodes. 	[html div align="center"][html img src="images/panel_example.png"/][html /div] - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Particles" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - Particle system 3D Node - </brief_description> - <description> - Particles is a particle system 3D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). - </description> - <methods> - <method name="set_amount" > - <argument index="0" name="amount" type="int"> - </argument> - <description> - Set total amount of particles in the system. - </description> - </method> - <method name="get_amount" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the total amount of particles in the system. - </description> - </method> - <method name="set_emitting" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - Set the "emitting" property state. When emitting, the particle system generates new particles at constant rate. - </description> - </method> - <method name="is_emitting" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return the "emitting" property state (see [method set_emitting]). - </description> - </method> - <method name="set_visibility_aabb" > - <argument index="0" name="aabb" type="AABB"> - </argument> - <description> - Set the visibility AABB for the particle system, since the default one will not work properly most of the time. - </description> - </method> - <method name="get_visibility_aabb" qualifiers="const" > - <return type="AABB"> - </return> - <description> - Return the current visibility AABB. - </description> - </method> - <method name="set_emission_half_extents" > - <argument index="0" name="half_extents" type="Vector3"> - </argument> - <description> - Set the half extents for the emission box. - </description> - </method> - <method name="get_emission_half_extents" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - Return the half extents for the emission box. - </description> - </method> - <method name="set_emission_points" > - <argument index="0" name="points" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="get_emission_points" qualifiers="const" > - <return type="Vector3Array"> - </return> - <description> - </description> - </method> - <method name="set_gravity_normal" > - <argument index="0" name="normal" type="Vector3"> - </argument> - <description> - Set the normal vector towards where gravity is pulling (by default, negative Y). - </description> - </method> - <method name="get_gravity_normal" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - Return the normal vector towards where gravity is pulling (by default, negative Y). - </description> - </method> - <method name="set_variable" > - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - Set a specific variable for the particle system (see VAR_* enum). - </description> - </method> - <method name="get_variable" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="variable" type="int"> - </argument> - <description> - Return a specific variable for the particle system (see VAR_* enum). - </description> - </method> - <method name="set_randomness" > - <argument index="0" name="variable" type="int"> - </argument> - <argument index="1" name="randomness" type="real"> - </argument> - <description> - Set the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. - </description> - </method> - <method name="get_randomness" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Return the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. - </description> - </method> - <method name="set_color_phase_pos" > - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="pos" type="real"> - </argument> - <description> - Set the position of a color phase (0 to 1) - </description> - </method> - <method name="get_color_phase_pos" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - Return the position of a color phase (0 to 1) - </description> - </method> - <method name="set_color_phase_color" > - <argument index="0" name="phase" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - Set the color of a color phase. - </description> - </method> - <method name="get_color_phase_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="phase" type="int"> - </argument> - <description> - Return the color of a color phase. - </description> - </method> - <method name="set_material" > - <argument index="0" name="material" type="Object"> - </argument> - <description> - Set the material used to draw particles - </description> - </method> - <method name="get_material" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the material used to draw particles - </description> - </method> - <method name="set_emit_timeout" > - <argument index="0" name="arg0" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_emit_timeout" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_height_from_velocity" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_height_from_velocity" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_color_phases" > - <argument index="0" name="count" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_color_phases" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="VAR_FINAL_SIZE" value="9"> - </constant> - <constant name="VAR_INITIAL_SIZE" value="8"> - </constant> - <constant name="VAR_LINEAR_ACCELERATION" value="5"> - </constant> - <constant name="VAR_MAX" value="13"> - </constant> - <constant name="VAR_DRAG" value="6"> - </constant> - <constant name="VAR_GRAVITY" value="2"> - </constant> - <constant name="VAR_SPREAD" value="1"> - </constant> - <constant name="VAR_LIFETIME" value="0"> - </constant> - <constant name="VAR_HEIGHT_SPEED_SCALE" value="12"> - </constant> - <constant name="VAR_INITIAL_ANGLE" value="10"> - </constant> - <constant name="VAR_TANGENTIAL_ACCELERATION" value="7"> - </constant> - <constant name="VAR_ANGULAR_VELOCITY" value="4"> - </constant> - <constant name="VAR_HEIGHT" value="11"> - </constant> - <constant name="VAR_LINEAR_VELOCITY" value="3"> - </constant> - </constants> -</class> -<class name="Particles2D" inherits="Node2D" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_emitting" > - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_emitting" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_amount" > - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_amount" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_lifetime" > - <argument index="0" name="lifetime" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_lifetime" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_param" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_randomness" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_randomness" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_emissor_offset" > - <argument index="0" name="offset" type="Vector2"> - </argument> - <description> - </description> - </method> - <method name="get_emissor_offset" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="set_initial_color" > - <argument index="0" name="initial_color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_initial_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_final_color" > - <argument index="0" name="final_color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_final_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_use_parent_space" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_parent_space" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="PARAM_FINAL_SIZE" value="9"> - </constant> - <constant name="PARAM_INITIAL_SIZE" value="8"> - </constant> - <constant name="PARAM_RADIAL_ACCEL" value="6"> - </constant> - <constant name="PARAM_GRAVITY_STRENGTH" value="5"> - </constant> - <constant name="PARAM_MAX" value="11"> - </constant> - <constant name="PARAM_HUE_VARIATION" value="10"> - </constant> - <constant name="PARAM_TANGENTIAL_ACCEL" value="7"> - </constant> - <constant name="PARAM_GRAVITY_DIRECTION" value="4"> - </constant> - <constant name="PARAM_SPREAD" value="1"> - </constant> - <constant name="PARAM_SPIN_VELOCITY" value="3"> - </constant> - <constant name="PARAM_LINEAR_VELOCITY" value="2"> - </constant> - <constant name="PARAM_DIRECTION" value="0"> - </constant> - </constants> -</class> -<class name="PhysicsBody" inherits="Spatial" category="Nodes/3D"> - <brief_description> - Base class for differnt types of Physics bodies. - </brief_description> - <description> - PhysicsBody is an abstract base class for implementing a physics body. All PhysicsBody types inherit from it. - </description> - <methods> - <method name="add_shape" > - <argument index="0" name="shape" type="Object"> - </argument> - <argument index="1" name="transform" type="Transform" default="Transform()"> - </argument> - <description> - </description> - </method> - <method name="get_shape_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_shape" > - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="shape" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_shape_transform" > - <argument index="0" name="shape_idx" type="int"> - </argument> - <argument index="1" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_shape" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_shape_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="remove_shape" > - <argument index="0" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="clear_shapes" > - <description> - </description> - </method> - <method name="get_body" qualifiers="const" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="set_max_contacts_reported" > - <argument index="0" name="contacts" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_max_contacts_reported" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_contacts_reported_depth_treshold" > - <argument index="0" name="depth" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_contacts_reported_depth_treshold" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsDirectBodyState" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_total_gravity" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="get_total_density" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_mass" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_inverse_inertia_tensor" qualifiers="const" > - <return type="Matrix3"> - </return> - <description> - </description> - </method> - <method name="set_linear_velocity" > - <argument index="0" name="velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_linear_velocity" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_angular_velocity" > - <argument index="0" name="velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="get_angular_velocity" qualifiers="const" > - <return type="Vector3"> - </return> - <description> - </description> - </method> - <method name="set_transform" > - <argument index="0" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_transform" qualifiers="const" > - <return type="Transform"> - </return> - <description> - </description> - </method> - <method name="set_sleep_state" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_sleeping" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_contact_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_contact_local_pos" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_normal" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_local_shape" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_pos" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_id" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_shape" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_contact_collider_velocity_at_pos" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="contact_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsDirectBodyStateSW" inherits="PhysicsDirectBodyState" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PhysicsServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="shape_create" > - <return type="RID"> - </return> - <argument index="0" name="shape_type" type="int"> - </argument> - <description> - </description> - </method> - <method name="shape_set_data" > - <argument index="0" name="shape" type="RID"> - </argument> - <argument index="1" name="data" type="var"> - </argument> - <argument index="2" name="margin" type="real" default="-1"> - </argument> - <description> - </description> - </method> - <method name="shape_get_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shape_get_data" qualifiers="const" > - <argument index="0" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="space_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="area_create" > - <return type="RID"> - </return> - <argument index="0" name="space" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="area_set_param" > - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="area_set_shape" > - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_set_bounds" > - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="bounds" type="Dictionary"> - </argument> - <description> - </description> - </method> - <method name="area_set_transform" > - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="area_get_param" qualifiers="const" > - <argument index="0" name="area" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="area_get_shape" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_bounds" qualifiers="const" > - <return type="Dictionary"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="area_get_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_create" > - <return type="RID"> - </return> - <argument index="0" name="space" type="int"> - </argument> - <argument index="1" name="arg1" type="bool" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="body_set_mode" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_add_shape" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="transform" type="Transform" default="Transform()"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="shape" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_shape_transform" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <argument index="2" name="transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_shape_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="shape_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_attach_object_instance_ID" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="ID" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_object_instance_ID" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_user_flags" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="user_flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_get_user_flags" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_set_param" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <argument index="2" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="body_get_param" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_static_simulate_motion" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="motion" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="body_set_state" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="body_get_state" qualifiers="const" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="state" type="int"> - </argument> - <description> - </description> - </method> - <method name="body_set_applied_force" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="applied_force" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_get_applied_force" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_applied_torque" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="applied_torque" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_get_applied_torque" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_set_axis_velocity" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="axis_velocity" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_apply_impulse" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector3"> - </argument> - <argument index="2" name="impulse" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="body_add_collision_exception" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="against_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="body_remove_collision_exception" > - <argument index="0" name="body" type="RID"> - </argument> - <argument index="1" name="against_body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_create" > - <return type="RID"> - </return> - <argument index="0" name="receiver" type="Object"> - </argument> - <argument index="1" name="callback" type="String"> - </argument> - <argument index="2" name="userdata" type="var"> - </argument> - <argument index="3" name="persist" type="bool" default="true"> - </argument> - <description> - </description> - </method> - <method name="query_body_state" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_body_direct_state" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="body" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_area" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="area" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_intersection" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="space" type="RID"> - </argument> - <argument index="2" name="exclude" type="Array" default="Array()"> - </argument> - <argument index="3" name="usermask" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_ray" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="origin" type="Vector3"> - </argument> - <argument index="2" name="dir" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_segment" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="from" type="Vector3"> - </argument> - <argument index="2" name="to" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_shape" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="shape" type="RID"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="query_intersection_bounds" > - <argument index="0" name="query" type="RID"> - </argument> - <argument index="1" name="bounds" type="Dictionary"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="query_clear" > - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="query_get_target" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="query" type="RID"> - </argument> - <description> - </description> - </method> - <method name="free" > - <argument index="0" name="rid" type="RID"> - </argument> - <description> - </description> - </method> - <method name="set_active" > - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="QUERY_BODY_STATE" value="1"> - </constant> - <constant name="BODY_PARAM_FRICTION" value="1"> - </constant> - <constant name="AREA_PARAM_OVERRIDE_PARAMS" value="0"> - </constant> - <constant name="SHAPE_CUSTOM" value="9"> - </constant> - <constant name="QUERY_INTERSECTION" value="4"> - </constant> - <constant name="BODY_STATE_SLEEPING" value="3"> - </constant> - <constant name="QUERY_AREA_MONITOR" value="3"> - </constant> - <constant name="QUERY_BODY_DIRECT_STATE" value="2"> - </constant> - <constant name="QUERY_NONE" value="0"> - </constant> - <constant name="CONE_TWIST_VAR_RELAXATION" value="4"> - </constant> - <constant name="CONE_TWIST_VAR_BIAS" value="3"> - </constant> - <constant name="CONE_TWIST_VAR_SWING_SPAN_LIMIT_1" value="0"> - </constant> - <constant name="HINGE_VAR_MOTOR_ENABLED" value="5"> - </constant> - <constant name="HINGE_VAR_LIMIT_SOFTNESS" value="3"> - </constant> - <constant name="HINGE_VAR_ANGULAR_ONLY" value="0"> - </constant> - <constant name="BODY_STATE_ANGULAR_VELOCITY" value="2"> - </constant> - <constant name="SHAPE_CAPSULE" value="5"> - </constant> - <constant name="CONE_TWIST_VAR_SWING_SPAN_LIMIT_2" value="1"> - </constant> - <constant name="BODY_STATE_LINEAR_VELOCITY" value="1"> - </constant> - <constant name="BODY_MODE_CHARACTER" value="2"> - </constant> - <constant name="AREA_PARAM_GRAVITY" value="1"> - </constant> - <constant name="SHAPE_CONCAVE_POLYGON" value="7"> - </constant> - <constant name="TYPE_BODY" value="0"> - </constant> - <constant name="HINGE_VAR_MOTOR_TARGET_VELOCITY" value="6"> - </constant> - <constant name="HINGE_VAR_HIGHER_LIMIT" value="2"> - </constant> - <constant name="SHAPE_HEIGHTMAP" value="8"> - </constant> - <constant name="SHAPE_SPHERE" value="2"> - </constant> - <constant name="CONE_TWIST_VAR_TWIST_SPAN_LIMIT" value="2"> - </constant> - <constant name="BODY_MODE_RIGID" value="1"> - </constant> - <constant name="AREA_PARAM_DENSITY" value="5"> - </constant> - <constant name="AREA_PARAM_GRAVITY_VECTOR" value="2"> - </constant> - <constant name="SHAPE_PLANE" value="0"> - </constant> - <constant name="HINGE_VAR_MOTOR_IMPULSE" value="7"> - </constant> - <constant name="HINGE_VAR_RELAXATION" value="4"> - </constant> - <constant name="HINGE_VAR_LOWER_LIMIT" value="1"> - </constant> - <constant name="BODY_STATE_TRANSFORM" value="0"> - </constant> - <constant name="BODY_PARAM_MASS" value="2"> - </constant> - <constant name="BODY_PARAM_BOUNCE" value="0"> - </constant> - <constant name="BODY_MODE_STATIC" value="0"> - </constant> - <constant name="SHAPE_BOX" value="3"> - </constant> - <constant name="TYPE_AREA" value="1"> - </constant> - <constant name="AREA_PARAM_PRIORITY" value="6"> - </constant> - <constant name="AREA_PARAM_GRAVITY_POINT_ATTENUATION" value="4"> - </constant> - <constant name="AREA_PARAM_GRAVITY_IS_POINT" value="3"> - </constant> - <constant name="SHAPE_CONVEX_POLYGON" value="6"> - </constant> - <constant name="SHAPE_CYLINDER" value="4"> - </constant> - </constants> -</class> -<class name="PhysicsServerSW" inherits="PhysicsServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PlaneShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_plane" > - <argument index="0" name="plane" type="Plane"> - </argument> - <description> - </description> - </method> - <method name="get_plane" qualifiers="const" > - <return type="Plane"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Popup" inherits="Control" category="Core"> - <brief_description> - Base container control for popups and dialogs. - </brief_description> - <description> - PopUp is a base [Control] used to show dialogs and popups. It's a subwindow and modal by default (see [Control]) and has helpers for custom popup behavior. - </description> - <methods> - <method name="popup_centered" > - <argument index="0" name="size" type="Vector2" default="Vector2(0,0)"> - </argument> - <description> - Popup (show the control in modal form) in the center of the screen, at the curent size, or at a size determined by "size". - </description> - </method> - <method name="popup_centered_ratio" > - <argument index="0" name="ratio" type="real" default="0.75"> - </argument> - <description> - Popup (show the control in modal form) in the center of the screen, scalled at a ratio of size of the screen. - </description> - </method> - <method name="popup" > - <description> - Popup (show the control in modal form). - </description> - </method> - <method name="set_exclusive" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_exclusive" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="about_to_show"> - <description> - This signal is emitted when a popup is about to be shown. (often used in [PopupMenu] for clearing the list of options and creating a new one according to the current context). - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="PopupDialog" inherits="Popup" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="PopupMenu" inherits="Popup" category="Nodes/GUI Nodes"> - <brief_description> - PopupMenu displays a list of options. - </brief_description> - <description> - PopupMenu is the typical Control that displays a list of options. They are popular in toolbars or context menus. - </description> - <methods> - <method name="add_icon_item" > - <argument index="0" name="texture" type="Object"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> - <description> - Add a new item with text "label" and icon "texture. An id can optonally be provided, as well as an accelerator. If no id is provided, one will be created from the index. - </description> - </method> - <method name="add_item" > - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> - <description> - Add a new item with text "label". An id can optonally be provided, as well as an accelerator. If no id is provided, one will be created from the index. - </description> - </method> - <method name="add_icon_check_item" > - <argument index="0" name="texture" type="Object"> - </argument> - <argument index="1" name="label" type="String"> - </argument> - <argument index="2" name="id" type="int" default="-1"> - </argument> - <argument index="3" name="accel" type="int" default="0"> - </argument> - <description> - Add a new checkable item with text "label" and icon "texture. An id can optonally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - </description> - </method> - <method name="add_check_item" > - <argument index="0" name="label" type="String"> - </argument> - <argument index="1" name="id" type="int" default="-1"> - </argument> - <argument index="2" name="accel" type="int" default="0"> - </argument> - <description> - Add a new checkable item with text "label". An id can optonally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - </description> - </method> - <method name="set_item_text" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - Set the text of the item at index "idx". - </description> - </method> - <method name="set_item_icon" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="icon" type="Object"> - </argument> - <description> - Set the icon of the item at index "idx". - </description> - </method> - <method name="set_item_accelerator" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="accel" type="int"> - </argument> - <description> - Set the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is fucused. - </description> - </method> - <method name="set_item_metadata" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="metadata" type="var"> - </argument> - <description> - </description> - </method> - <method name="set_item_checked" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - Set the checkstate status of the item at index "idx". - </description> - </method> - <method name="set_item_disabled" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_item_ID" > - <argument index="0" name="idx" type="int"> - </argument> - <argument index="1" name="id" type="int"> - </argument> - <description> - Set the id of the item at index "idx". - </description> - </method> - <method name="get_item_text" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the text of the item at index "idx". - </description> - </method> - <method name="get_item_icon" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the icon of the item at index "idx". - </description> - </method> - <method name="get_item_metadata" qualifiers="const" > - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_accelerator" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is fucused. - </description> - </method> - <method name="is_item_checked" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the checkstate status of the item at index "idx". - </description> - </method> - <method name="is_item_disabled" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_item_ID" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="idx" type="int"> - </argument> - <description> - Return the id of the item at index "idx". - </description> - </method> - <method name="get_item_index" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="id" type="int"> - </argument> - <description> - Find and return the index of the item containing a given id. - </description> - </method> - <method name="get_item_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of items. - </description> - </method> - <method name="add_separator" > - <description> - Add a separator between items. Separators also occupy an index. - </description> - </method> - <method name="clear" > - <description> - Clear the popup menu. - </description> - </method> - </methods> - <signals> - <signal name="item_pressed"> - <argument index="0" name="ID" type="int"> - </argument> - <description> - This even is emitted when an item is pressed or its accelerator is activated. The id of the item is returned if it exists, else the index. - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="PopupPanel" inherits="Popup" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Portal" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - Portals provide virtual openings to rooms. - </brief_description> - <description> - Portals provide virtual openings to [RoomInstance] nodes, so cameras can look at them from the outside. Note that portals are a visibility optimization technique, and are in no way related to the game of the same name (as in, they are not used for teleportation). For more information on how rooms and portals work, see [RoomInstance]. Portals are represented as 2D convex polygon shapes (in the X,Y local plane), and are placed on the surface of the areas occupied by a [RoomInstance], to indicate that the room can be accessed or looked-at through them. If two rooms are next to each other, and two similar portals in each of them share the same world position (and are parallel and opposed to each other), they will automatically "connect" and form "doors" (for example, the portals that connect a kitchen to a living room are placed in the door they share). Portals must always have a [RoomInstance] node as a parent, grandparent or far parent, or else they will not be active. - </description> - <methods> - <method name="set_shape" > - <argument index="0" name="points" type="Array"> - </argument> - <description> - Set the portal shape. The shape is an array of [Point2] points, representing a convex polygon in the X,Y plane. - </description> - </method> - <method name="get_shape" qualifiers="const" > - <return type="Array"> - </return> - <description> - Return the portal shape. The shape is an array of [Point2] points, representing a convex polygon in the X,Y plane. - </description> - </method> - <method name="set_enabled" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - Enable the portal (it is enabled by defaul though), disabling it will cause the parent [RoomInstance] to not be visible any longer when looking through the portal. - </description> - </method> - <method name="is_enabled" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the portal is active. When disabled it causes the parent [RoomInstance] to not be visible any longer when looking through the portal. - </description> - </method> - <method name="set_disable_distance" > - <argument index="0" name="distance" type="real"> - </argument> - <description> - Set the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). - </description> - </method> - <method name="get_disable_distance" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). - </description> - </method> - <method name="set_disabled_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - When the portal goes beyond the disable distance (see [method set_disable_distance]), it becomes opaque and displayed with color "color". - </description> - </method> - <method name="get_disabled_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - Return the color for when the portal goes beyond the disable distance (see [method set_disable_distance]) and becomes disabled. - </description> - </method> - <method name="set_connect_range" > - <argument index="0" name="range" type="real"> - </argument> - <description> - Set the range for auto-connecting two portals from different rooms sharing the same space. - </description> - </method> - <method name="get_connect_range" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the range for auto-connecting two portals from different rooms sharing the same space. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Range" inherits="Control" category="Core"> - <brief_description> - Abstract base class for range-based controls. - </brief_description> - <description> - Range is a base class for [Control] nodes that change a floating point [html i]value[html /i] between a need a [html i]minimum[html /i], [html i]maximum[html /i], using [html i]step[html /i] and [html i]page[html /i], for example a [ScrollBar]. - </description> - <methods> - <method name="get_val" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the current value. - </description> - </method> - <method name="get_min" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the minimum value. - </description> - </method> - <method name="get_max" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the maximum value. - </description> - </method> - <method name="get_step" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the stepping, if step is 0, stepping is disabled. - </description> - </method> - <method name="get_page" qualifiers="const" > - <return type="real"> - </return> - <description> - Return the page size, if page is 0, paging is disabled. - </description> - </method> - <method name="get_unit_value" qualifiers="const" > - <return type="real"> - </return> - <description> - Return value mapped to 0 to 1 (unit) range. - </description> - </method> - <method name="set_val" > - <argument index="0" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_min" > - <argument index="0" name="minimum" type="real"> - </argument> - <description> - Set minimum value, clamped range value to it if it's less. - </description> - </method> - <method name="set_max" > - <argument index="0" name="maximum" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_step" > - <argument index="0" name="step" type="real"> - </argument> - <description> - Set step value. If step is 0, stepping will be disabled. - </description> - </method> - <method name="set_page" > - <argument index="0" name="pagesize" type="real"> - </argument> - <description> - Set page size. Page is mainly used for scrollbars or anything that controls text scrolling. - </description> - </method> - <method name="set_unit_value" > - <argument index="0" name="value" type="real"> - </argument> - <description> - Set value mapped to 0 to 1 (unit) range, it will then be converted to the actual value within min and max. - </description> - </method> - <method name="share" > - <argument index="0" name="with" type="Object"> - </argument> - <description> - </description> - </method> - <method name="unshare" > - <description> - </description> - </method> - </methods> - <signals> - <signal name="value_changed"> - <argument index="0" name="value" type="real"> - </argument> - <description> - This signal is emitted when value changes. - </description> - </signal> - <signal name="changed"> - <description> - This signal is emitted when min, max, range or step change. - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="RayShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_length" > - <argument index="0" name="length" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_length" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Reference" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Resource" inherits="Reference" category="Resources"> - <brief_description> - Base class for all resources. - </brief_description> - <description> - Resource is the base class for all resource types. Resources are primarily data containers. They are reference counted and freed when no longer in use. They are also loaded only once from disk, and further attempts to load the resource will return the same reference (all this in contrast to a [Node], which is not reference counted and can be instanced from disk as many times as desred). Resources can be saved externally on disk or bundled into another object, such as a [Node] or another resource. - </description> - <methods> - <method name="set_path" > - <argument index="0" name="path" type="String"> - </argument> - <description> - Set the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. - </description> - </method> - <method name="get_path" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. - </description> - </method> - <method name="set_name" > - <argument index="0" name="name" type="String"> - </argument> - <description> - Set the name of the resources, any name is ok (it doesn't have to be unique). Name is for descriptive purposes only. - </description> - </method> - <method name="get_name" qualifiers="const" > - <return type="String"> - </return> - <description> - Return the name of the resources, any name is ok (it doesn't have to be unique). Name is for descriptive purposes only. - </description> - </method> - <method name="get_rid" qualifiers="const" > - <return type="RID"> - </return> - <description> - Return the RID of the resource (or an empty RID). Many resources (such as [Texture], [Mesh], etc) are high level abstractions of resources stored in a server, so this function will return the original RID. - </description> - </method> - </methods> - <signals> - <signal name="changed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="_ResourceLoader" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="load" > - <return type="Object"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="type_hint" type="String" default=""""> - </argument> - <description> - </description> - </method> - <method name="get_recognized_extensions_for_type" > - <return type="StringArray"> - </return> - <argument index="0" name="type" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="_ResourceSaver" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="save" > - <return type="int"> - </return> - <argument index="0" name="path" type="String"> - </argument> - <argument index="1" name="resource" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_recognized_extensions" > - <return type="StringArray"> - </return> - <argument index="0" name="type" type="Object"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="RichTextLabel" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="add_image" > - <argument index="0" name="image" type="Texture"> - </argument> - <description> - </description> - </method> - <method name="newline" > - <description> - </description> - </method> - <method name="push_font" > - <argument index="0" name="font" type="Object"> - </argument> - <description> - </description> - </method> - <method name="push_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="push_align" > - <argument index="0" name="align" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_indent" > - <argument index="0" name="level" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_list" > - <argument index="0" name="type" type="int"> - </argument> - <description> - </description> - </method> - <method name="push_meta" > - <argument index="0" name="data" type="var"> - </argument> - <description> - </description> - </method> - <method name="push_underline" > - <description> - </description> - </method> - <method name="pop" > - <description> - </description> - </method> - <method name="clear" > - <description> - </description> - </method> - <method name="set_meta_underline" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_meta_underlined" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_scroll_active" > - <argument index="0" name="active" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_scroll_active" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_scroll_follow" > - <argument index="0" name="follow" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_scroll_following" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_tab_size" > - <argument index="0" name="spaces" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_tab_size" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="meta_clicked"> - <argument index="0" name="meta" type="Nil"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="ITEM_TEXT" value="1"> - </constant> - <constant name="ITEM_MAIN" value="0"> - </constant> - <constant name="ALIGN_CENTER" value="1"> - </constant> - <constant name="ITEM_UNDERLINE" value="6"> - </constant> - <constant name="ITEM_META" value="10"> - </constant> - <constant name="ITEM_COLOR" value="5"> - </constant> - <constant name="ITEM_FONT" value="4"> - </constant> - <constant name="LIST_DOTS" value="2"> - </constant> - <constant name="ALIGN_LEFT" value="0"> - </constant> - <constant name="LIST_LETTERS" value="1"> - </constant> - <constant name="LIST_NUMBERS" value="0"> - </constant> - <constant name="ITEM_INDENT" value="8"> - </constant> - <constant name="ITEM_NEWLINE" value="3"> - </constant> - <constant name="ALIGN_RIGHT" value="2"> - </constant> - <constant name="ITEM_ALIGN" value="7"> - </constant> - <constant name="ITEM_IMAGE" value="2"> - </constant> - <constant name="ALIGN_FILL" value="3"> - </constant> - <constant name="ITEM_LIST" value="9"> - </constant> - </constants> -</class> -<class name="Room" inherits="Resource" category="Resources"> - <brief_description> - Room data resource. - </brief_description> - <description> - Room contains the data to define the bounds of a scene (using a BSP Tree). It is instanced by a [RoomInstance] node to create rooms. See that class documentation for more information about rooms. - </description> - <methods> - <method name="set_bounds" > - <argument index="0" name="bsp_tree" type="Dictionary"> - </argument> - <description> - Set the bounds of the room as a BSP tree. a BSP Tree is defined a Dictionary: (TODO - see source code on how to create a BSP tree from a dictionary). - </description> - </method> - <method name="get_bounds" qualifiers="const" > - <return type="Dictionary"> - </return> - <description> - Return the bounds of the room as a BSP tree. a BSP Tree is defined a Dictionary: (TODO - see source code on how to create a BSP tree from a dictionary). - </description> - </method> - <method name="set_geometry_hint" > - <argument index="0" name="triangles" type="Vector3Array"> - </argument> - <description> - Set the "geometry" hint of the room. This means, how the room actually looks (an array of [Vector3]s, forming triangles). - </description> - </method> - <method name="get_geometry_hint" qualifiers="const" > - <return type="Vector3Array"> - </return> - <description> - Return the "geometry" hint of the room. This means, how the room actually looks (an array of [Vector3]s, forming triangles). - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="RoomInstance" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - Node that instances a Room. - </brief_description> - <description> - RoomInstance is a [Node] that instances a [Room] resource and places it on the world. Rooms are used for defining the areas taken up by [html i]interiors[html /i]. An [html i]interior[html /i] is any closed space that has an entrance/exit (or not) to the outside world, for example the inside of a house, a room in a house, a cave.[html br/]So why is this used? Rooms and Portals ([Portal]) are a common visualization optimization technique, it is used to make interiors invisible (not rendered) when the camera is at the exterior (such as an open field), and also the exterior invisible when inside an interior (such as a house). It is also used to make interior rooms invisible from other interior rooms. [html div align="center"][html img src="images/portals_example.png"/][html /div] - </description> - <methods> - <method name="set_room" > - <argument index="0" name="room" type="Object"> - </argument> - <description> - Set the [Room] resource, containing the room bounds. - </description> - </method> - <method name="get_room" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the [Room] resource, containing the room bounds. - </description> - </method> - <method name="compute_room_from_subtree" > - <description> - This helper function computes a [Room] from the shapes of all the children [VisualInstance] nodes, and sets it to the node. - </description> - </method> - <method name="set_simulate_acoustics" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_simulating_acoustics" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SSAOFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Sample" inherits="Resource" category="Resources"> - <brief_description> - Audio Sample (sound) class. - </brief_description> - <description> - Sample provides an audio sample class, containing audio data, together with some information for playback, such as format, mix rate and loop. It is used by sound playback routines. - </description> - <methods> - <method name="create" > - <argument index="0" name="format" type="int"> - </argument> - <argument index="1" name="stereo" type="bool"> - </argument> - <argument index="2" name="length" type="int"> - </argument> - <description> - Create new data for the sample, with format "format" (see FORMAT_* enum), stereo hint, and length in frames (not samples or bytes!) "frame". Calling create overrides previous existing data if it exists. Stereo samples are interleaved pairs of left and right (in that order) points - </description> - </method> - <method name="get_format" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the sample format (see FORMAT_* enum). - </description> - </method> - <method name="is_stereo" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return true if the sample was created stereo. - </description> - </method> - <method name="get_length" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the sample length in frames. - </description> - </method> - <method name="set_data" > - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - Set sample data. Data must be little endian, no matter the host platform, and exactly as long to fit all frames. Example, if data is Stereo, 16 bits, 256 frames, it will be 1024 bytes long. - </description> - </method> - <method name="get_data" qualifiers="const" > - <return type="RawArray"> - </return> - <description> - Return sample data. Data will be endian, no matter with the host platform, and exactly as long to fit all frames. Example, if data is Stereo, 16 bits, 256 frames, it will be 1024 bytes long. - </description> - </method> - <method name="set_mix_rate" > - <argument index="0" name="hz" type="int"> - </argument> - <description> - Set the mix rate for the sample (expected playback frequency). - </description> - </method> - <method name="get_mix_rate" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the mix rate for the sample (expected playback frequency). - </description> - </method> - <method name="set_loop_format" > - <argument index="0" name="format" type="int"> - </argument> - <description> - Set the loop format, see LOOP_* enum - </description> - </method> - <method name="get_loop_format" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the loop format, see LOOP_* enum. - </description> - </method> - <method name="set_loop_begin" > - <argument index="0" name="pos" type="int"> - </argument> - <description> - Set the loop begin position, it must be a valid frame and less than the loop end position. - </description> - </method> - <method name="get_loop_begin" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the loop begin position. - </description> - </method> - <method name="set_loop_end" > - <argument index="0" name="pos" type="int"> - </argument> - <description> - Set the loop end position, it must be a valid frame and greater than the loop begin position. - </description> - </method> - <method name="get_loop_end" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the loop begin position. - </description> - </method> - </methods> - <constants> - <constant name="FORMAT_IMA_ADPCM" value="2"> - Ima-ADPCM Audio. - </constant> - <constant name="LOOP_FORWARD" value="1"> - Forward looping (when playback reaches loop end, goes back to loop begin) - </constant> - <constant name="FORMAT_PCM16" value="1"> - 16-Bits signed little endian PCM audio. - </constant> - <constant name="FORMAT_PCM8" value="0"> - 8-Bits signed little endian PCM audio. - </constant> - <constant name="LOOP_NONE" value="0"> - No loop enabled. - </constant> - <constant name="LOOP_PING_PONG" value="2"> - Ping-Pong looping (when playback reaches loop end, plays backward untilloop begin). Not available in all platforms. - </constant> - </constants> -</class> -<class name="SampleLibrary" inherits="Resource" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="add_sample" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="sample" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_sample" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_sample" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - <method name="remove_sample" > - <argument index="0" name="name" type="String"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SamplePlayer" inherits="Node" category="Nodes/Audio Nodes"> - <brief_description> - Sample Player node. - </brief_description> - <description> - SamplePlayer is a [Node] meant for simple sample playback. A library of samples is loaded and played back "as is", without positioning or anything. - </description> - <methods> - <method name="set_sample_library" > - <argument index="0" name="library" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_sample_library" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_voice_count" > - <argument index="0" name="max_voices" type="int"> - </argument> - <description> - Set the amount of simultaneous voices that will be used for playback. - </description> - </method> - <method name="get_voice_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of simultaneous voices that will be used for playback. - </description> - </method> - <method name="play" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="unique" type="bool" default="false"> - </argument> - <description> - Play back sample, given it's identifier "name". if "unique" is true, all othere previous samples will be stopped. The voice allocated for playback will be returned. - </description> - </method> - <method name="stop" > - <argument index="0" name="voice" type="int"> - </argument> - <description> - Stop a voice "voice". (see [method play]). - </description> - </method> - <method name="stop_all" > - <description> - </description> - </method> - <method name="set_mix_rate" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="hz" type="int"> - </argument> - <description> - Change the mix rate of a voice "voice" to given "hz". - </description> - </method> - <method name="set_pitch_scale" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - Scale the pitch (mix rate) of a voice by a ratio value "ratio". A ratio of 1.0 means the voice is unscaled. - </description> - </method> - <method name="set_volume" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="nrg" type="real"> - </argument> - <description> - Set the volume of a voice, 0db is maximum volume (every about -6db, volume is reduced in half). "db" does in fact go from zero to negative. - </description> - </method> - <method name="set_volume_db" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="nrg" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_pan" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="pan" type="real"> - </argument> - <argument index="2" name="depth" type="real" default="0"> - </argument> - <argument index="3" name="height" type="real" default="0"> - </argument> - <description> - Set the panning of a voice. Panning goes from -1 (left) to +1 (right). Optionally, if the hardware supports 3D sound, also set depth and height (also in range -1 to +1). - </description> - </method> - <method name="set_filter" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="type" type="int"> - </argument> - <argument index="2" name="cutoff_hz" type="real"> - </argument> - <argument index="3" name="resonance" type="real"> - </argument> - <argument index="4" name="gain" type="real" default="0"> - </argument> - <description> - Set and enable a filter of a voice, with type "type" (see FILTER_* enum), cutoff (0 to 22khz) frequency and resonance (0+). - </description> - </method> - <method name="set_chorus" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="send" type="real"> - </argument> - <description> - Set the chorus send level of a voice (0 to 1). For setting chorus parameters, see [AudioServer]. - </description> - </method> - <method name="set_reverb" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="room_type" type="int"> - </argument> - <argument index="2" name="send" type="real"> - </argument> - <description> - Set the reverb send level and type of a voice (0 to 1). (see REVERB_* enum for type). - </description> - </method> - <method name="get_mix_rate" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current mix rate for a given voice. - </description> - </method> - <method name="get_pitch_scale" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current pitch scale for a given voice. - </description> - </method> - <method name="get_volume" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current volume (in db) for a given voice. 0db is maximum volume (every about -6db, volume is reduced in half). "db" does in fact go from zero to negative. - </description> - </method> - <method name="get_volume_db" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_pan" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current panning for a given voice. Panning goes from -1 (left) to +1 (right). - </description> - </method> - <method name="get_pan_depth" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current pan depth for a given voice (not used unless the hardware supports 3D sound) - </description> - </method> - <method name="get_pan_height" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current pan height for a given voice (not used unless the hardware supports 3D sound) - </description> - </method> - <method name="get_filter_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current filter type in use (see FILTER_* enum) for a given voice. - </description> - </method> - <method name="get_filter_cutoff" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current filter cutoff for a given voice. Cutoff goes from 0 to 22khz. - </description> - </method> - <method name="get_filter_resonance" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current filter resonance for a given voice. Resonance goes from 0 up. - </description> - </method> - <method name="get_filter_gain" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_chorus" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current chorus send level for a given voice. (0 to 1). - </description> - </method> - <method name="get_reverb_room" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current reverb room type for a given voice (see REVERB_* enum). - </description> - </method> - <method name="get_reverb" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - Return the current reverb send level for a given voice. (0 to 1). - </description> - </method> - <method name="set_default_pitch_scale" > - <argument index="0" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_volume" > - <argument index="0" name="nrg" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_volume_db" > - <argument index="0" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_pan" > - <argument index="0" name="pan" type="real"> - </argument> - <argument index="1" name="depth" type="real" default="0"> - </argument> - <argument index="2" name="height" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_default_filter" > - <argument index="0" name="type" type="int"> - </argument> - <argument index="1" name="cutoff_hz" type="real"> - </argument> - <argument index="2" name="resonance" type="real"> - </argument> - <argument index="3" name="gain" type="real" default="0"> - </argument> - <description> - </description> - </method> - <method name="set_default_chorus" > - <argument index="0" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="set_default_reverb" > - <argument index="0" name="room_type" type="int"> - </argument> - <argument index="1" name="send" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_default_pitch_scale" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_volume" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_volume_db" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan_depth" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_pan_height" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_type" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_cutoff" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_resonance" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_filter_gain" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_chorus" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_reverb_room" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_default_reverb" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="FILTER_HIPASS" value="3"> - HighPass filter is used for voice. - </constant> - <constant name="FILTER_NONE" value="0"> - Filter is disabled for voice. - </constant> - <constant name="REVERB_HALL" value="3"> - Huge reverb room (cathedral, warehouse). - </constant> - <constant name="REVERB_MEDIUM" value="1"> - Medium reverb room (street) - </constant> - <constant name="REVERB_SMALL" value="0"> - Small reverb room (house room). - </constant> - <constant name="FILTER_HIGH_SHELF" value="8"> - </constant> - <constant name="FILTER_PEAK" value="5"> - </constant> - <constant name="FILTER_LOWPASS" value="1"> - Lowpass filter is used for voice. - </constant> - <constant name="REVERB_LARGE" value="2"> - Large reverb room (Theather) - </constant> - <constant name="FILTER_LOW_SHELF" value="7"> - </constant> - <constant name="FILTER_BANDLIMIT" value="6"> - Band-Limit filter is used for voice, in this case resonance is the highpass cutoff. - </constant> - <constant name="FILTER_NOTCH" value="4"> - Notch filter is used for voice. - </constant> - <constant name="FILTER_BANDPASS" value="2"> - Bandpass filter is used for voice. - </constant> - </constants> -</class> -<class name="ScenarioFX" inherits="Node" category="Nodes"> - <brief_description> - </brief_description> - <description> - Deprecated, will go away. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SceneMainLoop" inherits="MainLoop" category="Main Loop"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_editor_hint" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editor_hint" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_pause" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_paused" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="quit" > - <description> - </description> - </method> - </methods> - <signals> - <signal name="screen_resized"> - <description> - </description> - </signal> - <signal name="node_removed"> - <argument index="0" name="node" type="Object"> - </argument> - <description> - </description> - </signal> - <signal name="tree_changed"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Script" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="ScrollBar" inherits="Range" category="Core"> - <brief_description> - Base class for scroll bars. - </brief_description> - <description> - Scrollbars are a [Range] based [Control], that display a draggable area (the size of the page). Horizontal ([HScrollBar]) and Vertical ([VScrollBar]) versions are available. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Separator" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - Base class for separators. - </brief_description> - <description> - Separator is a [Control] used for sepataring other controls. It's purely a visual decoration. Horizontal ([HSeparator]) and Vertical ([VSeparator]) versions are available. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Shader" inherits="Resource" category="Resources"> - <brief_description> - To be changed, ignore. - </brief_description> - <description> - To be changed, ignore. - </description> - <methods> - <method name="set_mode" > - <argument index="0" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_vertex_code" > - <argument index="0" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_vertex_code" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_fragment_code" > - <argument index="0" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_fragment_code" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_use_world_transform" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_using_world_transform" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_param" > - <argument index="0" name="param" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const" > - <argument index="0" name="param" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_param_list" qualifiers="const" > - <return type="StringArray"> - </return> - <description> - </description> - </method> - </methods> - <constants> - <constant name="MODE_MATERIAL" value="0"> - </constant> - <constant name="MODE_POST_PROCESS" value="1"> - </constant> - </constants> -</class> -<class name="ShaderMaterial" inherits="Material" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_shader" > - <argument index="0" name="shader" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_shader" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Shape" inherits="Resource" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Skeleton" inherits="Spatial" category="Nodes/3D"> - <brief_description> - Skeleton for characters and animated objects. - </brief_description> - <description> - Skeleton provides a hierachial interface for managing bones, including pose, rest and animation (see [Animation]). Skeleton will support rag doll dynamics in the future. - </description> - <methods> - <method name="add_bone" > - <argument index="0" name="name" type="String"> - </argument> - <description> - Add a bone, with name "name". [method get_bone_count] will become the bone index. - </description> - </method> - <method name="find_bone" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <description> - Return the bone index that matches "name" as its name. - </description> - </method> - <method name="get_bone_name" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - Return the name of the bone at index "index" - </description> - </method> - <method name="get_bone_parent" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - Return the bone index which is the parent of the bone at "bone_idx". If -1, then bone has no parent. Note that the parent bone returned will always be less than "bone_idx". - </description> - </method> - <method name="set_bone_parent" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="parent_idx" type="int"> - </argument> - <description> - Set the bone index "parent_idx" as the parent of the bone at "bone_idx". If -1, then bone has no parent. Note: "parent_idx" must be less than "bone_idx". - </description> - </method> - <method name="get_bone_count" qualifiers="const" > - <return type="int"> - </return> - <description> - Return the amount of bones in the skeleton. - </description> - </method> - <method name="get_bone_rest" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - Return the rest transform for a bone "bone_idx". - </description> - </method> - <method name="set_bone_rest" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="rest" type="Transform"> - </argument> - <description> - Set the rest transform for bone "bone_idx" - </description> - </method> - <method name="bind_child_node_to_bone" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="node" type="Object"> - </argument> - <description> - Deprecated soon - </description> - </method> - <method name="unbind_child_node_from_bone" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="node" type="Object"> - </argument> - <description> - Deprecated soon - </description> - </method> - <method name="get_bound_child_nodes_to_bone" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - Deprecated Soon - </description> - </method> - <method name="clear_bones" > - <description> - Clear all the bones in this skeleton. - </description> - </method> - <method name="get_bone_pose" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - Return the pose transform for bone "bone_idx". - </description> - </method> - <method name="set_bone_pose" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="pose" type="Transform"> - </argument> - <description> - Return the pose transform for bone "bone_idx". - </description> - </method> - <method name="get_bone_custom_pose" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_bone_custom_pose" > - <argument index="0" name="bone_idx" type="int"> - </argument> - <argument index="1" name="custom_pose" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="get_bone_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="bone_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_UPDATE_SKELETON" value="50"> - </constant> - </constants> -</class> -<class name="SkyBoxFX" inherits="ScenarioFX" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Slider" inherits="Range" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SoundRoomParams" inherits="Node" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_param" > - <argument index="0" name="param" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_param" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="param" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_reverb_mode" > - <argument index="0" name="reverb_mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_reverb_mode" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_force_params_to_all_sources" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_forcing_params_to_all_sources" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Spatial" inherits="Node" category="Nodes/3D"> - <brief_description> - Base class for all 3D nodes. - </brief_description> - <description> - Spatial is the base for every type of 3D [Node]. It contains a 3D [Transform] which can be set or get as local or global. If a Spatial [Node] has Spatial children, their transforms will be relative to the parent. - </description> - <methods> - <method name="set_transform" > - <argument index="0" name="local" type="Transform"> - </argument> - <description> - Set the transform locally, relative to the parent spatial node. - </description> - </method> - <method name="get_transform" qualifiers="const" > - <return type="Transform"> - </return> - <description> - Return the local transform, relative to the bone parent. - </description> - </method> - <method name="set_global_transform" > - <argument index="0" name="global" type="Transform"> - </argument> - <description> - Set the transform globally, relative to worldspace. - </description> - </method> - <method name="get_global_transform" qualifiers="const" > - <return type="Transform"> - </return> - <description> - Return the gloal transform, relative to worldspace. - </description> - </method> - <method name="get_parent_spatial" qualifiers="const" > - <return type="Object"> - </return> - <description> - Return the parent [Spatial], or an empty [Object] if no parent exists or parent is not of type [Spatial. - </description> - </method> - <method name="update_gizmo" > - <description> - </description> - </method> - </methods> - <constants> - <constant name="NOTIFICATION_SCENARIO_CHANGED" value="41"> - Spatial nodes receive this notification when the viewport next to it in ascending hierarchy changed the [Scenario]. - </constant> - <constant name="NOTIFICATION_TRANSFORM_CHANGED" value="40"> - Spatial nodes receive this notifacation with their global transform changes. This means that either the current or a parent node changed it's transform. - </constant> - </constants> -</class> -<class name="SpatialPlayer" inherits="Spatial" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SpatialSamplePlayer" inherits="SpatialPlayer" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_sample_library" > - <argument index="0" name="library" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_sample_library" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_polyphony" > - <argument index="0" name="voices" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_polyphony" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="play" > - <return type="int"> - </return> - <argument index="0" name="sample" type="String"> - </argument> - <argument index="1" name="voice" type="int" default="-2"> - </argument> - <description> - </description> - </method> - <method name="voice_set_pitch_scale" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="ratio" type="real"> - </argument> - <description> - </description> - </method> - <method name="voice_set_volume_scale_db" > - <argument index="0" name="voice" type="int"> - </argument> - <argument index="1" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="is_voice_active" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="stop_voice" > - <argument index="0" name="voice" type="int"> - </argument> - <description> - </description> - </method> - <method name="stop_all" > - <description> - </description> - </method> - </methods> - <constants> - <constant name="NEXT_VOICE" value="-2"> - </constant> - <constant name="INVALID_VOICE" value="-1"> - </constant> - </constants> -</class> -<class name="SpatialSoundServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SpatialSoundServerSW" inherits="SpatialSoundServer" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="SpatialStreamPlayer" inherits="SpatialPlayer" category="Nodes/3D"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream" > - <argument index="0" name="stream" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_stream" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="play" > - <description> - </description> - </method> - <method name="stop" > - <description> - </description> - </method> - <method name="is_playing" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="seek_pos" > - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SphereShape" inherits="Shape" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_radius" > - <argument index="0" name="radius" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_radius" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SpinBox" inherits="Range" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_suffix" > - <argument index="0" name="suffix" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_suffix" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_prefix" > - <argument index="0" name="prefix" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_prefix" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="set_editable" > - <argument index="0" name="editable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editable" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SpotLight" inherits="Light" category="Nodes/3D/3D Visual Nodes/3D Light Nodes"> - <brief_description> - Spotlight Light, such as a reflector spotlight or a latern. - </brief_description> - <description> - A SpotLight light is a type of [Light] node that emits lights in a specific direction, in the shape of a cone. The light is attenuated through the distance and this attenuation can be configured by changing the energy, radius and attenuation parameters of [Light]. TODO: Image of a spotlight. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Sprite" inherits="Node2D" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_centered" > - <argument index="0" name="centered" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_centered" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_flip_h" > - <argument index="0" name="flip_h" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_flipped_h" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_flip_v" > - <argument index="0" name="flip_v" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_flipped_v" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_frame" > - <argument index="0" name="frame" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_frame" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_vframes" > - <argument index="0" name="vframes" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_vframes" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_hframes" > - <argument index="0" name="hframes" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_hframes" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_modulate" > - <argument index="0" name="modulate" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_modulate" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SquirrelScript" inherits="Script" category="Resources"> - <brief_description> - Squirrel script language support. - </brief_description> - <description> - [html a href="http://squirrel-lang.org/"]Squirrel Language[html /a] support for the engine. Allows to load a [Script] from a .sq or .nut source or compiled file, or bundled it into scenes. - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="StaticBody" inherits="PhysicsBody" category="Nodes/3D"> - <brief_description> - PhysicsBody for static collision objects. - </brief_description> - <description> - StaticBody implements a static collision [Node], by utilizing a rigid body in the [PhysicsServer]. Static bodies are used for static collision. For more information on physics body nodes, see [PhysicsBody]. - </description> - <methods> - <method name="set_simulated_motion" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_simulating_motion" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="simulate_motion" > - <argument index="0" name="new_transform" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="create_shapes_from_child_meshes" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPeer" inherits="Object" category="Networking"> - <brief_description> - Abstraction and base class for stream-based protocols. - </brief_description> - <description> - StreamPeer is an abstration and base class for stream-based protocols (such as TCP or Unix Sockets). It provides an API for sending and receiving data through streams as raw data or strings. - </description> - <methods> - <method name="put_data" > - <return type="int"> - </return> - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - Send a chunk of data through the connection, blocking if necesary until the data is done sending. This function returns an [Error] code. - </description> - </method> - <method name="put_partial_data" > - <return type="Array"> - </return> - <argument index="0" name="data" type="RawArray"> - </argument> - <description> - Send a chunk of data through the connection, if all the data could not be sent at once, only part of it will. This function returns two values, an [Error] code and an integer, describing how much data was actually sent. - </description> - </method> - <method name="get_data" > - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> - <description> - Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will block until the desired amount is received. This function returns two values, an [Error] code and a data array. - </description> - </method> - <method name="get_partial_data" > - <return type="Array"> - </return> - <argument index="0" name="bytes" type="int"> - </argument> - <description> - Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will return how many were actually received. This function returns two values, an [Error] code, and a data array. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPeerTCP" inherits="StreamPeer" category="Networking/Networking"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="connect" > - <return type="int"> - </return> - <argument index="0" name="host" type="String"> - </argument> - <argument index="1" name="ip" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_connected" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_connected_host" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_connected_port" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="disconnect" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StreamPlayer" inherits="Node" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_stream" > - <argument index="0" name="stream" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_stream" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="play" > - <description> - </description> - </method> - <method name="stop" > - <description> - </description> - </method> - <method name="is_playing" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_loop" > - <argument index="0" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_loop" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_volume" > - <argument index="0" name="volume" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_volume_db" > - <argument index="0" name="db" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_volume_db" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="get_stream_name" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_loop_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pos" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="seek_pos" > - <argument index="0" name="time" type="real"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBox" inherits="Resource" category="Core"> - <brief_description> - Base class for dawing stylized boxes for the UI. - </brief_description> - <description> - StyleBox is [Resource] that provides an abstract base class for dawing stylized boxes for the UI. StyleBoxes are used for dawing the styles of buttons, line edit backgrounds, tree backgrounds, etc. and also for testing a transparency mask for pointer signals. If mask test fails on a StyleBox assigned as mask to a control, clicks and motion signals will go through it to the one below. - </description> - <methods> - <method name="test_mask" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="point" type="Vector2"> - </argument> - <argument index="1" name="rect" type="Rect2"> - </argument> - <description> - Test a position in a rectangle, return wether it pases the mask test. - </description> - </method> - <method name="set_default_margin" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="offset" type="real"> - </argument> - <description> - Set the default offset "offset" of the margin "margin" (see MARGIN_* enum) for a StyleBox, Controls that draw styleboxes with context inside need to know the margin, so the border of the stylebox is not occluded. - </description> - </method> - <method name="get_default_margin" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - Return the default offset of the margin "margin" (see MARGIN_* enum) of a StyleBox, Controls that draw styleboxes with context inside need to know the margin, so the border of the stylebox is not occluded. - </description> - </method> - <method name="get_margin" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="margin" type="int"> - </argument> - <description> - Return the offset of margin "margin" (see MARGIN_* enum). - </description> - </method> - <method name="get_minimum_size" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Return the minimum size that this stylebox can be shrunk to. - </description> - </method> - <method name="get_offset" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - Return the "offset" of a stylebox, this is a helper function, like writing Point2( style.get_margin(MARGIN_LEFT), style.get_margin(MARGIN_TOP) ) - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxEmpty" inherits="StyleBox" category="Resources"> - <brief_description> - Empty stylebox (does not display anything). - </brief_description> - <description> - Empty stylebox (really does not display anything). - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxFlat" inherits="StyleBox" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_bg_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_bg_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_light_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_light_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_dark_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_dark_color" qualifiers="const" > - <return type="Color"> - </return> - <description> - </description> - </method> - <method name="set_border_size" > - <argument index="0" name="size" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_border_size" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_border_blend" > - <argument index="0" name="blend" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_border_blend" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_draw_center" > - <argument index="0" name="size" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_draw_center" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxImageMask" inherits="StyleBox" category="Resources"> - <brief_description> - Image mask based StyleBox, for mask test. - </brief_description> - <description> - This StyleBox is similar to [StyleBoxTexture], but only meant to be used for mask testing. It takes an image and applies stretch rules to determine if the poit clicked is masked or not. - </description> - <methods> - <method name="set_image" > - <argument index="0" name="image" type="Image"> - </argument> - <description> - Set the image used for mask testing. Pixels (converted to grey) that have a value, less than 0.5 will fail the test. - </description> - </method> - <method name="get_image" qualifiers="const" > - <return type="Image"> - </return> - <description> - Return the image used for mask testing. (see [method set_imag]). - </description> - </method> - <method name="set_expand" > - <argument index="0" name="expand" type="bool"> - </argument> - <description> - Set the expand property (default). When expanding, the image will use the same rules as [StyleBoxTexture] for expand. If not expanding, the image will always be tested at its original size. - </description> - </method> - <method name="get_expand" qualifiers="const" > - <return type="bool"> - </return> - <description> - Return wether the expand property is set(default). When expanding, the image will use the same rules as [StyleBoxTexture] for expand. If not expanding, the image will always be tested at its original size. - </description> - </method> - <method name="set_expand_margin_size" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - Set an expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand. - </description> - </method> - <method name="get_expand_margin_size" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - Return the expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand. - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="StyleBoxTexture" inherits="StyleBox" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_margin_size" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_margin_size" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_expand_margin_size" > - <argument index="0" name="margin" type="int"> - </argument> - <argument index="1" name="size" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_expand_margin_size" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_draw_center" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_draw_center" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_center_size" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="draw" qualifiers="const" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="SurfaceTool" inherits="Reference" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="begin" > - <argument index="0" name="primitive" type="int"> - </argument> - <description> - </description> - </method> - <method name="add_vertex" > - <argument index="0" name="vertex" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_normal" > - <argument index="0" name="normal" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_tangent" > - <argument index="0" name="tangent" type="Plane"> - </argument> - <description> - </description> - </method> - <method name="add_uv" > - <argument index="0" name="uv" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_uv2" > - <argument index="0" name="uv2" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="add_bones" > - <argument index="0" name="bones" type="IntArray"> - </argument> - <description> - </description> - </method> - <method name="add_weights" > - <argument index="0" name="weights" type="RealArray"> - </argument> - <description> - </description> - </method> - <method name="set_material" > - <argument index="0" name="material" type="Object"> - </argument> - <description> - </description> - </method> - <method name="index" > - <description> - </description> - </method> - <method name="deindex" > - <description> - </description> - </method> - <method name="generate_flat_normals" > - <description> - </description> - </method> - <method name="generate_smooth_normals" > - <description> - </description> - </method> - <method name="generate_tangents" > - <description> - </description> - </method> - <method name="commit" > - <return type="Object"> - </return> - <argument index="0" name="existing" type="Object" default="Object()"> - </argument> - <description> - </description> - </method> - <method name="clear" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TCP_Server" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="listen" > - <return type="int"> - </return> - <argument index="0" name="port" type="int"> - </argument> - <argument index="1" name="accepted_hosts" type="StringArray" default="StringArray()"> - </argument> - <description> - </description> - </method> - <method name="is_connection_available" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="take_connection" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="stop" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TabContainer" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="get_tab_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_current_tab" > - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_current_tab" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_tab_align" > - <argument index="0" name="align" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_tab_align" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_tabs_visible" > - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="are_tabs_visible" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_tab_title" > - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_tab_title" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_tab_icon" > - <argument index="0" name="tab_idx" type="int"> - </argument> - <argument index="1" name="icon" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_tab_icon" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="tab_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <signals> - <signal name="tab_changed"> - <argument index="0" name="tab" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="TestCube" inherits="VisualInstance" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="TextEdit" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_text" > - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="insert_text_at_cursor" > - <argument index="0" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_line_count" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_text" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="get_line" > - <return type="String"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_column" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_line" > - <argument index="0" name="line" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_get_column" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="cursor_get_line" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_readonly" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_wrap" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="set_max_chars" > - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="cut" > - <description> - </description> - </method> - <method name="copy" > - <description> - </description> - </method> - <method name="paste" > - <description> - </description> - </method> - <method name="select_all" > - <description> - </description> - </method> - <method name="select" > - <argument index="0" name="from_line" type="int"> - </argument> - <argument index="1" name="from_column" type="int"> - </argument> - <argument index="2" name="to_line" type="int"> - </argument> - <argument index="3" name="to_column" type="int"> - </argument> - <description> - </description> - </method> - <method name="is_selection_active" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_selection_from_line" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_from_column" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_to_line" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_to_column" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_selection_text" qualifiers="const" > - <return type="String"> - </return> - <description> - </description> - </method> - <method name="search" qualifiers="const" > - <return type="IntArray"> - </return> - <argument index="0" name="flags" type="String"> - </argument> - <argument index="1" name="from_line" type="int"> - </argument> - <argument index="2" name="from_column" type="int"> - </argument> - <argument index="3" name="to_line" type="int"> - </argument> - <description> - </description> - </method> - <method name="undo" > - <description> - </description> - </method> - <method name="redo" > - <description> - </description> - </method> - <method name="clear_undo_history" > - <description> - </description> - </method> - <method name="set_syntax_coloring" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_syntax_coloring_enabled" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="add_keyword_color" > - <argument index="0" name="keyword" type="String"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="add_color_region" > - <argument index="0" name="begin_key" type="String"> - </argument> - <argument index="1" name="end_key" type="String"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <argument index="3" name="line_only" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="set_symbol_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="set_custom_bg_color" > - <argument index="0" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_colors" > - <description> - </description> - </method> - </methods> - <signals> - <signal name="text_changed"> - <description> - </description> - </signal> - <signal name="cursor_changed"> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="SEARCH_MATCH_CASE" value="1"> - </constant> - <constant name="SEARCH_BACKWARDS" value="4"> - </constant> - <constant name="SEARCH_WHOLE_WORDS" value="2"> - </constant> - </constants> -</class> -<class name="Texture" inherits="Resource" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="create" > - <argument index="0" name="width" type="int"> - </argument> - <argument index="1" name="height" type="int"> - </argument> - <argument index="2" name="format" type="int"> - </argument> - <argument index="3" name="flags" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="create_from_image" > - <argument index="0" name="image" type="Image"> - </argument> - <argument index="1" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_flags" > - <argument index="0" name="flags" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_flags" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_format" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="load" > - <argument index="0" name="path" type="String"> - </argument> - <description> - </description> - </method> - <method name="blit_rect" > - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="image" type="Image"> - </argument> - <argument index="3" name="cube_side" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_rect" qualifiers="const" > - <return type="Image"> - </return> - <argument index="0" name="x" type="int"> - </argument> - <argument index="1" name="y" type="int"> - </argument> - <argument index="2" name="width" type="int"> - </argument> - <argument index="3" name="height" type="int"> - </argument> - <argument index="4" name="cube_side" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="get_width" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_height" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_size" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - <method name="get_rid" qualifiers="const" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="has_alpha" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="draw" qualifiers="const" > - <argument index="0" name="canvas_item" type="RID"> - </argument> - <argument index="1" name="pos" type="Vector2"> - </argument> - <argument index="2" name="modulate" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="CUBEMAP_BACK" value="5"> - </constant> - <constant name="CUBEMAP_FRONT" value="4"> - </constant> - <constant name="FLAG_CUBEMAP" value="8"> - </constant> - <constant name="CUBEMAP_TOP" value="3"> - </constant> - <constant name="CUBEMAP_LEFT" value="0"> - </constant> - <constant name="FLAG_FILTER" value="4"> - </constant> - <constant name="FLAG_MIPMAPS" value="1"> - </constant> - <constant name="CUBEMAP_BOTTOM" value="2"> - </constant> - <constant name="FLAGS_DEFAULT" value="7"> - </constant> - <constant name="CUBEMAP_RIGHT" value="1"> - </constant> - <constant name="FLAG_REPEAT" value="2"> - </constant> - </constants> -</class> -<class name="TextureButton" inherits="BaseButton" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_normal_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_pressed_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_hover_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_disabled_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_focused_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_click_mask" > - <argument index="0" name="texture" type="Image"> - </argument> - <description> - </description> - </method> - <method name="get_normal_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_pressed_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_hover_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_disabled_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_focused_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_click_mask" qualifiers="const" > - <return type="Image"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="TextureFrame" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_texture" > - <argument index="0" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_texture" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_expand" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_expand" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Theme" inherits="Resource" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_icon" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_icon" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_icon" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_icon_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_stylebox" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_stylebox" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_stylebox" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_stylebox" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_stylebox_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_font" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="font" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_font" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_font" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_font" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_font_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_color" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="get_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_color" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_color" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_color_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="set_constant" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <argument index="2" name="constant" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_constant" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="has_constant" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="clear_constant" > - <argument index="0" name="name" type="String"> - </argument> - <argument index="1" name="type" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_constant_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_type_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="String"> - </argument> - <description> - </description> - </method> - <method name="copy_default_theme" > - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="Timer" inherits="Node" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_wait_time" > - <argument index="0" name="time_sec" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_wait_time" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - <method name="set_one_shot" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_one_shot" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_autostart" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="has_autostart" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="start" > - <description> - </description> - </method> - <method name="stop" > - <description> - </description> - </method> - <method name="get_time_left" qualifiers="const" > - <return type="real"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="timeout"> - <description> - </description> - </signal> - </signals> - <constants> - </constants> -</class> -<class name="Tree" inherits="Control" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="clear" > - <description> - </description> - </method> - <method name="create_item" > - <return type="Object"> - </return> - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_root" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="set_column_min_width" > - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_column_expand" > - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_column_width" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_hide_root" > - <argument index="0" name="arg0" type="bool"> - </argument> - <description> - </description> - </method> - <method name="get_next_selected" > - <return type="Object"> - </return> - <argument index="0" name="arg0" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_selected" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_selected_column" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_pressed_button" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="set_select_mode" > - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_columns" > - <argument index="0" name="amount" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_columns" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_edited" qualifiers="const" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_edited_column" qualifiers="const" > - <return type="int"> - </return> - <description> - </description> - </method> - <method name="get_custom_popup_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_item_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <argument index="0" name="item" type="Object"> - </argument> - <argument index="1" name="column" type="int" default="-1"> - </argument> - <description> - </description> - </method> - <method name="ensure_cursor_is_visible" > - <description> - </description> - </method> - <method name="set_column_titles_visible" > - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="are_column_titles_visible" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_column_title" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="title" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_column_title" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_scroll" qualifiers="const" > - <return type="Vector2"> - </return> - <description> - </description> - </method> - </methods> - <signals> - <signal name="multi_selected"> - <description> - </description> - </signal> - <signal name="custom_popup_edited"> - <argument index="0" name="arrow_clicked" type="bool"> - </argument> - <description> - </description> - </signal> - <signal name="item_edited"> - <description> - </description> - </signal> - <signal name="item_selected"> - <description> - </description> - </signal> - <signal name="item_doubleclicked"> - <description> - </description> - </signal> - <signal name="cell_selected"> - <description> - </description> - </signal> - <signal name="button_pressed"> - <argument index="0" name="item" type="Object"> - </argument> - <argument index="1" name="column" type="int"> - </argument> - <argument index="2" name="id" type="int"> - </argument> - <description> - </description> - </signal> - </signals> - <constants> - <constant name="SELECT_ROW" value="1"> - </constant> - <constant name="SELECT_SINGLE" value="0"> - </constant> - <constant name="SELECT_MULTI" value="2"> - </constant> - </constants> -</class> -<class name="TreeItem" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_cell_mode" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_cell_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_checked" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="checked" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_checked" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_text" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="text" type="String"> - </argument> - <description> - </description> - </method> - <method name="get_text" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_icon" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="texture" type="Object"> - </argument> - <description> - </description> - </method> - <method name="get_icon" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_range" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="value" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_range" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_range_config" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="min" type="real"> - </argument> - <argument index="2" name="max" type="real"> - </argument> - <argument index="3" name="step" type="real"> - </argument> - <description> - </description> - </method> - <method name="get_range_config" > - <return type="Dictionary"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_metadata" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="meta" type="var"> - </argument> - <description> - </description> - </method> - <method name="get_metadata" qualifiers="const" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_collapsed" > - <argument index="0" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_collapsed" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="get_next" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_prev" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_parent" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_children" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_next_visible" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="get_prev_visible" > - <return type="Object"> - </return> - <description> - </description> - </method> - <method name="remove_child" > - <argument index="0" name="child" type="Object"> - </argument> - <description> - </description> - </method> - <method name="set_selectable" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="selectable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_selected" > - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="select" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="deselect" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_editable" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="enabled" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_editable" > - <return type="bool"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_custom_color" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_custom_color" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="set_custom_bg_color" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="color" type="Color"> - </argument> - <description> - </description> - </method> - <method name="clear_custom_bg_color" > - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="add_button" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button" type="Object"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <description> - </description> - </method> - <method name="get_button" qualifiers="const" > - <return type="Object"> - </return> - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <description> - </description> - </method> - <method name="erase_button" > - <argument index="0" name="column" type="int"> - </argument> - <argument index="1" name="button_idx" type="int"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="CELL_MODE_ICON" value="3"> - </constant> - <constant name="CELL_MODE_CUSTOM" value="4"> - </constant> - <constant name="CELL_MODE_RANGE" value="2"> - </constant> - <constant name="CELL_MODE_CHECK" value="1"> - </constant> - <constant name="CELL_MODE_STRING" value="0"> - </constant> - </constants> -</class> -<class name="VScrollBar" inherits="ScrollBar" category="Nodes/GUI Nodes"> - <brief_description> - Vertical version of [ScrollBar], which goes from left (min) to right (max). - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VSeparator" inherits="Separator" category="Nodes/GUI Nodes"> - <brief_description> - Vertical version of [Separator]. - </brief_description> - <description> - Vertical version of [Separator]. It is used to separate objects horizontally, though (but it looks vertical!). - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="VSlider" inherits="Slider" category="Nodes/GUI Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -<class name="Viewport" inherits="Node" category="Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="set_rect" > - <argument index="0" name="rect" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="get_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_visible_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <description> - </description> - </method> - <method name="get_viewport" qualifiers="const" > - <return type="RID"> - </return> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VisualInstance" inherits="Spatial" category="Nodes/3D/3D Visual Nodes"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="override_material_param" > - <argument index="0" name="param" type="String"> - </argument> - <argument index="1" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="set_visible" > - <argument index="0" name="visible" type="bool"> - </argument> - <description> - </description> - </method> - <method name="is_visible" qualifiers="const" > - <return type="bool"> - </return> - <description> - </description> - </method> - <method name="set_base" > - <argument index="0" name="base" type="RID"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - </constants> -</class> -<class name="VisualServer" inherits="Object" category="Core"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - <method name="texture_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="texture_create_from_image" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="Image"> - </argument> - <argument index="1" name="arg1" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="texture_allocate" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <argument index="3" name="arg3" type="int"> - </argument> - <argument index="4" name="arg4" type="int" default="7"> - </argument> - <description> - </description> - </method> - <method name="texture_blit_rect" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <argument index="3" name="arg3" type="Image"> - </argument> - <argument index="4" name="arg4" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="texture_set_flags" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="texture_get_flags" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="texture_get_width" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="texture_get_height" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_create" > - <return type="RID"> - </return> - <argument index="0" name="mode" type="int" default="0"> - </argument> - <description> - </description> - </method> - <method name="shader_set_mode" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="mode" type="int"> - </argument> - <description> - </description> - </method> - <method name="shader_get_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_vertex_code" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_vertex_code" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_fragment_code" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="code" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_fragment_code" qualifiers="const" > - <return type="String"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_param" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="String"> - </argument> - <argument index="2" name="value" type="var"> - </argument> - <description> - </description> - </method> - <method name="shader_get_param" qualifiers="const" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="param" type="String"> - </argument> - <description> - </description> - </method> - <method name="shader_get_param_list" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="shader_set_use_world_transform" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="enable" type="bool"> - </argument> - <description> - </description> - </method> - <method name="shader_is_using_world_transform" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="shader" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="material_set_shader" > - <argument index="0" name="shader" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_get_shader" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_set_param" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="var"> - </argument> - <description> - </description> - </method> - <method name="material_get_param" qualifiers="const" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="material_set_flag" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="bool"> - </argument> - <description> - </description> - </method> - <method name="material_get_flag" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="material_set_blend_mode" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="material_get_blend_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="material_set_line_width" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="material_get_line_width" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_parameter" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="var"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_parameter" qualifiers="const" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texture" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texture" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texgen_mode" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texgen_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_texcoord_mode" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_texcoord_mode" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_set_uv_transform" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="fixed_material_get_uv_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="mesh_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="mesh_surface_set_array" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <argument index="3" name="arg3" type="var"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array" qualifiers="const" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_set_material" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_material" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array_len" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_array_index_len" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_format" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_surface_get_primitive_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_erase_surface" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="mesh_get_surface_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="multimesh_set_mesh" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_set_aabb" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_set_transform" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_set_color" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="multimesh_get_mesh" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="multimesh_get_aabb" qualifiers="const" > - <return type="AABB"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_get_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="multimesh_instance_get_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="poly_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="poly_set_material" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <argument index="2" name="arg2" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="poly_add_primitive" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector3Array"> - </argument> - <argument index="2" name="arg2" type="Vector3Array"> - </argument> - <argument index="3" name="arg3" type="ColorArray"> - </argument> - <argument index="4" name="arg4" type="Vector3Array"> - </argument> - <description> - </description> - </method> - <method name="poly_clear" > - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="particles_set_amount" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_amount" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_emitting" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="particles_is_emitting" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_visibility_aabb" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="AABB"> - </argument> - <description> - </description> - </method> - <method name="particles_get_visibility_aabb" qualifiers="const" > - <return type="AABB"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_variable" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_variable" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_randomness" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_randomness" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phases" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phases" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phase_pos" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phase_pos" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_color_phase_color" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="particles_get_color_phase_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractors" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractors" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractor_pos" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Vector3"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractor_pos" qualifiers="const" > - <return type="Vector3"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_attractor_strength" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="particles_get_attractor_strength" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="particles_set_material" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <argument index="2" name="arg2" type="bool" default="false"> - </argument> - <description> - </description> - </method> - <method name="particles_set_height_from_velocity" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="particles_has_height_from_velocity" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_create" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <description> - </description> - </method> - <method name="light_get_type" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_color" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="light_get_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="light_set_shadow" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="light_has_shadow" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_volumetric" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="light_is_volumetric" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_projector" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_get_projector" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="light_set_var" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="light_get_var" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="skeleton_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="skeleton_resize" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="skeleton_get_bone_count" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="skeleton_bone_set_transform" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="skeleton_bone_get_transform" > - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="room_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="room_set_bounds" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Dictionary"> - </argument> - <description> - </description> - </method> - <method name="room_get_bounds" qualifiers="const" > - <return type="Dictionary"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="portal_set_shape" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Array"> - </argument> - <description> - </description> - </method> - <method name="portal_get_shape" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_enabled" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="portal_is_enabled" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_disable_distance" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="portal_get_disable_distance" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="portal_set_disabled_color" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Color"> - </argument> - <description> - </description> - </method> - <method name="portal_get_disabled_color" qualifiers="const" > - <return type="Color"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="camera_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="camera_set_perspective" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <argument index="3" name="arg3" type="real"> - </argument> - <description> - </description> - </method> - <method name="camera_set_orthogonal" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <argument index="3" name="arg3" type="real"> - </argument> - <description> - </description> - </method> - <method name="camera_set_transform" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="viewport_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="viewport_set_rect" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_rect" qualifiers="const" > - <return type="Rect2"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_attach_camera" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_attached_camera" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_get_scenario" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_attach_canvas" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_remove_canvas" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_move_canvas_to_top" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="viewport_move_canvas_to_bottom" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="scenario_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="scenario_set_debug" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effects" qualifiers="const" > - <return type="StringArray"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_set_active" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="bool"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_is_active" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effect_params" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_get_effect_param" qualifiers="const" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="String"> - </argument> - <description> - </description> - </method> - <method name="scenario_fx_set_effect_param" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="String"> - </argument> - <argument index="2" name="arg2" type="String"> - </argument> - <argument index="3" name="arg3" type="var"> - </argument> - <description> - </description> - </method> - <method name="instance_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="instance_get_base" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_base_aabb" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_transform" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Transform"> - </argument> - <description> - </description> - </method> - <method name="instance_get_transform" qualifiers="const" > - <return type="Transform"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_attach_object_instance_ID" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="instance_get_object_instance_ID" qualifiers="const" > - <return type="int"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_attach_skeleton" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_skeleton" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_room" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_get_room" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_set_exterior" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="instance_is_exterior" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_aabb" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="arg0" type="AABB"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_ray" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="arg0" type="Vector3"> - </argument> - <argument index="1" name="arg1" type="Vector3"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instances_cull_convex" qualifiers="const" > - <return type="Array"> - </return> - <argument index="0" name="arg0" type="Vector3"> - </argument> - <argument index="1" name="arg1" type="Vector3"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_set_visible" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_is_visible" qualifiers="const" > - <return type="bool"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_override_material_param" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="instance_geometry_get_material_param" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="canvas_item_create" > - <return type="RID"> - </return> - <description> - </description> - </method> - <method name="canvas_item_set_parent" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_parent" qualifiers="const" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_custom_rect" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <argument index="2" name="arg2" type="Rect2"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_clip" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="bool"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_opacity" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_opacity" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_set_self_opacity" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_get_self_opacity" qualifiers="const" > - <return type="real"> - </return> - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="real"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_line" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2"> - </argument> - <argument index="2" name="arg2" type="Vector2"> - </argument> - <argument index="3" name="arg3" type="Color"> - </argument> - <argument index="4" name="arg4" type="real" default="1"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_rect" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="Color"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_texture_rect" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="bool"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_texture_rect_region" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="Rect2"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_style_box" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Rect2"> - </argument> - <argument index="2" name="arg2" type="RID"> - </argument> - <argument index="3" name="arg3" type="RealArray"> - </argument> - <argument index="4" name="arg4" type="Color" default="Color(1,1,1,1)"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_add_primitive" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Array"> - </argument> - <argument index="2" name="arg2" type="ColorArray"> - </argument> - <argument index="3" name="arg3" type="Array" default="Array()"> - </argument> - <argument index="4" name="arg4" type="RID" default="RID()"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_clear" > - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="canvas_item_raise" > - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_rotation" > - <argument index="0" name="arg0" type="real"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_texture" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Vector2"> - </argument> - <argument index="2" name="arg2" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_visible" > - <argument index="0" name="arg0" type="bool"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="cursor_set_pos" > - <argument index="0" name="arg0" type="Vector2"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <description> - </description> - </method> - <method name="make_sphere_mesh" > - <return type="RID"> - </return> - <argument index="0" name="arg0" type="int"> - </argument> - <argument index="1" name="arg1" type="int"> - </argument> - <argument index="2" name="arg2" type="real"> - </argument> - <description> - </description> - </method> - <method name="mesh_add_surface_from_planes" > - <argument index="0" name="arg0" type="RID"> - </argument> - <argument index="1" name="arg1" type="Array"> - </argument> - <description> - </description> - </method> - <method name="free" > - <argument index="0" name="arg0" type="RID"> - </argument> - <description> - </description> - </method> - </methods> - <constants> - <constant name="INSTANCE_GEOMETRY_MASK" value="30"> - </constant> - <constant name="INSTANCE_PARTICLES" value="4"> - </constant> - <constant name="SCENARIO_DEBUG_WIREFRAME" value="1"> - </constant> - <constant name="LIGHT_VAR_ATTENUATION" value="4"> - </constant> - <constant name="LIGHT_VAR_SPOT_ANGLE" value="1"> - </constant> - <constant name="LIGHT_COLOR_DIFFUSE" value="1"> - </constant> - <constant name="PARTICLE_ANGULAR_VELOCITY" value="4"> - </constant> - <constant name="INSTANCE_LIGHT" value="5"> - </constant> - <constant name="INSTANCE_MULTIMESH" value="2"> - </constant> - <constant name="PARTICLE_HEIGHT" value="11"> - </constant> - <constant name="PARTICLE_LINEAR_VELOCITY" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_SPECULAR" value="2"> - </constant> - <constant name="ARRAY_VERTEX" value="0"> - </constant> - <constant name="LIGHT_SPOT" value="2"> - </constant> - <constant name="CUBEMAP_BACK" value="5"> - </constant> - <constant name="MATERIAL_FLAG_MAX" value="7"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_DETAIL_MIX" value="6"> - </constant> - <constant name="ARRAY_COLOR" value="3"> - </constant> - <constant name="ARRAY_FORMAT_BONES" value="64"> - </constant> - <constant name="PRIMITIVE_MAX" value="7"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SPHERE" value="1"> - </constant> - <constant name="ARRAY_FORMAT_INDEX" value="256"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_STRIP" value="5"> - </constant> - <constant name="MAX_PARTICLE_ATTRACTORS" value="4"> - </constant> - <constant name="TEXTURE_FLAG_FILTER" value="4"> - </constant> - <constant name="CUBEMAP_TOP" value="3"> - </constant> - <constant name="MATERIAL_BLEND_MODE_ADD" value="1"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_TEXGEN" value="3"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV" value="0"> - </constant> - <constant name="ARRAY_TANGENT" value="2"> - </constant> - <constant name="ARRAY_FORMAT_NORMAL" value="2"> - </constant> - <constant name="INFO_VIDEO_MEM_USED" value="3"> - </constant> - <constant name="LIGHT_VAR_SPOT_ATTENUATION" value="0"> - </constant> - <constant name="TEXTURE_FLAG_MIPMAPS" value="1"> - </constant> - <constant name="MATERIAL_FLAG_INVERT_FACES" value="2"> - </constant> - <constant name="MATERIAL_BLEND_MODE_SUB" value="2"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_DETAIL" value="1"> - </constant> - <constant name="INSTANCE_ROOM" value="6"> - </constant> - <constant name="INSTANCE_MESH" value="1"> - </constant> - <constant name="SCENARIO_DEBUG_DISABLED" value="0"> - </constant> - <constant name="PARTICLE_VAR_MAX" value="13"> - </constant> - <constant name="PRIMITIVE_TRIANGLES" value="4"> - </constant> - <constant name="PRIMITIVE_LINE_STRIP" value="2"> - </constant> - <constant name="TEXTURE_FLAGS_DEFAULT" value="7"> - </constant> - <constant name="CUBEMAP_BOTTOM" value="2"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SCREENZ" value="3"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV2" value="2"> - </constant> - <constant name="ARRAY_FORMAT_TEX_UV" value="16"> - </constant> - <constant name="ARRAY_FORMAT_WEIGHTS" value="128"> - </constant> - <constant name="INFO_MATERIAL_CHANGES_IN_FRAME" value="1"> - </constant> - <constant name="PARTICLE_SPREAD" value="1"> - </constant> - <constant name="PARTICLE_LIFETIME" value="0"> - </constant> - <constant name="PRIMITIVE_TRIANGLE_FAN" value="6"> - </constant> - <constant name="NO_INDEX_ARRAY" value="-1"> - </constant> - <constant name="MATERIAL_FLAG_BILLBOARD" value="6"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_LOCAL_XY" value="0"> - </constant> - <constant name="SCENARIO_DEBUG_OVERDRAW" value="2"> - </constant> - <constant name="PARTICLE_HEIGHT_SPEED_SCALE" value="12"> - </constant> - <constant name="PARTICLE_INITIAL_ANGLE" value="10"> - </constant> - <constant name="PARTICLE_TANGENTIAL_ACCELERATION" value="7"> - </constant> - <constant name="PRIMITIVE_LINES" value="1"> - </constant> - <constant name="CUSTOM_ARRAY_SIZE" value="8"> - </constant> - <constant name="ARRAY_WEIGHTS_SIZE" value="4"> - </constant> - <constant name="MATERIAL_FLAG_UNSHADED" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_DIFFUSE" value="0"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_MAX" value="9"> - </constant> - <constant name="LIGHT_COLOR_SPECULAR" value="2"> - </constant> - <constant name="MATERIAL_BLEND_MODE_MIX" value="0"> - </constant> - <constant name="MATERIAL_BLEND_MODE_MUL" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_EMISSION" value="3"> - </constant> - <constant name="ARRAY_MAX" value="9"> - </constant> - <constant name="ARRAY_FORMAT_VERTEX" value="1"> - </constant> - <constant name="INFO_OBJECTS_IN_FRAME" value="0"> - </constant> - <constant name="LIGHT_VAR_MAX" value="6"> - </constant> - <constant name="LIGHT_COLOR_AMBIENT" value="0"> - </constant> - <constant name="LIGHT_DIRECTIONAL" value="0"> - </constant> - <constant name="PRIMITIVE_POINTS" value="0"> - </constant> - <constant name="CUBEMAP_FRONT" value="4"> - </constant> - <constant name="SHADER_MATERIAL" value="0"> - </constant> - <constant name="MATERIAL_FLAG_VISIBLE" value="0"> - </constant> - <constant name="ARRAY_BONES" value="6"> - </constant> - <constant name="ARRAY_FORMAT_COLOR" value="8"> - </constant> - <constant name="INSTANCE_PORTAL" value="7"> - </constant> - <constant name="MAX_CURSORS" value="8"> - </constant> - <constant name="TEXTURE_FLAG_CUBEMAP" value="8"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_GLOW" value="5"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_NORMAL" value="7"> - </constant> - <constant name="ARRAY_INDEX" value="8"> - </constant> - <constant name="INFO_VERTEX_MEM_USED" value="5"> - </constant> - <constant name="INFO_USAGE_VIDEO_MEM_TOTAL" value="2"> - </constant> - <constant name="LIGHT_VAR_RADIUS" value="2"> - </constant> - <constant name="PARTICLE_FINAL_SIZE" value="9"> - </constant> - <constant name="PARTICLE_INITIAL_SIZE" value="8"> - </constant> - <constant name="PARTICLE_LINEAR_ACCELERATION" value="5"> - </constant> - <constant name="CUBEMAP_LEFT" value="0"> - </constant> - <constant name="MATERIAL_FLAG_ONTOP" value="4"> - </constant> - <constant name="FIXED_MATERIAL_TEXGEN_SCREEN" value="2"> - </constant> - <constant name="ARRAY_NORMAL" value="1"> - </constant> - <constant name="ARRAY_FORMAT_TANGENT" value="4"> - </constant> - <constant name="INSTANCE_POLY" value="3"> - </constant> - <constant name="FIXED_MATERIAL_PARAM_SPECULAR_EXP" value="4"> - </constant> - <constant name="LIGHT_VAR_ENERGY" value="3"> - </constant> - <constant name="PARTICLE_RADIAL_ACCELERATION" value="6"> - </constant> - <constant name="PARTICLE_GRAVITY" value="2"> - </constant> - <constant name="PRIMITIVE_LINE_LOOP" value="3"> - </constant> - <constant name="MATERIAL_FLAG_WIREFRAME" value="5"> - </constant> - <constant name="ARRAY_TEX_UV" value="4"> - </constant> - <constant name="ARRAY_WEIGHTS" value="7"> - </constant> - <constant name="INFO_TEXTURE_MEM_USED" value="4"> - </constant> - <constant name="LIGHT_OMNI" value="1"> - </constant> - <constant name="MAX_PARTICLE_COLOR_PHASES" value="4"> - </constant> - <constant name="TEXTURE_FLAG_REPEAT" value="2"> - </constant> - <constant name="CUBEMAP_RIGHT" value="1"> - </constant> - <constant name="SHADER_POST_PROCESS" value="1"> - </constant> - <constant name="MATERIAL_FLAG_DOUBLE_SIDED" value="1"> - </constant> - <constant name="FIXED_MATERIAL_TEXCOORD_UV_TRANSFORM" value="1"> - </constant> - </constants> -</class> -<class name="World" inherits="Resource" category="Resources"> - <brief_description> - </brief_description> - <description> - </description> - <methods> - </methods> - <constants> - </constants> -</class> -</doc> diff --git a/tools/docdump/main.css b/tools/docdump/main.css deleted file mode 100644 index a76e6bbed8..0000000000 --- a/tools/docdump/main.css +++ /dev/null @@ -1,146 +0,0 @@ -BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV, SPAN { - font-family: Arial, Geneva, Helvetica, sans-serif; -} - -a { - - text-decoration: none; - -} - -a:hover { - - text-decoration: underline; -} - -td.top_table { - - padding: 5px; -} - -div.method_doc { - - padding-bottom: 30px; -} - -div.method_description { - margin-left: 30px; -} - -list.inh_class_list { - margin-left: 30px; - -} - -div.inh_class_list { - margin-left: 30px; - -} - -div.method_doc div.method { - - font-size: 12pt; - font-weight: bold; -} - -span.funcdecl { - - color: #202060; -} - -span.funcdef { - - color: #202060; -} - - -span.qualifier { - - font-weight: bold; -} - - -span.symbol { - - /*font-weight: bold;*/ - color: #471870; -} - - -span.datatype { - - color: #6a1533; -} - -tr.category_title { - - background-color: #333333; -} -a.category_title { - font-weight: bold; - color: #FFFFFF; -} - -div.method_list { - - margin-left: 30px; -} - -div.constant_list { - - margin-left: 30px; -} - -div.member_list { - - margin-left: 30px; -} - -div.description { - - margin-left: 30px; -} - -div.class_description { - - margin-left: 30px; -} - -div.method_list li div { - - display: inline; -} - -div.member_list li div.member { - - display: inline; -} - -div.constant_list li div.constant { - - display: inline; -} - -span.member_description { - - font-style: italic; - color: grey; -} - -span.constant_description { - - font-style: italic; - color: grey; -} - -span.identifier { - - font-weight: bold; -} - - -table.class_table td { - - vertical-align: top; -} - diff --git a/tools/editor/editor_data.cpp b/tools/editor/editor_data.cpp index a6aedf2706..e9f9e09acd 100644 --- a/tools/editor/editor_data.cpp +++ b/tools/editor/editor_data.cpp @@ -31,6 +31,9 @@ #include "editor_settings.h" #include "os/dir_access.h" #include "io/resource_loader.h" +#include "scene/resources/packed_scene.h" +#include "os/file_access.h" +#include "editor_node.h" void EditorHistory::_cleanup_history() { @@ -493,6 +496,93 @@ void EditorData::remove_scene(int p_idx){ edited_scene.remove(p_idx); } + +bool EditorData::_find_updated_instances(Node* p_root,Node *p_node,Set<String> &checked_paths) { + + if (p_root!=p_node && p_node->get_owner()!=p_root && !p_root->is_editable_instance(p_node->get_owner())) + return false; + + Ref<SceneState> ss; + + if (p_node==p_root) { + ss=p_node->get_scene_inherited_state(); + } else if (p_node->get_filename()!=String()){ + ss=p_node->get_scene_instance_state(); + } + + if (ss.is_valid()) { + String path = ss->get_path(); + + if (!checked_paths.has(path)) { + + uint64_t modified_time = FileAccess::get_modified_time(path); + if (modified_time!=ss->get_last_modified_time()) { + return true; //external scene changed + } + + checked_paths.insert(path); + } + + } + + for(int i=0;i<p_node->get_child_count();i++) { + + bool found = _find_updated_instances(p_root,p_node->get_child(i),checked_paths); + if (found) + return true; + } + + return false; +} + + +bool EditorData::check_and_update_scene(int p_idx) { + + ERR_FAIL_INDEX_V(p_idx,edited_scene.size(),false); + if (!edited_scene[p_idx].root) + return false; + + Set<String> checked_scenes; + + + bool must_reload = _find_updated_instances(edited_scene[p_idx].root,edited_scene[p_idx].root,checked_scenes); + + if (must_reload) { + Ref<PackedScene> pscene; + pscene.instance(); + + EditorProgress ep("update_scene","Updating Scene",2); + ep.step("Storing local changes..",0); + //pack first, so it stores diffs to previous version of saved scene + Error err = pscene->pack(edited_scene[p_idx].root); + ERR_FAIL_COND_V(err!=OK,false); + ep.step("Updating scene..",1); + Node *new_scene = pscene->instance(true); + ERR_FAIL_COND_V(!new_scene,false); + + //transfer selection + List<Node*> new_selection; + for (List<Node*>::Element *E=edited_scene[p_idx].selection.front();E;E=E->next()) { + NodePath p = edited_scene[p_idx].root->get_path_to(E->get()); + Node *new_node = new_scene->get_node(p); + if (new_node) + new_selection.push_back(new_node); + } + + new_scene->set_filename( edited_scene[p_idx].root->get_filename() ); + + memdelete(edited_scene[p_idx].root); + edited_scene[p_idx].root=new_scene; + edited_scene[p_idx].selection=new_selection; + + return true; + + } + + return false; + +} + int EditorData::get_edited_scene() const { return current_edited_scene; diff --git a/tools/editor/editor_data.h b/tools/editor/editor_data.h index a90a071c39..51af7d41bd 100644 --- a/tools/editor/editor_data.h +++ b/tools/editor/editor_data.h @@ -144,6 +144,8 @@ private: Vector<EditedScene> edited_scene; int current_edited_scene; + bool _find_updated_instances(Node* p_root,Node *p_node,Set<String> &checked_paths); + public: EditorPlugin* get_editor(Object *p_object); @@ -193,6 +195,7 @@ public: void clear_edited_scenes(); void set_edited_scene_live_edit_root(const NodePath& p_root); NodePath get_edited_scene_live_edit_root(); + bool check_and_update_scene(int p_idx); void set_plugin_window_layout(Ref<ConfigFile> p_layout); diff --git a/tools/editor/editor_import_export.cpp b/tools/editor/editor_import_export.cpp index 3cd5cfd629..b6c68d05be 100644 --- a/tools/editor/editor_import_export.cpp +++ b/tools/editor/editor_import_export.cpp @@ -43,6 +43,7 @@ #include "tools/editor/plugins/script_editor_plugin.h" #include "io/zip_io.h" + String EditorImportPlugin::validate_source_path(const String& p_path) { String gp = Globals::get_singleton()->globalize_path(p_path); diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 3dbca760f0..05df0a3e48 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -955,7 +955,23 @@ void EditorNode::_save_scene(String p_file) { _set_scene_metadata(); - Ref<PackedScene> sdata = memnew( PackedScene ); + + + Ref<PackedScene> sdata; + + if (ResourceCache::has(p_file)) { + // something may be referencing this resource and we are good with that. + // we must update it, but also let the previous scene state go, as + // old version still work for referencing changes in instanced or inherited scenes + + sdata = Ref<PackedScene>( ResourceCache::get(p_file)->cast_to<PackedScene>() ); + if (sdata.is_valid()) + sdata->recreate_state(); + else + sdata.instance(); + } else { + sdata.instance(); + } Error err = sdata->pack(scene); @@ -3414,8 +3430,18 @@ void EditorNode::set_current_version(uint64_t p_version) { bool EditorNode::is_changing_scene() const { return changing_scene; } + +void EditorNode::_clear_undo_history() { + + get_undo_redo()->clear_history(); +} + void EditorNode::set_current_scene(int p_idx) { + if (editor_data.check_and_update_scene(p_idx)) { + call_deferred("_clear_undo_history"); + } + changing_scene=true; editor_data.save_edited_scene_state(editor_selection,&editor_history,_get_main_scene_state()); @@ -4113,6 +4139,7 @@ void EditorNode::_bind_methods() { ObjectTypeDB::bind_method("_toggle_search_bar",&EditorNode::_toggle_search_bar); ObjectTypeDB::bind_method("_clear_search_box",&EditorNode::_clear_search_box); + ObjectTypeDB::bind_method("_clear_undo_history",&EditorNode::_clear_undo_history); ObjectTypeDB::bind_method(_MD("add_editor_import_plugin", "plugin"), &EditorNode::add_editor_import_plugin); ObjectTypeDB::bind_method(_MD("remove_editor_import_plugin", "plugin"), &EditorNode::remove_editor_import_plugin); diff --git a/tools/editor/editor_node.h b/tools/editor/editor_node.h index bd25f27c59..c4429f943b 100644 --- a/tools/editor/editor_node.h +++ b/tools/editor/editor_node.h @@ -540,6 +540,7 @@ class EditorNode : public Node { void _toggle_search_bar(bool p_pressed); void _clear_search_box(); + void _clear_undo_history(); protected: void _notification(int p_what); diff --git a/tools/editor/icons/icon_list_select.png b/tools/editor/icons/icon_list_select.png Binary files differnew file mode 100644 index 0000000000..cbe81d4328 --- /dev/null +++ b/tools/editor/icons/icon_list_select.png diff --git a/tools/editor/io_plugins/editor_export_scene.cpp b/tools/editor/io_plugins/editor_export_scene.cpp index cd5c34e53b..dff41a59ed 100644 --- a/tools/editor/io_plugins/editor_export_scene.cpp +++ b/tools/editor/io_plugins/editor_export_scene.cpp @@ -100,7 +100,7 @@ Vector<uint8_t> EditorSceneExportPlugin::custom_export(String& p_path,const Ref< Vector<uint8_t> ret = FileAccess::get_file_as_array(tmp_path+"scnexp-"+md5+".scn"); - p_path+=".optimized.scn"; + p_path+=".converted.scn"; return ret; diff --git a/tools/editor/io_plugins/editor_sample_import_plugin.cpp b/tools/editor/io_plugins/editor_sample_import_plugin.cpp index 7888246956..28eeb56b4b 100644 --- a/tools/editor/io_plugins/editor_sample_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_sample_import_plugin.cpp @@ -859,7 +859,7 @@ Vector<uint8_t> EditorSampleExportPlugin::custom_export(String& p_path,const Ref ERR_FAIL_COND_V(err!=OK,Vector<uint8_t>()); - p_path=p_path.basename()+".smp"; + p_path=p_path.basename()+".converted.smp"; return FileAccess::get_file_as_array(savepath); } diff --git a/tools/editor/io_plugins/editor_texture_import_plugin.cpp b/tools/editor/io_plugins/editor_texture_import_plugin.cpp index 8d5a4f1dcf..92ef57a69e 100644 --- a/tools/editor/io_plugins/editor_texture_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_texture_import_plugin.cpp @@ -1666,7 +1666,7 @@ EditorTextureImportPlugin::EditorTextureImportPlugin(EditorNode *p_editor, Mode if (pl.is_valid()) { Vector<uint8_t> ce = pl->custom_export(p_path,p_platform); if (ce.size()) { - p_path=p_path.basename()+".tex"; + p_path=p_path.basename()+".converted.tex"; return ce; } } @@ -1680,7 +1680,7 @@ EditorTextureImportPlugin::EditorTextureImportPlugin(EditorNode *p_editor, Mode if (pl.is_valid()) { Vector<uint8_t> ce = pl->custom_export(p_path,p_platform); if (ce.size()) { - p_path=p_path.basename()+".tex"; + p_path=p_path.basename()+".converted.tex"; return ce; } } diff --git a/tools/editor/plugins/canvas_item_editor_plugin.cpp b/tools/editor/plugins/canvas_item_editor_plugin.cpp index a3164fc524..0946383c8d 100644 --- a/tools/editor/plugins/canvas_item_editor_plugin.cpp +++ b/tools/editor/plugins/canvas_item_editor_plugin.cpp @@ -221,7 +221,7 @@ void CanvasItemEditor::_unhandled_key_input(const InputEvent& p_ev) { void CanvasItemEditor::_tool_select(int p_index) { - ToolButton *tb[TOOL_MAX]={select_button,move_button,rotate_button,pan_button}; + ToolButton *tb[TOOL_MAX]={select_button,list_select_button,move_button,rotate_button,pan_button}; for(int i=0;i<TOOL_MAX;i++) { tb[i]->set_pressed(i==p_index); @@ -938,6 +938,75 @@ bool CanvasItemEditor::get_remove_list(List<Node*> *p_list) { } +void CanvasItemEditor::_list_select(const InputEventMouseButton& b) { + + Point2 click=Point2(b.x,b.y); + + Node* scene = editor->get_edited_scene(); + if (!scene) + return; + + _find_canvas_items_at_pos(click, scene,transform,Matrix32(), selection_results); + + for(int i=0;i<selection_results.size();i++) { + CanvasItem *item=selection_results[i].item; + if (item!=scene && item->get_owner()!=scene && !scene->is_editable_instance(item->get_owner())) { + //invalid result + selection_results.remove(i); + i--; + } + + } + + if (selection_results.size() == 1) { + + CanvasItem *item = selection_results[0].item; + selection_results.clear(); + + additive_selection=b.mod.shift; + if (!_select(item, click, additive_selection, false)) + return; + + } else if (!selection_results.empty()) { + + selection_results.sort(); + + NodePath root_path = get_tree()->get_edited_scene_root()->get_path(); + StringName root_name = root_path.get_name(root_path.get_name_count()-1); + + for (int i = 0; i < selection_results.size(); i++) { + + CanvasItem *item=selection_results[i].item; + + + Ref<Texture> icon; + if (item->has_meta("_editor_icon")) + icon=item->get_meta("_editor_icon"); + else + icon=get_icon( has_icon(item->get_type(),"EditorIcons")?item->get_type():String("Object"),"EditorIcons"); + + String node_path="/"+root_name+"/"+root_path.rel_path_to(item->get_path()); + + selection_menu->add_item(item->get_name()); + selection_menu->set_item_icon(i, icon ); + selection_menu->set_item_metadata(i, node_path); + selection_menu->set_item_tooltip(i,String(item->get_name())+ + "\nType: "+item->get_type()+"\nPath: "+node_path); + } + + additive_selection=b.mod.shift; + + selection_menu->set_global_pos(Vector2( b.global_x, b.global_y )); + selection_menu->popup(); + selection_menu->call_deferred("grab_click_focus"); + selection_menu->set_invalidate_click_until_motion(); + + + return; + } + +} + void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) { { @@ -993,59 +1062,11 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) { if (b.button_index==BUTTON_RIGHT) { - if (b.pressed && tool==TOOL_SELECT && b.mod.alt) { - - Point2 click=Point2(b.x,b.y); - - Node* scene = editor->get_edited_scene(); - if (!scene) - return; - - _find_canvas_items_at_pos(click, scene,transform,Matrix32(), selection_results); - - if (selection_results.size() == 1) { - - CanvasItem *item = selection_results[0].item; - selection_results.clear(); - - additive_selection=b.mod.shift; - if (!_select(item, click, additive_selection, false)) - return; - - } else if (!selection_results.empty()) { - - selection_results.sort(); - - NodePath root_path = get_tree()->get_edited_scene_root()->get_path(); - StringName root_name = root_path.get_name(root_path.get_name_count()-1); - for (int i = 0; i < selection_results.size(); i++) { + if (b.pressed && (tool==TOOL_SELECT && b.mod.alt)) { - CanvasItem *item=selection_results[i].item; - - Ref<Texture> icon; - if (item->has_meta("_editor_icon")) - icon=item->get_meta("_editor_icon"); - else - icon=get_icon( has_icon(item->get_type(),"EditorIcons")?item->get_type():String("Object"),"EditorIcons"); - - String node_path="/"+root_name+"/"+root_path.rel_path_to(item->get_path()); - - selection_menu->add_item(item->get_name()); - selection_menu->set_item_icon(i, icon ); - selection_menu->set_item_metadata(i, node_path); - selection_menu->set_item_tooltip(i,String(item->get_name())+ - "\nType: "+item->get_type()+"\nPath: "+node_path); - } - - additive_selection=b.mod.shift; - - selection_menu->set_global_pos(Vector2( b.global_x, b.global_y )); - selection_menu->popup(); - selection_menu->call_deferred("grab_click_focus"); - - return; - } + _list_select(b); + return; } if (get_item_count() > 0 && drag!=DRAG_NONE) { @@ -1103,6 +1124,12 @@ void CanvasItemEditor::_viewport_input_event(const InputEvent& p_event) { //if (!canvas_items.size()) // return; + if (b.button_index==BUTTON_LEFT && tool==TOOL_LIST_SELECT) { + if (b.pressed) + _list_select(b); + return; + } + if (tool==TOOL_PAN || b.button_index!=BUTTON_LEFT || Input::get_singleton()->is_key_pressed(KEY_SPACE)) return; @@ -2118,6 +2145,7 @@ void CanvasItemEditor::_notification(int p_what) { } select_button->set_icon( get_icon("ToolSelect","EditorIcons")); + list_select_button->set_icon( get_icon("ListSelect","EditorIcons")); move_button->set_icon( get_icon("ToolMove","EditorIcons")); rotate_button->set_icon( get_icon("ToolRotate","EditorIcons")); pan_button->set_icon( get_icon("ToolPan", "EditorIcons")); @@ -3155,7 +3183,8 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) { hb->add_child(select_button); select_button->connect("pressed",this,"_tool_select",make_binds(TOOL_SELECT)); select_button->set_pressed(true); - select_button->set_tooltip("Select Mode (Q)\n"+keycode_get_string(KEY_MASK_CMD)+"Drag: Rotate\nAlt+Drag: Move\nPress 'v' to Change Pivot, 'Shift+v' to Drag Pivot (while moving)."); + select_button->set_tooltip("Select Mode (Q)\n"+keycode_get_string(KEY_MASK_CMD)+"Drag: Rotate\nAlt+Drag: Move\nPress 'v' to Change Pivot, 'Shift+v' to Drag Pivot (while moving).\nAlt+RMB: Depth list selection"); + move_button = memnew( ToolButton ); move_button->set_toggle_mode(true); @@ -3171,6 +3200,12 @@ CanvasItemEditor::CanvasItemEditor(EditorNode *p_editor) { hb->add_child(memnew(VSeparator)); + list_select_button = memnew( ToolButton ); + list_select_button->set_toggle_mode(true); + hb->add_child(list_select_button); + list_select_button->connect("pressed",this,"_tool_select",make_binds(TOOL_LIST_SELECT)); + list_select_button->set_tooltip("Show a list of all objects at the position clicked\n(same as Alt+RMB in selet mode)."); + pan_button = memnew( ToolButton ); pan_button->set_toggle_mode(true); hb->add_child(pan_button); diff --git a/tools/editor/plugins/canvas_item_editor_plugin.h b/tools/editor/plugins/canvas_item_editor_plugin.h index b96d36f7dc..2376e9f842 100644 --- a/tools/editor/plugins/canvas_item_editor_plugin.h +++ b/tools/editor/plugins/canvas_item_editor_plugin.h @@ -67,6 +67,7 @@ class CanvasItemEditor : public VBoxContainer { enum Tool { TOOL_SELECT, + TOOL_LIST_SELECT, TOOL_MOVE, TOOL_ROTATE, TOOL_PAN, @@ -240,6 +241,7 @@ class CanvasItemEditor : public VBoxContainer { List<PoseClipboard> pose_clipboard; ToolButton *select_button; + ToolButton *list_select_button; ToolButton *move_button; ToolButton *rotate_button; @@ -309,6 +311,7 @@ class CanvasItemEditor : public VBoxContainer { void _clear_canvas_items(); void _visibility_changed(ObjectID p_canvas_item); void _key_move(const Vector2& p_dir, bool p_snap, KeyMoveMODE p_move_mode); + void _list_select(const InputEventMouseButton& b); DragType _find_drag_type(const Matrix32& p_xform, const Rect2& p_local_rect, const Point2& p_click, Vector2& r_point); diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index 7816efe89f..92ad991d96 100644 --- a/tools/editor/plugins/spatial_editor_plugin.cpp +++ b/tools/editor/plugins/spatial_editor_plugin.cpp @@ -736,6 +736,68 @@ void SpatialEditorViewport::_smouseenter() { surface->grab_focus(); } +void SpatialEditorViewport::_list_select(InputEventMouseButton b) { + + _find_items_at_pos(Vector2( b.x, b.y ),clicked_includes_current,selection_results,b.mod.shift); + + Node *scene=editor->get_edited_scene(); + + for(int i=0;i<selection_results.size();i++) { + Spatial *item=selection_results[i].item; + if (item!=scene && item->get_owner()!=scene && !scene->is_editable_instance(item->get_owner())) { + //invalid result + selection_results.remove(i); + i--; + } + + } + + + clicked_wants_append=b.mod.shift; + + if (selection_results.size() == 1) { + + clicked=selection_results[0].item->get_instance_ID(); + selection_results.clear(); + + if (clicked) { + _select_clicked(clicked_wants_append,true); + clicked=0; + } + + } else if (!selection_results.empty()) { + + NodePath root_path = get_tree()->get_edited_scene_root()->get_path(); + StringName root_name = root_path.get_name(root_path.get_name_count()-1); + + for (int i = 0; i < selection_results.size(); i++) { + + Spatial *spat=selection_results[i].item; + + Ref<Texture> icon; + if (spat->has_meta("_editor_icon")) + icon=spat->get_meta("_editor_icon"); + else + icon=get_icon( has_icon(spat->get_type(),"EditorIcons")?spat->get_type():String("Object"),"EditorIcons"); + + String node_path="/"+root_name+"/"+root_path.rel_path_to(spat->get_path()); + + selection_menu->add_item(spat->get_name()); + selection_menu->set_item_icon(i, icon ); + selection_menu->set_item_metadata(i, node_path); + selection_menu->set_item_tooltip(i,String(spat->get_name())+ + "\nType: "+spat->get_type()+"\nPath: "+node_path); + } + + selection_menu->set_global_pos(Vector2( b.global_x, b.global_y )); + selection_menu->popup(); + selection_menu->call_deferred("grab_click_focus"); + selection_menu->set_invalidate_click_until_motion(); + + + + } +} void SpatialEditorViewport::_sinput(const InputEvent &p_event) { if (previewing) @@ -868,50 +930,9 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) { if (nav_scheme == NAVIGATION_MAYA) break; - _find_items_at_pos(Vector2( b.x, b.y ),clicked_includes_current,selection_results,b.mod.shift); - - clicked_wants_append=b.mod.shift; - - if (selection_results.size() == 1) { - - clicked=selection_results[0].item->get_instance_ID(); - selection_results.clear(); - - if (clicked) { - _select_clicked(clicked_wants_append,true); - clicked=0; - } - - } else if (!selection_results.empty()) { - - NodePath root_path = get_tree()->get_edited_scene_root()->get_path(); - StringName root_name = root_path.get_name(root_path.get_name_count()-1); - - for (int i = 0; i < selection_results.size(); i++) { - - Spatial *spat=selection_results[i].item; - - Ref<Texture> icon; - if (spat->has_meta("_editor_icon")) - icon=spat->get_meta("_editor_icon"); - else - icon=get_icon( has_icon(spat->get_type(),"EditorIcons")?spat->get_type():String("Object"),"EditorIcons"); + _list_select(b); + return; - String node_path="/"+root_name+"/"+root_path.rel_path_to(spat->get_path()); - - selection_menu->add_item(spat->get_name()); - selection_menu->set_item_icon(i, icon ); - selection_menu->set_item_metadata(i, node_path); - selection_menu->set_item_tooltip(i,String(spat->get_name())+ - "\nType: "+spat->get_type()+"\nPath: "+node_path); - } - - selection_menu->set_global_pos(Vector2( b.global_x, b.global_y )); - selection_menu->popup(); - selection_menu->call_deferred("grab_click_focus"); - - break; - } } } @@ -984,6 +1005,11 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) { break; } + if (spatial_editor->get_tool_mode()==SpatialEditor::TOOL_MODE_LIST_SELECT) { + _list_select(b); + break; + } + _edit.mouse_pos=Point2(b.x,b.y); _edit.snap=false; _edit.mode=TRANSFORM_NONE; @@ -2841,13 +2867,14 @@ void SpatialEditor::_menu_item_pressed(int p_option) { case MENU_TOOL_SELECT: case MENU_TOOL_MOVE: case MENU_TOOL_ROTATE: - case MENU_TOOL_SCALE: { + case MENU_TOOL_SCALE: + case MENU_TOOL_LIST_SELECT: { - for(int i=0;i<4;i++) + for(int i=0;i<TOOL_MAX;i++) tool_button[i]->set_pressed(i==p_option); tool_mode=(ToolMode)p_option; - static const char *_mode[]={"Selection Mode.","Translation Mode.","Rotation Mode.","Scale Mode."}; + static const char *_mode[]={"Selection Mode.","Translation Mode.","Rotation Mode.","Scale Mode.","List Selection Mode."}; // set_message(_mode[p_option],3); update_transform_gizmo(); @@ -3530,6 +3557,7 @@ void SpatialEditor::_notification(int p_what) { tool_button[SpatialEditor::TOOL_MODE_MOVE]->set_icon( get_icon("ToolMove","EditorIcons") ); tool_button[SpatialEditor::TOOL_MODE_ROTATE]->set_icon( get_icon("ToolRotate","EditorIcons") ); tool_button[SpatialEditor::TOOL_MODE_SCALE]->set_icon( get_icon("ToolScale","EditorIcons") ); + tool_button[SpatialEditor::TOOL_MODE_LIST_SELECT]->set_icon( get_icon("ListSelect","EditorIcons") ); instance_button->set_icon( get_icon("SpatialAdd","EditorIcons") ); instance_button->hide(); @@ -3807,7 +3835,7 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { tool_button[TOOL_MODE_SELECT]->set_pressed(true); button_binds[0]=MENU_TOOL_SELECT; tool_button[TOOL_MODE_SELECT]->connect("pressed", this,"_menu_item_pressed",button_binds); - tool_button[TOOL_MODE_SELECT]->set_tooltip("Select Mode (Q)"); + tool_button[TOOL_MODE_SELECT]->set_tooltip("Select Mode (Q)\n"+keycode_get_string(KEY_MASK_CMD)+"Drag: Rotate\nAlt+Drag: Move\nAlt+RMB: Depth list selection"); tool_button[TOOL_MODE_MOVE] = memnew( ToolButton ); @@ -3839,10 +3867,22 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { hbc_menu->add_child( instance_button ); instance_button->set_flat(true); instance_button->connect("pressed",this,"_instance_scene"); + instance_button->hide(); VSeparator *vs = memnew( VSeparator ); hbc_menu->add_child(vs); + tool_button[TOOL_MODE_LIST_SELECT] = memnew( ToolButton ); + hbc_menu->add_child( tool_button[TOOL_MODE_LIST_SELECT] ); + tool_button[TOOL_MODE_LIST_SELECT]->set_toggle_mode(true); + tool_button[TOOL_MODE_LIST_SELECT]->set_flat(true); + button_binds[0]=MENU_TOOL_LIST_SELECT; + tool_button[TOOL_MODE_LIST_SELECT]->connect("pressed", this,"_menu_item_pressed",button_binds); + tool_button[TOOL_MODE_LIST_SELECT]->set_tooltip("Show a list of all objects at the position clicked\n(same as Alt+RMB in selet mode)."); + + vs = memnew( VSeparator ); + hbc_menu->add_child(vs); + PopupMenu *p; diff --git a/tools/editor/plugins/spatial_editor_plugin.h b/tools/editor/plugins/spatial_editor_plugin.h index ebd3f77fe7..e7ea14ba6a 100644 --- a/tools/editor/plugins/spatial_editor_plugin.h +++ b/tools/editor/plugins/spatial_editor_plugin.h @@ -239,6 +239,7 @@ private: void _finish_gizmo_instances(); void _selection_result_pressed(int); void _selection_menu_hide(); + void _list_select(InputEventMouseButton b); protected: @@ -287,7 +288,9 @@ public: TOOL_MODE_SELECT, TOOL_MODE_MOVE, TOOL_MODE_ROTATE, - TOOL_MODE_SCALE + TOOL_MODE_SCALE, + TOOL_MODE_LIST_SELECT, + TOOL_MAX }; @@ -369,6 +372,7 @@ private: MENU_TOOL_MOVE, MENU_TOOL_ROTATE, MENU_TOOL_SCALE, + MENU_TOOL_LIST_SELECT, MENU_TRANSFORM_USE_SNAP, MENU_TRANSFORM_CONFIGURE_SNAP, MENU_TRANSFORM_LOCAL_COORDS, @@ -392,7 +396,7 @@ private: }; - Button *tool_button[4]; + Button *tool_button[TOOL_MAX]; Button *instance_button; |