summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2022-07-01Fix GDScript parser sometimes crashing when issuing warning for unreachable ↵MinusKube
pattern
2022-06-28Merge pull request #60675 from voylin/Add-BBCode-support-for-printing-outputRémi Verschelde
Adding print_rich() for printing with BBCode
2022-06-28Merge pull request #62485 from cdemirer/fix-set-chain-jump-if-sharedRémi Verschelde
Fix chain assignment bug with jump_if_shared
2022-06-28Fix set chain bug with jump_if_sharedcdemirer
2022-06-29Adding print_rich for printing with BBCodeVoylin
2022-06-28Merge pull request #53135 from briansemrau/fix-ref-leakRémi Verschelde
2022-06-28Merge pull request #62470 from vnen/gdscript-export-nodesRémi Verschelde
GDScript: Enable exporting nodes to the inspector
2022-06-28Merge pull request #62468 from V-Sekai/core-const-expressionsRémi Verschelde
Add a const call mode to Object, Variant and Script.
2022-06-27GDScript: Enable exporting nodes to the inspectorGeorge Marques
Also fix an small issue in the property editor for NodePath trying to use the meta property when not needed.
2022-06-27Merge pull request #62462 from vnen/gdscript-setter-chainingRémi Verschelde
GDScript: Fix setter being called in chains for shared types
2022-06-27Add a const call mode to Object, Variant and Script.K. S. Ernest (iFire) Lee
For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script). This mode ensures only const functions can be called, making it safe to use from the editor. Co-Authored-By: reduz <reduzio@gmail.com>
2022-06-27GDScript: Fix setter being called in chains for shared typesGeorge Marques
When a type is shared (i.e. passed by reference) it doesn't need to be called in a setter chain (e.g. `a.b.c = 0`) since it will be updated in place. This commit adds an instruction that jumps when the value is shared so it can be used to skip those cases and avoid redundant calls of setters. It also solves issues when assigning to sub-properties of read-only properties.
2022-06-25Merge pull request #62372 from MarcusElg/nosliderrenameRémi Verschelde
Rename @export_range's noslider option to no_slider
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-24Rename export_range's noslider option to no_sliderMarcus Elg
2022-06-23Merge pull request #62342 from reduz/methodinfo-varargsRémi Verschelde
Implement varargs in Methodinfo
2022-06-23Implement varargs in Methodinforeduz
Variadic templates are an awful thing. Implements #62233 using them in MethodInfo so less changes are required.
2022-06-22Do not reset return value in release buildBlack Cat
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-19Allow autocompletion of "noslider" in export_rangeMarcus Elg
2022-06-17Make enum/constant binds 64-bit.bruvzg
2022-06-17Merge pull request #61510 from Calinou/script-tweak-stack-overflow-messageRémi Verschelde
2022-06-16Fix EditorScenePostImport templates for C#Raul Santos
2022-06-15Merge pull request #61486 from jtnicholl/import_script_templatesRémi Verschelde
Add script templates for EditorScenePostImport
2022-06-15Add script templates for EditorScenePostImportJonathan Nicholl
2022-06-15Add a null checking to `GDScript::_super_implicit_constructor`Yuri Rubinsky
2022-06-15Improve stack overflow error message in GDScript and VisualScriptHugo Locurcio
Stack overflow errors are generally the result of infinite recursion within a script.
2022-06-15Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classnameGeorge Marques
Allow setting the PropertyInfo class_name from GDScript custom properties
2022-06-15Merge pull request #59358 from strank/debug-inner-classesGeorge Marques
2022-06-15Merge pull request #59482 from kurtlachmann/lsp_better_parenthesesRémi Verschelde
2022-06-15Merge pull request #61666 from nathanfranke/fix-match-bindGeorge Marques
gdscript: use correct error for unused bind match, suppress with underscore
2022-06-14Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-errorGeorge Marques
Fix logic errors in match-statement Array & Dictionary patterns
2022-06-12Extend test_compiler to also disassemble inner classesstrank
2022-06-03use correct error for unused bind match, suppress with underscoreNathan Franke
2022-05-31Merge pull request #61463 from vnen/gdscript-await-stackRémi Verschelde
GDScript: Fix stack overflow when using multiple `await`
2022-05-31Merge pull request #61440 from vnen/gdscript-scene-unique-nodesRémi Verschelde
GDScript: Support `%` in shorthand for `get_node`
2022-05-27GDScript: Support `%` in shorthand for `get_node`George Marques
The `%` is used in scene unique nodes. Now `%` can also be used instead of `$` for the shorthand, besides being allowed generally anywhere in the path as the prefix for a node name.
2022-05-27GDScript: Fix stack overflow when using multiple `await`George Marques
2022-05-26Merge pull request #59943 from jordigcs/gdscript_warning_enumsRémi Verschelde
Add enum values (Ignore, Warn, Error) to GDScript warnings
2022-05-25Merge pull request #55099 from dalexeev/desc-by-blank-lineRémi Verschelde
Use blank line instead of `@desc:` for doc comments
2022-05-25Merge pull request #61389 from snailrhymer/lookup-fixRémi Verschelde
2022-05-25Use blank line instead of `@desc:` for doc commentsDanil Alexeev
2022-05-25Make Lookup Symbol recognize assert and preload in the script editorSnailRhymer
2022-05-25Merge pull request #61279 from Trioct/fix-typed-array-assignmentRémi Verschelde
2022-05-25Fix const typed array assignmentTrioct
2022-05-25Fix lookup_code to properly handle symbols at start of assignmentsSnailRhymer
2022-05-24GDScript: Don't show redundant await warning on unknown typesGeorge Marques
Also avoid it when the type is known to be a signal.
2022-05-23GDScript: Fix lambda captures in default argument valuesGeorge Marques
2022-05-23GDScript: Fix `if` after lambda being seen as ternaryGeorge Marques