summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript.cpp
AgeCommit message (Collapse)Author
2023-01-31Merge pull request #72444 from reduz/fix-global-class-parsingRémi Verschelde
Fix global script class parsing.
2023-01-31Fix global script class parsing.Juan Linietsky
* Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226.
2023-01-31GDScript: Fix issues with typed arraysDmitrii Maganov
2023-01-28GDScript: Avoid calling non-static methods on native classesGeorge Marques
2023-01-25GDScript: Allow constant expressions in annotationsDanil Alexeev
2023-01-21Merge pull request #71687 from reduz/support-script-class-name-in-efsRémi Verschelde
Support script global resource name in EditorFileSystem
2023-01-21Support script global resource name in EditorFileSystemJuan Linietsky
* Works for binary and text files. * Makes EditorQuickOpen work with custom resources again. * Information is cached and easily accessible. Properly fixes #66179. Supersedes #66215 and supersedes #62417 **WARNING**: This required breaking backwards binary compatibility (.res and .scn files). Files saved after this PR is merged will no longer open in any earlier versions of Godot.
2023-01-20Remove references to compiled GDScript in exportGeorge Marques
This feature was removed from GDScript so it should not be present on the interface nor in the saved export presets.
2023-01-12Add default virtual `gdscript://` path to `GDScript` instancesAdam Scott
2023-01-07Resolve `GDScript::clear()` `heap-use-after-free` ASAN errorsAdam Scott
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03Merge pull request #70503 from rune-scape/inner-class-docsRémi Verschelde
Inner classes get their docs back
2022-12-23Inner classes get their docs backrune-scape
2022-12-20Unify GDScriptAnalyzer in-editor and runtime autoload checksocean (they/them)
2022-12-17Merge pull request #70000 from rune-scape/find-more-classesRémi Verschelde
GDScript: Fix built-in script `find_class` bugs
2022-12-15GDScript: Fix built-in script and other `find_class` bugsrune-scape
2022-12-15Fix `GDScript::_get_gdscript_from_variant()` crashAdam Scott
The crash would happen, theoretically, when getting the type of a invalid variant.
2022-12-11Add GDScript member initializer implicit type conversionocean (they/them)
2022-12-11Add PropertyInfo overload for GLOBAL_DEFkobewi
2022-12-10Remove debug macro for GDScriptLanguage script_listAdam Scott
2022-12-10Merge pull request #69467 from rune-scape/rune-subclass-script-pathRémi Verschelde
GDScript: Fix subclass script path issues
2022-12-06Move GDScript uninitialization to `GDScriptLanguage::finalize()`Adam Scott
Co-authored-by: Ricardo Buring <ricardo.buring@gmail.com> Co-authored-by: kleonc <9283098+kleonc@users.noreply.github.com>
2022-12-01GDScript: Fix subclass script path issuesrune-scape
2022-11-18Fix cyclic references in GDScript 2.0Adam Scott
2022-11-13GDScript compiler subclass bugfixesRune
2022-10-25Fix built-in script path of GDScriptWei Guo
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-04GDScript/C#: Tweak error message for invalid script type for objectRémi Verschelde
See #66870.
2022-09-24Load/update GDScript from disk on load if cache mode is CACHE_MODE_IGNORERindbee
2022-09-12Fix last_modified_time on scriptsYuri Rubinsky
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-18Make `property_*_revert` methods multilevel and expose them for scriptingYuri Sizov
2022-08-10Fix script documentation method argument default valuesXwdit
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
2022-08-03Removed faulty function update after get_property_list.Hristo Stamenov
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.
2022-07-29Swap arguments of ResourceSaver.save()kobewi
2022-07-29Move editor paths into the EditorPaths classAaron Franke
2022-07-28Merge pull request #63049 from Faless/mp/4.x_as_moduleRémi Verschelde
2022-07-28fix(gdscript): Fix out of bounds crash after reloading member variablesAntonio Dell'Annunziata
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.
2022-07-26[Net] Modularize multiplayer, expose MultiplayerAPI to extensions.Fabio Alessandrelli
- 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.
2022-07-24Fix missing method qualifiers in script docXwdit
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-22Don't print redundant errors when parsing GDScriptDallon Feldner
The error macros print a generic error, which isn't necessary, and could be confusing to end users.
2022-07-15Fix grouping annotations displayed in documentXwdit
2022-07-12Remove unused hintskobewi
2022-07-07Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg
filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
2022-06-24GDScript: Use implicit method for @onready variablesGeorge Marques
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.
2022-06-24GDScript: Don't add implicit constructor to the list of functionsGeorge Marques
So it's not shown on docs or when listing the methods. This also avoids being able to call it using the `call()` function.
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-15Add a null checking to `GDScript::_super_implicit_constructor`Yuri Rubinsky
2022-06-15Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classnameGeorge Marques
Allow setting the PropertyInfo class_name from GDScript custom properties