summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
2020-04-24Merge pull request #37232 from ThakeeNathees/load()-autocomplete-imlpementedRémi Verschelde
autocomplete for load() function implemented
2020-04-22Merge pull request #37318 from ttencate/fix/argument_nulled_37312Rémi Verschelde
Revert "Allow parameters passed to GDScript functions to be nulled"
2020-04-21Merge pull request #37537 from ThakeeNathees/const-parsing-datatype-bug-fixRémi Verschelde
GDScript: Fix type inference for const reference to global class
2020-04-21Merge pull request #37712 from stoofin/pattern-bind-warningRémi Verschelde
Fix unassigned variable warnings for match bindings
2020-04-21Merge pull request #38041 from ThakeeNathees/class-name-check-enhanceRémi Verschelde
GDScript class name existance check enhanced
2020-04-21Merge pull request #37955 from ThakeeNathees/lin-unsafe-base-know-index-unkonwnRémi Verschelde
Line marked unsafe when base known and index unkonwn
2020-04-21Merge pull request #37954 from ThakeeNathees/autocomplete-indexing-native-typesRémi Verschelde
Autocompleting with indexing for builtin types added
2020-04-21Add ability to bind typed arrays to script APIJuan Linietsky
Note: Only replaced 2 instances to test, Node.get_children and TileMap.get_used_cells Note: Will do a mass replace on later PRs of whathever I can find, but probably need a tool to grep through doc. Warning: Mono will break, needs to be fixed (and so do TypeScript and NativeScript, need to ask respective maintainers)
2020-04-20Exposed RenderingDevice to script APIJuan Linietsky
Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
2020-04-20Fix handling of PROPERTY_USAGE_SUBGROUP in DocData and editorRémi Verschelde
Subgroups were added in #37678 but not properly handled everywhere where PROPERTY_USAGE_GROUP is.
2020-04-20DocData: Skip unexposed classesRémi Verschelde
Properly expose classes that we actually want accessible.
2020-04-20GDScript class name existance check enhancedThakee Nathees
2020-04-17line unsafe for indexing with known base type & unkown identifierThakee Nathees
2020-04-17autocompleting with indexing for native types addedThakee Nathees
Fix: #37768
2020-04-14Merge pull request #37861 from reduz/implement-decalsRémi Verschelde
Implement decals
2020-04-14Implement decalsJuan Linietsky
Also implemented decal atlas, so projectors and other stuff can be added. Sidenote: Had to make RID hashable, so some unrelated includes changed in order to include it in hashfuncs.h
2020-04-13Merge pull request #37817 from ThakeeNathees/disconnect-autocompleteRémi Verschelde
autocomplete for disconnect implemented
2020-04-13autocomplete for disconnect, is_connected implementedThakee Nathees
2020-04-10Merge pull request #37395 from ThakeeNathees/collon-equal-parser-bug-fixRémi Verschelde
`:=` fails on some nodes fix: #37357
2020-04-09Pattern bind counts as assignmentStoofin
Fixes #34697
2020-04-03GDScript: Fix type inference for const reference to global classThakee Nathees
Fixes #37529.
2020-04-02Replace more occurrences of NULL with nullptrRémi Verschelde
2020-04-02Replace NULL with nullptrlupoDharkael
2020-03-31Add missing docs for assert message in GDScriptThomas ten Cate
Seems like this was overlooked in PR #31142. See also issue #17082.
2020-03-30Merge pull request #37436 from akien-mga/doc-node-renamesRémi Verschelde
doc: Update classref with node renames
2020-03-30doc: Update classref with node renamesRémi Verschelde
A few extra renames for classes which were missed in last week's PRs.
2020-03-30SCons: Format buildsystem files with psf/blackRémi Verschelde
Configured for a max line length of 120 characters. psf/black is very opinionated and purposely doesn't leave much room for configuration. The output is mostly OK so that should be fine for us, but some things worth noting: - Manually wrapped strings will be reflowed, so by using a line length of 120 for the sake of preserving readability for our long command calls, it also means that some manually wrapped strings are back on the same line and should be manually merged again. - Code generators using string concatenation extensively look awful, since black puts each operand on a single line. We need to refactor these generators to use more pythonic string formatting, for which many options are available (`%`, `format` or f-strings). - CI checks and a pre-commit hook will be added to ensure that future buildsystem changes are well-formatted.
2020-03-29`:=` fails on some nodes fix: #37357Thakee Nathees
2020-03-28Merge pull request #37364 from ThakeeNathees/fix-forloop-range-bug-#37358Rémi Verschelde
Fix for loop range bug: #37358
2020-03-28Fix for loop range bug: #37358Thakee Nathees
2020-03-26Revert "Allow parameters passed to GDScript functions to be nulled"Thomas ten Cate
This reverts commit f0efc7521e7302e60ebaab31a42fafd3ea2bda68. Fixes #37312.
2020-03-26Popups are now windows also (broken!)Juan Linietsky
2020-03-26Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky
2020-03-24Move DocData and Collada out of their subfoldersRémi Verschelde
Now that the unused DocDump was removed, the `editor/doc` subfolder is redundant. Similarly, there's no reason for Collada to have a subfolder for itself when glTF or OBJ don't.
2020-03-23Adding missing include guards to header files identified by LGTM.Rajat Goswami
This addresses the issue godotengine/godot#37143
2020-03-22autocomplete for load() function implementedThakee Nathees
2020-03-17Style: Set clang-format Standard to Cpp11Rémi Verschelde
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
2020-03-13Merge pull request #36599 from AndreaCatania/gen_rpc_data_exportRémi Verschelde
Generates the rpc and rset info for exported GDScript.
2020-03-13Merge pull request #36723 from AndreaCatania/fix-rsetRémi Verschelde
Fixed rset method for gdscript and visual script
2020-03-11Fix various typosluz.paz
Found via `codespell`
2020-03-10Merge pull request #36704 from ThakeeNathees/gdscript-duplicate-args-fixRémi Verschelde
GDScript duplicate arguments bug fixed
2020-03-10Merge pull request #36767 from ThakeeNathees/class-pass-fixRémi Verschelde
fix: Classes can't have pass
2020-03-10Merge pull request #36859 from ThakeeNathees/logic-error-for-loop-range-parsingRémi Verschelde
Fix: logic error in gdscript_parser.cpp for-loop-range
2020-03-09Merge pull request #36751 from Faless/debugger/threads_and_profilersRémi Verschelde
ScriptDebugger refactor, threading, profilers.
2020-03-09Merge pull request #36912 from Xrayez/resurrect-module-iconsRémi Verschelde
Fix missing module editor icons
2020-03-08Fix missing module editor iconsAndrii Doroshenko (Xrayez)
Module icons need to be renamed to PascalCase as well for them to be registered in 4.0. See godotengine/godot#36513.
2020-03-08Merge pull request #36683 from rafaeldelboni/masterRémi Verschelde
Return only scenes for script owners on LSP completion
2020-03-08Refactor ScriptDebugger.Fabio Alessandrelli
EngineDebugger is the new interface to access the debugger. It tries to be as agnostic as possible on the data that various subsystems can expose. It allows 2 types of interactions: - Profilers: A subsystem can register a profiler, assigning it a unique name. That name can be used to activate the profiler or add data to it. The registered profiler can be composed of up to 3 functions: - Toggle: called when the profiler is activated/deactivated. - Add: called whenever data is added to the debugger (via `EngineDebugger::profiler_add_frame_data`) - Tick: called every frame (during idle), receives frame times. - Captures: (Only relevant in remote debugger for now) A subsystem can register a capture, assigning it a unique name. When receiving a message, the remote debugger will check if it starts with `[prefix]:` and call the associated capture with name `prefix`. Port MultiplayerAPI, Servers, Scripts, Visual, Performance to the new profiler system. Port SceneDebugger and RemoteDebugger to the new capture system. The LocalDebugger also uses the new profiler system for scripts profiling.
2020-03-07fix: Return only scenes for script owners on LSP completionRafael Delboni
Fix: #36680
2020-03-06logic error in gdscript_parser.cpp for-loop-rangeThakee Nathees
there was a logic error in for loop range argument that check if all of the argument were constants, fixed