summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-67/+67
| | | | change warnings=all to use /W4.
* GDScript/C#: Tweak error message for invalid script type for objectRémi Verschelde2022-10-041-2/+2
| | | | See #66870.
* Load/update GDScript from disk on load if cache mode is CACHE_MODE_IGNORERindbee2022-09-241-1/+1
|
* Fix last_modified_time on scriptsYuri Rubinsky2022-09-121-2/+4
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-3/+3
|
* Make `property_*_revert` methods multilevel and expose them for scriptingYuri Sizov2022-08-181-0/+43
|
* Fix script documentation method argument default valuesXwdit2022-08-101-1/+3
| | | | Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
* Removed faulty function update after get_property_list.Hristo Stamenov2022-08-031-12/+30
| | | | The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-1/+1
|
* Move editor paths into the EditorPaths classAaron Franke2022-07-291-2/+2
|
* Merge pull request #63049 from Faless/mp/4.x_as_moduleRémi Verschelde2022-07-281-18/+10
|\
| * [Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli2022-07-261-18/+10
| | | | | | | | | | | | | | | | | | - RPC configurations are now dictionaries. - Script.get_rpc_methods renamed to Script.get_rpc_config. - Node.rpc[_id] and Callable.rpc now return an Error. - Refactor MultiplayerAPI to allow extension. - New MultiplayerAPI.rpc method with Array argument (for scripts). - Move the default MultiplayerAPI implementation to a module.
* | fix(gdscript): Fix out of bounds crash after reloading member variablesAntonio Dell'Annunziata2022-07-281-2/+2
|/ | | | | The crash happens because the members Vector is resized, while the member_indices_cache still has the old indices saved. On deleting a member from the script this can result to a cached index of 1 while the members Vector size is only 1.
* Fix missing method qualifiers in script docXwdit2022-07-241-0/+5
| | | | Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Don't print redundant errors when parsing GDScriptDallon Feldner2022-07-221-3/+3
| | | The error macros print a generic error, which isn't necessary, and could be confusing to end users.
* Fix grouping annotations displayed in documentXwdit2022-07-151-0/+3
|
* Remove unused hintskobewi2022-07-121-1/+0
|
* Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg2022-07-071-1/+1
| | | | filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
* GDScript: Use implicit method for @onready variablesGeorge Marques2022-06-241-0/+16
| | | | | | Initialize them with the implicit method so they're not related to the overriding of the `_ready` method of the script but instead are always set.
* GDScript: Don't add implicit constructor to the list of functionsGeorge Marques2022-06-241-0/+4
| | | | | So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
* Make enum/constant binds 64-bit.bruvzg2022-06-171-1/+1
|
* Add a null checking to `GDScript::_super_implicit_constructor`Yuri Rubinsky2022-06-151-0/+1
|
* Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classnameGeorge Marques2022-06-151-0/+3
|\ | | | | Allow setting the PropertyInfo class_name from GDScript custom properties
| * Allow setting the PropertyInfo class_name from GDScripttrollodel2022-02-011-0/+3
| |
* | Merge pull request #59943 from jordigcs/gdscript_warning_enumsRémi Verschelde2022-05-261-3/+7
|\ \ | | | | | | Add enum values (Ignore, Warn, Error) to GDScript warnings
| * | Add enum values (Ignore, Warn, Error) to GDScript warningsjordi2022-04-061-3/+7
| | |
* | | Add a new HashSet templatereduz2022-05-201-4/+4
| | | | | | | | | | | | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* | | Use range iterators for RBSet in most casesAaron Record2022-05-191-6/+6
| | |
* | | Merge pull request #55134 from KoBeWi/script_pillow_or_somethingRémi Verschelde2022-05-171-1/+1
|\ \ \ | | | | | | | | Always soft-reload scripts
| * | | Always soft-reload scriptskobewi2021-11-191-1/+1
| | | |
* | | | Replace most uses of Map by HashMapreduz2022-05-161-55/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* | | | Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* | | | improved error msg for gdscript load_source_codeShimmyShaman2022-04-221-1/+7
| | | |
* | | | Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-6/+8
| | | |
* | | | Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-12/+7
| | | |
* | | | GDScript: Add support for static method calls in native typesGeorge Marques2022-04-061-0/+15
| |/ / |/| |
* | | Fix some issues found by clang sanitizers.bruvzg2022-03-311-1/+1
| | |
* | | Restrict the condition when checking if a script is a templatefabriceci2022-03-231-4/+0
| | |
* | | Remove VARIANT_ARG* macrosreduz2022-03-091-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs.
* | | Fix debugger not opening built-in scriptskobewi2022-03-021-1/+1
| | |
* | | [Net] Implement GDScript custom RPC callable.Fabio Alessandrelli2022-02-071-1/+8
| | |
* | | Highlight "namespace" as a GDScript keyword in the syntax highlighterHugo Locurcio2022-02-041-2/+5
| | | | | | | | | | | | | | | Like "trait" and "yield", "namespace" is currently not implemented but is still reserved for future use.
* | | String: Add contains().Anilforextra2022-02-041-1/+1
| |/ |/|
* | Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde2022-01-131-1/+0
|\ \
| * | Remove autocomplete_setters_and_getters settingkobewi2021-12-271-1/+0
| | |
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Improve editor template workflowfabriceci2022-01-021-2/+12
|/ / | | | | | | Co-Authored-By: jmb462 <jmb462@gmail.com>
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-11/+11
| | | | | | | | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* | Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-2/+2
|/
* Show built-in script names in the debuggerkobewi2021-11-111-4/+12
|