summaryrefslogtreecommitdiffstats
path: root/modules/gdscript
Commit message (Collapse)AuthorAgeFilesLines
* Remove more deprecated methods and codeRémi Verschelde2020-02-132-5/+1
|
* Remove deprecated sync and slave networking keywordsRémi Verschelde2020-02-135-20/+5
| | | | | | Those keywords were deprecated for 3.1 in #22087. Also fix token name for `TK_REMOTE`, should be "remote" like the keyword.
* Merge pull request #36142 from akien-mga/remove-deprecated-decimalsRémi Verschelde2020-02-123-23/+0
|\ | | | | Remove deprecated decimals builtin
| * Remove deprecated decimals builtinRémi Verschelde2020-02-123-23/+0
| | | | | | | | Replaced by 'step_decimals' in 3.2 via #21425.
* | ObjectID converted to a structure, fixes many bugs where used incorrectly as ↵Juan Linietsky2020-02-122-4/+4
| | | | | | | | 32 bits.
* | Merge pull request #35522 from AndreaCatania/rpc_opt_2Rémi Verschelde2020-02-122-24/+154
|\ \ | | | | | | Optmized data sent during RPC and RSet calls.
| * | Optmized data sent during RPC and RSet calls.Andrea Catania2020-02-122-24/+154
| |/ | | | | | | | | | | | | | | | | | | - Now is sent the method ID rather the full function name. - The passed IDs (Node and Method) are compressed so to use less possible space. - The variant (INT and BOOL) is now encoded and compressed so to use much less data. - Optimized RPCMode retrieval for GDScript functions. - Added checksum to assert the methods are the same across peers. This work has been kindly sponsored by IMVU.
* / Fix hover symbol content positiongeequlim2020-02-121-0/+2
|/
* Remove duplicate WARN_PRINT macro.Marcel Admiraal2020-02-051-1/+1
|
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-2/+2
|
* Update docs to version 4.0clayjohn2020-01-314-4/+4
|
* Fix static functions loop using class' functionsFrancois Belair2020-01-281-1/+1
| | | | | Besides being incorrect, it also caused a hard editor crash for purely static classes or classes with more static functions than methods.
* Merge pull request #35589 from akien-mga/doc-drop-category-propertyRémi Verschelde2020-01-264-4/+4
|\ | | | | doc: Drop unused 'category' property from header
| * doc: Drop unused 'category' property from headerRémi Verschelde2020-01-264-4/+4
| | | | | | | | | | | | | | | | | | | | We already removed it from the online docs with #35132. Currently it can only be "Built-In Types" (Variant types) or "Core" (everything else), which is of limited use. We might also want to consider dropping it from `ClassDB` altogether in Godot 4.0.
* | doc: Do not expose Variant::NIL as a type in the class referenceRémi Verschelde2020-01-261-1/+1
|/ | | | | | Fix signals Variant arguments incorrectly listed as Nil. Fixes #12520.
* doc: Document named color constantsRémi Verschelde2020-01-261-3/+2
| | | | Busywork but it's good for our completion rate :)
* Merge pull request #35412 from DaividFrank/check_overriding_selfRémi Verschelde2020-01-221-0/+5
|\ | | | | Disabled re-assigning 'self'
| * GDScript: Added checks in assign operations to disable re-assigning 'self'DaividFrank2020-01-221-0/+5
| |
* | Remove unused #if 0'ed codeRémi Verschelde2020-01-211-3/+1
| |
* | Fix subclass finding in extend statement for sub-sub classesDani Frank2020-01-181-4/+4
|/ | | | | lookup was always done on top level script instead of advancing to subclass each time. this commit changes the lookup to always be at last found subclass
* Fix constant access in base class through subclass instanceChibiDenDen2020-01-171-7/+7
| | | | | | | | Fixes as issue where a subclass calls a base class method that tries to access a constant from the script. The original code went through every ower class, and for each owner, went through its inheritance tree. This seems like the wrong order, the modified code goes to each base class, and for each base class goes through the owner tree. This is more in line with what the parser does, as the current impelemtation allows an access that the parser does not support. This change should not negatively affect existing code due to the way the parser works
* Merge pull request #35218 from bojidar-bg/26691-parse-error-errorsRémi Verschelde2020-01-162-2/+4
|\ | | | | Fix errors raised when showing parse errors in the editor
| * Fix errors raised when showing parse errors in the editorBojidar Marinov2020-01-162-2/+4
| | | | | | | | Fixes #26691
* | Merge pull request #35201 from bojidar-bg/27582-gdfunction-validate-instanceRémi Verschelde2020-01-161-7/+15
|\ \ | | | | | | Validate instances of objects before trying to check their type in GDScript
| * | Validate instances of objects before trying to check their type in GDScriptBojidar Marinov2020-01-161-7/+15
| |/ | | | | | | Fixes #27582
* | Merge pull request #35199 from dalexeev/masterRémi Verschelde2020-01-161-15/+3
|\ \ | | | | | | Fix function arguments hint format in GDScript editor
| * | Fix function arguments hint format in GDScript editorDanil Alexeev2020-01-161-15/+3
| |/ | | | | | | | | for consistency with the format of the documentation: "type func_name(arg1: type, arg2: type)"
* | Merge pull request #35102 from ChibiDenDen/reuse_orphaned_subclassRémi Verschelde2020-01-163-5/+63
|\ \ | | | | | | #34161: Keep a weak reference to orphan subclasses to reuse on class reload
| * | Keep a weak reference to orphan subclasses to reuse on class reloadChibiDenDen2020-01-153-5/+63
| | |
* | | Fix slight problems related to default values of exported typed arraysBojidar Marinov2020-01-161-25/+26
| |/ |/|
* | Prevent GDScript language server from listening to external hosts by defaultHoukime2020-01-153-3/+4
| | | | | | | | | | | | | | | | | | | | * Add bind_ip property to WebSocketServer defaulting to "*" (listen to everyone) * Set default for GDscript Language Server to listen only to localhost Fixes potential security issue with GDScript language server being exposed to the broad net by default. Since it is the server which primary usage is to provide utility to the local editor there is no need to expose it.
* | Fix typos with codespellRémi Verschelde2020-01-151-4/+4
|/ | | | | | Using codespell 1.16.0. See ab3bccdb78cc7dffb6ab796053ef63489f05558d for procedure.
* Add fully_qualified_name for GDScript classDani Frank2020-01-142-0/+5
|
* GDScript: Check function arguments on release tooGeorge Marques2020-01-131-4/+0
| | | | | | | | Needed because otherwise the certain type operations (such as type casting) used as a function argument might become unresolved on release, causing a compilation failure. Fix #28680
* Merge pull request #35076 from vnen/gdscript-type-match-assignRémi Verschelde2020-01-131-8/+2
|\ | | | | Type match on assignment only if operators have type
| * GDScript: Type match on assignment only if operators have typeGeorge Marques2020-01-131-8/+2
| | | | | | | | | | This ensures that a value without type won't be wrongly assigned to a typed variable when the types mismatch.
* | Fix infinite loop error in document link parsingGeequlim2020-01-131-2/+3
|/
* Remove completion triggers for ',' and '(' which may conflict with signature ↵geequlim2020-01-111-2/+0
| | | | helper
* Allow enable/disable threading for LSP servergeequlim2020-01-112-13/+42
| | | | Restart LSP server when configurations change without restart the editor
* GDScript: Forbid using "script" as member nameGeorge Marques2020-01-101-3/+9
| | | | | Avoids the user breaking things by creating a "script" variable with something else, effectively overwriting the "script" slot on Object.
* Merge pull request #34978 from GodotExplorer/lsp-fix-bracket-completionRémi Verschelde2020-01-101-1/+1
|\ | | | | LSP: Fix bracket completion for functions with one argument
| * LSP: Fix bracket completion for functions with one argumentGeequlim2020-01-101-1/+1
| |
* | Merge pull request #34958 from vnen/gdscript-is-check-valid-instanceRémi Verschelde2020-01-101-0/+7
|\ \ | |/ |/| GDScript: Validate object instance on `is` operation
| * GDScript: Validate object instance on `is` operationGeorge Marques2020-01-091-0/+7
| | | | | | | | | | | | | | | | Avoids crashes on debug mode. Instead it now breaks the execution and show the error in-editor. Will still crash on release. Also add a similar check to Marshalls to ensure the debugger doesn't crash when trying to serialize the invalid instance.
* | GDScript: Fix type name on error message for function parametersGeorge Marques2020-01-091-1/+1
| |
* | GDScript: Fix resolution of default parameter valuesGeorge Marques2020-01-091-1/+1
| | | | | | | | Fix #26556
* | GDScript: Don't re-evaluate index on assigment with operationGeorge Marques2020-01-092-10/+12
|/ | | | | | | Pass the calculated index from the stack and use the same to get and set the value. This avoids a function with side effects being evaluated twice when using indexing in an assignment with operation statement (e.g. a[function()] += 1).
* Merge pull request #34948 from vnen/gdscript-copy-constructorRémi Verschelde2020-01-091-0/+11
|\ | | | | GDScript: Allow copy constructor for built-in types
| * GDScript: Allow copy constructor for built-in typesGeorge Marques2020-01-091-0/+11
| | | | | | | | Those are implicitly defined in Variant.
* | Add GDScript warning for standalone expressionGeorge Marques2020-01-093-1/+10
|/ | | | | This makes the error message clearer as it might be used to call functions with side effects.