summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2022-04-27Merge pull request #60396 from vnen/gdscript-self-lambdaRémi Verschelde
2022-04-27Merge pull request #59613 from PastMoments/dict-arr-const-fixRémi Verschelde
2022-04-26Merge pull request #60418 from ShimmyShaman/masterRémi Verschelde
2022-04-25Merge pull request #60445 from nathanfranke/minor-changesRémi Verschelde
small changes: improve OS.get_name classref, misc/scripts fixes, remove trailing quote
2022-04-24GDScript: Allow using self in lambdasGeorge Marques
2022-04-22improve OS.get_name classref, misc/scripts fixes, remove trailing quoteNathan Franke
2022-04-22improved error msg for gdscript load_source_codeShimmyShaman
2022-04-20Fix typo in `GDScript::range` docYuri Roubinsky
2022-04-19Fixes GDScript define nested dictionary and array as constants #50285PastMoments
2022-04-15Merge pull request #60007 from aaronfranke/gds-op-adj-tr3dRémi Verschelde
GDScript: Rename OPCODE_TYPE_ADJUST_TRANSFORM to have a 3D suffix
2022-04-12Narrow FileAccess scope to prevent deadlocks.bruvzg
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-08GDScript: Fix method call on singletonsGeorge Marques
2022-04-07GDScript: Rename OPCODE_TYPE_ADJUST_TRANSFORM to have a 3D suffixAaron Franke
2022-04-07Add built-in Variant types to autocompletion listDavid Maziarka
Co-authored-by: Gustav <gusan092@student.liu.se>
2022-04-06Merge pull request #59947 from vnen/gdscript-static-methods-classdbRémi Verschelde
2022-04-06GDScript: Add support for static method calls in native typesGeorge Marques
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-04-04Merge pull request #59885 from Jayman2000/autoload-inheritance-messageRémi Verschelde
2022-04-04Improve autoload inheritance error messageJason Yundt
Autoloaded scripts should always inherit from Node. When you run a project that tries to autoload a script which doesn’t inherit from Node, then Godot gives an error. Before this change, the error said “Script does not inherit a Node”. That error message is a little bit misleading. If a class inherits a Node, then one of its superclasses has a Node. If a class inherits _from_ Node, then one of its superclasses is Node. This change corrects that mistake. Fixes #59884.
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-04-03Merge pull request #59633 from EricEzaM/better-code-complete-updateRémi Verschelde
Improve sorting of Code Completion options.
2022-04-01Improve sorting of Code Completion options.Eric M
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
2022-03-31Fix some issues found by clang sanitizers.bruvzg
2022-03-31Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Fix a couple incorrect uses of gendered pronouns.
2022-03-30Merge pull request #59694 from vnen/gdscript-better-call-superRémi Verschelde
2022-03-30GDScript: Fix issues with completion and `super` callsGeorge Marques
- Make call errors use the call node instead of the calle, which will be empty on super calls. - Don't allow `super()` to be used within lambdas.
2022-03-30Fix autocompletion of static methods in built-in types in GDScriptYuri Roubinsky
2022-03-28Refactor GDScript/C# script templates logic to be editor-onlyRémi Verschelde
Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
2022-03-28Merge pull request #59553 from reduz/script-extension-supportRémi Verschelde
2022-03-28Revert "Sort autocomplete/code completion options in a better way"Juan Linietsky
2022-03-28Merge pull request #59612 from YeldhamDev/style_and_graceRémi Verschelde
2022-03-28Merge pull request #58931 from EricEzaM/proposals/4189-better-code-completionRémi Verschelde
Sort autocomplete/code completion options in a better way
2022-03-28Merge pull request #59064 from Chaosus/gds_fix_narrowing_conv_warningRémi Verschelde
Prevent NARROWING_CONVERSION warning for `int(float)` function in GDScript
2022-03-28Make script templates follow the GDScript style guideMichael Alexsander
2022-03-27Add GDExtension support to Scriptreduz
* Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
2022-03-24Improve sorting of Code Completion options.Eric M
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
2022-03-23Merge pull request #59065 from fabriceci/script-template-condition-too-wideRémi Verschelde
2022-03-23Restrict the condition when checking if a script is a templatefabriceci
2022-03-22Prevent NARROWING_CONVERSION warning for int(float) function in GDScriptYuri Roubinsky
2022-03-22Merge pull request #59056 from Chaosus/gds_fix_extends_crashYuri Rubinsky
2022-03-22Merge pull request #58971 from Chaosus/gds_multiline_annotationYuri Rubinsky
2022-03-21Merge pull request #59194 from Chaosus/gds_export_flags_limit_errorRémi Verschelde
Add an error emitting when the `@export_flags` arg count is exceeded
2022-03-16Add an error emitting when the `@export_flags` arg count is exceededYuri Roubinsky
2022-03-14Fix default value count checking for inherited functionYuri Roubinsky
2022-03-12Prevent crash due to empty error message on empty extends in GDScriptYuri Roubinsky
2022-03-10Allow making multiline annotations in GDScriptYuri Roubinsky
2022-03-09Remove VARIANT_ARG* macrosreduz
* 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.
2022-03-09Fix `VisualShaderNodeCustom` script templateYuri Roubinsky
2022-03-07Merge pull request #58853 from V-Sekai/default-arg-valuesRémi Verschelde